From 8ae69d7f2e62c6da8e24aaeb0fa433ee44eedf31 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:47:20 -0500 Subject: [PATCH] test(wasm): assert the structured refusal facts, not the reason sentence (#15419) #15415 merged before its review fix: the attribution test still froze the explanatory reason text. Keep code and details.side, which carry the contract, so a wording change cannot break the test. --- tests/process-global/derivedOperationFailures.test.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/process-global/derivedOperationFailures.test.ts b/tests/process-global/derivedOperationFailures.test.ts index 33fcb1b10ea..d0da7c966a9 100644 --- a/tests/process-global/derivedOperationFailures.test.ts +++ b/tests/process-global/derivedOperationFailures.test.ts @@ -931,12 +931,7 @@ describe("compare_wasm_interfaces Evidence attribution", () => { // integrity failure and names the argument through details.side. expect(parseMcpToolError(response).error).toMatchObject({ code: "evidence_integrity_mismatch", - details: { - side, - reason: expect.stringContaining( - "subject or selected path does not match its normalized artifact identity", - ), - }, + details: { side }, }); expect(session.exportEvidenceBundle().records).toEqual([]); });