Skip to content

ci: main-watch opens an issue when a check fails on main, closes it when green again (#4825) - #4833

Merged
squid-protocol merged 1 commit into
mainfrom
ci/4825-main-watch
Oct 10, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
ci/4825-main-watch

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Item 2 of #4825's remaining list.

Problem: the CI shepherd only watches pull requests, so a failure on main went unseen. That includes the nightly full det sweep, which is the honesty check for #4814's shortcut (a translator PR proves only the ports it changes). The sweep's two-way ratchet already fails if a carried-forward case broke, but nobody would have noticed.

Change: .github/workflows/main-watch.yml, triggered by workflow_run on 15 push/schedule workflows (det sweep, smoke/full suite, ground-truth, CICS/estate crucible, evidence refresh/pages, ports and Java compile, fact cross-check, tree-sitter accuracy, unicode gauntlet, CodeQL, muninn). It acts only on main, and only on real verdicts (not cancelled or skipped):

  • failure: opens one issue per workflow, labelled ci-red-main, with the run link and commit (or comments on the one already open);
  • success: if that workflow has an open issue, comments and closes it.

It runs main's copy of the file, checks out nothing, and needs only issues: write.

Checks: YAML parses; the step script passes bash -n; pr_gates --fast 5/5. It is first exercised on main after merge, since workflow_run triggers only from the default branch.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV

…hen green again (#4825, #4814)

The CI shepherd watches pull requests only; a failure on main -- above all the nightly full det sweep, the honesty
check for the translator-PR port-diff shortcut (#4814) -- went unseen. main-watch.yml (workflow_run on 15 push /
schedule workflows, main only, real verdicts only): a failure opens one `ci-red-main` issue per workflow (or comments
on the open one); the next success on main comments and closes it. Runs main's copy of the file; checks out nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant