From ff3c1d23b4e63f5fac48081bf13a667d0c835da8 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 30 Nov 2026 21:56:33 -0500 Subject: [PATCH] test(wasm): expect the shared Evidence identity refusal in compare_wasm_interfaces (#15415) #15385 moved compare_wasm_interfaces onto the shared Evidence input owner, which reports an Evidence whose subject or selected path does not match its artifact identity as evidence_integrity_mismatch and names the argument through details.side. The process-global attribution test still expected the old invalid_request issue at [side], so it failed on main; main CI skips the Portable tests job, so only PR runs caught it. --- .../derivedOperationFailures.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/process-global/derivedOperationFailures.test.ts b/tests/process-global/derivedOperationFailures.test.ts index abd3d3c4807..33fcb1b10ea 100644 --- a/tests/process-global/derivedOperationFailures.test.ts +++ b/tests/process-global/derivedOperationFailures.test.ts @@ -927,15 +927,15 @@ describe("compare_wasm_interfaces Evidence attribution", () => { }, }); + // The shared Evidence input owner reports an identity mismatch as an + // integrity failure and names the argument through details.side. expect(parseMcpToolError(response).error).toMatchObject({ - code: "invalid_request", + code: "evidence_integrity_mismatch", details: { - issues: [ - expect.objectContaining({ - path: [side], - reason: "invalid_value", - }), - ], + side, + reason: expect.stringContaining( + "subject or selected path does not match its normalized artifact identity", + ), }, }); expect(session.exportEvidenceBundle().records).toEqual([]);