Commit graph Weksa/crates/weksa/tests/context.rs
Author SHA1 Message Date
Weksa
6d17f45ca2 The mint prompt becomes the editor's: Train blocks, the inventory listing and an EditFeedback line, nothing from the held-out split
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 05:02:42 +00:00
Weksa
77d8b13952 ModelPort and AnswerFiles; the encode prompt lists the live inventory and has a digest
The encoder's instructions are written, Prompt::encode takes the run inventory
and revision, and Prompt::digest names a prompt for AnswerFiles: a prompt with
no answer file is written to <digest>.prompt and nothing else happens.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 03:47:24 +00:00
Weksa
e7b4d9a68b RunStores is the one public producer of TrainItems and EncoderOffer: a run pins its corpus and entity stores by digest
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>
2026-11-10 03:45:49 +00:00
Weksa
d5b11088ad Checkpoint offers each item once; prior turns print the held Train text
for_checkpoint takes &mut Checkpoint and refuses a repeated key
(OfferedAtCheckpoint) after the gate; TrainItems::held replaces holds and block
prints the matched Train item's text; the text-key fold is pinned against the
store's own S6 refusal.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 02:43:31 +00:00
Weksa
469e46cbc5 Cut: Checkpoint has no public constructor; instruction text is consts
Checkpoint::declare becomes cfg(test) for_test; Checkpoint-using tests move
into src unit tests over split::fixture; Prompt::mint and encode lose the
instructions parameter (MINT_INSTRUCTIONS, ENCODE_INSTRUCTIONS in context.rs).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 02:42:02 +00:00
Weksa
35b32b9639 Prior turns print only text a live Train item of the group holds; pin the Train union against withdrawn items
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 02:23:29 +00:00
Weksa
c1d530ccea context tests: pin TrainItems len and is_empty and the empty mint
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 02:08:45 +00:00
Weksa
3bd4a37645 context module: TrainItems, EncoderOffer and Prompt are the only road from corpus text to a model call
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 01:57:40 +00:00