refactor: consolidate boundary semantics and prune redundant tests

Share parser modes and collision-free composite keys, enforce architecture guards, and consolidate redundant unit assertions into filesystem, CLI, MCP, and producer-backed workflows. Preserve concurrent upstream boundary fixes and exclude legacy Objective-C class-name bookkeeping labels.

Validation: source/composition suites (3358 passing), focused canonical digest and MCP checks, typecheck/lint, Knip, formatting, architecture guards, and real Foundation archive and Apple legacy simulator CLI/MCP verification. No real Hopper, Ghidra, or IDA verification claim.
This commit is contained in:
morluto
2026-10-10 05:56:01 +08:00
parent 077d6c407b
commit 392f1f3107
78 changed files with 1065 additions and 2020 deletions
-26
View File
@@ -2,7 +2,6 @@ import { createHash } from "node:crypto";
import { expect, it } from "vitest";
import { browserNetworkBodySchema } from "./browserNetworkEvidence.js";
import { browserScenarioSchema } from "./browserScenario.js";
const bytes = Buffer.from([0xff, 0, 0xfe]);
const retained = {
@@ -27,28 +26,3 @@ it("validates the actual retained bytes against canonical base64, count, and dig
browserNetworkBodySchema.safeParse({ ...retained, ...mutation }).success,
).toBe(false);
});
it("defaults content selection independently and rejects unsupported controls", () => {
const input = {
browser: { mode: "launch", executable_path: "/fixture/chrome" },
start_url: { url: "https://example.test" },
actions: [{ step_id: "done", action: "wait_for_timeout", duration_ms: 1 }],
};
expect(browserScenarioSchema.parse(input).capture.network).toEqual({
request_body: false,
response_body: false,
header_values: false,
});
expect(
browserScenarioSchema.parse({
...input,
capture: { network: { response_body: true } },
}).capture.network,
).toEqual({ request_body: false, response_body: true, header_values: false });
expect(
browserScenarioSchema.safeParse({
...input,
capture: { network: { refetch: true } },
}).success,
).toBe(false);
});