Skip to content

Review-layer controls: hidden swallowed-exception, vacuous-test and green-by-skipping diffs with clean twins (Part of #7155) - #9029

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7155-20261122T1327Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7155-20261122T1327Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7155, part 3, first item: hide planted defects in realistic diffs.

Checklist: done [c:99ad3c6c]

What changed

  • tests/tools/review_controls.py: the review-layer control set. Three realistic feature-plus-test diffs (new files only), each hiding one defect that lint, format and the suite all pass, plus a clean twin of each with identical paths, title and body (for false alarms). reviewer_packet() is everything a blind reviewer sees (title, body, diff); answer_key() keeps the ground truth apart; problems() fails a catalog that touches a workflow or release path, ships network or process code, or names the experiment anywhere visible.
  • tests/tools/test_review_controls.py (23 tests, 0.4 s): proves each defect is real and the twin is clean, by behaviour: the swallow returns a default while the twin raises; the vacuous test stays green with the feature broken while the twin goes red; the skipped test is skipped while the twin runs; ruff check and format are clean; each diff applies with git apply --check; the packet is blind.
  • docs/ci.md: a short section naming the catalog and what is still open.

Class / Sibling gaps

Class: review-layer controls, meaning PR-shaped diffs hiding one defect that passes every mechanical gate, each with a clean twin. Members handled here, each with its own proof: swallowed exception, test that cannot fail, green-by-skipping check (the three the checklist names). No estate is involved (burned estates only: none touched).
Sibling gaps, not here: more defect classes for the same catalog (a || true in a shell step, an assert on a constant, a mock that mirrors the code under test, a retry that masks a flake); they need no burned-estate program, so they are catalog growth under part 4 ("every escape adds a control"). Running a Sonnet and Opus review over the set (catch rate, false alarms, blind, experiment lane, owner OK, cost-vs-reward gate) is the next checklist item and is not started: nothing here calls a model.

Gates

audit_check.py all clear; pinned ruff 0.17.4 format and check clean on the changed files; time ratchet 23 tests, 0 over; tree-wide guards (test_source_reads, test_change_classifier, test_sweep_plan, test_gate_controls, test_canary_control, shepherd-markers and wall-clock tests) 204 passed, 1 skipped. No engine, golden, ledger or workflow change, so no bless.

🤖 Generated with Claude Code

…reen-by-skipping diffs with clean twins (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 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (3bdf6a6) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 22, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 22, 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 22, 2026 13:50
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 13:50
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 078b091 into main Nov 22, 2026
63 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7155-20261122T1327Z branch November 22, 2026 14:27
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