feat(FN-4999): recover completion handoff limbo safely

- Add completion handoff limbo recovery state to task storage and audit events for bounded self-healing retries
- Requeue eligible in-review tasks stuck after "Task marked done by agent" with grace-period, active-task, and merge-blocker safeguards
- Isolate executor run mutation context per task to prevent cross-task runId attribution leaks in scope-leak and completion logs
- Add reliability and executor regression tests covering limbo recovery, run-context isolation, and updated persistence behavior

Fusion-Task-Id: FN-4999
This commit is contained in:
Fusion (runfusion.ai)
2026-05-18 05:29:08 -07:00
committed by gsxdsm
parent 40dcee85b0
commit b692656510
22 changed files with 477 additions and 173 deletions

View File

@@ -743,8 +743,8 @@ describe("RoadmapStore", () => {
});
describe("schema version", () => {
it("schema version is 84 after init", () => {
expect(db.getSchemaVersion()).toBe(84);
it("schema version is 85 after init", () => {
expect(db.getSchemaVersion()).toBe(85);
});
});