Skip to content

Ticket: Make Git execution interruptible with completion views #467

Closed

Description

@JacobStephens2

Parent

#465

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions