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(source-control): count sibling Refs PRs' FAILs toward the cross-PR repeated-fail cap #9411
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.
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.
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.
Activity
github-actions commentedon Oct 23, 2026
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 throughclosedByPullRequestsReferences. 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.
melodic-automation-lanes commentedon Oct 23, 2026
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 addsagent-ready.