PR Abort
The Orchestrator drives this workflow. Close a pull request without merging, clean up the branch, and communicate the reason.
Prerequisites: PR exists and is open, decision made not to merge.
Process
- Identify the PR to close (by number or current branch)
- Determine the reason for aborting:
- Superseded by another approach
- No longer needed (requirements changed)
- Blocked and abandoned
- Experiment concluded
- Present close plan for approval
Output
## Context Anchors
- **PR:** #<pr-number> - <title>
- **Issue:** #<issue-number>
## Abort Plan
- PR: #<number>
- Reason: <reason for closing>
- Branch cleanup: <delete | keep> remote branch
- Issue action: <close | reopen with new approach | return to backlog>
## Next Step
Awaiting approval to close PR.
**Approval Required:** Yes
⛔ CHECKPOINT
STOP. Do not proceed until human approves the close plan.
- Close the PR via forge operations with a comment explaining the reason
- Delete or keep the remote branch (per approval)
- Update issue status as appropriate (per approval)
Error Handling
| Error | Recovery |
|---|---|
| PR not found | Verify PR number |
| PR already closed | No action needed |
| PR already merged | Cannot abort a merged PR |