Skip to content

Canary clean control: a clean twin per defect area so the code gates run (Part of #7155) - #9022

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7155-20261122T1112Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7155-20261122T1112Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7155 (part 2, "Also run a clean control PR, to measure false alarms").
Checklist: done [c:e6104d39]

What

canary_control.py open --clean already opened a clean control PR (#9006), but it planted only one docs file. A docs-only PR makes the plan jobs skip the code gates (ruff, mypy, full-suite), and a skipped gate cannot false-alarm, so the clean PR measured almost nothing. It now carries one clean twin per defect area (CLEAN_SET): a typed, formatted module, a passing test and a doc with a live link. The results comment on the clean PR also reports how many checks ran (the denominator of the false-alarm rate).

Class / Sibling gaps

Class: a clean control PR must reach every gate area a planted defect reaches. Members handled here, each with a test: lint, format and types (clean gitgalaxy/ module), test (clean tests/tools test), docref (clean doc with a live link), plus the checks-run count. Sibling gaps: (1) a weekly trend of false-alarm rate and fix-loop cost needs a history store or the squid-bot dashboard (another repo), not built here; (2) the ci-gate hold that stops a canary merging is the shepherd's and owner-only.

Tests

tests/tools/test_canary_control.py: the clean set covers every defect area and expects no red gate, twins parse and are ruff-format clean, the doc link resolves, evaluate and render report checks run. pr_gates.py --fast 9/9, audit_check.py clear. No engine change, so no golden bless. Workflow file unchanged, so no runner-cost change; the clean PR now runs the code gates, adding roughly one defect-PR-sized CI run per week (off-peak, Sunday 03:17 UTC).

🤖 Generated with Claude Code

…s run, count checks run (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 marked this pull request as ready for review November 22, 2026 11:32
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 11:34
@squid-shepherd
squid-shepherd Bot merged commit 73b7375 into main Nov 22, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7155-20261122T1112Z branch November 22, 2026 11:49
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