fix: claim gate re-claims issues with open ready PRs, rebuilding + replacing their branches (destroys rework fixes) #496
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Total time spent: 28 minutes 21 seconds
Due date
igor
28 minutes 21 seconds
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor#496
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The issue grind re-claimed tickets whose PRs were already OPEN and READY, rebuilding each from scratch and pushing to the same
agent/<n>-slugbranch -- replacing the branch and destroying the rework rounds' fixes. Journal evidence (2026-08-09):Observed damage: PR #492 lost its MD036 fix; PR #494 lost its round-2 fixes twice and cycled through three divergent implementations; every replacement re-triggered shadow review, burning review/rework cycles on regressions. The operator was initially blamed for hand-squashing; he was blogging.
Contributing context (reconstruct the exact hole from state, not this guess): both issues had been through the PR rework flow, including operator-side reassignment of the PR to the bot for a rework round and later unassignment of the ISSUE. The claim gate's open-PR dedup evidently keys on state that this sequence clears.
Deliverables
agent/<n>-*, ready non-WIP PR open,Closes #<n>in body). Identify which signal the rework/reassignment sequence cleared.agent/<issue>-*(or whose body carries the closing keyword for the issue), the issue is NOT claimable -- regardless of assignment history, review state, or anything indiscretionary-state.json. A WIP (checkpoint) PR keeps the existing RESUME path; a ready PR means the issue's work is in review and the grind's job is done.agent/<n>-<slug>and origin already has ANYagent/<n>-*branch, abort the claim loudly instead of replacing history.Out of scope
Verification
make testgreen including the four new cases; the deliverable-1 trace written up in the PR body (which signal was cleared, by what).OPERATOR DIRECTION (2026-08-09, appended before claim): the unassigned-while-worked convention is itself part of this bug's surface -- "the 'agent unassigned' dance is part of the issue." Deliverable 2 is AMENDED to make assignment the primary lock, with the open-PR check as structural backstop:
igor referenced this issue2026-08-09 21:14:20 +00:00
#Nmatch, not the first, when the shadow reviewer resolves a PR's linked issue #500