You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A Held Wait Exits 0 Under a DIRTY or BEHIND Merge Whose Required Checks Never Ran #3471
The wait help says a held head exits 0 once its required checks have settled. held_checks_open in scripts/pr_review_checks.py holds for a required context that has not registered only under a BLOCKED merge, and it holds an empty rollup only under BLOCKED, BEHIND, or DRAFT.
What Happens
Take a held pull request whose merge reads DIRTY. GitHub runs no pull_request workflow on a conflicted pull request, so its required checks never register, and no workflow run is open. Nothing settles and nothing is unmet under a merge held_checks_open reads, so the held poll releases and wait exits 0. The help then states that the required checks settled, though none ran. A BEHIND merge with some checks present and a required context missing reaches the same exit.
Suggested Change
Decide which exit a conflicted or behind held head should get. Its checks cannot settle until it is updated, so a code naming that state may fit better than 0. Then make the help and the README's held-wait paragraph say it.
Done When
A held head under DIRTY, or under BEHIND with a required context unregistered, no longer exits 0 while the help claims its required checks settled, and a test covers each.
A second path with the same shape, found reviewing #3470: when the payload's rollup commit is not the head, head_commit returns nothing, held_checks_open releases on checks_unreadable, and wait exits 0 with only the digest's CHECKS UNREADABLE line saying no check was read. test_an_unreadable_rollup_is_not_held_as_one_not_yet_registered pins that exit deliberately. Once #3470 lands, its help says a covered open head's workflow runs have all completed on exit 0, which this path does not check. The fix for this issue should decide both paths together: an unreadable or never-run set of required checks exits something other than 0, or the help names each exception.
#3473, merged to develop and promoted in #3472, took the help half of this issue's done-when without deciding the exit. The wait help and scripts/README.md now name each path that releases a held head with a required check unregistered:
a payload with no commit matching the head, CHECKS UNREADABLE
the unregistered-required-check hold, which applies only to a BLOCKED merge whose base branch rules were read and whose rollup is not CHECKS TRUNCATED
the empty-rollup hold, which applies only under BLOCKED, BEHIND, or DRAFT, so a merge with some check posted, or a DIRTY one with none, releases short of either hold
the completed-run read, which reaches only the head's last 50 check suites and those of its first CHECKS_WINDOW rollup contexts
What remains here is the exit itself: whether those paths keep exit 0 now that the help says what it does not prove, or move to a code naming the state. The help sentences above are the list a fix would change.
Decided by the maintainer on 2026-10-25: the held-wait paths that release a head whose required checks never ran get a new exit code naming that state, rather than keeping exit 0. This covers a DIRTY merge, a BEHIND merge with a required context unregistered, and the unreadable rollup the earlier comment names. The reason: AGENTS.md "Context and Delegation Discipline" requires a wait to separate a condition met from one it cannot reach, and a conflicted head's checks cannot settle until it is updated.
The fix rewrites the exit-0 sentences in the wait help and in scripts/README.md's exit table and held-wait paragraph together, since they state the same list.
Activity
ptr727 commentedon Oct 25, 2026
A second path with the same shape, found reviewing #3470: when the payload's rollup commit is not the head,
head_commitreturns nothing,held_checks_openreleases onchecks_unreadable, andwaitexits0with only the digest'sCHECKS UNREADABLEline saying no check was read.test_an_unreadable_rollup_is_not_held_as_one_not_yet_registeredpins that exit deliberately. Once #3470 lands, its help says a covered open head's workflow runs have all completed on exit0, which this path does not check. The fix for this issue should decide both paths together: an unreadable or never-run set of required checks exits something other than0, or the help names each exception.Hold a Held Wait While a Head's Workflow Run Has Not Completed (#3470)
Say What a Held Wait's Exit 0 Does Not Prove (#3473)
Promote the pr_review.py Leaf-Module Split, the Held-Wait Run Hold, a…
ptr727 commentedon Oct 25, 2026
#3473, merged to develop and promoted in #3472, took the help half of this issue's done-when without deciding the exit. The
waithelp andscripts/README.mdnow name each path that releases a held head with a required check unregistered:CHECKS UNREADABLEBLOCKEDmerge whose base branch rules were read and whose rollup is notCHECKS TRUNCATEDBLOCKED,BEHIND, orDRAFT, so a merge with some check posted, or aDIRTYone with none, releases short of either holdCHECKS_WINDOWrollup contextsWhat remains here is the exit itself: whether those paths keep exit
0now that the help says what it does not prove, or move to a code naming the state. The help sentences above are the list a fix would change.ptr727 commentedon Oct 25, 2026
Decided by the maintainer on 2026-10-25: the held-wait paths that release a head whose required checks never ran get a new exit code naming that state, rather than keeping exit
0. This covers aDIRTYmerge, aBEHINDmerge with a required context unregistered, and the unreadable rollup the earlier comment names. The reason:AGENTS.md"Context and Delegation Discipline" requires a wait to separate a condition met from one it cannot reach, and a conflicted head's checks cannot settle until it is updated.The fix rewrites the exit-0 sentences in the
waithelp and inscripts/README.md's exit table and held-wait paragraph together, since they state the same list.Exit 45 When a Held Wait Releases a Head Whose Required Checks Never …
List a Pull Request No Longer Open Among Exit 0's Unregistered Cases (#…
Say a Missing Required Check May Sit in a Partly Unread Rollup (#3486)
Scope the No-Check-Posted Cause to DIRTY and Give It a Remedy (#3490)
Restore the Caveat That a Review-Present Exit 0 Does Not Poll the Che…
Promote the Held-Wait Exit 45 for Missing Required Checks to Main (#3484