Repository navigation
Closed
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
What to build
Make ordinary Git work stop when a Command is interrupted, while the Git work needed to finish a Failed run, confirmed Self-merge, Claim ending or worktree cleanup still completes. Use the shared execution owner from the preceding Ticket and carry completion permission through every nested Git operation.
Git remains ordinary by default. An immutable completion view is an independent value for the same directory, and nested operations use that value. Pass the bound Git view through helpers where necessary. Keep Git answers, diagnostics and retry behavior in the Git module; completion is permission for a finishing operation, not a global interruption override.
Acceptance criteria
- All production Git captures use the shared captured execution operation. Raw captured stdout stays captured, and existing error-first stderr, stdout tails and diagnostic wording remain intact.
- Ordinary Git refuses to spawn after a recorded interrupt and stops active owned execution when a signal reaches only the Command process. It returns the existing interrupted error after child and worker cleanup.
- Git completion views finish with an already-recorded or newly arriving interrupt, including during the existing ten-second held-lock retry. Ordinary retries observe interruption; neither mode clears the flag or grants permission to another view.
- The boolean exit-answer operation returns false only for a completed nonzero status. Cancellation and transport failures propagate as errors. Audit optional/fallback Git probes used for branch selection, merge classification or authorization so interruption cannot become an absent ref or permission to continue.
- Failed run merge detection and abort, staging, cached-diff checks, failure commit and salvage push use completion Git throughout their nested calls. No-change, Policy refusal and failed-push worktree retention behavior stays intact.
- Confirmed Self-merge branch deletion and origin reconciliation use completion Git while retaining existing retry and warning behavior. Work that precedes confirmation remains ordinary.
- Claim ending carries completion Git through branch discovery and nested origin reads. GitHub work remains on its existing implementation in this Ticket and is migrated by the next Ticket.
- Both worktree Drop paths use completion Git for common-directory discovery before native locking and for removal; kept-worktree head reporting and Issue branch deletion do too. Preserve the independent cleanup attempts. Stale worktree removal during creation stays ordinary.
- Real temporary repositories and executable fixtures verify parent-only Git interruption, pre-spawn refusal, completion-view independence, boolean/optional probe cancellation, preserved diagnostics and held-lock retry behavior. Fixture cleanup uses recorded process IDs.
- Existing Failed run, Merge run, worktree, Claim and process-tree checks pass, including interrupt salvage, failed-push retention, Claim release and postmerge cleanup. This Ticket lands green with GitHub captures still on their existing implementation.
Blocked by
- Ticket: Share the Command execution owner with captured output #466 — the shared execution owner must be available before Git can migrate.
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity
JacobStephens2 commentedon Oct 7, 2026
Closed by #471, merged into issue-465 by a thirdshift Merge run.