Repository navigation
Gate potency (#319): a mutation shard that tested nothing fails, the pin fuzzer reaches its deep branch, and no PR gate is switched by a repo variable - #327
Merged
Conversation
, item 1) The verdict moves from inline ci.yml shell to tools/mutants-verdict.py, tested by tools/test_mutants_verdict.py: no summary, a survivor, an unreadable count, zero mutants tested, and zero caught-or-timed-out each fail. The inline version looked only for 'N missed'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
#319, item 3) A skipped required check counts as passed, so deleting VARVE_SYSTEST_EXPORT_CARGO would have turned the export-cargo self-host gate green without running it. pr_gates_cannot_be_switched_off.rs now refuses any job- or step-level if: in a PR workflow that reads vars. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
… reached (#319, item 2) None of the 3,126 corpus files was a valid pin. With a panic planted inside the Ok(pin) branch, 60 s (CI's PR duration) ran 177,462 inputs and exit 0; with these four seeds the same run reaches the panic. A test keeps every seed parsing. The seeds are force-added: fuzz/corpus/ is ignored so the fuzzer's own growth stays out of git, as in v0.13.0 (#33). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu
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.
Fixes #319: the three weaker gates the pre-v0.45.0 gate-potency audit found. Each fix was written test-first, and each is shown red on the old behaviour before green on the new.
1. The mutation verdict refuses a shard that tested nothing (REQ-MUTATE-001)
The inline
ci.ymlcheck looked only forN missed. So5 mutants tested in 1s: 5 unviableand0 mutants tested in 0sboth passed with nothing caught.The verdict is now
tools/mutants-verdict.py, tested bytools/test_mutants_verdict.py, which runs in the existingunittest discover -s toolsstep. A shard fails when:Two read details: ANSI colour codes are stripped before parsing, and the singular
1 mutant testedis read.verifiesREQ-MUTATE-001.2. The
pinfuzz target reaches its deep branch (REQ-PIN-001)None of the 3,126 corpus files was a valid pin; none contains
manifest-versionor[toolchain]. With apanic!planted insideif let Ok(pin) = Pin::parse(..), CI's PR duration of 60 s gave:seed-*.tomlpanicked at fuzz_targets/pin.rs:10The seeds are valid pins taken from
pin.rs's own tests:[[export]]with[export.env].crates/varve-core/tests/fuzz_pin_seeds_parse.rschecks that every seed still parses. Turning one seed's layer into2026.08makes that test fail. The seeds are force-added, becausefuzz/corpus/is gitignored to keep the fuzzer's own growth out of git; the existing corpus went in the same way in v0.13.0 (#33).3. No PR gate can be switched off by a repository variable (REQ-SYSTEST-001)
selfhost-cargois a required check, and it ran only whilevars.VARVE_SYSTEST_EXPORT_CARGO == '1'. On GitHub a skipped required check counts as passed, so deleting the variable would have turned the check green without running it.The condition is removed.
crates/varve-producer/tests/pr_gates_cannot_be_switched_off.rsnow refuses any job-level or step-levelif:that readsvars.inci.yml,systest.ymlorfuzz.yml.systest.yml:95.vars.switch at both the job and the step level.Release and publish workflows keep their switches, because they are not merge gates.
Not in this PR
cargo-mutantsandcargo-denyare still installed without a version pin, as Gate potency: a vacuous mutation shard passes, the pin fuzz target's deep branch is unreached, a variable can skip a required systest #319 also notes. The mutation verdict now fails closed on a format change; cargo-deny's output was not tested against one.implemented. install-shadow gate runs install.sh's real check, not a copy (#318); v0.45.0 falsification statement #325's systest covers its clauses 2, 4 and 5, but nothing tests clause 1 (report the version that was replaced).Local, on CI's own gates
cargo fmt --checkis clean, andclippy --workspace --all-targets -D warningsis clean.cargo test --workspace --no-fail-fastgives 1957 passed, 0 failed.rivet validateandrivet check verification-evidencepass, as dotrace-gate,claim-check,review-checkandtracepack-check.unittest discover -s toolspasses 35 tests.-S warningis clean.A trap worth knowing: a stale
tools/__pycache__from a hand mutation once made the suite fail on correct source. That mutation changed one digit, so the file size was unchanged, and the restore happened within the same second. CI checks out clean and cannot hit this.🤖 Generated with Claude Code
https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu