notes

helpers/ci-failing.sh: a ready pull request failing a required check says so

Part of the merge queue's watchers. Added 2026-10-04 UTC at calef's approval. calef spotted failing pull request CI twice (#1611, #1597) before any session did, and the refuse-ci-polling hook forbids a session from running a watch loop, so the watch is .github/workflows/ci-failing.yml, as nife-smelter[bot], every ten minutes. All names (the workflow, the script, helpers/ci-failing.jq, the ci-failing label) are provisional.

$ helpers/ci-failing.sh --dry-run        # 2026-10-04, against the live repository
ci-failing[patagonia]: 19 required checks

Nothing was failing on a ready pull request at that moment (#1611, #1613 and #1615 were open and clean). The flagging path was exercised two ways. The decision ran against 200 recent failed runs' heads. The shell pass ran against a stubbed gh with one failing, one fixed and one draft pull request, which printed FAILING #7, the label and comment writes, and CLEARED #8.

What it does, per open non-draft pull request:

Two choices that look like omissions. Drafts are skipped: a draft is its lane's, and every claim commit is an empty diff, so the required empty diff check fails on each of them by design. And the architect hold check is ignored by name: it goes red on purpose under needs-architect, which is a person's queue and not a failing build.

Who acts on it

A maintainer session, through needs-maintainer. A label alone has no reader: a lane that ended WAITING is not watching, and a session's queue is the other label. So the merge drain reads this one: a ready pull request from this repository, not held, that has worn ci-failing for 30 minutes gets needs-maintainer with cause red (queue-ejection.md). One queue for a session to read, rather than two.

BUGS