test: focus diagnostics and evidence checks on behavior (#9303)

* test: focus configuration diagnostics on their owners

Preserve shape errors, selected paths, recovery guidance, and unchanged-file behavior across parser, setup, and uninstall boundaries.

* test: focus artifact and evidence checks on behavior

Retain format, identity, malformed-input, and cleanup coverage while removing fixed prose and closing the admitted test source.

* refactor(debugger): use configured session admission limits

* test: focus evidence and diagnostics on behavior

* fix(test): restore verifier export and formatting

* test(config): verify debugger limit ranges

* test(rizin): keep fixture executable authoritative

* test(rizin): isolate debugger fixture environment
This commit is contained in:
morluto authored and GitHub committed 2026-11-08 16:39:20 +00:00
1 parent 08637b0c24
commit 5044e20171
290 files changed
+2808 -2030

No files matched your search

@@ -23,7 +23,7 @@ import {
expectDroppedPartial,
expectKeptPartial,
expectOwnerError,
} from "../ownerObservationExpectation.fixture.js";
} from "../../../tests/fixtures/ownerObservationExpectation.js";
const identity = { id: "electron-fixture", name: "Fixture", version: "1" };
const pageProvider = (failure: AnalysisError): ElectronObservationPort => ({
@@ -236,6 +236,7 @@ it.each(["list", "inspect"] as const)(
it("keeps cancellation when the retained Electron inspection is incomplete", async () => {
const reason = { requested: "stop before page inspection completed" };
// A JSON-safe but incomplete inspection cannot be converted into Evidence.
const partial = {
kind: "electron-page-observation",
inspection: { target_id: "electron-page" },
@@ -131,8 +131,10 @@ describe("Electron semantic coverage", () => {
`const { ipcMain } = require("electron");\nipcMain.handle("ping", () => 1);\n`,
);
expect(limitations).not.toContain(EMPTY_COVERAGE);
expect(limitations).toContain(
"Electron relationships are derived from inert syntax; runtime registration, reachability, defaults, and enforcement remain unproven.",
expect(limitations).toContainEqual(
expect.stringMatching(
/inert syntax.*runtime registration.*reachability.*defaults.*enforcement.*unproven/iu,
),
);
expect(electronSemantics).toBe("recovered");
});
@@ -20,7 +20,7 @@ import {
expectOutputError,
expectOwnerError,
expectPreemptedCancellation,
} from "../ownerObservationExpectation.fixture.js";
} from "../../../tests/fixtures/ownerObservationExpectation.js";
const observeCancelled = async (partial: unknown) => {
const reason = { requested: "stop before runtime observation completed" };
@@ -215,8 +215,8 @@ it("projects closure and direct interprocedural flow without execution", () => {
"returns-to-call",
] as const)
expect(relations.has(expected)).toBe(true);
expect(graph.limitations).toContain(
"The semantic graph contains static syntax observations and conservative relationship candidates; it does not claim runtime execution.",
expect(graph.limitations).toContainEqual(
expect.stringMatching(/static.*syntax.*does not claim runtime execution/iu),
);
const parameter = graph.nodes.find(
({ kind, label }) => kind === "parameter" && label === "value",