fix: certification corpus selection supports fresh-capture snapshots - #178
Merged
Conversation
The #162B/#162C spent corpora derive from one snapshot (239 proposals, digest 1d1de9f7...). A fresh certification capture has a different snapshot identity and, with a different snapshot key, non-comparable HMAC sample IDs. Selection now: allows the fresh capture, requires the prior snapshot to resolve spent content hashes, excludes and proves disjointness on BOTH sample IDs and content hashes (a re-keyed capture cannot launder a spent case back in), and records the identity basis in the manifest. The freeze gate validates the basis.
This was referenced Sep 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #177 (#162D machinery), found by verifying the selection gate against the real spent artifacts: both the #162B dev tranche and #162C holdout manifest derive from ONE snapshot (239 proposals, digest
1d1de9f7…), so the original gate's same-identity requirement would reject every fresh capture.Changes:
select_certification_corpusnow allows a fresh capture (different snapshot identity) whenprior_snapshotis supplied; resolves the spent corpora's content hashes from it (key-independent identities).certification_content_hash_overlaps_*).spent_snapshot_identities,same_snapshot_as_spent, andidentity_basis; the freeze gate validates the basis.--prior-snapshot. 3 new tests (39 total passing); ruff + mypy --strict clean.