Skip to content

Canary control: results matrix, clean control PR, miss issue, close and delete (Part of #7155) - #9006

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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 marked canary/ PR (CHECK_OF maps gate to check name), posts the detection matrix (red / pending / MISS, seconds), opens a priority: high issue 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's ci-gate hold is a false alarm and raises a priority: high issue.
  • canary-control.yml: the open job also opens the clean PR; a new results job runs 12 h later (Sunday 15:17 UTC) or by workflow_dispatch input. Still contents: read, no merge, no label. Only PRs on a canary/ branch with the canary-expect marker 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_OF covers 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-gate hold and merge-label refusal for canary/ branches (shepherd workflows, owner-only). No burned-estate program needs it.
  • Keeping control runs out of the factory's numbers (merges, first-pass rate, lessons): not started.
  • Detection matrix on the squid-bot dashboard: not started.
  • More planted defects (only 5 gates have a defect today): none needs a burned estate.

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.GATES is not a check-run name (three ruff gates are one ruff-audit job; the suite is full-suite part N/M): map through canary_control.CHECK_OF.

Checklist: done [c:8a25a650]

🤖 Generated with Claude Code

@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 08:22
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 08:23
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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