gsxdsm
d75f861f24
FN-6199: harden AI merge worktree cleanup
...
Guarantee AI merge clean-room worktrees are pruned on merge completion and swept by task state.
- prune pre-existing same-task AI merge temp worktrees before starting a new merge and audit cleanup outcomes
- add task-aware tempdir sweep rules with a short grace period for done or archived tasks and immediate cleanup for deleted tasks
- extend merger and self-healing coverage and document the updated stale worktree policy
Files changed:
.changeset/ai-merge-cleanup-sweep.md | 5 +
docs/architecture.md | 2 +-
packages/engine/src/__tests__/merger-ai-cleanup.test.ts | 109 ++++++++++++++++++--
packages/engine/src/__tests__/self-healing-tempdir-sweep.test.ts | 112 ++++++++++++++++++++-
packages/engine/src/merger-ai.ts | 63 ++++++++++++
packages/engine/src/self-healing.ts | 26 ++++-
6 files changed, 300 insertions(+), 17 deletions(-)
Fusion-Task-Id: FN-6199
Fusion-Task-Lineage: 659cc52f-0994-4315-a187-6c865bbe3983
2026-06-10 10:57:02 -07:00
..
2026-06-10 10:57:02 -07:00
2026-05-23 02:29:38 -07:00
2026-06-05 03:41:54 -07:00
2026-05-31 13:50:23 -07:00
2026-05-20 15:54:44 -07:00
2026-05-29 20:05:14 -07:00
2026-06-09 12:50:26 -07:00
2026-05-28 21:23:48 -07:00
2026-05-21 12:04:58 -07:00
2026-05-19 17:19:02 -07:00
2026-05-23 22:09:25 -03:00
2026-06-09 03:44:20 -07:00
2026-06-08 18:14:48 -07:00
2026-05-20 15:54:44 -07:00
2026-06-04 22:53:02 -07:00
2026-05-21 09:06:23 -07:00
2026-06-03 17:14:42 -07:00
2026-06-07 18:51:46 -07:00
2026-05-13 23:41:35 -07:00
2026-05-11 21:48:26 -07:00
2026-05-13 23:41:35 -07:00
2026-05-28 21:23:48 -07:00
2026-05-28 21:23:48 -07:00
2026-06-09 22:18:48 -07:00
2026-06-03 13:51:13 -07:00
2026-06-02 23:13:16 -07:00
2026-05-19 07:45:12 -07:00
2026-06-07 20:43:44 -07:00
2026-05-21 12:49:50 -07:00
2026-05-18 12:31:21 -07:00
2026-06-03 15:24:03 -07:00
2026-05-20 08:23:40 -07:00
2026-05-23 00:03:12 -07:00
2026-06-09 15:21:39 -07:00
2026-06-05 00:15:57 -07:00
2026-06-04 16:16:50 -07:00
2026-06-08 20:29:37 -07:00
2026-06-01 08:23:02 -07:00
2026-05-19 03:21:18 -07:00
2026-06-04 22:37:51 -07:00
2026-06-07 23:03:38 -07:00
2026-05-19 22:50:39 -07:00
2026-05-14 19:26:58 -07:00
2026-05-13 12:30:45 -07:00
2026-05-19 19:28:05 -07:00
2026-05-29 10:23:59 -07:00
2026-06-09 15:27:57 -07:00
2026-05-14 00:58:44 -07:00
2026-06-07 18:51:46 -07:00
2026-05-30 22:53:24 -07:00
2026-05-29 07:11:00 -07:00
2026-06-03 15:32:29 -07:00
2026-06-03 17:57:00 -07:00
2026-05-14 04:32:42 -07:00
2026-05-14 04:32:43 -07:00
2026-06-09 08:02:56 -07:00
2026-05-26 21:57:31 -07:00
2026-05-16 17:31:09 -07:00
2026-06-08 19:13:14 -07:00
2026-05-21 12:04:58 -07:00
2026-06-05 00:15:57 -07:00
2026-06-05 20:05:29 -07:00
2026-06-04 07:34:02 -07:00
2026-06-10 10:57:02 -07:00
2026-05-13 20:20:26 -07:00
2026-05-28 15:04:41 -07:00
2026-05-26 21:57:31 -07:00
2026-05-12 18:26:58 -07:00
2026-05-22 14:44:21 -07:00
2026-05-23 09:59:50 -07:00
2026-05-12 09:06:54 -07:00
2026-05-28 13:02:30 -07:00
2026-05-21 16:30:31 -07:00
2026-05-12 17:04:33 -07:00
2026-06-10 08:07:25 -07:00
2026-05-16 23:45:17 -07:00
2026-06-03 17:14:42 -07:00
2026-06-04 22:37:51 -07:00
2026-05-30 09:43:02 -07:00
2026-05-16 17:31:09 -07:00
2026-06-09 12:50:26 -07:00
2026-06-09 21:16:42 -07:00
2026-06-04 12:44:43 -07:00
2026-06-07 21:19:10 -07:00
2026-06-04 07:34:02 -07:00
2026-06-07 21:19:10 -07:00
2026-05-19 19:28:05 -07:00
2026-06-06 00:15:28 -07:00
2026-06-05 20:05:29 -07:00
2026-06-05 22:49:39 -07:00
2026-06-05 20:20:25 -07:00
2026-06-05 20:05:29 -07:00
2026-06-08 21:16:32 -07:00
2026-05-29 20:05:14 -07:00
2026-06-05 23:06:46 -07:00
2026-05-29 20:05:14 -07:00
2026-06-04 22:53:02 -07:00
2026-05-13 21:52:40 -07:00
2026-05-26 23:41:28 -07:00
2026-05-14 22:16:44 -07:00
2026-06-07 23:03:38 -07:00
2026-06-09 15:12:26 -07:00
2026-05-17 02:08:01 -07:00
2026-05-21 00:17:33 -07:00
2026-05-15 16:38:45 -07:00
2026-06-10 05:13:40 -07:00
2026-06-08 20:29:37 -07:00
2026-06-08 19:13:14 -07:00
2026-05-28 21:23:48 -07:00
2026-06-10 00:39:22 -07:00
2026-05-19 14:22:11 -07:00
2026-06-10 10:57:02 -07:00
2026-05-28 21:23:48 -07:00
2026-06-09 15:50:53 -07:00
2026-05-23 14:26:57 -07:00
2026-05-30 21:53:00 -07:00
2026-05-14 05:55:16 -07:00
2026-06-04 14:01:55 -07:00
2026-06-04 12:26:05 -07:00
2026-06-09 13:31:30 -07:00
2026-05-31 23:24:53 -07:00
2026-06-08 09:44:00 -07:00
2026-05-14 05:35:34 -07:00
2026-05-12 17:24:44 -07:00
2026-05-14 08:24:01 -07:00
2026-05-28 21:23:48 -07:00
2026-05-28 21:23:48 -07:00
2026-06-09 21:16:42 -07:00
2026-05-28 15:39:23 -07:00
2026-05-18 00:53:23 -07:00
2026-06-09 22:34:34 -07:00
2026-06-09 03:53:34 -07:00
2026-05-19 19:28:05 -07:00
2026-05-15 12:12:50 -07:00
2026-06-08 22:02:26 -07:00
2026-06-04 07:34:02 -07:00
2026-06-09 01:57:16 -07:00
2026-06-09 09:00:46 -07:00
2026-06-08 00:19:50 -07:00
2026-06-09 01:57:16 -07:00
2026-06-09 01:57:16 -07:00
2026-05-31 08:32:01 -07:00
2026-05-28 21:23:48 -07:00
2026-06-08 21:16:32 -07:00
2026-06-01 01:37:25 -07:00
2026-05-22 22:43:26 -07:00
2026-05-19 05:57:57 -07:00
2026-05-18 01:50:22 -07:00
2026-05-22 22:43:26 -07:00
2026-06-04 13:04:15 -07:00
2026-05-15 19:37:48 -07:00
2026-06-04 08:40:10 -07:00
2026-05-18 11:01:32 -07:00
2026-05-23 15:13:17 -07:00
2026-05-16 20:54:33 -07:00
2026-05-18 15:51:01 -07:00
2026-05-15 22:18:09 -07:00
2026-05-20 15:54:44 -07:00