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
fix(pr-pipeline): clear a pr-merge escalation label once the PR has a new head #8488
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.status: confirmedA maintainer confirmed the item is real and in scope; ready to be worked.
No related issue: follow-up to #8462 and #8475, which add pr-merge escalations that #8439's auto-clear does not remove.
Problem
pr-merge now adds the human-gated label itself: for verify:fail (#8462) and for a risk:MED/risk:HIGH refusal that stands unchanged for merge.risk-escalation-minutes (#8475). #8439's auto-clear removes only labels with a pr-unblock escalation marker (clear-escalations.mjs), and the prefilter drops every needs-human PR before judging it (prefilter:needs-human was 50 in run 39293374226). So once labeled, a PR is never re-judged, even after a new commit fixes what was refused, and every such label waits for a person.
Decision
Owner, 2026-10-19 ("go with recommendations"): option A. When a PR carries pr-merge's own escalation (a babysit-merge-verify-escalation or babysit-merge-risk marker comment by the lane identity naming a head) and the PR's current head is not that head, pr-merge removes the human-gated label, so the next sweep judges the new head. If the refusal still holds, it escalates again with a fresh comment. A label a person added, or one whose newest escalation marker belongs to another lane, is never touched. Basis: the owner's #8387 rule that a lane-set label clears once its recorded reason no longer holds.
Done when
A PR whose newest pr-merge escalation names an older head than its current head loses the human-gated label, with one comment saying why, before the prefilter drops it.
The same head, a label without a pr-merge marker, and a human-added label after the marker are left alone.
The read uses data the sweep already lists plus at most one comments read per labeled PR; the added calls per sweep are reported.
Tests cover each case above; docs/conventions/pr-pipeline/README.md states the rule.
Implementation home (agreed between the pr-merge and lanes sessions): extend .github/scripts/pr-merge/clear-escalations.mjs with a head-moved reason class for pr-merge's own markers (babysit-merge-verify-escalation, babysit-merge-risk), so one step owns every needs-human removal. Automation Lanes builds it; the pr-merge session reviews it.
needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.status: confirmedA maintainer confirmed the item is real and in scope; ready to be worked.
Activity
kyle-sexton commentedon Oct 19, 2026
Implementation home (agreed between the pr-merge and lanes sessions): extend
.github/scripts/pr-merge/clear-escalations.mjswith ahead-movedreason class for pr-merge's own markers (babysit-merge-verify-escalation,babysit-merge-risk), so one step owns every needs-human removal. Automation Lanes builds it; the pr-merge session reviews it.