gsxdsm
b154844286
FN-5772: re-anchor nested task worktree paths
Fix executor worktree invariant handling by re-anchoring nested task worktree paths to the actual git top-level.
- add nested worktree root detection that only re-anchors when the top-level is a registered worktree inside the configured worktrees directory
- update executor liveness gating and verifyWorktreeInvariants to persist re-anchored task.worktree values and retry checks safely
- emit a new run-audit git mutation (worktree:reanchored) and add reliability tests/docs coverage plus a patch changeset
Files changed:
.changeset/fn-5772-worktree-reanchor.md | 7 +++
docs/architecture.md | 4 +-
packages/engine/src/__tests__/reliability-interactions/executor-liveness-gate.test.ts | 33 ++++++++++
packages/engine/src/__tests__/verify-worktree-invariants-missing.test.ts | 62 +++++++++++++++++-
packages/engine/src/__tests__/worktree-reanchor-nested-root.test.ts | 73 ++++++++++++++++++++++
packages/engine/src/executor.ts | 54 ++++++++++++++--
packages/engine/src/run-audit.ts | 1 +
packages/engine/src/worktree-pool.ts | 63 +++++++++++++++++++
8 files changed, 290 insertions(+), 7 deletions(-)
Fusion-Task-Id: FN-5772
Fusion-Task-Lineage: 475de161-7bc1-4359-bb76-20c4c07196d9
2026-05-31 08:32:01 -07:00
..
2026-05-30 14:50:22 -07:00
2026-04-25 09:09:31 -07:00
2026-05-30 08:29:04 -07:00
2026-05-30 10:06:51 -07:00
2026-05-30 06:47:02 -07:00
2026-05-30 08:39:38 -07:00
2026-05-30 08:39:38 -07:00
2026-05-30 09:43:02 -07:00
2026-05-30 15:04:26 -07:00
2026-05-30 14:07:20 -07:00
2026-05-30 14:42:50 -07:00
2026-05-30 14:18:15 -07:00
2026-05-30 15:06:04 -07:00
2026-05-30 17:45:11 -07:00
2026-05-30 22:53:24 -07:00
2026-05-31 08:32:01 -07:00
2026-05-31 08:32:01 -07:00
2026-05-31 08:32:01 -07:00
2026-05-31 08:32:01 -07:00
2026-05-31 08:32:01 -07:00
2026-05-31 08:32:01 -07:00
2026-05-31 08:32:01 -07:00
2026-05-30 20:21:35 -07:00
2026-05-30 15:15:47 -07:00
2026-05-30 13:43:36 -07:00
2026-05-31 08:32:01 -07:00