Anchor the verifier outside the bundle and test every guarantee
main路
Commit
An adversarial review could not make the pipeline pass with a test missing, failed or duplicated, but found the unit suite protecting few of those guarantees (16 of its 64 fail-open mutations of the harness failed a test) and three places where the bundle vouched for itself.
Harness:
- verify_results.py takes --expected-repository-sha, required, and the workflow passes github.sha. Evidence rewritten consistently for another commit used to verify.
- Each shard records what its own copy of each test binary lists, and
the non-heavy job records its own
go list ./.... The verifier requires them to equal the plan's roots and the bundled package inventory, so a root or package that compile-and-plan failed to inventory no longer verifies. Still trusted:go list, the binary's-test.list, and that the hash-pinned binaries were built from the checked-out commit. - A run expression is checked as
go testapplies it. -test.run searches, so the verifier's full-match check could not see a dropped$that would run TestAB in TestA's shard as well. Names and expressions containing/are refused.
Tests:
- test_verifier_guarantees.py: one test per guarantee, for both targets, on a synthetic bundle: start from evidence that verifies, change one thing, require the verifier to name it.
- test_runner_guarantees.py: the same for the refusals of prepare, the shard runner and the non-heavy runner, with every subprocess faked.
- mutation_check.py applies a list of fail-open edits to a copy of the harness and requires the unit tests to fail for each. All 90 are now caught; a new CI job runs it off the critical path. One reviewer mutation is documented as unreachable instead of listed.
Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com