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.
This commit is contained in:
morluto authored and GitHub committed 2026-11-30 22:47:20 -05:00
1 parent 0b7f2229b5
commit 8ae69d7f2e
1 file changed
+1 -6
@@ -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([]);
});