Weksa/schemas/cultnet/weksa.loop_run.schema.json

136 lines
4.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "RunRecord",
"description": "What a run pinned at open. Key `run:<label>`.",
"type": "object",
"properties": {
"answerer_family": {
"description": "The family of the model answering the run's encode and lowering\nprompts, set once at open; `Unrecorded` when the opener did not say\nand for a run opened before this was kept.",
"$ref": "#/$defs/ModelFamily",
"default": "Unrecorded"
},
"chrf_version": {
"type": "string"
},
"corpus": {
"description": "Canonical absolute path of the corpus store.",
"type": "string"
},
"corpus_digest": {
"description": "16 hex of the corpus file's bytes.",
"type": "string"
},
"embedder": {
"description": "The embedder's model.",
"type": "string"
},
"entities": {
"type": "string"
},
"entity_digest": {
"type": "string"
},
"inventory": {
"description": "Canonical absolute path of the inventory store the run was opened over:\nprovenance only. `create` copies that file to `<root>/inventory.cc` and\nthe run reads nothing at this path afterwards.",
"type": "string"
},
"inventory_digest": {
"description": "16 hex of the bytes `create` copied to `<root>/inventory.cc`.",
"type": "string"
},
"label": {
"type": "string"
},
"lowerer_reach": {
"description": "How the run's lowering prompts are answered, set once at open.",
"$ref": "#/$defs/LowererReach"
},
"model": {
"description": "The answering model.",
"type": "string"
},
"ontology": {
"description": "Canonical absolute path of the ontology store: read-only for the run,\npinned by `ontology_digest`.",
"type": "string"
},
"ontology_digest": {
"description": "16 hex of the ontology file's bytes.",
"type": "string"
},
"panel": {
"description": "The languages the run offers, reads and decides on: BCP 47-form tags,\nsorted, unique, at least one, set once at open. An item of any other\nlanguage is never offered, minted from, probed or scored.",
"type": "array",
"items": {
"type": "string"
}
},
"prompt_digest": {
"type": "string"
},
"speaker_state": {
"description": "Canonical absolute path of the speaker-state store (scenes): read-only\nfor the run, pinned by `speaker_state_digest`.",
"type": "string"
},
"speaker_state_digest": {
"description": "16 hex of the speaker-state file's bytes.",
"type": "string"
}
},
"required": [
"label",
"corpus",
"inventory",
"entities",
"corpus_digest",
"entity_digest",
"prompt_digest",
"model",
"embedder",
"chrf_version",
"inventory_digest",
"lowerer_reach",
"panel",
"ontology",
"ontology_digest",
"speaker_state",
"speaker_state_digest"
],
"$defs": {
"LowererReach": {
"description": "How a run's lowering prompts reach the model that answers them (rulings\n`lowerer-call-reach-toolless-relay`, `dao-round-seed-inventory`). The\nrecord says which, so a round lowered by a briefed subagent cannot pass as\na tool-less one.",
"oneOf": [
{
"description": "A subagent briefed to read one prompt file: acceptable for smoke rounds\nonly.",
"type": "string",
"const": "BriefedSubagent"
},
{
"description": "The prompt passed inline to an agent with no file tools.",
"type": "string",
"const": "ToolLessRelay"
}
]
},
"ModelFamily": {
"description": "The family of the model that wrote a line.",
"oneOf": [
{
"type": "string",
"enum": [
"Anthropic",
"OpenAi",
"Google",
"Alibaba",
"Meta",
"Mistral"
]
},
{
"description": "Nothing records which family wrote the line.",
"type": "string",
"const": "Unrecorded"
}
]
}
}
}