Skip to content

pr-pipeline: remove a lane-set needs-human once its recorded reason clears #8387

Description

@kyle-sexton

Problem

A lane that escalates a pull request adds needs-human with a reason (for example pr-unblock's workflow-staged), but nothing removes the label once that reason clears. The PR then stays out of every lane until a person notices.

Evidence: GitHub Support's audit on 2026-10-19 found 47 of 65 open needs-human labels stale (.work/gh-monitor/needs-human-audit.md in the operator's checkout). Two examples: on #8281 and #8319 the workflow-staged cause was cleared by a hand merge of main, and the label stayed.

Proposed direction

A lane-side recheck. When a PR's head moves past the escalation comment's recorded resume-key, or on a schedule, re-evaluate the recorded reason. If it no longer holds, remove needs-human (only a label the lanes App set) and leave a comment naming the cleared reason. A label a human set is never touched.

Acceptance

  • A PR escalated as workflow-staged whose head no longer stages a .github/workflows/ change loses the App-set needs-human within one recheck.
  • A human-set needs-human is never removed.
  • Each removal is visible: a comment names the reason that cleared.

Activity

  1. added
    needs-triage
    on Oct 19, 2026
  2. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    Thanks for the report. Automated triage handed this issue to a maintainer.

    Proposed work class: work-class: structural
    Basis: automated intake triage; a maintainer confirms or changes it.

    Automated triage. A maintainer reviews it.

  3. added
    needs-human
    and removed
    needs-triage
    on Oct 19, 2026
  4. kyle-sexton commented on Oct 19, 2026

    @kyle-sexton
    MemberAuthor

    Owner decision (2026-10-19, recorded by the Automation Lanes session from the owner's answers in that session):

    1. Yes, as scoped in feat(pr-pipeline): remove a lane-set needs-human once its recorded reason clears #8439: a lane may remove needs-human by itself only when the lanes App added the label, every App escalation since then names a reason that repo state shows has cleared (workflow-staged, unresolved-conflict, protected-path-conflict, feedback-protected-path), no other App marker comment (pr-merge's verify or Dependabot-major escalations) is present, and no human spoke after the label; at most 5 per run; each removal posts a comment naming the cleared reason. A human-set label is never removed.
    2. Only human comments block a clear: an AI review or lane comment after the label no longer counts as someone speaking. Built as a follow-up after feat(pr-pipeline): remove a lane-set needs-human once its recorded reason clears #8439.
  5. kyle-sexton commented on Oct 19, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner approved this on 2026-10-19 in the poteto session ("go with recommended"): pr-merge may remove a needs-human label from a lane PR on its own, only when the lanes App added the label and every App escalation since then names a reason that now clears deterministically (workflow-staged; unresolved-conflict and protected-path-conflict once mergeable is true; feedback-protected-path). At most 5 clears per run, each with a comment naming the reason. A label a person added is never removed, and every other gate still applies.

    Conditions before #8439 merges: (1) keep the label when any App comment after it carries a non-pr-unblock escalation marker (pr-merge's babysit-merge-verify-escalation or babysit-merge-dependabot-major, or another lane's work-items:escalation), so owner holds such as Dependabot majors are never cleared; (2) add timeout-minutes: 3 to the step. Not approved here: widening the speaker exemption to AI review bots; that stays a separate owner decision.

  6. kyle-sexton commented on Oct 19, 2026

    @kyle-sexton
    MemberAuthor

    Clarification to the comment above: "not approved here" meant only that the poteto session did not ask about it. The owner approved "only human comments block a clear" separately in the Automation Lanes session (#8387 (comment)); that decision stands and is built as a follow-up after #8439.

  7. kyle-sexton commented on Oct 19, 2026

    @kyle-sexton
    MemberAuthor

    Reconciling the two decision records on this issue: the owner was asked the bot-comment question only in the Automation Lanes session and answered there: only human comments block a clear; an AI review or lane comment after the label does not. The other record's "not approved" was written in a session where the question had not been asked. Final: approved. Built as a follow-up after #8439; a cleared PR still passes every pr-merge gate, including the newest-review findings rule (#8347).

  8. added
    needs-owner-decision
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-humanneeds-owner-decision

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions