fix(lab): wire scoped-reread clause swap through the serving route
The 17-31-54 CoC re-pilot burned its full provider run and then failed the A1 prompt-sha gate: c709ba6b applied withScopedRereadClause only to the arm constant (module-private wrapper), while chat.ts composes the served prompt from env flags and never swapped the clause. The swap is now an option of withLabTreatmentPromptAdditions - the single helper both the route and the expectation call - gated on MIKE_SCOPED_REREAD, with a scoped_reread receipt field asserted true on the treatment arm and false across the frozen index family. Served-path proof: .tmp-probe-served-prompt-sha.ts boots the real app with the arm env, forces a free provider failure after benchmark_surface emission, and matches the served sha to sha256(constant + inventory); the frozen index_floor arm still hashes to its judged run's receipt. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011pfUVhNFTRvhYGXBwoKNj6
| Repository | eliziff/Beaver |
|---|---|
| Author | Eli Ziff <eliasziff@gmail.com> |
| Authored | |
| Parents | 8f43790c |
| Stats | 4 files changed , +33 , -17 |
| Part of | Evaluation harness: Beaver-CAN and LegalBench-RAG adapters |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-59d271ca.md
from inside the repo you want the change in.