Fusion Agent
3f85c4cf84
FN-034: route workspace tasks through repository worktrees
Route multi-repository planning and graph execution through declared repository worktrees instead of workspace roots.
- Acquire declared repository worktrees for planning and custom graph nodes.
- Filter planning coordinator selection to configured repositories and preserve workspace routing metadata.
- Add workspace worktree recovery, concurrency coverage, and release documentation.
Files changed:
.changeset/fn-034-workspace-worktree-routing.md | 7 ++
docs/architecture.md | 1 +
...workspace-worktrees-concurrent-merge.pg.test.ts | 36 +++++++
packages/core/src/store.ts | 10 ++
packages/core/src/task-store/task-mutation-ops.ts | 60 +++++++++++-
.../executor-workspace-session-cwd.test.ts | 29 ++++--
packages/engine/src/__tests__/self-healing.test.ts | 17 ++--
.../workspace-root-worktree-routing.test.ts | 107 +++++++++++++++++++++
.../create-authoritative-workflow-seams.ts | 48 ++++++---
.../executor/ensure-graph-custom-node-worktree.ts | 45 +++++++-
.../executor/ensure-task-worktree-for-planning.ts | 38 ++++++--
.../src/executor/reset-steps-if-work-lost.ts | 12 ++-
.../engine/src/executor/run-graph-custom-node.ts | 83 ++++++++++++++--
packages/engine/src/executor/run-implementation.ts | 59 ++++++++++--
.../src/executor/workspace-config-resolver.ts | 30 +++++-
.../src/executor/workspace-review-per-repo.ts | 29 +++++-
.../executor/worktree-missing-session-recovery.ts | 26 ++++-
packages/engine/src/self-healing.ts | 50 +++++++---
.../self-healing/auto-recover-worktree-session.ts | 31 +++++-
.../engine/src/worktree/worktree-acquisition.ts | 65 +++++++++++-
20 files changed, 702 insertions(+), 81 deletions(-)
Fusion-Task-Id: FN-034
Fusion-Task-Lineage: 59c5f273-d676-4b7f-b006-c12dc6c3abe6
Co-authored-by: Fusion <noreply@runfusion.ai>
2026-08-20 03:56:41 +00:00
..
2026-07-31 18:03:13 -07:00
2026-08-20 03:56:41 +00:00
2026-08-18 22:16:44 -07:00
2026-08-18 22:16:44 -07:00
2026-08-17 05:25:17 -07:00