feat(FN-3050): preserve failed review tasks during recovery to prevent loop

The merge strengthens task recovery logic to prevent in-review tasks from entering merge-recovery loops and preserves failed review tasks during retry sweeps instead of incorrectly resetting them. It adds targeted test coverage for these edge cases in the self-healing and project engine modules.

Fusion-Task-Id: FN-3050
This commit is contained in:
Fusion
2026-05-01 02:05:59 -07:00
committed by gsxdsm
parent dca83061ed
commit 54dec6fe97
5 changed files with 83 additions and 8 deletions

View File

@@ -59,6 +59,7 @@ Fusion task columns:
2. **todo** — ready for scheduling
3. **in-progress** — executor active in isolated worktree
4. **in-review** — implementation complete; awaiting finalization
- If merge/finalization hits a terminal error, tasks can remain in `in-review` with `status: "failed"` for explicit follow-up. This state is intentionally preserved by recovery (not auto-bounced to `todo`).
5. **done** — merged/finalized
6. **archived** — preserved history, optionally cleaned from filesystem