You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Derive the Payload List From the Block List, So a New Snippet Cannot Escape the Digest
`test_every_deployed_file_is_in_the_digest` matched only literal
`HERE / "..."` reads, which is the hook and nothing else. The snippet names
came from a list inside `main`, so the test never saw them and a new
snippet would have passed while being absent from the digest. It asserted
coverage and measured one file.
The structural fix rather than a wider regex: `CLAUDE_MD_BLOCKS` is a
module constant and `PAYLOAD_FILES` derives from it, so adding a block
enters the digest with no second edit. Two lists maintained by hand are two
lists that drift.
Three readers each carried their own copy of the marker pair, which is the
same hazard one level down, and all three now read `BLOCK_MARKERS`.
Three cases: the scan covers both sources and asserts it matched more than
the hook, the derivation holds, and no reader carries its own pair.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments