Skip to content

fix(source-control): count sibling Refs PRs' FAILs toward the cross-PR repeated-fail cap #9411

Closed

Description

@kyle-sexton

Refs: #9405

Summary

With #9405, a lane PR linking its issue by a plain Refs: #<n> line is eligible like a Closes #<n> PR. The cross-PR repeated-fail cap does not see sibling Refs PRs: _closers (plugins/source-control/skills/babysit-prs/scripts/babysit_verify_evidence.py about :854-866, :1019-1029) finds other PRs for the issue only through closedByPullRequestsReferences, and failed_by_pr (about :950) carries no issue. So a second PR with the same Refs: line restarts the cap. Found by Automation Lanes' review of #9405 (IMPORTANT, follow-up rather than blocker: before #9405, Refs PRs were not eligible at all).

Fix

  • Read the issue each FAIL record names (as _pass_refusal does, about :1158) and count FAILs on other PRs naming the same issue toward the cap. The gate already downloads those FAIL records for untied FAILs; keep linked_issues alongside head_ref in the shared record cache.
  • Test: two Refs PRs on one issue, the first with FAILs at the cap, the second refused verify:repeated-fail.
  • Noted, not in scope unless the owner asks (SUGGESTION from the same review): babysit_merge_policy.py about :1969-1993, one owner cost decision on a shared issue clears every Refs PR opened before it. Tightening it adds owner friction.

Verification

  • babysit-prs unittest suite passes with the new test; mutation check that skipping the sibling count fails it.

Related

#9405, #9174, #9169

🤖 Generated with Claude Code

Activity

  1. added
    status: ready
    on Oct 23, 2026
  2. added theissue type on Oct 23, 2026
  3. added
    needs-triage
    on Oct 23, 2026
  4. github-actions commented on Oct 23, 2026

    @github-actions
    Contributor

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

    Size: Small
    Complexity: Medium
    Uncertainty: Known
    Flags: none

    Understood: after #9405, PRs linking an issue with a plain Refs: #<n> line are eligible, but the cross-PR repeated-fail cap only sees sibling PRs through closedByPullRequestsReferences. A second Refs PR on the same issue therefore restarts the cap. The proposed fix reads the issue named in each FAIL record, counts FAILs on other PRs naming that issue, and adds a test with a mutation check in the babysit-prs suite. Nothing appears to be missing. The merge-policy owner-cost point is explicitly out of scope. No likely duplicates found among open issues; #9405 is the parent.

    Automated triage, applied by the lanes App.

  5. added and removed
    needs-triage
    on Oct 23, 2026
  6. added
    needs-owner-decision
    and removed
    status: ready
    on Oct 23, 2026
  7. melodic-automation-lanes commented on Oct 23, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: it has no - [ ] task list to check. A recorded decision does not change these rules (.github/actions/resolve-config/admission-rules.json); a person who wants it worked adds agent-ready.

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-owner-decision

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions