clay-borg/history
tegwick 1edadac9a2 CB-WP-0006 T06: K10 replay bundles, --replay, and AM-7 re-earned
INTENT design decision 8 of 10, unimplemented for six passes. cb-sim had
no flag parsing at all, so --replay had nowhere to go.

The bundle is manifest + commands.log + initial.snapshot + expected.yaml,
dev-only behind the scenarios feature and charged to AM-4b. The command
stream goes through the K11 framing built in T05, so a truncated bundle is
detected rather than replayed short — the two tasks compose rather than
duplicating.

The reviewer's D2 correction was real: this was not "a directory of four
files". Pass carried only the end state, RunOutcome::Failed was a
formatted String, and scenario.rs created an EventLog, appended to it and
never read it. All three had to change.

The first round trip failed to reproduce, and the cause is worth keeping:
state_hash_hex over a serde_json::Value is a different canonical form than
over the typed aggregate — Value's map is key-sorted, a struct serializes
in declaration order. The bundle was written with one basis and verified
with the other. A round trip written to recompute its own comparison value
would have PASSED this bug; it failed because the recorded hash came from
the producing process, which is control 2's entire purpose.

make replay-test implements ADR-0005 §6's four controls, 14/14: a
committed deliberately-failing fixture outside the corpus with covers: []
so it neither fails `make sim` nor inflates AM-1; a tampered recorded hash
must fail; a log short by one byte and a corrupted length prefix must be
rejected; and a mutated manifest seed must fail — which bites only because
replay re-derives the initial state from seed+setup and checks it against
the recorded snapshot, since restoring from the snapshot alone would leave
the seed inert. Plus a control on the controls: the bundle must still
replay after every mutation is reverted.

AM-7's hash-identical clause is re-earned. The probe records a hash per
per-game segment and replays each from its own genesis; folding from the
wrong seed now fails. That is the clause ADR-0005 §4 withdrew as
mutation-proven inert. The scaling >= 0.9x clause is still unenforced, so
AM-7 stays PARTIAL — reported, not rounded up.

Kernel coverage 15/18 -> 16/18. facts-check immediately caught the spec's
copy of that number going stale, on a number that moved the same hour.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-01 11:05:37 +02:00
..
260730-InitialExploration.md Add INTENT.md and archive initial exploration notes 2026-07-30 23:55:43 +02:00
260731-assertion-coverage-retrospective.md CB-WP-0005 T07/T08: control loop, retrospective, InnerLoop v1.4 2026-07-31 18:05:31 +02:00
260731-cost-accounting-challenge.md T02 review round: survey approved after 15 of 16 findings conceded 2026-07-31 08:43:32 +02:00
260731-cost-accounting-research.md T01: cost-accounting survey — and a 2.7x correction to our own numbers 2026-07-31 04:27:52 +02:00
260731-cost-accounting-response.md T02 review round: survey approved after 15 of 16 findings conceded 2026-07-31 08:43:32 +02:00
260731-cost-accounting-retrospective.md T07: InnerLoop v1.1 — the instrument must emit its own target 2026-07-31 08:53:52 +02:00
260731-game-kernel-challenge.md T04: adversarial review round + survey corrections + ADR-0002 (reimplement, assimilate patterns) 2026-07-31 01:25:02 +02:00
260731-game-kernel-research.md T03: game-kernel SOTA survey with measured boardgame.io baseline harness 2026-07-31 01:11:04 +02:00
260731-game-kernel-response.md T04: adversarial review round + survey corrections + ADR-0002 (reimplement, assimilate patterns) 2026-07-31 01:25:02 +02:00
260731-inner-loop-retrospective.md T09: InnerLoop v1.0 — corrected from the first full pass 2026-07-31 03:11:19 +02:00
260731-inner-loop-rule-audit.md ADR-0004: ratify AM-4a and AM-4b (maintainer decision) 2026-07-31 09:45:35 +02:00
260731-loop-hardening-retrospective.md T10: InnerLoop v1.2 — hardening does not converge, so optimize correction 2026-07-31 09:31:19 +02:00
260731-mechanical-work-retrospective.md CB-WP-0004 T06: retrospective — what actually predicted the outcome 2026-07-31 10:28:35 +02:00
260731-replay-kernel-coverage-challenge.md CB-RES-0004: the instruments count names, not assertions 2026-07-31 14:19:30 +02:00
260731-replay-kernel-coverage-research.md CB-RES-0004: the instruments count names, not assertions 2026-07-31 14:19:30 +02:00
260731-replay-kernel-coverage-response.md CB-RES-0004: the instruments count names, not assertions 2026-07-31 14:19:30 +02:00
260801-cb-wp-0006-log.md CB-WP-0006 T06: K10 replay bundles, --replay, and AM-7 re-earned 2026-08-01 11:05:37 +02:00