Skip to content

feat(efficacy): register round 5's spec by content, and refuse any other - #77

Merged
braboj merged 2 commits into
mainfrom
feat/spec-hash-round5
Oct 29, 2026
Merged

braboj merged 2 commits into
mainfrom
feat/spec-hash-round5

Conversation

@braboj

@braboj braboj commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Each trial recorded the spec's SHA-256, but nothing compared it. An edit to SPEC.md during block A's two-day run would have mixed two specs in one round without a warning. This registers the hash and checks it at both ends.

Where Check
round-5.md registers SPEC.md at sha256 48ee93ff…, amended 2026-10-29, before any trial
harness.py a round-5 run refuses at start, and before every trial, if the spec isn't the registered content
report.py a round-5 report refuses a trial built from other content, or a scorable trial with no spec recorded
ch 8.1.1, ch 9 the refusal listed, and a decision row

Before and after, with SPEC.md edited mid-run:

before: trials after the edit build from the new spec, report reads them all
after:  refused: the normal spec is not the content round 5 registers: sha256 …

Self-tests:

  • harness: 131/131; the mid-run check fails with the guard removed
  • report: 141/141
  • pyflakes: clean

Round 6 will need its own registered spec: the check applies to any run holding a round-5 arm.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX

braboj and others added 2 commits October 29, 2026 07:45
Each trial recorded the spec's SHA-256, but nothing compared it. The harness
now refuses a round-5 trial whose spec differs from the registered content,
checked before every trial so an edit mid-run builds nothing. The report
refuses a round-5 report holding a trial that built from other content, or
a scorable trial that records no spec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX
The source was hashed before it was copied, so an edit between the two gave
a trial changed content under the registered hash. The workspace's copy is
now what is checked and recorded, and a refused workspace is removed so the
trial's slot stays free.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX
@braboj
braboj merged commit 66d6a1f into main Oct 29, 2026
2 checks passed
@braboj
braboj deleted the feat/spec-hash-round5 branch October 29, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant