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

@@ -20,10 +20,6 @@ import {
} from "../../support/cli/cliCommandSessionFrames.mjs";
import { analyzeJavaScriptDirectory } from "../../support/cli/javascriptApplication.js";
import { writeFixtureFiles } from "../../support/workspace/writeFixtureFiles.js";
import {
COMPLETE_DETAIL,
completeApplicationAnalysis,
} from "../../support/completeDetail.js";
// Inert process models exercise escalation without waiting for real I/O.
const MOCK_SHUTDOWN_GRACE_MS = 1;
@@ -890,7 +886,7 @@ test("keeps a malformed JSON command's failure status and serves the next comman
"app.mjs": "export function current() { return 1; }\n",
});
const recovered = await session.run(
command(completeApplicationAnalysis(root), environment),
command(["analyze-javascript-application", root, "--json"], environment),
);
expect(recovered.exitCode, recovered.stderr).toBe(0);
expect(recovered.json).toMatchObject({
@@ -932,7 +928,7 @@ test("closes the real JavaScript CLI worker through its resource cleanup", async
"app.mjs": "export function current() { return 1; }\n",
});
const analyzed = await session.run(
command(completeApplicationAnalysis(root), {
command(["analyze-javascript-application", root, "--json"], {
PATH: process.env.PATH ?? "",
REA_LOG_LEVEL: "silent",
}),
@@ -959,7 +955,6 @@ const normalized = (result: CliResult) =>
const analyzeArguments = (root: string): readonly string[] => [
"analyze-javascript-application",
...COMPLETE_DETAIL,
root,
"--format",
"json",