test(FN-4946): tighten implicit revise guard regression assertions
Fusion-Task-Id: FN-4946 Fusion-Task-Lineage: 9a48f72f-d2cc-4950-8a00-f69053dd1163
This commit is contained in:
committed by
gsxdsm
parent
58fe3652dc
commit
005d31a356
@@ -69,7 +69,7 @@ describe("FN-4946 implicit completion + REVISE verdict interaction", () => {
|
||||
expect(result.ok).toBe(true);
|
||||
});
|
||||
|
||||
it("does not double-burn retry count when refusal is already handled", async () => {
|
||||
it("handles implicit refusal once without falling into no-fn_task_done exhaustion handling", async () => {
|
||||
const store = createMockStore();
|
||||
const executor = new TaskExecutor(store as any, "/repo");
|
||||
|
||||
@@ -80,5 +80,13 @@ describe("FN-4946 implicit completion + REVISE verdict interaction", () => {
|
||||
);
|
||||
expect(retryCountUpdates).toHaveLength(1);
|
||||
expect(retryCountUpdates[0]?.[1]).toEqual(expect.objectContaining({ taskDoneRetryCount: 1 }));
|
||||
|
||||
const noFnTaskDoneEscalations = store.updateTask.mock.calls.filter(
|
||||
([id, patch]: [string, Record<string, unknown>]) =>
|
||||
id === "FN-4946-R2"
|
||||
&& typeof patch.error === "string"
|
||||
&& patch.error.includes("Agent finished without calling fn_task_done"),
|
||||
);
|
||||
expect(noFnTaskDoneEscalations).toHaveLength(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user