From 0ae3c0837b387e53686bcd6e8aa03cb29f80458a Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Tue, 29 Sep 2026 08:19:52 +0800 Subject: [PATCH] test(contracts): remove duplicate tool inventories --- src/contracts/contractSnapshot.test.ts | 28 +------------------------- src/contracts/toolContracts.test.ts | 25 ----------------------- 2 files changed, 1 insertion(+), 52 deletions(-) diff --git a/src/contracts/contractSnapshot.test.ts b/src/contracts/contractSnapshot.test.ts index 0cec7d647b..0ad00737a3 100644 --- a/src/contracts/contractSnapshot.test.ts +++ b/src/contracts/contractSnapshot.test.ts @@ -103,33 +103,7 @@ describe("tool contract surface", () => { expect(Object.keys(TOOL_EFFECTS).sort()).toEqual(names.sort()); }); - it("keeps exactly twenty-three additive session contracts", () => { - expect( - SESSION_TOOL_CONTRACTS.map(({ name, kind }) => ({ name, kind })), - ).toEqual([ - { name: "open_binary", kind: "session" }, - { name: "close_binary", kind: "session" }, - { name: "binary_session", kind: "session" }, - { name: "export_evidence_bundle", kind: "session" }, - { name: "import_evidence_bundle", kind: "session" }, - { name: "capture_process_scenario", kind: "session" }, - { name: "compare_process_captures", kind: "session" }, - { name: "compare_artifacts", kind: "session" }, - { name: "compare_functions", kind: "session" }, - { name: "compare_bundles", kind: "session" }, - { name: "find_changed_behavior", kind: "session" }, - { name: "build_call_path", kind: "session" }, - { name: "correlate_static_and_runtime", kind: "session" }, - { name: "verify_reconstruction", kind: "session" }, - { name: "list_unknowns", kind: "session" }, - { name: "record_unknown", kind: "session" }, - { name: "update_unknown", kind: "session" }, - { name: "verify_unknown_resolution", kind: "session" }, - { name: "run_replay_machine", kind: "session" }, - { name: "get_evidence_bundle", kind: "session" }, - { name: "get_navigation_context", kind: "session" }, - { name: "inspect_address_context", kind: "session" }, - ]); + it("marks process scenario capture as open world", () => { expect( SESSION_TOOL_CONTRACTS.find( ({ name }) => name === "capture_process_scenario", diff --git a/src/contracts/toolContracts.test.ts b/src/contracts/toolContracts.test.ts index 2d21dc8b13..393e94bad0 100644 --- a/src/contracts/toolContracts.test.ts +++ b/src/contracts/toolContracts.test.ts @@ -3,7 +3,6 @@ import { describe, expect, it } from "vitest"; import { ENHANCED_TOOL_CONTRACTS, OFFICIAL_TOOL_CONTRACTS, - SESSION_TOOL_CONTRACTS, TOOL_CONTRACTS, } from "./toolContracts.js"; import { ARTIFACT_TOOL_CONTRACTS } from "./artifactToolContracts.js"; @@ -67,30 +66,6 @@ describe("tool contract inventory", () => { "commit_reconstruction_coverage", "query_reconstruction_coverage", ]); - expect(SESSION_TOOL_CONTRACTS.map(({ name }) => name)).toEqual([ - "open_binary", - "close_binary", - "binary_session", - "export_evidence_bundle", - "import_evidence_bundle", - "capture_process_scenario", - "compare_process_captures", - "compare_artifacts", - "compare_functions", - "compare_bundles", - "find_changed_behavior", - "build_call_path", - "correlate_static_and_runtime", - "verify_reconstruction", - "list_unknowns", - "record_unknown", - "update_unknown", - "verify_unknown_resolution", - "run_replay_machine", - "get_evidence_bundle", - "get_navigation_context", - "inspect_address_context", - ]); expect(new Set(TOOL_CONTRACTS.map(({ name }) => name)).size).toBe( TOOL_CONTRACTS.length, );