Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
b0d8773
fix(node-sea): bound duplicate blob verification work
ShuaixinHuang Nov 13, 2026
8b5c792
Merge commit 'bd9f2cca45cb99c7460ab678f4fe6a3b12d6ba3a' into work/aud…
ShuaixinHuang Nov 15, 2026
85e84ff
Merge commit 'f916b3ecf5455ffc80e300d8cf7eea144d02d61c' into work/fin…
ShuaixinHuang Nov 15, 2026
010fa34
test(mcp): observe cleanup failures at their current delivery boundary
g1at Nov 16, 2026
50fb5ef
fix(mcp): preserve workflow completion progress through delivery
g1at Nov 16, 2026
f810ad1
test(setup): keep the Windows Kimi profile fixture on a supported pro…
IvenKooLab Nov 16, 2026
0199c9f
test(ci): restore verifier and MCP contract regressions
ShuaixinHuang Nov 16, 2026
439e091
Merge remote-tracking branch 'origin/main' into fix/ci-current-verifi…
ShuaixinHuang Nov 16, 2026
d540c4f
Merge remote-tracking branch 'prereq/11702' into fix/ci-current-verif…
ShuaixinHuang Nov 16, 2026
c4c4409
Merge remote-tracking branch 'prereq/11703' into fix/ci-current-verif…
ShuaixinHuang Nov 16, 2026
a1a3b89
Merge remote-tracking branch 'prereq/11725' into fix/ci-current-verif…
ShuaixinHuang Nov 16, 2026
5c44f5a
test(captures): assert adapter-owned input issue field names
ShuaixinHuang Nov 16, 2026
f93ba97
Merge commit '5c44f5af16aae3e61fa298257451639e690e9977' into repair/v…
ShuaixinHuang Nov 16, 2026
a8f98b7
fix(ghidra): avoid Java probes for missing installations
ShuaixinHuang Nov 16, 2026
4942d2d
Merge commit 'a8f98b7a951ba0c28cb91f7429d7461cad205ced' into repair/v…
ShuaixinHuang Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions tests/boundary/mcp/kunaCloseRetryMcp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ it("names the same-connection close_binary retry for an unproven Kuna export sto
const program = join(fixture.root, "program.elf");
await writeFile(program, elfProgram());
const targetBytes = await readFile(program);
const delivery = vi.spyOn(ToolResultDelivery.prototype, "toCallToolResult");
const delivery = vi.spyOn(
ToolResultDelivery.prototype,
"toPartialErrorToolResult",
);
try {
const opened = await call("open_binary", { path: program });
expect(opened.isError, JSON.stringify(opened.content)).not.toBe(true);
Expand All @@ -75,8 +78,9 @@ it("names the same-connection close_binary retry for an unproven Kuna export sto

const failed = parseMcpToolError(await call("close_binary"));
const delivered = delivery.mock.calls.at(-1)?.[0];
if (delivered === undefined || delivered.ok)
if (delivered === undefined)
throw new Error("Expected the typed close failure at delivery");
expect(delivered.cleanupIncomplete).toBe(true);
expect(failed.error).toMatchObject({
code: "cleanup_incomplete",
retryable: false,
Expand All @@ -90,7 +94,7 @@ it("names the same-connection close_binary retry for an unproven Kuna export sto
});
// The owner's guidance stays first; the retry offer is appended once.
expect(failed.error.remediation.action).toBe(
`${analysisErrorRemediationAction(delivered.error)} ${cleanupRetryRemediation({ operation: "close_binary" })}`,
`${analysisErrorRemediationAction(delivered)} ${cleanupRetryRemediation({ operation: "close_binary" })}`,
);
const pendingStatus = await sessionStatus(client);
expect(pendingStatus).toMatchObject({
Expand Down
15 changes: 9 additions & 6 deletions tests/process-global/processSnapshotCleanupMcp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ it("retains and retries the exact snapshot file handle through public MCP captur
injected.failClose = true;
injected.opens = 0;
const resources = await connectSession();
const delivery = vi.spyOn(ToolResultDelivery.prototype, "toCallToolResult");
const delivery = vi.spyOn(
ToolResultDelivery.prototype,
"toPartialErrorToolResult",
);
const capture = () =>
resources.client.callTool({
name: "capture_process_scenario",
Expand Down Expand Up @@ -114,10 +117,10 @@ it("retains and retries the exact snapshot file handle through public MCP captur
},
});
const firstDelivered = delivery.mock.calls.at(-1)?.[0];
expect(firstDelivered?.ok).toBe(false);
if (firstDelivered === undefined || firstDelivered.ok)
expect(firstDelivered?.cleanupIncomplete).toBe(true);
if (firstDelivered === undefined)
throw new Error("Expected a delivered snapshot failure");
expect(firstDelivered.error.cleanupResources).toContain(injected.path);
expect(firstDelivered.cleanupResources).toContain(injected.path);

const retryBlocked = parseMcpToolError(await capture());
expect(retryBlocked.error.code).toBe("cleanup_incomplete");
Expand All @@ -141,8 +144,8 @@ it("retains and retries the exact snapshot file handle through public MCP captur
await expect(injected.handle.stat()).rejects.toMatchObject({
code: "EBADF",
});
expect(firstDelivered.error.cleanupIncomplete).toBe(false);
expect(firstDelivered.error.cleanupResources).toEqual([]);
expect(firstDelivered.cleanupIncomplete).toBe(false);
expect(firstDelivered.cleanupResources).toEqual([]);

const recovered = await capture();
expect(recovered.isError, JSON.stringify(recovered.content)).not.toBe(true);
Expand Down