Add provenance schema contract for v0.3.0
This commit is contained in:
@@ -0,0 +1,311 @@
|
||||
{
|
||||
"schema": "https://thinkloom.app/schemas/provenance/1.0/project-manifest.schema.json",
|
||||
"cases": [
|
||||
{
|
||||
"description": "project-manifest.schema_version: reject missing required property",
|
||||
"instance": {
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.application_version: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.project_id: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.title: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.created_at: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.updated_at: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.current_phase: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.publication_status: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.provenance_policy_id: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.audio_retained: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest: reject unexpected property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false,
|
||||
"__unexpected": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.schema_version: reject value different from const",
|
||||
"instance": {
|
||||
"schema_version": "__INVALID_CONST__",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.application_version: reject pattern mismatch",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": " invalid!",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.project_id: reject pattern mismatch",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "invalid-id",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.title: reject string below minLength",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.created_at: reject pattern mismatch",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "not-a-timestamp",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.updated_at: reject pattern mismatch",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "not-a-timestamp",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.current_phase: reject value outside enum",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "__INVALID_ENUM__",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.publication_status: reject value outside enum",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "__INVALID_ENUM__",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.provenance_policy_id: reject pattern mismatch",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "invalid-id",
|
||||
"audio_retained": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "project-manifest.audio_retained: reject value different from const",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"application_version": "0.3.0",
|
||||
"project_id": "project_01J00000000000000000000001",
|
||||
"title": "The Attention Commons",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"updated_at": "2026-07-17T18:43:11.456Z",
|
||||
"current_phase": "ideation",
|
||||
"publication_status": "working",
|
||||
"provenance_policy_id": "policy_01J0000000000000000000000H",
|
||||
"audio_retained": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user