Skip to content

Weekly canary control PR: scheduled job plants one defect per gate (Part of #7155) - #9002

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

First slice of #7155 part 2: canary-control.yml (Sundays 03:17 UTC and manual) runs tests/tools/canary_control.py open, which opens a ready-for-review PR from a canary/<stamp> branch with one inert planted defect per gate (unused import, unformatted file, type error, failing test, dead doc link). The PR body carries a canary-expect JSON marker for the future results job. Defects are new files only; problems() refuses anything under .github/, release or secret paths, and the opener refuses any non-canary/ branch.

Checklist: partial [c:8a25a650] -- results/matrix job that closes the PR and deletes the branch, clean control PR, miss -> priority: high issue, canary/ hold in the shepherd's ci-gate and merge-label refusal (owner-only shepherd workflows)

Class

A gate that can no longer go red goes unnoticed. Same-mechanism siblings here: every file-plantable gate named in gate_controls.GATES (ruff lint/real ruff/format, mypy, full-suite, doc-refs). Gates that need a burned estate or corpus change (golden, ground-truth, det) are not planted yet.

Sibling gaps

  • golden-crucible / ground-truth / det canary defects: need a burned-estate fixture (CardDemo etc.) plant; frontier.
  • Controls for shepherd-*.yml need owner approval.

Remaining slices

  1. results job: compare red gates with canary-expect, post matrix, close PR, delete branch, alert owner if it cannot close.
  2. clean control PR (false-alarm measure); miss -> priority: high issue.
  3. shepherd hold (ci-gate always red on canary/, refuse merge label), exclude from factory numbers (owner-only).

Cross-repo

None.

Workflow measurement

One job, ~1 runner-min per run, weekly; the canary PR itself costs one full CI run per week (to measure from its first runs with pr_runner_cost.py). Does not run on PRs. Token: app token with AUTOMATION_PAT fallback, as evidence-refresh.

Facts checked

audit_check.py all clear; pytest tests/tools/test_canary_control.py tests/tools/test_gate_controls.py tests/tools/test_workflow_inputs.py 45 passed; open --dry-run prints the plan. The real open path (git/gh) is untested until the first dispatch.

🤖 Generated with Claude Code

…anted defect per gate (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 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 (fce9458) 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-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@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 07:44
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 07:52
@squid-shepherd
squid-shepherd Bot merged commit c099b5d into main Nov 22, 2026
69 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7155-20261122T0719Z branch November 22, 2026 08:10
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