fix: stage base merge on PR reopen so stale-conflict asks are actionable #197
No reviewers
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
Due date
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor!197
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/pr-reopen-resolve-stale-conflicts"
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?
When a sibling PR merges first, an open bot PR can go un-mergeable
through no fault of its own (a purely textual conflict against the
advanced base). The reviewer's natural ask -- "resolve the conflict with
master" -- went nowhere: the reopen flow checked the PR branch out in
isolation (origin/$PR_HEAD alone) and never merged the base in, so the
agent saw a clean tree, found nothing actionable (AGENTS.md 1b), and
no-op'd a review round-trip. This is exactly what happened to #190 after
#189 landed.
Stage the merge before handing the worktree to the agent:
agent (prompt + AGENTS.md 1b) it is mid-merge and resolving IS the work.
Add a fail-closed conflict-marker gate before any PR-revision push
(list_conflict_marker_violations), mirroring the off-limits/security
gates. The agent or the harness auto-commit can complete a merge with
markers baked in; scanning the committed delta refuses that closed --
the exact failure that shipped <<<<<<< / ======= / >>>>>>> to master
via PR #191. Bounces back to the reviewer instead of pushing broken code.
Reactive foundation only: triggered by the existing REQUEST_CHANGES /
reassignment pickup, human stays the bottleneck. Autonomous reconcile
(a mergeable=false pickup signal) layers on top later without rework.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com