test: drop detail requests the budget seed made redundant (#14615)

PR #14252 added explicit complete-detail requests across tests before the
vitest REA_AGENT_RESULT_BUDGET_BYTES seed and the complete-Evidence harness
existed. Restore the pre-#14252 form where the seed or the harness already
delivers complete Evidence.

Keep the requests that are load-bearing: delivery, summary and budget tests,
tools whose omitted detail is summary, and callers that neither the seed nor
the harness reaches (unwrapped SDK clients on servers with an explicit
environment, and in-process CLIs). Those were found by running the touched
files with the shipped budget lowered to its 4 KiB minimum.
This commit is contained in:
morluto authored and GitHub committed 2026-11-25 21:08:12 +00:00
1 parent b16df9d6c7
commit 88fd8a9df0
108 files changed
+250 -503

No files matched your search

@@ -19,7 +19,6 @@ import { JAVASCRIPT_APPLICATION_EVIDENCE_EXAMPLE } from "../../../src/contracts/
import { connectLocalToolsMcp } from "../../fixtures/localToolsMcp.js";
import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js";
import { cliTest } from "../../support/cli/cliFixture.js";
import { COMPLETE_DETAIL } from "../../support/completeDetail.js";
cliTest(
"retains selected JavaScript path separately from resolved identity",
@@ -40,7 +39,6 @@ cliTest(
const cliResponse = await cli.run({
arguments: [
"analyze-javascript-application",
...COMPLETE_DETAIL,
selectedPath,
"--artifact-format",
"directory",
@@ -103,21 +101,21 @@ cliTest(
}
const { call } = await connectLocalToolsMcp({ REA_LOG_LEVEL: "silent" });
// Each path is analyzed with its complete Evidence inline.
const analyzeComplete = (input_path: string) =>
call("analyze_javascript_application", {
detail: "complete",
input_path,
format: "directory",
integrity_policy: "fail",
});
const aliasResponse = await analyzeComplete(selectedPath);
const aliasResponse = await call("analyze_javascript_application", {
input_path: selectedPath,
format: "directory",
integrity_policy: "fail",
});
expect(
aliasResponse.isError,
JSON.stringify(aliasResponse.content),
).not.toBe(true);
const aliasEvidence = parseEvidence(aliasResponse.structuredContent);
const physicalResponse = await analyzeComplete(physicalPath);
const physicalResponse = await call("analyze_javascript_application", {
input_path: physicalPath,
format: "directory",
integrity_policy: "fail",
});
expect(
physicalResponse.isError,
JSON.stringify(physicalResponse.content),