Skip to content

pr-merge: re-judge a PR whose pr-merge/unarmed status outlived its cause #12862

Closed

Description

@kyle-sexton

Problem

pr-merge stamps a failing pr-merge/unarmed status when it judges a PR and leaves it unarmed. Nothing re-judges that status once the cause clears, and the status itself makes the PR's merge state UNSTABLE.

During the 2026-11-03 review-token outage and the rate limits that followed, pr-merge stamped pr-merge/unarmed on lanes App PRs. One example is run 41621679690 on #12795 at 10:44Z. Their review lanes passed on re-run by about 15:00Z, but the status stayed red. Eleven green PRs (#12604 #12795 #12796 #12812 #12814 #12815 #12817 #12818 #12823 #12824 #12825) sat at 4 to 14 h, and #12604 reached 13.9 h. Every arm path that requires a CLEAN merge state refused them. The red check was the "unarmed" status itself.

They moved only because a local owner sweep was changed to accept UNSTABLE when ci-status, the only required check, is green. The merge lane itself still strands PRs the same way after the next outage.

Expected

When a PR's inputs change (a review lane completes, ci-status re-runs, or a hold label comes off), pr-merge re-judges the PR and either arms it or refreshes pr-merge/unarmed with the current reason. A stale pr-merge/unarmed should not outlive the condition that set it.

Done when

  • A PR whose only blocker was a transient failure (outage, rate limit, kill switch) is re-judged by pr-merge within one scheduled tick after the blocker clears, with no session involved.
  • A test covers it: a PR left unarmed on a failed review gets armed after the review re-run passes.
  • The re-judge records the same telemetry as a first judgment, so stale-unarmed time can be measured.

Refs: #12795, #12604.

Activity

  1. added
    needs-triage
    on Nov 3, 2026
  2. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  3. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: a stale failing pr-merge/unarmed status makes the PR UNSTABLE, and the merge-state gate then refuses it after the cause clears. The recorded decision picks the fix (treat UNSTABLE as ready only when that status is the sole failing non-required check), keeps the cron, and reuses LANE_SINCE.

    Decision recorded.
    Agent choice, not an owner answer.

    Answers to the four open questions in the refinement, decided by the Issue Triage session:

    1. Which fix: (a) ignore a failing pr-merge/unarmed when reading merge state, (b) accept UNSTABLE whenever ci-status is green, or (c) clear the stale status before judging?
      (a). Treat UNSTABLE as ready only when pr-merge/unarmed is the sole failing non-required check; every other cause still needs CLEAN or HAS_HOOKS.
      [quote truncated; the full decision is at the link]

    #12862 (comment)

    That decision settles the open questions, so nothing further is asked.

    Automated triage, applied by the lanes App.

  4. added and removed
    needs-triage
    on Nov 3, 2026
  5. added
    status: ready
    on Nov 3, 2026
  6. melodic-automation-lanes commented on Nov 3, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  7. added
    status: confirmed
    and removed
    status: ready
    on Nov 3, 2026
  8. added
    needs-owner-decision
    and removed
    status: confirmed
    on Nov 3, 2026
  9. 15 remaining items

  10. added
    agent-ready
    and removed
    agent-ready
    on Nov 3, 2026
  11. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor
    No description provided.
  12. melodic-automation-lanes commented on Nov 3, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue run that agent-ready started waited in its slot past a change to its lane workflow files on main, so it stopped before any model turn. The run's report-outcome removed and added agent-ready back to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.

  13. added
    agent-ready
    and removed
    agent-ready
    on Nov 3, 2026
  14. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor
    No description provided.
  15. melodic-automation-lanes commented on Nov 3, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue run that agent-ready started waited in its slot past a change to its lane workflow files on main, so it stopped before any model turn. The run's report-outcome removed and added agent-ready back to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.

  16. added
    agent-ready
    and removed
    agent-ready
    on Nov 3, 2026
  17. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor
    No description provided.
  18. github-actions commented on Nov 3, 2026

    @github-actions
    Contributor
    No description provided.
  19. removed
    status: ready
    agent-ready
    on Nov 3, 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

    No labels
    No labels

    Type

    Fields

    Work status

    agent-ready

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions