Add provenance schema contract for v0.3.0
This commit is contained in:
@@ -0,0 +1,539 @@
|
||||
{
|
||||
"schema": "https://thinkloom.app/schemas/provenance/1.0/idea-revision.schema.json",
|
||||
"cases": [
|
||||
{
|
||||
"description": "idea-revision.schema_version: reject missing required property",
|
||||
"instance": {
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.revision_id: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.idea_id: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.revision_number: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.title: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.summary: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.detail: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.tags: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.source_turn_ids: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.parent_idea_ids: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.created_by: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.created_at: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.content_sha256: reject missing required property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision: reject unexpected property",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
||||
"__unexpected": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.schema_version: reject value different from const",
|
||||
"instance": {
|
||||
"schema_version": "__INVALID_CONST__",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.revision_id: reject pattern mismatch",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "invalid-id",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.idea_id: reject pattern mismatch",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "invalid-id",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.revision_number: reject value below minimum",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 0,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.title: reject string below minLength",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.summary: reject string below minLength",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.tags[0]: reject string below minLength",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
""
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.source_turn_ids[0]: reject pattern mismatch",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"invalid-id"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.created_by: reject value outside enum",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "__INVALID_ENUM__",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.created_at: reject pattern mismatch",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "not-a-timestamp",
|
||||
"content_sha256": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "idea-revision.content_sha256: reject pattern mismatch",
|
||||
"instance": {
|
||||
"schema_version": "1.0",
|
||||
"revision_id": "revision_01J0000000000000000000000A",
|
||||
"idea_id": "idea_01J00000000000000000000009",
|
||||
"revision_number": 1,
|
||||
"title": "Attention as civic infrastructure",
|
||||
"summary": "Institutions influence shared attention.",
|
||||
"detail": "Treat attention as a public condition.",
|
||||
"tags": [
|
||||
"thesis"
|
||||
],
|
||||
"source_turn_ids": [
|
||||
"turn_01J00000000000000000000007"
|
||||
],
|
||||
"parent_idea_ids": [],
|
||||
"created_by": "mixed",
|
||||
"created_at": "2026-07-17T18:42:10.123Z",
|
||||
"content_sha256": "sha256:INVALID"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user