Repository navigation
gates: close the three weak spots of the v0.46.0 potency audit (#333) - #336
Merged
Merged
Conversation
install-shadow: also run install.sh's normal path against a fake curl and assert the shadow warning in the installer's own output. Replacing the call site at install.sh:304 with `:` left the old gate at exit 0; it now exits 1. pr_gates_cannot_be_switched_off: an allowlist of the four `if:` conditions in use replaces the `vars.` denylist. Prepending `github.repository == 'x/y' &&` to a required job's `if:` passed the old scanner (exit 0) and fails the new one (exit 101). Inline fixtures keep that negative control permanent. trace-gate: a `verifies` edge counts only from a non-draft verification that names at least one step (string or list). An `inspection` or `review` counts without steps: VER-LAYERREPO-001 and VER-CRATEPAYLOAD-001 record published facts about other repositories that this repository's CI cannot run, and requiring a step would force an invented one. No verified requirement changes status. tools/test_trace_gate.py holds 8 cases; with the old rule 5 fail. 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 #333, the three weak spots the gate-potency audit found before v0.46.0.
None of the three was inert, and none bore on a
verifiedclaim. Each is now negative-controlled: the injected fault passes the old gate and fails the new one.The fixes
tools/systest/install-shadow.sh(REQ-INSTALLSHADOW-001)check_shadowonly through the check-only hook, so it never proved the installer calls it.install.sh's normal path, with--version v9.9.9, against a fakecurlthat serves a local archive and its sums. It asserts the shadow warning in the installer's own output, and the quiet case when the install wins PATH.check_shadowat install.sh:304 replaced with:: exit 0pr_gates_cannot_be_switched_off(REQ-SYSTEST-001)if:lines containingvars..if:conditions in use replaces the denylist. Inline fixtures make the negative control permanent:vars.,github.repositoryandgithub.actorswitches are flagged at job and step level, and every allowed form passes.github.repository == 'x/y' &&prepended to ci.yml:83: exit 0tools/trace-gate.pydraftverification withsteps: []counted as evidence.stepsmay be a string or a list.tools/test_trace_gate.py, 8 cases, run against the old rule: 5 failOne judgement call in the trace-gate rule
inspectionandreviewverifications count without steps. Twoinspectionrecords,VER-LAYERREPO-001andVER-CRATEPAYLOAD-001, record published facts about other repositories that this repository's CI cannot run, and one of them says so in its own text. Requiring a step there would force an invented one.With this rule, no
verifiedrequirement changes status. Without the exemption, REQ-LAYERREPO-001 would fail. The first draft of the rule also wrongly rejected string-valuedsteps, which nine records use, and that would have failed REQ-MUTANTDEBT-001.Local gates, rebased on 09330c6
cargo fmt --check: OK.-D warnings: clean.rivet validate: PASS.rivet check verification-evidence, trace-gate, claim-check, tracepack-check and review-check all exit 0.install-shadow.sh: exit 0.-S warningover the tracked scripts: clean.🤖 Generated with Claude Code
https://claude.ai/code/session_019TNtfRjLNhEz82G2ggeeNu