86 lines
2.2 KiB
JSON
86 lines
2.2 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://thinkloom.app/schemas/provenance/1.0/derived-index-manifest.schema.json",
|
|
"title": "Derived index manifest",
|
|
"description": "Non-authoritative reproducibility metadata for a derived index.",
|
|
"type": "object",
|
|
"properties": {
|
|
"schema_version": {
|
|
"const": "1.0"
|
|
},
|
|
"index_type": {
|
|
"enum": [
|
|
"content_index",
|
|
"contribution_graph",
|
|
"manuscript_lineage",
|
|
"checkpoint_index"
|
|
]
|
|
},
|
|
"source_chain_head": {
|
|
"type": "string",
|
|
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
},
|
|
"source_event_count": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"generator": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"pattern": "^\\d+\\.\\d+\\.\\d+$"
|
|
},
|
|
"configuration_sha256": {
|
|
"type": "string",
|
|
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"version",
|
|
"configuration_sha256"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"content_sha256": {
|
|
"type": "string",
|
|
"pattern": "^sha256:[a-f0-9]{64}$"
|
|
},
|
|
"generated_at": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
|
|
}
|
|
},
|
|
"required": [
|
|
"schema_version",
|
|
"index_type",
|
|
"source_chain_head",
|
|
"source_event_count",
|
|
"generator",
|
|
"content_sha256",
|
|
"generated_at"
|
|
],
|
|
"additionalProperties": false,
|
|
"examples": [
|
|
{
|
|
"schema_version": "1.0",
|
|
"index_type": "contribution_graph",
|
|
"source_chain_head": "sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
|
|
"source_event_count": 42,
|
|
"generator": {
|
|
"name": "thinkloom-indexer",
|
|
"version": "1.0.0",
|
|
"configuration_sha256": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
|
|
},
|
|
"content_sha256": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
|
|
"generated_at": "2026-07-17T18:42:10.123Z"
|
|
}
|
|
]
|
|
}
|