Expand description
The compaction harness (22d): measure the handoff instead of trusting it.
Three questions live here, and none of them needs a model:
- Is it stable? A compiler that is deterministic by accident still produces two different documents on two runs, two builds or two machines. The answer is a byte comparison of two fresh compiles, which is a thing a test can hold and a person can read.
- What did it cost, and what did it keep? There is no A/B partner any more: the model-written summary was deleted (decisions #12), so the baseline is the transcript itself. Cost is wall clock and size; retention is mechanical — every path, command, error name and blocked call the middle holds, found or not found in the rendered handoff.
- Is every
[#N]line actually readable at row N? This is the one that matters most. The handoff tells the model thatsession_search(around_message_id=N)recovers what was omitted, so a line whose ref lands on a row that does not say that is the document lying about its own evidence. Every alphanumeric fragment of every log line is re-read from the row it cites; a fragment that is not there is a violation, not a rounding error.
What is deliberately not here: the judgement pass. It is the one part that calls a model,
so it cannot be byte-compared, and the compiler half is what must hold at any transcript
size. compile is called with no previous handoff and no judgement, which is exactly the
deterministic body the loop ships when the pass is off or its answer is rejected.
Structs§
- Faithfulness
- The Session Log, checked line by line against the transcript.
- Measurement
- Everything one run of the harness measured.
- Retention
- Retention per ledger. Separate tallies rather than one number, because the four failures mean different things: a missing path is a place the model can no longer look, a missing error name is a diagnosis it will repeat, a missing command is work it will redo.
- Tally
- How many of a set of facts survived into the handoff.
- Violation
- One log line that does not survive being re-read from the row it cites.
Functions§
- compare
- The
comparequestion: what it cost and what it kept. - faithfulness
- Check every Session Log line against the row its
[#N]cites. - measure
- Compile
droppedpassestimes and report what came out. Faithfulness is checked againstrows— the whole session — because a ref must resolve against the archive, not against the slice the compiler happened to see. - retention
- Retention of the four ledgers against the transcript’s own facts.
- verify
- The
verifyquestion: same bytes twice, and refs that resolve.