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([]);