gsxdsm
36f20f835e
FN-8822: prevent worktree capacity leaks
Keep live-task capacity admission visible and consistent across all lifecycle lanes.
- Report canonical active holders when worktree or concurrent-task capacity is exhausted.
- Persist deduplicated queue reasons for merge, triage, and workflow-continuation admission.
- Cover retained worktree behavior and document the capacity model.
Files changed:
.changeset/fn-8822-worktree-capacity-leak.md | 7 +++
docs/architecture.md | 1 +
docs/settings-reference.md | 4 +-
.../src/__tests__/agent-heartbeat-worktree.test.ts | 11 ++++-
.../engine/src/__tests__/project-engine.test.ts | 4 ++
...ecutor-no-task-done-vs-worktree-reclaim.test.ts | 55 +++++++++++++++++++---
...admission-worktree-ledger-renamed-lanes.test.ts | 4 ++
.../workflow-continuation-capacity.test.ts | 8 +++-
.../src/__tests__/worktree-acquisition.test.ts | 6 +--
packages/engine/src/concurrency/concurrency.ts | 22 +++++++++
packages/engine/src/project-engine.ts | 34 ++++++++++++-
packages/engine/src/runtimes/in-process-runtime.ts | 33 ++++++++++++-
packages/engine/src/scheduler.ts | 53 ++++++++++-----------
packages/engine/src/triage.ts | 18 +++++++
14 files changed, 215 insertions(+), 45 deletions(-)
Fusion-Task-Id: FN-8822
Fusion-Task-Lineage: 73eda70b-2b74-4b49-a0ff-29d41fd9aab8
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-08-07 21:43:28 -07:00
..
2026-08-07 17:33:56 -07:00
2026-08-06 00:18:07 -07:00
2026-08-07 20:56:52 -07:00
2026-08-07 20:56:52 -07:00
2026-08-06 00:18:07 -07:00
2026-08-06 00:18:07 -07:00
2026-08-07 21:43:28 -07:00
2026-08-06 08:35:36 -07:00
2026-08-06 00:18:07 -07:00
2026-08-06 00:18:07 -07:00
2026-07-27 19:40:08 -07:00
2026-08-07 00:25:10 -07:00