Skip to content

Gate inventory: every gate states what it claims to catch (Part of #7155) - #8940

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7155-20261121T2141Z
Nov 21, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7155-20261121T2141Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7155. Checklist: partial [c:f743d1a3] -- every gate now states what it claims to catch; failure proofs for 19 gates are the remaining slice.

What

tests/tools/gate_controls.py already listed all 36 PR-triggered gates (#7159), but 16 carried the placeholder claim "not audited yet" and golden-crucible a thin one. Each now has a one-line claim read from its workflow's header comment and issue reference. test_every_gate_says_what_it_claims_to_catch fails on an empty, very short or placeholder claim, so the list cannot go back to placeholders. MAX_UNPROVEN stays 19: this PR adds no proofs.

Class / Sibling gaps

Class: inventory entries in gate_controls.GATES whose claim does not say what the gate catches. All 17 such entries (golden-crucible plus the 16 "not audited yet" rows) are fixed in this PR and the new test covers the whole class, including entries added later.
Sibling gaps: (1) 19 gates have no failure proof (python tests/tools/gate_controls.py lists them); each needs its own negative control, different mechanism per gate. (2) Jobs inside a workflow (e.g. the smoke-test jobs) and pr_gates.py checks are listed per workflow, not per job. (3) Claims come from header comments, not from re-reading every job step.

Remaining slices

  1. Failure proofs for the 19 unproven gates, cheapest first (ast-accuracy-audit, golden-crucible, the accuracy audits), lowering MAX_UNPROVEN each time.
  2. "Fails when a gate has no fixture" check: the ratchet covers it until the count reaches 0, then make it zero-tolerance.
  3. Issue parts 2-4 (weekly control PR, review-layer controls, escapes).

Gates

pr_gates.py --fast: 9/9 pass (pinned ruff 0.17.4, mypy 2.4.1). pytest tests/tools/test_gate_controls.py: 9 passed. No engine, golden or ratchet files touched, so --ratchets was not run.

🤖 Generated with Claude Code

…uses a placeholder (Part of #7155)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 21, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 21, 2026 21:51
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 22:17
@squid-shepherd
squid-shepherd Bot merged commit 08c8782 into main Nov 21, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7155-20261121T2141Z branch November 21, 2026 22:50
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant