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

@@ -597,22 +597,17 @@ describe("JavaScript application workflow error diagnostics", () => {
runtime_observations: [evidence],
});
expect(traced.ok).toBe(false);
expect(reconciled.ok).toBe(false);
if (!traced.ok && traced.error instanceof AnalysisInputError)
expect(traced.error.issues).toContainEqual(
for (const result of [traced, reconciled]) {
if (result.ok || !(result.error instanceof AnalysisInputError))
throw new Error("Expected an input error for the uncommitted graph");
expect(result.error.issues).toContainEqual(
expect.objectContaining({
message:
"Semantic graph must commit the containing application graph",
}),
);
if (!reconciled.ok && reconciled.error instanceof AnalysisInputError)
expect(reconciled.error.issues).toContainEqual(
expect.objectContaining({
message:
"Semantic graph must commit the containing application graph",
message: expect.stringMatching(
/semantic graph.*commit.*application graph/i,
),
}),
);
}
});
it("returns supported-operation constraints from runtime reconciliation", async () => {
@@ -630,13 +625,17 @@ describe("JavaScript application workflow error diagnostics", () => {
if (result.ok) throw new Error("Expected non-runtime Evidence to fail");
expect(result.error).toBeInstanceOf(AnalysisInputError);
if (!(result.error instanceof AnalysisInputError)) return;
expect(result.error.issues).toContainEqual(
expect.objectContaining({
reason: "invalid_value",
message:
"Runtime reconciliation requires inspect_web_page, inspect_electron_page, observe_javascript_runtime, or capture_electron_scenario Evidence",
}),
const issue = result.error.issues.find(
({ reason }) => reason === "invalid_value",
);
expect(issue?.message).toMatch(/runtime reconciliation.*requires/i);
for (const operation of [
"inspect_web_page",
"inspect_electron_page",
"observe_javascript_runtime",
"capture_electron_scenario",
])
expect(issue?.message).toContain(operation);
});
});