First implementation (#1)
check / check (push) Successful in 42s
site / site (push) Successful in 3m4s

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
alexm committed 2026-10-15 05:47:05 -04:00
1 parent 34c0abb26a
commit 4fa326dc76
534 files changed
+28280 -37

No files matched your search

+154
View File
@@ -0,0 +1,154 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://paperspec.scient.ing/schemas/provenance.schema.json",
"title": "Provenance",
"description": "provenance.json of a package; spec/12-package.md.",
"type": "object",
"properties": {
"tools": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"version": {
"type": "string",
"minLength": 1
}
},
"required": [
"name",
"version"
],
"additionalProperties": false
}
},
"backends": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"version": {
"type": "string",
"minLength": 1
},
"declaration": {
"$ref": "common.schema.json#/$defs/hash"
}
},
"required": [
"name",
"version"
],
"additionalProperties": false
}
},
"readings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"witness": {
"$ref": "common.schema.json#/$defs/nodeId"
},
"backend": {
"type": "string",
"minLength": 1
},
"sha256": {
"$ref": "common.schema.json#/$defs/hash"
}
},
"required": [
"id",
"witness",
"backend",
"sha256"
],
"additionalProperties": false
}
},
"stages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"stage": {
"enum": [
"acquire",
"read",
"witness",
"assemble",
"reconcile",
"segment",
"locate",
"structure",
"figures",
"mint",
"suspects",
"review",
"gate",
"finalize",
"export",
"hand"
]
},
"tool": {
"type": "string",
"minLength": 1
},
"inputs": {
"type": "array",
"items": {
"$ref": "common.schema.json#/$defs/hash"
}
},
"output": {
"$ref": "common.schema.json#/$defs/hash"
},
"processor": {
"$ref": "common.schema.json#/$defs/processor"
},
"uses": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"job": {
"type": "string",
"minLength": 1
}
},
"required": [
"stage",
"processor"
],
"additionalProperties": false
}
},
"session": {
"type": "object"
},
"note": {
"type": "string",
"minLength": 1
}
},
"required": [
"tools"
],
"additionalProperties": false
}