gsxdsm
4032a35a2f
FN-6188: harden AI merge temp worktree cleanup
Improve AI merge temp worktree cleanup and add recovery coverage.
- audit AI merge clean-room cleanup success and failure paths, including stderr/code details
- sweep stale fusion-ai-merge temp directories from tmpdir() during self-healing with active-session safeguards
- document the native temp-dir sweep behavior and add merge cleanup/self-healing regression tests
Files changed:
docs/architecture.md | 1 +
.../engine/src/__tests__/merger-ai-cleanup.test.ts | 169 +++++++++++++++++
.../__tests__/self-healing-tempdir-sweep.test.ts | 200 +++++++++++++++++++++
packages/engine/src/merger-ai.ts | 54 +++++-
packages/engine/src/run-audit.ts | 26 +++
packages/engine/src/self-healing.ts | 105 +++++++++++
6 files changed, 551 insertions(+), 4 deletions(-)
Fusion-Task-Id: FN-6188
Fusion-Task-Lineage: eae9bcdc-9765-4104-85dc-81bb50445e99
2026-06-10 05:13:40 -07:00
..
2026-06-10 05:13:40 -07:00
2026-04-24 19:39:20 -07:00
2026-05-31 20:05:32 -07:00
2026-04-13 16:35:06 -07:00
2026-06-08 15:19:27 -07:00
2026-06-08 15:19:27 -07:00
2026-06-08 15:19:27 -07:00