TrainItems::from_corpus and EncoderOffer::for_round become pub(crate). RunStores (run.rs) creates a run over three stores, records their canonical paths and FNV-1a 64 digests plus the prompt and lowerer source digests in run.cc, and reopens only from that record, refusing on drift. RunRecord and RoundRecord are published CultCache types. tests/context.rs and the context.rs doctests move to RunStores; the two mutated-clone gate cases become a unit test. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
58 lines
1.1 KiB
JSON
58 lines
1.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": {
|
|
"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": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"lowerer_digest": {
|
|
"type": "string"
|
|
},
|
|
"model": {
|
|
"description": "The answering model.",
|
|
"type": "string"
|
|
},
|
|
"prompt_digest": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"label",
|
|
"corpus",
|
|
"inventory",
|
|
"entities",
|
|
"corpus_digest",
|
|
"entity_digest",
|
|
"prompt_digest",
|
|
"lowerer_digest",
|
|
"model",
|
|
"embedder",
|
|
"chrf_version"
|
|
]
|
|
}
|