diff --git a/src/domain/process/processScenario.test.ts b/src/domain/process/processScenario.test.ts index a8f8e1046e..5d45f61a74 100644 --- a/src/domain/process/processScenario.test.ts +++ b/src/domain/process/processScenario.test.ts @@ -129,7 +129,7 @@ it.each([ ); }); -it("keeps the committed identity of a scenario without finalization byte for byte", () => { +it("keeps scenario identity without finalization while versioning corrected port semantics", () => { const scenario = parseProcessScenario({ executable: "/usr/bin/true", arguments: ["-x"], @@ -146,10 +146,19 @@ it("keeps the committed identity of a scenario without finalization byte for byt digestProcessCommitment(processScenarioCommitment(scenario)), "the full scenario commitment is unchanged", ).toBe("b50005d26269bd1db4a49c79e05bca67c3a18d837b45cd1c8ff591c01eb7623a"); + const comparison = processComparisonContract(scenario); + expect(comparison.port_normalization_version).toBe("contextual-endpoints-v3"); expect( - digestProcessCommitment(processComparisonContract(scenario)), - "the comparison contract commitment is unchanged", + digestProcessCommitment({ + ...comparison, + port_normalization_version: "contextual-endpoints-v2", + }), + "the earlier comparison contract had no finalization field", ).toBe("675b759347a737a4f1cbfbf2fc759258d9c877216513f2f4dad3ed1e9e6e7631"); + expect( + digestProcessCommitment(comparison), + "corrected endpoint normalization has its own comparison commitment", + ).toBe("301f70ed68bd81b67d07c88b44c85ed0cf7d583967d2f769e2cb193d4db61c20"); }); it("admits the default and the exact combined terminal-cell budget", () => {