docs(FN-3538): clarify pause-safe stuck timeout behavior

- Update enginePaused setting docs to specify stuck-task timers are suspended while pauses are active
- Document that paused wall-clock time does not count toward taskStuckTimeoutMs, including shared globalPause windows
- Clarify that unpausing restores scheduling and grants active sessions a fresh stuck-task grace window before detection resumes

Fusion-Task-Id: FN-3538
This commit is contained in:
Fusion
2026-05-05 23:17:47 -07:00
committed by gsxdsm
parent 81bf882c81
commit 193be58dba
6 changed files with 326 additions and 10 deletions

View File

@@ -17,7 +17,10 @@ describe("EvalStore", () => {
const runB = store.createRun({ projectId: "p1", scope: "completed-since-last", requestedTaskIds: ["FN-2"] });
const runs = store.listRuns({ projectId: "p1" });
expect(runs.map((run) => run.id)).toEqual([runA.id, runB.id].sort());
const expectedOrder = [runA, runB]
.sort((a, b) => a.createdAt.localeCompare(b.createdAt) || a.id.localeCompare(b.id))
.map((run) => run.id);
expect(runs.map((run) => run.id)).toEqual(expectedOrder);
});
it("enforces active run conflict for scheduled trigger", () => {