fix(FN-1284): move terminal execution failures to in-review

- Move single-session and step-session executor failure paths to in-review after marking tasks failed
- Route exhausted transient recovery retries to in-review instead of leaving tasks outside review flow
- Move stuck-kill budget exhaustion failures in self-healing to in-review and update failure log wording
- Add regression tests in executor and self-healing suites to verify in-review transitions on these failure states
This commit is contained in:
gsxdsm
2026-04-08 11:01:04 -07:00
parent 102ffe6e7d
commit 20f6a4998d
4 changed files with 41 additions and 7 deletions

View File

@@ -213,9 +213,10 @@ export class SelfHealingManager {
status: "failed",
error: `Task stuck ${newCount} times — exceeded maximum of ${maxKills} stuck kills`,
});
await this.store.moveTask(taskId, "in-review");
await this.store.logEntry(
taskId,
`Permanently failed: agent stuck ${newCount} times (max: ${maxKills})`,
`Permanently failed: agent stuck ${newCount} times (max: ${maxKills}) — moved to in-review`,
);
return false;
}