feat(FN-4742): complete Step 8 — document removal lifecycle coverage

Fusion-Task-Id: FN-4742
Fusion-Task-Lineage: 59bca56e-c9d9-4066-9f5a-6d8ee252a100
This commit is contained in:
Fusion (runfusion.ai)
2026-05-16 09:50:17 -07:00
committed by gsxdsm
parent 33755d44fb
commit d6895b7d3f

View File

@@ -1465,6 +1465,7 @@ When a tracked task transitions into `done`, Fusion closes the linked GitHub iss
- Worktrunk layout is authoritative on create: after `wt switch --create`, Fusion resolves the actual registered worktree path via `git worktree list --porcelain` and uses that path (instead of assuming `resolveTaskWorktreePath` alignment).
- Delegated operation surface in the interface: `create`, `sync`, `prune`, `remove` (plus backend path resolution via `resolveWorktreePath`).
- Executor acquisition paths (`worktree-acquisition.ts`) resolve backend selection centrally, so create flow stays backend-agnostic above the pool/acquisition layer.
- Worktree removal is backend-mediated for merger, self-healing, and worktree-pool cleanup paths via `removeWorktree(...)` (`WorktreeBackend.remove()`); executor.ts and step-session-executor.ts still use native removal paths pending follow-up migration work.
- Self-healing is worktrunk-aware for failure recovery: tasks paused with `pausedReason: "worktrunk_operation_failed"` are explicitly skipped in reclaim sweeps (`self-healing.ts`) until operator intervention.
- Failure contract: delegated worktrunk errors preserve stderr context (`WorktrunkOperationError`) and are handled by `worktrunk.onFailure``"fail"` pauses the task, while `"fallback-native"` retries on the native backend and emits one-shot fallback telemetry.