Repository navigation
Canary control: results matrix, clean control PR, miss issue, close and delete (Part of #7155) - #9006
Merged
Merged
Conversation
…nd delete (Part of #7155) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This was referenced Nov 22, 2026
Merged
Merged
Merged
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.
What
#7155 part 2, slice 2. #9002 only opened the weekly canary PR. This adds the rest of the item:
canary_control.py results: reads the check runs on each markedcanary/PR (CHECK_OFmaps gate to check name), posts the detection matrix (red / pending / MISS, seconds), opens apriority: highissue for a miss, closes the PR and deletes the branch. A close that fails opens an issue and exits non-zero. A check pending past 24 h counts as a miss.open --clean: a second PR with one clean doc; any red check except the shepherd'sci-gatehold is a false alarm and raises apriority: highissue.canary-control.yml: the open job also opens the clean PR; a newresultsjob runs 12 h later (Sunday 15:17 UTC) or byworkflow_dispatchinput. Stillcontents: read, no merge, no label. Only PRs on acanary/branch with thecanary-expectmarker are touched.Workflow diff reviewed: no new permissions, same pinned actions, results checkout uses
persist-credentials: false.Class
Weekly pipeline-control PR lifecycle (open, evaluate, close). Same-mechanism siblings done here: clean control, miss/false-alarm issue, close-failure alert.
Tests
tests/tools/test_canary_control.py: red/miss/pending/false-alarm classification, name match not a substring,CHECK_OFcovers every red gate, settle only touches marked canaries, comment + issue + close with--delete-branch, close failure, no merge/label anywhere. Audits (audit_check.py) clear.Sibling gaps
ci-gatehold and merge-label refusal forcanary/branches (shepherd workflows, owner-only). No burned-estate program needs it.Cross-repo
None. Overlap: PR #9004 touches docs/ci.md, #8747 docs_read_by_tests.txt (not touched here).
Lessons for agents
A gate name in
gate_controls.GATESis not a check-run name (three ruff gates are oneruff-auditjob; the suite isfull-suite part N/M): map throughcanary_control.CHECK_OF.Checklist: done [c:8a25a650]
🤖 Generated with Claude Code