Files
paperspec/schemas/provenance.schema.json
alexmandClaude 76d76353d9 feat: rename to paperspec and add the website
- Rename manuspec to paperspec everywhere outside pixi.toml: prose, the
  tools, provenance tool names and the fixture key derivations, so every
  fixture and vector is rebuilt.
- Move the namespace addresses under the site, mirroring the repository:
  schema $id https://paperspec.scient.ing/schemas/<file>, the JSON-LD
  context https://paperspec.scient.ing/context/scienting-1.jsonld, and
  term IRIs https://paperspec.scient.ing/vocab#<term>. Format
  identifiers (scienting-*) and URNs (urn:scienting:) are unchanged.
- tools/site.py (standard library only) builds _site/: every file of the
  repository at its own path, each Markdown file rendered as a page with
  sidebar navigation, heading anchors matching the forge's, folder
  listings, a vocabulary page for the context's IRIs, a heading search
  and a 404 page; light and dark themes.
- check.py builds the site and checks that every Markdown file has a
  page, every internal link and fragment resolves, no Markdown is left
  unrendered, and every $id, the context address and the vocabulary IRIs
  are files of the site.
- deploy/: a Caddyfile with the media types and CORS the data needs, and
  a guide; .gitea/workflows/site.yml builds on main and publishes with
  rsync when the SITE_* secrets are set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 21:27:21 -04:00

155 lines
3.3 KiB
JSON

{
"$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
}