gsxdsm
ec1d29e818
FN-6922: guard worktree acquisition returns from repo root
Prevent task worktree acquisition from handing the project root back to executors.
- Add a repo-root return guard across resume, pool, and fresh acquisition paths.
- Clear invalid repo-root task assignments and create a fresh worktree fallback when safe.
- Share repo-root canonicalization and expand regression coverage for acquisition liveness.
- Document the acquisition guard and add a patch changeset.
Files changed:
.changeset/fn-6922-repo-root-acquisition-guard.md | 5 +
.../repo-root-task-worktree-requeue-loop.md | 9 +-
.../__tests__/executor-worktree-liveness.test.ts | 35 +++
.../worktree-acquisition-secrets-env.test.ts | 9 +-
.../src/__tests__/worktree-acquisition.test.ts | 91 ++++++-
packages/engine/src/worktree-acquisition.ts | 272 +++++++++++++--------
packages/engine/src/worktree-pool.ts | 8 +-
7 files changed, 304 insertions(+), 125 deletions(-)
Fusion-Task-Id: FN-6922
Fusion-Task-Lineage: c16cee1b-de16-4d5f-90e0-132f94fa8377
2026-06-22 19:11:08 -07:00
..
2026-06-17 06:12:06 +08:00
2026-06-03 15:26:49 -07:00
2026-06-21 03:10:21 -07:00
2026-06-05 14:23:45 -07:00
2026-06-04 15:56:04 -07:00
2026-06-21 03:35:16 -07:00
2026-06-22 19:11:08 -07:00
2026-06-05 14:32:04 -07:00
2026-06-20 21:02:51 -07:00