Repository navigation
Canary clean control: a clean twin per defect area so the code gates run (Part of #7155) - #9022
Merged
Merged
Conversation
…s run, count checks run (Part of #7155) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
8 of 17 tasks
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.
Part of #7155 (part 2, "Also run a clean control PR, to measure false alarms").
Checklist: done [c:e6104d39]
What
canary_control.py open --cleanalready 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 (cleantests/toolstest), 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) theci-gatehold 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,evaluateandrenderreport checks run.pr_gates.py --fast9/9,audit_check.pyclear. 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