From 88fd8a9df083568a7cb4a65012f1b9813c5b82b1 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Wed, 25 Nov 2026 16:08:12 -0500 Subject: [PATCH] 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. --- .../applicationVersionMatchingCli.test.ts | 17 ++----- .../applicationWorkflowCli.test.ts | 47 +++++++++++++------ .../artifactComparisonCoverage.test.ts | 9 ++-- .../exportedFunctionBindingsCli.test.ts | 6 +-- .../javascriptBuiltinDefaultsCli.test.ts | 3 -- .../javascriptCallbackTargets.test.ts | 2 - .../javascriptCapturedParameters.test.ts | 3 +- .../javascriptChildHandleOwnership.test.ts | 1 - .../applications/unboundRequires.test.ts | 18 +------ ...rowserScenarioReferenceDiagnostics.test.ts | 5 +- .../byteEntropyWindowsIdentity.test.ts | 5 +- tests/acceptance/dotnetBundleJourney.test.ts | 5 +- .../acceptance/harmonyArtifactJourney.test.ts | 9 +--- .../acceptance/machoSelectedSliceCli.test.ts | 7 ++- .../acceptance/managedMemberRecovery.test.ts | 7 +-- tests/acceptance/nonBinaryComposition.test.ts | 11 ++--- .../providers/idaEndpointFailure.test.ts | 4 +- .../tools/historicalCaptureResources.test.ts | 7 +-- tests/acceptance/tools/qlogCapture.test.ts | 20 +------- tests/acceptance/uefiFirmware.test.ts | 9 +--- tests/acceptance/webRuntimeCli.test.ts | 2 - .../browser/historicalWebCapture.test.ts | 5 -- tests/boundary/browser/sazWebCapture.test.ts | 7 --- .../cli/browserScenarioSummaryCli.test.ts | 2 - tests/boundary/cli/cliOutput.test.ts | 4 -- tests/boundary/cli/electronCli.test.ts | 10 ++-- tests/boundary/cli/jsonOutput.test.ts | 9 +--- .../boundary/cli/markdownNestedFacts.test.ts | 3 +- tests/boundary/cli/rawDiskImageCli.test.ts | 14 +----- .../reconstructionObligationLedgerCli.test.ts | 3 +- .../cli/sharedJavaScriptCliSession.test.ts | 9 +--- .../javascriptSelectedPathEvidence.test.ts | 22 ++++----- .../mcp/absoluteLocalPathSchema.test.ts | 1 - .../mcp/analysisSnapshotProvenanceMcp.test.ts | 4 +- tests/boundary/mcp/analysisViewMcp.test.ts | 6 +-- .../mcp/androidLateCompletionMcp.test.ts | 2 +- .../boundary/mcp/artifactArmSlicesMcp.test.ts | 2 +- .../mcp/artifactInspectionCoverageMcp.test.ts | 2 +- tests/boundary/mcp/artifactMcp.test.ts | 18 +++---- .../mcp/batchSourcePublicationCleanup.test.ts | 1 - .../batchSourcePublicationRecovery.test.ts | 2 +- .../boundary/mcp/binaryDiagnosticsMcp.test.ts | 19 ++++---- tests/boundary/mcp/browserMcp.test.ts | 5 -- ...browserScenarioInputDiagnosticsMcp.test.ts | 2 - tests/boundary/mcp/bunStandaloneMcp.test.ts | 5 +- .../mcp/capabilityRemediationMcp.test.ts | 4 +- .../mcp/commandObservationViews.test.ts | 7 +-- .../mcp/completionInventoryAliasMcp.test.ts | 2 +- ...buggerExternalMutationLifecycleMcp.test.ts | 10 +--- .../mcp/desktopApplicationMcp.test.ts | 2 +- tests/boundary/mcp/devicetreeMcp.test.ts | 4 +- tests/boundary/mcp/electronMcp.test.ts | 14 +++--- tests/boundary/mcp/erlangBeamMcp.test.ts | 8 ++-- .../mcp/errorEvidenceLifecycleMcp.test.ts | 2 +- tests/boundary/mcp/flutterMcp.test.ts | 10 ++-- tests/boundary/mcp/fridaLifecycleMcp.test.ts | 15 +++--- tests/boundary/mcp/gdbCancellationMcp.test.ts | 25 ++-------- .../boundary/mcp/gdbCloseDisposition.test.ts | 8 +--- .../mcp/gdbExecutableSelection.test.ts | 6 +-- tests/boundary/mcp/ghidraReopen.test.ts | 2 +- .../mcp/ghidraStartupCancellationMcp.test.ts | 7 +-- tests/boundary/mcp/goBinaryMcp.test.ts | 20 ++++---- tests/boundary/mcp/goBinaryViews.test.ts | 15 ++---- .../mcp/keyedArchiveXmlExtensionMcp.test.ts | 2 +- tests/boundary/mcp/kunaCloseRetryMcp.test.ts | 5 +- .../lateAbortApplicationEvidenceMcp.test.ts | 5 +- .../mcp/managedArtifactSummaryMcp.test.ts | 4 +- .../mcp/nativeMachoSummaryMcp.test.ts | 2 +- tests/boundary/mcp/ntfsMftAdmission.test.ts | 2 +- tests/boundary/mcp/officialArguments.test.ts | 2 +- tests/boundary/mcp/officialTools.test.ts | 4 +- .../mcp/optionalProviderIsolation.test.ts | 6 +-- .../mcp/oversizedErrorDeliveryMcp.test.ts | 4 +- tests/boundary/mcp/pcapMcp.test.ts | 2 +- .../mcp/pcapWorkspaceAllocation.test.ts | 2 +- .../mcp/pyinstallerArtifactMcp.test.ts | 10 ++-- tests/boundary/mcp/pythonPycMcp.test.ts | 12 ++--- .../mcp/reverseEngineeringPartialMcp.test.ts | 6 +-- tests/boundary/mcp/serverIdentity.test.ts | 2 +- tests/boundary/mcp/serverLifecycleMcp.test.ts | 2 +- tests/boundary/mcp/serverUnknownsMcp.test.ts | 4 +- tests/boundary/mcp/serverWorkflowMcp.test.ts | 4 +- .../mcp/sessionAvailabilityRecovery.test.ts | 4 +- .../mcp/sessionEvidenceReuseMcp.test.ts | 15 ++---- .../stableArtifactSymlinkRecoveryMcp.test.ts | 1 - tests/boundary/mcp/universalSliceMcp.test.ts | 21 ++++----- tests/boundary/mcp/wasmArtifactMcp.test.ts | 2 +- .../mcp/webBundleContainmentMcp.test.ts | 2 - .../boundary/mcp/webNetworkCaptureMcp.test.ts | 11 +---- .../boundary/mcp/webSourceLocationMcp.test.ts | 7 +-- .../mcp/workflowSnapshotReplayMcp.test.ts | 12 ++--- .../process/androidAnalysisMcp.test.ts | 7 +-- .../process/androidMappingMcp.test.ts | 3 +- tests/boundary/process/jadxStartup.test.ts | 2 +- .../providers/kuna/kunaAliasSearchMcp.test.ts | 6 +-- .../kuna/kunaBatchDecompileMcp.test.ts | 1 - .../kuna/kunaMachoInventoryMcp.test.ts | 16 ++----- .../nativeMachoUuidlessInspection.test.ts | 2 +- tests/fixtures/artifactComparisonMcp.ts | 2 +- tests/fixtures/javascriptReturnShapes.ts | 2 - .../browserScenarioCleanup.test.ts | 8 +--- .../javascriptAnalysisCancellation.test.ts | 6 ++- .../javascriptFilesystemErrors.test.ts | 12 +---- .../javascriptRuntimeObservationCli.test.ts | 3 +- .../mcpDeliveryEnvironment.test.ts | 2 +- .../stableArtifactConsumers.test.ts | 6 +-- .../windowsNativeControlCapability.test.ts | 2 +- tests/support/cli/javascriptApplication.ts | 3 -- 108 files changed, 250 insertions(+), 503 deletions(-) diff --git a/tests/acceptance/applications/applicationVersionMatchingCli.test.ts b/tests/acceptance/applications/applicationVersionMatchingCli.test.ts index 15bc1dcb89d..895e81c2646 100644 --- a/tests/acceptance/applications/applicationVersionMatchingCli.test.ts +++ b/tests/acceptance/applications/applicationVersionMatchingCli.test.ts @@ -8,14 +8,6 @@ import { javascriptApplicationAnalysisResultSchema } from "../../../src/domain/j import { applicationVersionComparisonResultSchema } from "../../../src/domain/javascript/javascriptApplicationVersionComparisonSchemas.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import { cliTest } from "../../support/cli/cliFixture.js"; -import { - COMPLETE_DETAIL, - completeApplicationAnalysis, -} from "../../support/completeDetail.js"; - -/** Analyze an application with its complete Evidence inline. */ -const analyzeComplete = (application: string): string[] => - completeApplicationAnalysis(application); cliTest( "keeps unavailable source-selection scopes unknown in version comparisons", @@ -35,7 +27,6 @@ cliTest( const response = await cli.run({ arguments: [ "analyze-javascript-application", - ...COMPLETE_DETAIL, application, ...(selected ? ["--source-path", "main.js"] : []), "--json", @@ -160,7 +151,7 @@ cliTest( `globalThis.webpackChunkApp.push([[1], {17(module, exports) {${side === 1 ? left : right}}}]);`, ); const response = await cli.run({ - arguments: analyzeComplete(application), + arguments: ["analyze-javascript-application", application, "--json"], environment: { REA_LOG_LEVEL: "silent" }, }); expect(response.exitCode, response.stderr).toBe(0); @@ -287,7 +278,7 @@ cliTest( ); await writeFile(join(application, "chunk.js"), bundle); const response = await cli.run({ - arguments: analyzeComplete(application), + arguments: ["analyze-javascript-application", application, "--json"], environment: { REA_LOG_LEVEL: "silent" }, }); expect(response.exitCode, response.stderr).toBe(0); @@ -380,7 +371,7 @@ cliTest( `module.exports = ${JSON.stringify(name)};\n`, ); const response = await cli.run({ - arguments: analyzeComplete(application), + arguments: ["analyze-javascript-application", application, "--json"], environment: { REA_LOG_LEVEL: "silent" }, }); expect(response.exitCode, response.stderr).toBe(0); @@ -490,7 +481,7 @@ cliTest( ); await writeFile(join(application, "src/util.js"), utilSource); const response = await cli.run({ - arguments: analyzeComplete(application), + arguments: ["analyze-javascript-application", application, "--json"], environment: { REA_LOG_LEVEL: "silent" }, }); expect(response.exitCode, response.stderr).toBe(0); diff --git a/tests/acceptance/applications/applicationWorkflowCli.test.ts b/tests/acceptance/applications/applicationWorkflowCli.test.ts index 92627a13b91..65f6fd0a738 100644 --- a/tests/acceptance/applications/applicationWorkflowCli.test.ts +++ b/tests/acceptance/applications/applicationWorkflowCli.test.ts @@ -39,10 +39,6 @@ import { ELECTRON_IDENTITY_LIMITATION } from "../../../src/domain/javascript/jav import { javaScriptSemanticTraceResultSchema } from "../../../src/domain/javascript/javascriptSemanticTraceSchemas.js"; import type { JavaScriptSemanticQueryInput } from "../../../src/domain/javascript/javascriptSemanticQuerySchemas.js"; import { createMcpSchemaValidation } from "../../fixtures/mcpSchemaValidation.js"; -import { - COMPLETE_DETAIL, - completeApplicationAnalysis, -} from "../../support/completeDetail.js"; const execute = promisify(execFile); let cliSession: CliCommandSession | undefined; @@ -236,7 +232,9 @@ const expectCliAnalysisParity = async ( ): Promise => { const cli = z .object({ normalized_result: javascriptApplicationAnalysisResultSchema }) - .parse(await runCli(completeApplicationAnalysis(root))).normalized_result; + .parse( + await runCli(["analyze-javascript-application", root, "--json"]), + ).normalized_result; expect(cli).toEqual(mcp); }; @@ -517,7 +515,9 @@ it("preserves source-map declarations while decoding each path once through CLI ); const { graph } = z .object({ normalized_result: javascriptApplicationAnalysisResultSchema }) - .parse(await runCli(completeApplicationAnalysis(root))).normalized_result; + .parse( + await runCli(["analyze-javascript-application", root, "--json"]), + ).normalized_result; const maps = graph.nodes.filter(({ kind }) => kind === "source-map"); expect( maps.flatMap(({ observations }) => @@ -616,7 +616,11 @@ describe("JavaScript application path CLI", () => { const absoluteAnalysis = javascriptApplicationAnalysisResultSchema.parse( absolute.value.normalized_result, ); - const fromCli = await runCli(completeApplicationAnalysis(relativePath)); + const fromCli = await runCli([ + "analyze-javascript-application", + relativePath, + "--json", + ]); expect(fromCli).toMatchObject({ evidence_id: absolute.value.evidence_id, @@ -634,7 +638,11 @@ describe("JavaScript application path CLI", () => { ); await writeSelfImportFixture(root); - const analyzed = await runCli(completeApplicationAnalysis(root)); + const analyzed = await runCli([ + "analyze-javascript-application", + root, + "--json", + ]); const result = z .object({ normalized_result: javascriptApplicationAnalysisResultSchema }) .parse(analyzed); @@ -653,7 +661,9 @@ describe("JavaScript application path CLI", () => { const cliResult = z .object({ normalized_result: javascriptApplicationAnalysisResultSchema }) - .parse(await runCli(completeApplicationAnalysis(root))).normalized_result; + .parse( + await runCli(["analyze-javascript-application", root, "--json"]), + ).normalized_result; expect(cliResult.summary).toMatchObject({ browser_windows: 1, explicit_web_preferences: 1, @@ -847,7 +857,7 @@ it("traces all endpoint carriers and their response consumers through CLI and MC const sourcePath = join(root, "app.js"); await writeFile(sourcePath, source); const application = parseEvidence( - await runCli(completeApplicationAnalysis(root)), + await runCli(["analyze-javascript-application", root, "--json"]), ); const graph = javascriptApplicationAnalysisResultSchema.parse( application.normalized_result, @@ -964,7 +974,11 @@ describe("rest parameter semantic trace CLI", () => { join(root, "app.js"), "function collect(first, ...rest) { return rest; } collect('first', 'second', 'third');", ); - const application = await runCli(completeApplicationAnalysis(root)); + const application = await runCli([ + "analyze-javascript-application", + root, + "--json", + ]); const graph = z .object({ normalized_result: javascriptApplicationAnalysisResultSchema }) .parse(application).normalized_result.semantic_graph; @@ -1014,7 +1028,11 @@ it("links empty-key reads and destructuring to the same property slot through CL "const {'': pattern} = routes;", ].join("\n"), ); - const evidence = await runCli(completeApplicationAnalysis(root)); + const evidence = await runCli([ + "analyze-javascript-application", + root, + "--json", + ]); const { semantic_graph: graph } = z .object({ normalized_result: javascriptApplicationAnalysisResultSchema }) .parse(evidence).normalized_result; @@ -1084,7 +1102,6 @@ describe("Webpack factory CommonJS export keys", () => { const cliEvidence = applicationEvidenceSchema.parse( await runCli([ "analyze-javascript-application", - ...COMPLETE_DETAIL, root, "--artifact-format", "directory", @@ -1346,7 +1363,7 @@ describe("application workflow CLI and MCP capture lifetimes", () => { // Retain a complete CLI analysis-to-comparison journey alongside MCP parity. const [left, right] = await Promise.all( (await writeComparisonSources(root, sources)).map((applicationRoot) => - runCli(completeApplicationAnalysis(applicationRoot)), + runCli(["analyze-javascript-application", applicationRoot, "--json"]), ), ); // Execute the authored fixtures independently of static analysis. @@ -1743,7 +1760,7 @@ it("retains bundled isolated-world contextBridge APIs through dedicated and gene if (loader === "commonjs") await writeFile(join(root, "package.json"), '{"type":"commonjs"}'); for (const arguments_ of [ - completeApplicationAnalysis(root), + ["analyze-javascript-application", root, "--json"], ["analyze", root, "--format", "json"], ]) { const result = javascriptApplicationAnalysisResultSchema.parse( diff --git a/tests/acceptance/applications/artifactComparisonCoverage.test.ts b/tests/acceptance/applications/artifactComparisonCoverage.test.ts index 07dd68fb3d6..7b744f9f2cd 100644 --- a/tests/acceptance/applications/artifactComparisonCoverage.test.ts +++ b/tests/acceptance/applications/artifactComparisonCoverage.test.ts @@ -28,7 +28,6 @@ import { connectLocalToolsMcp } from "../../fixtures/localToolsMcp.js"; import { parseMcpToolError } from "../../fixtures/mcpToolError.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import { cliTest, type TestCli } from "../../support/cli/cliFixture.js"; -import { completeArguments } from "../../support/completeDetail.js"; const plist = (message: string) => `\nmessage${message}\n`; @@ -39,7 +38,7 @@ const inspectPair = async ( rightPath: string, ) => { const result = await cli.run({ - arguments: completeArguments("inspect-artifact", leftPath), + arguments: ["inspect-artifact", leftPath, "--json"], }); expect(result.exitCode, `${result.stderr}\n${result.stdout}`).toBe(0); const left = inventoryEvidence(result.json); @@ -242,7 +241,7 @@ cliTest( await writer.add("b.txt", new TextReader("def")); await writeFile(path, await writer.close()); const inspected = await cli.run({ - arguments: completeArguments("inspect-artifact", path), + arguments: ["inspect-artifact", path, "--json"], }); expect(inspected.exitCode, inspected.stderr).toBe(0); const source = inventoryEvidence(inspected.json); @@ -349,7 +348,7 @@ cliTest( writeFile(rightPath, plist("hello")), ]); const leftResult = await cli.run({ - arguments: completeArguments("inspect-artifact", leftPath), + arguments: ["inspect-artifact", leftPath, "--json"], }); expect(leftResult.exitCode, leftResult.stderr).toBe(0); const left = inventoryEvidence(leftResult.json); @@ -451,7 +450,7 @@ cliTest.skipIf(process.platform === "win32")( ]); await Promise.all([chmod(leftPath, 0o644), chmod(rightPath, 0o755)]); const result = await cli.run({ - arguments: completeArguments("inspect-artifact", leftPath), + arguments: ["inspect-artifact", leftPath, "--json"], }); expect(result.exitCode, result.stderr).toBe(0); const left = inventoryEvidence(result.json); diff --git a/tests/acceptance/applications/exportedFunctionBindingsCli.test.ts b/tests/acceptance/applications/exportedFunctionBindingsCli.test.ts index 74248dcb879..c1385923d95 100644 --- a/tests/acceptance/applications/exportedFunctionBindingsCli.test.ts +++ b/tests/acceptance/applications/exportedFunctionBindingsCli.test.ts @@ -28,7 +28,6 @@ import { createTestWorkspace, removeTestWorkspace, } from "../../support/workspace/workspaceFixture.js"; -import { completeApplicationAnalysis } from "../../support/completeDetail.js"; const requireFixture = createRequire(import.meta.url); const comparisonEnvelope = z.object({ @@ -999,7 +998,7 @@ it("retains runtime namespace re-exports and erases type-only re-exports through const documents = [ await analyzeThroughMcp(root), - await runCli(completeApplicationAnalysis(root)), + await runCli(["analyze-javascript-application", root, "--json"]), ]; const digest = createHash("sha256").update(source).digest("hex"); for (const document of documents) { @@ -1368,7 +1367,6 @@ const expectRuntimeReceiver = ( const analyzeThroughMcp = async (inputPath: string) => { const call = await mcp.session.call(); const response = await call("analyze_javascript_application", { - detail: "complete", input_path: inputPath, format: "auto", }); @@ -1384,7 +1382,7 @@ const expectCliAnalysisParity = async ( [join(fixture.root, "right"), fixture.input.right], ] as const) { const cli = applicationEnvelope.parse( - await runCli(completeApplicationAnalysis(root)), + await runCli(["analyze-javascript-application", root, "--json"]), ); const mcp = applicationEnvelope.parse(evidence); expect(cli.normalized_result).toEqual(mcp.normalized_result); diff --git a/tests/acceptance/applications/javascriptBuiltinDefaultsCli.test.ts b/tests/acceptance/applications/javascriptBuiltinDefaultsCli.test.ts index 7af0b3a0873..ab8352944a3 100644 --- a/tests/acceptance/applications/javascriptBuiltinDefaultsCli.test.ts +++ b/tests/acceptance/applications/javascriptBuiltinDefaultsCli.test.ts @@ -118,7 +118,6 @@ it("preserves earlier and sibling effects without inventing replaced cached-modu ).toHaveLength(1); const { client, call } = await connectLocalToolsMcp(); const response = await call("analyze_javascript_application", { - detail: "complete", input_path: root, format: "auto", }); @@ -170,7 +169,6 @@ it("excludes monkey-patched CommonJS effects from CLI and MCP evidence", async ( ).toEqual([]); const { client, call } = await connectLocalToolsMcp(); const response = await call("analyze_javascript_application", { - detail: "complete", input_path: root, format: "auto", }); @@ -248,7 +246,6 @@ it("retains CommonJS builtin effects and handle links through CLI and MCP", asyn ); const { client, call } = await connectLocalToolsMcp(); const response = await call("analyze_javascript_application", { - detail: "complete", input_path: root, format: "auto", }); diff --git a/tests/acceptance/applications/javascriptCallbackTargets.test.ts b/tests/acceptance/applications/javascriptCallbackTargets.test.ts index eb58cf2589f..3a0229ffbd1 100644 --- a/tests/acceptance/applications/javascriptCallbackTargets.test.ts +++ b/tests/acceptance/applications/javascriptCallbackTargets.test.ts @@ -11,7 +11,6 @@ import { connectLocalToolsMcp } from "../../fixtures/localToolsMcp.js"; import { verifyJavaScriptReturnShapes } from "../../fixtures/javascriptReturnShapes.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import { cliTest } from "../../support/cli/cliFixture.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; const createCallbackFixture = async () => { const root = await createTestTempDirectory("rea-callback-targets-"); @@ -166,7 +165,6 @@ cliTest( const analyzed = await cli.run({ arguments: [ "analyze-javascript-application", - ...COMPLETE_DETAIL, root, "--artifact-format", "directory", diff --git a/tests/acceptance/applications/javascriptCapturedParameters.test.ts b/tests/acceptance/applications/javascriptCapturedParameters.test.ts index a341e086607..5aaf88ad19e 100644 --- a/tests/acceptance/applications/javascriptCapturedParameters.test.ts +++ b/tests/acceptance/applications/javascriptCapturedParameters.test.ts @@ -9,7 +9,6 @@ import { createApplicationMcpHarness } from "../../fixtures/applicationMcpHarnes import { verifyJavaScriptReturnShapes } from "../../fixtures/javascriptReturnShapes.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import { cliTest } from "../../support/cli/cliFixture.js"; -import { completeApplicationAnalysis } from "../../support/completeDetail.js"; const source = ` export function captured(x) { const saved=x; x=2; return {type:"ok",value:saved}; } @@ -444,7 +443,7 @@ cliTest( `export function read(x) { ${body} }`, ); const response = await cli.run({ - arguments: completeApplicationAnalysis(directory), + arguments: ["analyze-javascript-application", directory, "--json"], }); expect(response.exitCode, response.stderr).toBe(0); evidence.push(parseEvidence(response.json)); diff --git a/tests/acceptance/applications/javascriptChildHandleOwnership.test.ts b/tests/acceptance/applications/javascriptChildHandleOwnership.test.ts index eed404e13d9..5b55e7dc730 100644 --- a/tests/acceptance/applications/javascriptChildHandleOwnership.test.ts +++ b/tests/acceptance/applications/javascriptChildHandleOwnership.test.ts @@ -35,7 +35,6 @@ const analyzeThroughCliAndMcp = async (source: string) => { const evidence = parseEvidence(JSON.parse(stdout)); const { client, call } = await connectLocalToolsMcp({ HOME: home }); const response = await call("analyze_javascript_application", { - detail: "complete", input_path: app, format: "auto", }); diff --git a/tests/acceptance/applications/unboundRequires.test.ts b/tests/acceptance/applications/unboundRequires.test.ts index 085f42ec13f..41eba1189dd 100644 --- a/tests/acceptance/applications/unboundRequires.test.ts +++ b/tests/acceptance/applications/unboundRequires.test.ts @@ -16,7 +16,6 @@ import { resolveJavaScriptApplicationMcpCall, } from "../../support/cli/javascriptApplication.js"; import { writeFixtureFiles } from "../../support/javascriptApplicationFixture.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; const execute = promisify(execFile); @@ -900,13 +899,7 @@ cliTest( } const response = await cli.run({ - arguments: [ - "analyze-javascript-application", - ...COMPLETE_DETAIL, - root, - "--format", - "json", - ], + arguments: ["analyze-javascript-application", root, "--format", "json"], environment: { REA_LOG_LEVEL: "silent" }, }); @@ -1168,13 +1161,7 @@ cliTest( await expectNativeModuleControls(root); const response = await cli.run({ - arguments: [ - "analyze-javascript-application", - ...COMPLETE_DETAIL, - root, - "--format", - "json", - ], + arguments: ["analyze-javascript-application", root, "--format", "json"], environment: { REA_LOG_LEVEL: "silent" }, }); expect(response.exitCode, response.stderr).toBe(0); @@ -1190,7 +1177,6 @@ cliTest( const call = await resolveJavaScriptApplicationMcpCall(cli, undefined); const mcp = await call("analyze_javascript_application", { - detail: "complete", input_path: root, format: "directory", }); diff --git a/tests/acceptance/browserScenarioReferenceDiagnostics.test.ts b/tests/acceptance/browserScenarioReferenceDiagnostics.test.ts index 4d9defa2b5a..b8a24833bae 100644 --- a/tests/acceptance/browserScenarioReferenceDiagnostics.test.ts +++ b/tests/acceptance/browserScenarioReferenceDiagnostics.test.ts @@ -8,7 +8,6 @@ import { createTestTempDirectory } from "../fixtures/temporaryDirectory.js"; import { parseMcpToolError } from "../fixtures/mcpToolError.js"; import { cliTest } from "../support/cli/cliFixture.js"; import { createMcpSchemaValidation } from "../fixtures/mcpSchemaValidation.js"; -import { completeArguments } from "../support/completeDetail.js"; cliTest.for([ ["CLI", "query"], @@ -40,7 +39,7 @@ cliTest.for([ await writeFile(path, JSON.stringify(input)); // A real file argument avoids the host argv limit for this valid JSON. const result = await cli.run({ - arguments: completeArguments("capture-browser-scenario", path), + arguments: ["capture-browser-scenario", path, "--json"], environment: { HOME: home, REA_LOG_LEVEL: "silent" }, }); expect(result.exitCode).toBe(1); @@ -72,7 +71,7 @@ cliTest.for([ await client.connect(transport); const result = await client.callTool({ name: "capture_browser_scenario", - arguments: { ...input, detail: "complete" }, + arguments: input, }); expect(result.isError).toBe(true); expect(parseMcpToolError(result).error).toMatchObject(expected); diff --git a/tests/acceptance/byteEntropyWindowsIdentity.test.ts b/tests/acceptance/byteEntropyWindowsIdentity.test.ts index 1f77ee15604..26d7024515a 100644 --- a/tests/acceptance/byteEntropyWindowsIdentity.test.ts +++ b/tests/acceptance/byteEntropyWindowsIdentity.test.ts @@ -9,7 +9,6 @@ import { cliTest } from "../support/cli/cliFixture.js"; import { ByteEntropyService } from "../../src/application/binaryDiagnostics/ByteEntropyService.js"; import { parseEvidence } from "../../src/domain/evidence.js"; import { createMcpSchemaValidation } from "../fixtures/mcpSchemaValidation.js"; -import { completeArguments } from "../support/completeDetail.js"; describe.skipIf(process.platform !== "win32")( "Windows selected-file spelling", @@ -47,13 +46,13 @@ describe.skipIf(process.platform !== "win32")( const direct = await service.inspect({ path: spelling }); if (!direct.ok) throw direct.error; const fromCli = await cli.run({ - arguments: completeArguments("inspect-byte-entropy", spelling), + arguments: ["inspect-byte-entropy", spelling, "--json"], }); expect(fromCli.exitCode, fromCli.stderr).toBe(0); const evidence = parseEvidence(fromCli.json); const response = await client.callTool({ name: "inspect_byte_entropy", - arguments: { detail: "complete", path: spelling }, + arguments: { path: spelling }, }); expect(response.isError).not.toBe(true); const mcpEvidence = parseEvidence(response.structuredContent); diff --git a/tests/acceptance/dotnetBundleJourney.test.ts b/tests/acceptance/dotnetBundleJourney.test.ts index a6ac4520f31..9ca89f7d8de 100644 --- a/tests/acceptance/dotnetBundleJourney.test.ts +++ b/tests/acceptance/dotnetBundleJourney.test.ts @@ -18,7 +18,6 @@ import { import { workspaceCliTest as test } from "../support/cli/workspaceCliFixture.js"; import { createMcpSchemaValidation } from "../fixtures/mcpSchemaValidation.js"; import { expectCarrierProbes } from "../fixtures/nativeCarrierProbes.js"; -import { completeArguments } from "../support/completeDetail.js"; // Compile SDK output validators for the tools a test calls, not the whole catalog. const schemaValidation = createMcpSchemaValidation(); @@ -159,7 +158,7 @@ for (const format of ["dotnet-bundle", "pyinstaller"] as const) { }; try { const inspected = await cli.run({ - arguments: completeArguments("inspect-artifact", path), + arguments: ["inspect-artifact", path, "--json"], environment, }); expect(inspected.exitCode, inspected.stderr).toBe(0); @@ -242,7 +241,7 @@ test("reports excessive bundle path depth as a public CLI limit", async ({ ); const result = await cli.run({ - arguments: completeArguments("inspect-artifact", path), + arguments: ["inspect-artifact", path, "--json"], environment: { REA_LOG_LEVEL: "silent" }, }); expect(result.exitCode, result.stderr).toBe(1); diff --git a/tests/acceptance/harmonyArtifactJourney.test.ts b/tests/acceptance/harmonyArtifactJourney.test.ts index 85d716a6fac..68e1d018700 100644 --- a/tests/acceptance/harmonyArtifactJourney.test.ts +++ b/tests/acceptance/harmonyArtifactJourney.test.ts @@ -17,7 +17,6 @@ import { } from "../../src/domain/harmony/harmonyApplication.js"; import { workspaceCliTest as test } from "../support/cli/workspaceCliFixture.js"; import { createMcpSchemaValidation } from "../fixtures/mcpSchemaValidation.js"; -import { COMPLETE_DETAIL } from "../support/completeDetail.js"; const expectProjectionParity = ( graph: HarmonyApplicationProjectionResult, @@ -145,13 +144,7 @@ test("preserves Harmony archive formats through the public CLI/MCP lifecycle", a await writeFile(path, bytes); const sha256 = createHash("sha256").update(bytes).digest("hex"); const cliReply = await cli.run({ - arguments: [ - "inspect-artifact", - ...COMPLETE_DETAIL, - path, - "--format", - "json", - ], + arguments: ["inspect-artifact", path, "--format", "json"], environment, }); expect(cliReply.exitCode, cliReply.stderr).toBe(0); diff --git a/tests/acceptance/machoSelectedSliceCli.test.ts b/tests/acceptance/machoSelectedSliceCli.test.ts index ac9c7b84f4e..32147c5a3cc 100644 --- a/tests/acceptance/machoSelectedSliceCli.test.ts +++ b/tests/acceptance/machoSelectedSliceCli.test.ts @@ -4,7 +4,6 @@ import { join } from "node:path"; import { expect } from "vitest"; import { createTestTempDirectory } from "../fixtures/temporaryDirectory.js"; import { cliTest } from "../support/cli/cliFixture.js"; -import { completeArguments } from "../support/completeDetail.js"; const thin = (subtype: number): Buffer => { const bytes = Buffer.alloc(4096); @@ -62,7 +61,7 @@ cliTest.skipIf(process.platform !== "darwin" || process.arch !== "arm64")( const path = join(root, name); await writeFile(path, bytes); const result = await cli.run({ - arguments: completeArguments("inspect-macho", path), + arguments: ["inspect-macho", path, "--json"], }); expect(result.exitCode, result.stderr).toBe(0); expect(result.json).toMatchObject({ @@ -103,7 +102,7 @@ cliTest.skipIf(process.platform !== "darwin" || process.arch !== "arm64")( ]); const before = await readFile(path); const result = await cli.run({ - arguments: completeArguments("inspect-macho", path), + arguments: ["inspect-macho", path, "--json"], }); expect(result.exitCode, result.stderr + result.stdout).toBe(0); expect(result.json).toMatchObject({ @@ -132,7 +131,7 @@ cliTest.skipIf(process.platform !== "darwin" || process.arch !== "arm64")( patched[sectionName] = 0xff; await writeFile(path, patched); const undecodable = await cli.run({ - arguments: completeArguments("inspect-macho", path), + arguments: ["inspect-macho", path, "--json"], }); expect(undecodable.exitCode, undecodable.stderr + undecodable.stdout).toBe( 0, diff --git a/tests/acceptance/managedMemberRecovery.test.ts b/tests/acceptance/managedMemberRecovery.test.ts index b126300ec72..6f49b476b4b 100644 --- a/tests/acceptance/managedMemberRecovery.test.ts +++ b/tests/acceptance/managedMemberRecovery.test.ts @@ -20,10 +20,6 @@ import { buildManagedMemberCapacityFixture } from "../fixtures/managedMemberCapa import { createTestTempDirectory } from "../fixtures/temporaryDirectory.js"; import { cliTest } from "../support/cli/cliFixture.js"; import { createMcpSchemaValidation } from "../fixtures/mcpSchemaValidation.js"; -import { - COMPLETE_DETAIL, - completeArguments, -} from "../support/completeDetail.js"; const createTransport = () => new StdioClientTransport({ @@ -92,7 +88,7 @@ cliTest( expect(ajv.validateSchema(definition.inputSchema)).toBe(true); expect(ajv.validateSchema(outputSchema)).toBe(true); const output = await cli.run({ - arguments: completeArguments("inspect-managed-members", path), + arguments: ["inspect-managed-members", path, "--json"], }); expect(output.exitCode, output.stderr).toBe(0); const cliEvidence = parseEvidence(output.json); @@ -117,7 +113,6 @@ cliTest( const selectedCli = await cli.run({ arguments: [ "inspect-managed-members", - ...COMPLETE_DETAIL, path, "--type", empty.full_name, diff --git a/tests/acceptance/nonBinaryComposition.test.ts b/tests/acceptance/nonBinaryComposition.test.ts index f04e1974981..a50bc58338a 100644 --- a/tests/acceptance/nonBinaryComposition.test.ts +++ b/tests/acceptance/nonBinaryComposition.test.ts @@ -13,7 +13,6 @@ import { writeOrderedZip } from "../fixtures/artifactEntryOrder.js"; import { createTestTempDirectory } from "../fixtures/temporaryDirectory.js"; import { cliTest } from "../support/cli/cliFixture.js"; import { createMcpSchemaValidation } from "../fixtures/mcpSchemaValidation.js"; -import { completeArguments } from "../support/completeDetail.js"; const connect = async (environment: NodeJS.ProcessEnv) => { const session = createTestBinarySession(() => { @@ -69,7 +68,7 @@ for (const { jarConfigured, setting } of [ ...(jarConfigured ? { REA_JADX_MCP_JAR: jar } : {}), }; const cliResult = await cli.run({ - arguments: completeArguments("inspect-android-package", apk), + arguments: ["inspect-android-package", apk, "--json"], environment, }); expect(cliResult.exitCode).toBe(1); @@ -77,7 +76,7 @@ for (const { jarConfigured, setting } of [ const client = await connect(environment); const response = await client.callTool({ name: "inspect_android_package", - arguments: { detail: "complete", path: apk }, + arguments: { path: apk }, }); expect(response.isError).toBe(true); expect(parseMcpToolError(response)).toEqual({ error: cliResult.json }); @@ -93,14 +92,14 @@ cliTest.skipIf(process.platform === "win32")( await writeOrderedZip(apk, ["AndroidManifest.xml"]); const run = async (environment: Record) => { const cliResult = await cli.run({ - arguments: completeArguments("inspect-android-package", apk), + arguments: ["inspect-android-package", apk, "--json"], environment: { REA_LOG_LEVEL: "silent", ...environment }, }); expect(cliResult.exitCode).toBe(1); const client = await connect({ REA_LOG_LEVEL: "silent", ...environment }); const response = await client.callTool({ name: "inspect_android_package", - arguments: { detail: "complete", path: apk }, + arguments: { path: apk }, }); expect(response.isError).toBe(true); expect(parseMcpToolError(response)).toEqual({ error: cliResult.json }); @@ -290,7 +289,7 @@ cliTest.skipIf(process.platform === "win32")( }); const request = { name: "inspect_android_package", - arguments: { detail: "complete", path: apk }, + arguments: { path: apk }, }; const inspect = async () => parseMcpToolError(await client.callTool(request)).error; diff --git a/tests/acceptance/providers/idaEndpointFailure.test.ts b/tests/acceptance/providers/idaEndpointFailure.test.ts index 9e2a0dc59f8..e878af50d0a 100644 --- a/tests/acceptance/providers/idaEndpointFailure.test.ts +++ b/tests/acceptance/providers/idaEndpointFailure.test.ts @@ -62,9 +62,7 @@ for (const encodedCredential of [false, true]) provider_id: "ida", }); if (opened.isError) throw new Error(JSON.stringify(opened)); - const failure = parseMcpToolError( - await call("list_procedures", { detail: "complete" }), - ); + const failure = parseMcpToolError(await call("list_procedures", {})); expect(failure.error).toMatchObject({ code: "execution_failure", details: { diagnostics: { endpoint: expectedEndpoint } }, diff --git a/tests/acceptance/tools/historicalCaptureResources.test.ts b/tests/acceptance/tools/historicalCaptureResources.test.ts index 2bbf3c89a94..2b4adf28146 100644 --- a/tests/acceptance/tools/historicalCaptureResources.test.ts +++ b/tests/acceptance/tools/historicalCaptureResources.test.ts @@ -17,7 +17,6 @@ import { CAPTURE_RUNTIME_SUPPORTED } from "../../fixtures/captureDecoderLimits.j import { connectLocalToolsMcp } from "../../fixtures/localToolsMcp.js"; import { parseMcpToolError } from "../../fixtures/mcpToolError.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; const execute = promisify(execFile); const cli = fileURLToPath(new URL("../../../scripts/rea.mjs", import.meta.url)); @@ -75,7 +74,6 @@ it.skipIf( ), }); const response = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "har", sensitive_values: ["caller-marked"], @@ -125,7 +123,6 @@ it.skipIf( [ cli, "inspect-web-network-capture", - ...COMPLETE_DETAIL, path, "har", "--json", @@ -168,7 +165,6 @@ it.skipIf( await writeFile(small, capture(2)); await client.ping(); const control = await call("inspect_web_network_capture", { - detail: "complete", capture_path: small, format: "har", }); @@ -181,7 +177,7 @@ it.skipIf( const defaultServer = await connectLocalToolsMcp(); const defaultControl = await defaultServer.call( "inspect_web_network_capture", - { detail: "complete", capture_path: small, format: "har" }, + { capture_path: small, format: "har" }, ); expect(defaultControl.isError, JSON.stringify(defaultControl)).not.toBe( true, @@ -191,7 +187,6 @@ it.skipIf( ); await truncate(path, WEB_NETWORK_CAPTURE_LIMITS.inputBytes + 1); const oversized = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "har", }); diff --git a/tests/acceptance/tools/qlogCapture.test.ts b/tests/acceptance/tools/qlogCapture.test.ts index a484c9d1e8a..2444b95f9f7 100644 --- a/tests/acceptance/tools/qlogCapture.test.ts +++ b/tests/acceptance/tools/qlogCapture.test.ts @@ -29,7 +29,6 @@ import { definedCliEnvironment, } from "../../support/cli/cliFixture.js"; import { issuesByContractField } from "../../support/cli/cliIssueFields.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; const execute = promisify(execFile); const it = runtimeTest.skipIf(!hasMemoryBound || !runtimeSupported); @@ -56,7 +55,6 @@ it("preserves aioquic recovery packet-number spaces and their source records", a const ordinals = [1, 5, 9, 13, 17, 21, 25]; const { call } = await sharedMcp(); const response = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "qlog", record_ordinals: ordinals, @@ -154,7 +152,6 @@ const expectRecoveredCapture = async ( path: string, ): Promise => { const response = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "qlog", }); @@ -366,7 +363,6 @@ runtimeTest.runIf(!hasMemoryBound && runtimeSupported)( expect( parseMcpToolError( await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "qlog", }), @@ -397,7 +393,6 @@ it("runs built CLI and real stdio SDK with exact evidence parity, selection, ret const mcp = parseEvidence(response.structuredContent); const result = await runSharedCli([ "inspect-web-network-capture", - ...COMPLETE_DETAIL, path, "qlog", "--record", @@ -449,14 +444,12 @@ it("runs built CLI and real stdio SDK with exact evidence parity, selection, ret } const sensitive = ["trace-local", "/traces/0", "input.qlog", "data"]; const hidden = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "qlog", sensitive_values: sensitive, }); const hiddenCli = await runSharedCli([ "inspect-web-network-capture", - ...COMPLETE_DETAIL, path, "qlog", ...sensitive.flatMap((value) => ["--sensitive-value", value]), @@ -557,7 +550,6 @@ it("fails whole-capture validation before selection and survives malformed, unsu await writeFile(path, outsideSelection); const failed = await runSharedCli([ "inspect-web-network-capture", - ...COMPLETE_DETAIL, path, "qlog", "--record", @@ -575,7 +567,6 @@ it("fails whole-capture validation before selection and survives malformed, unsu expect( parseMcpToolError( await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "qlog", record_ordinals: [0], @@ -587,7 +578,6 @@ it("fails whole-capture validation before selection and survives malformed, unsu expect( parseMcpToolError( await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "qlog", }), @@ -627,7 +617,6 @@ runtimeTest.skipIf( await writeFile(path, dense); const { call, client } = await connectLocalToolsMcp(); const response = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "qlog", record_ordinals: [0], @@ -643,14 +632,7 @@ runtimeTest.skipIf( }); const failed: unknown = await execute( process.execPath, - [ - cli, - "inspect-web-network-capture", - ...COMPLETE_DETAIL, - path, - "qlog", - "--json", - ], + [cli, "inspect-web-network-capture", path, "qlog", "--json"], { timeout: 40_000, maxBuffer: 1024 * 1024 }, ).catch((cause: unknown) => cause); expect(failed).toMatchObject({ diff --git a/tests/acceptance/uefiFirmware.test.ts b/tests/acceptance/uefiFirmware.test.ts index 0b32a706f92..020aa926284 100644 --- a/tests/acceptance/uefiFirmware.test.ts +++ b/tests/acceptance/uefiFirmware.test.ts @@ -24,7 +24,6 @@ import { connectLocalToolsMcp } from "../fixtures/localToolsMcp.js"; import { parseMcpToolError } from "../fixtures/mcpToolError.js"; import { createTestTempDirectory } from "../fixtures/temporaryDirectory.js"; import { cliTest } from "../support/cli/cliFixture.js"; -import { COMPLETE_DETAIL } from "../support/completeDetail.js"; const execute = promisify(execFile); const cli = fileURLToPath(new URL("../../scripts/rea.mjs", import.meta.url)); @@ -122,9 +121,7 @@ it("maps a flash image end to end through CLI inspection and MCP session invento const opened = await call("open_binary", { path: imagePath }); expect(opened.isError, JSON.stringify(opened.content)).not.toBe(true); - const inspectedSession = await call("inspect_artifact", { - detail: "complete", - }); + const inspectedSession = await call("inspect_artifact", {}); expect(inspectedSession.isError, JSON.stringify(inspectedSession)).not.toBe( true, ); @@ -265,7 +262,6 @@ it("never admits prose carrying a `_FVH` string as the flash image format", asyn const cliResult = await execute(process.execPath, [ cli, "inspect-artifact", - ...COMPLETE_DETAIL, path, "--json", ]); @@ -298,7 +294,6 @@ it.each([ const command = await execute(process.execPath, [ cli, "inspect-artifact", - ...COMPLETE_DETAIL, path, "--json", ]); @@ -382,7 +377,7 @@ it("retains an opaque volume and reports only the unparsed ranges in the selecte const opened = await call("open_binary", { path }); expect(opened.isError, JSON.stringify(opened.content)).not.toBe(true); const inventoryEvidence = parseEvidence( - (await call("inspect_artifact", { detail: "complete" })).structuredContent, + (await call("inspect_artifact", {})).structuredContent, ); const inventory = artifactInventoryResultSchema.parse( artifactInspectionResultSchema.parse(inventoryEvidence.normalized_result) diff --git a/tests/acceptance/webRuntimeCli.test.ts b/tests/acceptance/webRuntimeCli.test.ts index 80b5d78425c..244b0b7b990 100644 --- a/tests/acceptance/webRuntimeCli.test.ts +++ b/tests/acceptance/webRuntimeCli.test.ts @@ -10,7 +10,6 @@ import { z } from "zod"; import { parseEvidence } from "../../src/domain/evidence.js"; import { webEventListenersSchema } from "../../src/domain/webEventListeners.js"; import { startRuntimeBrowser } from "../fixtures/webRuntime.js"; -import { COMPLETE_DETAIL } from "../support/completeDetail.js"; const entrypoint = fileURLToPath( new URL("../../scripts/rea.mjs", import.meta.url), @@ -235,7 +234,6 @@ const cancellationCommands: readonly CliCancellationCommand[] = [ operation: "analyze_web_bundle", buildArgs: (endpoint) => [ "analyze-web-bundle", - ...COMPLETE_DETAIL, endpoint, "page-fixture", "--json", diff --git a/tests/boundary/browser/historicalWebCapture.test.ts b/tests/boundary/browser/historicalWebCapture.test.ts index e3dd4f98055..19c0d96a64e 100644 --- a/tests/boundary/browser/historicalWebCapture.test.ts +++ b/tests/boundary/browser/historicalWebCapture.test.ts @@ -24,7 +24,6 @@ const cli = async ( [ entrypoint, "inspect-web-network-capture", - ...COMPLETE_DETAIL, path, format, "--json", @@ -47,7 +46,6 @@ import { historicalHar, harWithContainerLookalikes, } from "../../fixtures/historicalHar.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; it("preserves opaque HAR container fields through CLI and MCP", async () => { const root = await createTestTempDirectory("rea-har-container-fields-"); @@ -66,7 +64,6 @@ it("preserves opaque HAR container fields through CLI and MCP", async () => { expect(fromCli.ok, fromCli.stdout).toBe(true); const cliEvidence = parseEvidence(JSON.parse(fromCli.stdout)); const response = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "har", sensitive_values: sensitive, @@ -182,7 +179,6 @@ it("retains Playwright IPv6 spelling through public CLI and MCP workflows", asyn expect(fromCli.ok, fromCli.stdout).toBe(true); const cliEvidence = parseEvidence(JSON.parse(fromCli.stdout)); const response = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "har", }); @@ -447,7 +443,6 @@ it("counts credential-named HAR members by pointer, excluding values the decoder expect(fromCli.ok, fromCli.stdout).toBe(true); const cliEvidence = parseEvidence(JSON.parse(fromCli.stdout)); const response = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "har", sensitive_values: sensitive, diff --git a/tests/boundary/browser/sazWebCapture.test.ts b/tests/boundary/browser/sazWebCapture.test.ts index b2f0d235611..3ccf90ee0e8 100644 --- a/tests/boundary/browser/sazWebCapture.test.ts +++ b/tests/boundary/browser/sazWebCapture.test.ts @@ -41,7 +41,6 @@ import { CAPTURE_RUNTIME_SUPPORTED as runtimeSupported, } from "../../fixtures/captureDecoderLimits.js"; import { issuesByContractField } from "../../support/cli/cliIssueFields.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; const it = runtimeTest.skipIf(!hasMemoryBound || !runtimeSupported); @@ -112,7 +111,6 @@ const cliResponse = async (path: string, extra: string[] = []) => { [ entrypoint, "inspect-web-network-capture", - ...COMPLETE_DETAIL, path, "saz", "--json", @@ -189,7 +187,6 @@ it("uses HTTP optional whitespace for SAZ identity codings without changing raw } const { call } = await connectSazMcp(); const response = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "saz", record_ordinals: [0, 1, 2, 3], @@ -201,7 +198,6 @@ it("uses HTTP optional whitespace for SAZ identity codings without changing raw ); for (const sensitive of ["gzip", "Content-Encoding"]) { const excluded = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "saz", record_ordinals: [0, 1, 2, 3], @@ -324,7 +320,6 @@ it("checks trailer credentials before hidden metadata blocks analysis and withho for (const excluded of [path, sha256, "content_base64", "fixture-only"]) expect(JSON.stringify(excludedResponse)).not.toContain(excluded); const opaqueReply = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "saz", record_ordinals: [2], @@ -1123,7 +1118,6 @@ it.each([ ]); const { call } = await connectSazMcp(); const response = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "saz", record_ordinals: [0], @@ -1192,7 +1186,6 @@ it("names the ZIP decoder window instead of the expanded-input budget for a larg expect(JSON.stringify(error)).not.toContain("max_input_bytes"); const { call } = await connectSazMcp(); const response = await call("inspect_web_network_capture", { - detail: "complete", capture_path: path, format: "saz", }); diff --git a/tests/boundary/cli/browserScenarioSummaryCli.test.ts b/tests/boundary/cli/browserScenarioSummaryCli.test.ts index 67918ab0dec..58cbe01f15c 100644 --- a/tests/boundary/cli/browserScenarioSummaryCli.test.ts +++ b/tests/boundary/cli/browserScenarioSummaryCli.test.ts @@ -15,7 +15,6 @@ import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import type { BrowserScenarioCapturePort } from "../../../src/ports/BrowserScenarioCapturePort.js"; import { controlledCleanup } from "../../support/lifecycleHarness.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; const identity = { id: "fixture", name: "Fixture", version: "1" }; const capture = scenarioCaptureFixture(); @@ -36,7 +35,6 @@ const runCli = async ( await cli.serve( [ "capture-browser-scenario", - ...COMPLETE_DETAIL, JSON.stringify({ browser: { mode: "launch", executable_path: process.execPath }, start_url: { url: "http://127.0.0.1:3101/" }, diff --git a/tests/boundary/cli/cliOutput.test.ts b/tests/boundary/cli/cliOutput.test.ts index b02ddd6b5aa..e4b9590adc2 100644 --- a/tests/boundary/cli/cliOutput.test.ts +++ b/tests/boundary/cli/cliOutput.test.ts @@ -14,7 +14,6 @@ import { renderVersionReport, parseCliOutputArguments, } from "../../../src/cli/cliOutput.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; describe("CLI output argument boundary", () => { it("requires an exact row selector and explicit columns for delimited formats", () => { @@ -580,7 +579,6 @@ describe("compiled CLI filter results", () => { const result = await cli.run({ arguments: [ "analyze-javascript-application", - ...COMPLETE_DETAIL, "tests/conformance/readiness/javascript-cli", "--format", "json", @@ -597,7 +595,6 @@ describe("compiled CLI filter results", () => { const nested = await cli.run({ arguments: [ "analyze-javascript-application", - ...COMPLETE_DETAIL, "tests/conformance/readiness/javascript-cli", "--format", "json", @@ -613,7 +610,6 @@ describe("compiled CLI filter results", () => { const selected = await cli.run({ arguments: [ "analyze-javascript-application", - ...COMPLETE_DETAIL, "tests/conformance/readiness/javascript-cli", "--format", "json", diff --git a/tests/boundary/cli/electronCli.test.ts b/tests/boundary/cli/electronCli.test.ts index f428d8c89f7..1c1269291b0 100644 --- a/tests/boundary/cli/electronCli.test.ts +++ b/tests/boundary/cli/electronCli.test.ts @@ -24,10 +24,6 @@ import { } from "../../fixtures/javascriptRuntimeReconciliation.js"; import { JAVASCRIPT_RUNTIME_RECONCILIATION_EXAMPLE } from "../../../src/contracts/javascript/javascriptRuntimeReconciliationExample.js"; import { waitFor } from "../../support/testWait.js"; -import { - COMPLETE_DETAIL, - completeApplicationAnalysis, -} from "../../support/completeDetail.js"; const cliProcesses = createTestProcessRegistry(); const cli = createTestCli(cliProcesses); @@ -242,7 +238,10 @@ it("returns the static JavaScript application Evidence contract", async () => { ...process.env, }; - const analyzed = await runCli(completeApplicationAnalysis(root), environment); + const analyzed = await runCli( + ["analyze-javascript-application", root, "--json"], + environment, + ); expect(analyzed).toMatchObject({ operation: "analyze_javascript_application", @@ -275,7 +274,6 @@ describe("Electron CLI artifact behavior", () => { "--format", "json", "analyze-javascript-application", - ...COMPLETE_DETAIL, root, "--artifact-format", "directory", diff --git a/tests/boundary/cli/jsonOutput.test.ts b/tests/boundary/cli/jsonOutput.test.ts index 1768cd51bbd..9937b72fe6d 100644 --- a/tests/boundary/cli/jsonOutput.test.ts +++ b/tests/boundary/cli/jsonOutput.test.ts @@ -20,7 +20,6 @@ import { logCliCommand } from "../../../src/cliLogging.js"; import { registerManagedCommands } from "../../../src/cli/managedCommands.js"; import { analysisErrorProjectionSchema } from "../../../src/domain/analysisErrorProjectionSchema.js"; import { silentLogger } from "../../../src/logger.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; /** These managed commands inspect one target; none composes Evidence. */ const unusedManagedEvidence = (): never => { @@ -532,7 +531,6 @@ describe("full-output token counts", () => { }; const argv = [ "inspect-managed-artifact", - ...COMPLETE_DETAIL, "missing.dll", "--json", "--full-output", @@ -687,12 +685,7 @@ describe("CLI result output surface", () => { }); // A terminal destination exercises the indented encoding past the limit. Object.defineProperty(destination, "isTTY", { value: true }); - const argv = [ - "inspect-managed-members", - ...COMPLETE_DETAIL, - "fixture.dll", - "--json", - ]; + const argv = ["inspect-managed-members", "fixture.dll", "--json"]; const output = createCliResultOutput( parseCliOutputArguments(argv), destination, diff --git a/tests/boundary/cli/markdownNestedFacts.test.ts b/tests/boundary/cli/markdownNestedFacts.test.ts index 047f01c607e..31f55d45bb2 100644 --- a/tests/boundary/cli/markdownNestedFacts.test.ts +++ b/tests/boundary/cli/markdownNestedFacts.test.ts @@ -15,7 +15,6 @@ import { createCliResultOutput } from "../../../src/cli/cliResultOutput.js"; import { writeOrderedZip } from "../../fixtures/artifactEntryOrder.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import { workspaceCliTest } from "../../support/cli/workspaceCliFixture.js"; -import { completeArguments } from "../../support/completeDetail.js"; it("keeps source keys literal in Markdown headings through CLI result output", async () => { const value = Object.freeze({ @@ -115,7 +114,7 @@ workspaceCliTest( arguments: ["inspect-artifact", archive, "--format", "md"], }); const json = await cli.run({ - arguments: completeArguments("inspect-artifact", archive), + arguments: ["inspect-artifact", archive, "--json"], }); expect(markdown.exitCode).toBe(0); expect(json.exitCode).toBe(0); diff --git a/tests/boundary/cli/rawDiskImageCli.test.ts b/tests/boundary/cli/rawDiskImageCli.test.ts index 5a65f8ec4ba..bcbff8f3b50 100644 --- a/tests/boundary/cli/rawDiskImageCli.test.ts +++ b/tests/boundary/cli/rawDiskImageCli.test.ts @@ -9,10 +9,6 @@ import { parseEvidence } from "../../../src/domain/evidence.js"; import { execFileOutput } from "../../../src/process/ExecFileOutput.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import { cliTest } from "../../support/cli/cliFixture.js"; -import { - COMPLETE_DETAIL, - completeArguments, -} from "../../support/completeDetail.js"; const envelope = z.object({ ok: z.literal(true), data: z.unknown() }); @@ -58,13 +54,7 @@ describe.skipIf(process.platform !== "darwin")( const inspect = async (path: string) => { const result = await cli.run({ - arguments: [ - "inspect-artifact", - ...COMPLETE_DETAIL, - path, - "--json", - "--full-output", - ], + arguments: ["inspect-artifact", path, "--json", "--full-output"], environment: { REA_LOG_LEVEL: "silent" }, }); expect(result.exitCode, result.stdout + result.stderr).toBe(0); @@ -128,7 +118,7 @@ describe.skipIf(process.platform !== "darwin")( // hdiutil itself treats any file as a raw image with no checksum. await writeFile(blob, Buffer.alloc(1024 * 1024)); const result = await cli.run({ - arguments: completeArguments("inspect-artifact", blob), + arguments: ["inspect-artifact", blob, "--json"], environment: { REA_LOG_LEVEL: "silent" }, }); expect(result.exitCode).not.toBe(0); diff --git a/tests/boundary/cli/reconstructionObligationLedgerCli.test.ts b/tests/boundary/cli/reconstructionObligationLedgerCli.test.ts index c326f7fa160..b55ef0d3672 100644 --- a/tests/boundary/cli/reconstructionObligationLedgerCli.test.ts +++ b/tests/boundary/cli/reconstructionObligationLedgerCli.test.ts @@ -18,7 +18,6 @@ import { readyProcessLedgerRequest, readyReviewedLedgerRequest, } from "../../../src/application/ReconstructionObligationLedger.fixture.js"; -import { completeApplicationAnalysis } from "../../support/completeDetail.js"; const execute = promisify(execFile); @@ -234,7 +233,7 @@ cliTest( ].join("\n"), ); const analyzed = await cli.run({ - arguments: completeApplicationAnalysis(root), + arguments: ["analyze-javascript-application", root, "--json"], }); expect(analyzed.exitCode).toBe(0); const application = parseEvidence(analyzed.json); diff --git a/tests/boundary/cli/sharedJavaScriptCliSession.test.ts b/tests/boundary/cli/sharedJavaScriptCliSession.test.ts index 272378a7a46..530301a6469 100644 --- a/tests/boundary/cli/sharedJavaScriptCliSession.test.ts +++ b/tests/boundary/cli/sharedJavaScriptCliSession.test.ts @@ -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", diff --git a/tests/boundary/javascript/javascriptSelectedPathEvidence.test.ts b/tests/boundary/javascript/javascriptSelectedPathEvidence.test.ts index 0bf5ded38e3..72d8b2258a3 100644 --- a/tests/boundary/javascript/javascriptSelectedPathEvidence.test.ts +++ b/tests/boundary/javascript/javascriptSelectedPathEvidence.test.ts @@ -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), diff --git a/tests/boundary/mcp/absoluteLocalPathSchema.test.ts b/tests/boundary/mcp/absoluteLocalPathSchema.test.ts index b71bb259fb8..2550fe466cf 100644 --- a/tests/boundary/mcp/absoluteLocalPathSchema.test.ts +++ b/tests/boundary/mcp/absoluteLocalPathSchema.test.ts @@ -429,7 +429,6 @@ it("rejects unpaired surrogates through in-memory MCP handlers", async () => { const symbol = await client.callTool({ name: "inspect_with_objdump", arguments: { - detail: "complete", path: absolute, operation: "disassemble", symbol: "main\ud800", diff --git a/tests/boundary/mcp/analysisSnapshotProvenanceMcp.test.ts b/tests/boundary/mcp/analysisSnapshotProvenanceMcp.test.ts index 63e5e88569a..421a38f2ad1 100644 --- a/tests/boundary/mcp/analysisSnapshotProvenanceMcp.test.ts +++ b/tests/boundary/mcp/analysisSnapshotProvenanceMcp.test.ts @@ -161,7 +161,7 @@ for (const missingSource of [false, true]) const client = await mcp.connect(server); const response = await client.callTool({ name: "inspect_managed_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); if (missingSource) { expect(parseMcpToolError(response)).toMatchObject({ @@ -255,7 +255,7 @@ for (const missingSource of [false, true]) ); const refreshedResponse = await client.callTool({ name: "inspect_managed_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect( refreshedResponse.isError, diff --git a/tests/boundary/mcp/analysisViewMcp.test.ts b/tests/boundary/mcp/analysisViewMcp.test.ts index 526192ecd44..e05d25c2180 100644 --- a/tests/boundary/mcp/analysisViewMcp.test.ts +++ b/tests/boundary/mcp/analysisViewMcp.test.ts @@ -631,7 +631,7 @@ it("advertises exact schemas and projects one layout section from retained Evide ).toBe(false); const inspected = await client.callTool({ name: "inspect_binary_layout", - arguments: { detail: "complete", path: layout.artifact.path }, + arguments: { path: layout.artifact.path }, }); expect(inspected.isError).not.toBe(true); const parent = toolContract("inspect_binary_layout").outputSchema.parse( @@ -1374,7 +1374,7 @@ it("projects an actual HAR capture retained by the public MCP workflow", async ( const { client } = await connect(undefined, service); const captureResponse = await client.callTool({ name: "inspect_web_network_capture", - arguments: { detail: "complete", capture_path: path, format: "har" }, + arguments: { capture_path: path, format: "har" }, }); expect(captureResponse.isError).not.toBe(true); const parent = parseEvidence(captureResponse.structuredContent); @@ -1455,7 +1455,7 @@ it.each(PUBLISHED_EXAMPLES)( const { client } = await connect(undefined, service); const capture = await client.callTool({ name: "inspect_web_network_capture", - arguments: { detail: "complete", capture_path: path, format: "har" }, + arguments: { capture_path: path, format: "har" }, }); expect(parseEvidence(capture.structuredContent).evidence_id).toBe( example.input.source.evidence_id, diff --git a/tests/boundary/mcp/androidLateCompletionMcp.test.ts b/tests/boundary/mcp/androidLateCompletionMcp.test.ts index 5f7be389a53..c8135c2a615 100644 --- a/tests/boundary/mcp/androidLateCompletionMcp.test.ts +++ b/tests/boundary/mcp/androidLateCompletionMcp.test.ts @@ -71,7 +71,7 @@ it("retains completed Android Evidence through the MCP cancellation delivery pat await client.connect(clientTransport); const request = { name: "inspect_android_package", - arguments: { detail: "complete", path: fixture.apk }, + arguments: { path: fixture.apk }, }; const controlReply = await client.callTool(request); expect(controlReply.isError).not.toBe(true); diff --git a/tests/boundary/mcp/artifactArmSlicesMcp.test.ts b/tests/boundary/mcp/artifactArmSlicesMcp.test.ts index 688507b72f4..a8546d5afa4 100644 --- a/tests/boundary/mcp/artifactArmSlicesMcp.test.ts +++ b/tests/boundary/mcp/artifactArmSlicesMcp.test.ts @@ -35,7 +35,7 @@ describe.skipIf(process.platform !== "darwin")( expect(opened.isError, JSON.stringify(opened.content)).not.toBe(true); const inspected = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inspected.isError, JSON.stringify(inspected.content)).not.toBe( true, diff --git a/tests/boundary/mcp/artifactInspectionCoverageMcp.test.ts b/tests/boundary/mcp/artifactInspectionCoverageMcp.test.ts index 6e9f29245e7..22e4b44ab61 100644 --- a/tests/boundary/mcp/artifactInspectionCoverageMcp.test.ts +++ b/tests/boundary/mcp/artifactInspectionCoverageMcp.test.ts @@ -84,7 +84,7 @@ describe.skipIf(process.platform === "win32")( expect(opened.isError, JSON.stringify(opened)).not.toBe(true); const inspected = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inspected.isError, JSON.stringify(inspected)).not.toBe(true); const parent = parseEvidence(inspected.structuredContent); diff --git a/tests/boundary/mcp/artifactMcp.test.ts b/tests/boundary/mcp/artifactMcp.test.ts index 261b42ed7da..ea22ef1d865 100644 --- a/tests/boundary/mcp/artifactMcp.test.ts +++ b/tests/boundary/mcp/artifactMcp.test.ts @@ -163,7 +163,7 @@ it.for([ const result = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(result.isError).toBe(true); const projected = parseMcpToolError(result); @@ -281,7 +281,7 @@ it("preserves raw legacy ZIP name bytes and CP437 path interpretation through MC expect(opened.isError).not.toBe(true); const inspected = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inspected.isError).not.toBe(true); const result = toolEvidence(inspected.structuredContent); @@ -399,7 +399,6 @@ it("records an explicitly continued mismatch, preserves verified siblings, and n const result = await client.callTool({ name: "inspect_artifact", arguments: { - detail: "complete", integrity_policy: "record-and-continue", }, }); @@ -610,7 +609,7 @@ it("returns full artifact graphs inline and compares changed inventories", async expect(opened.isError).not.toBe(true); const inspected = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inspected.isError).not.toBe(true); const inspectionResult = toolEvidence(inspected.structuredContent); @@ -642,7 +641,7 @@ it("returns full artifact graphs inline and compares changed inventories", async ]); const inventory = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inventory.isError).not.toBe(true); const inventoryResult = toolEvidence(inventory.structuredContent); @@ -679,7 +678,7 @@ it("returns full artifact graphs inline and compares changed inventories", async expect(openedChanged.isError).not.toBe(true); const changedInventory = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); const changedResult = toolEvidence(changedInventory.structuredContent); const changedInspection = z @@ -841,7 +840,7 @@ const inspectArtifactInventoryThroughMcp = async ( expect(opened.isError).not.toBe(true); const reply = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(reply.isError).not.toBe(true); const inspection = artifactInspectionResultSchema.parse( @@ -1391,10 +1390,7 @@ it("attributes ASAR integrity contradictions to their actual inputs and withhold ).not.toBe(true); const inspected = await client.callTool({ name: "inspect_artifact", - arguments: { - detail: "complete", - integrity_policy: "record-and-continue", - }, + arguments: { integrity_policy: "record-and-continue" }, }); expect(inspected.isError).not.toBe(true); observations.push(toolEvidence(inspected.structuredContent)); diff --git a/tests/boundary/mcp/batchSourcePublicationCleanup.test.ts b/tests/boundary/mcp/batchSourcePublicationCleanup.test.ts index 7268c1f009d..6a6e3916c30 100644 --- a/tests/boundary/mcp/batchSourcePublicationCleanup.test.ts +++ b/tests/boundary/mcp/batchSourcePublicationCleanup.test.ts @@ -131,7 +131,6 @@ it("keeps a batch cleanup owner and its completed prefix after source retention (await call("open_binary", { path: target, format: "dos-com" })).isError, ).not.toBe(true); const response = await call("batch_decompile", { - detail: "complete", addresses: ["first", "second"], }); expectRecoveredBatch(response, owned); diff --git a/tests/boundary/mcp/batchSourcePublicationRecovery.test.ts b/tests/boundary/mcp/batchSourcePublicationRecovery.test.ts index 076ebfe6105..ed7e6d42455 100644 --- a/tests/boundary/mcp/batchSourcePublicationRecovery.test.ts +++ b/tests/boundary/mcp/batchSourcePublicationRecovery.test.ts @@ -98,7 +98,7 @@ it.each([ await client.connect(ct); const response = await client.callTool({ name: "batch_decompile", - arguments: { detail: "complete", addresses: ["example"] }, + arguments: { addresses: ["example"] }, }); expect(response.isError).toBe(true); const error = parseMcpToolError(response).error; diff --git a/tests/boundary/mcp/binaryDiagnosticsMcp.test.ts b/tests/boundary/mcp/binaryDiagnosticsMcp.test.ts index dbae1f470bd..4be7ddd2ef0 100644 --- a/tests/boundary/mcp/binaryDiagnosticsMcp.test.ts +++ b/tests/boundary/mcp/binaryDiagnosticsMcp.test.ts @@ -79,7 +79,7 @@ it("reports the exhausted native export allowance through MCP", async () => { await writeFile(path, fixture.bytes); const response = await client.callTool({ name: "inspect_native_exports", - arguments: { detail: "complete", path }, + arguments: { path }, }); const { error } = parseMcpToolError(response); expect(error).toMatchObject({ @@ -231,7 +231,7 @@ it.each([false, true])( await client.connect(clientTransport); const response = await client.callTool({ name: "inspect_byte_entropy", - arguments: { detail: "complete", path, block_size: 256 }, + arguments: { path, block_size: 256 }, }); const failure = parseMcpToolError(response).error; expect(failure).toMatchObject({ @@ -333,10 +333,7 @@ it("records inline layout with compact schemas and canonical path checks", async }), ).toBe(false); const response = await client.callTool( - { - name: "inspect_binary_layout", - arguments: { detail: "complete", path: value.artifact.path }, - }, + { name: "inspect_binary_layout", arguments: { path: value.artifact.path } }, { toolDefinition: schemas.toolDefinition }, ); const evidence = assertRecordedMcpEvidence( @@ -368,7 +365,7 @@ it("records inline layout with compact schemas and canonical path checks", async }); const relative = await client.callTool({ name: "inspect_binary_layout", - arguments: { detail: "complete", path: "relative.elf" }, + arguments: { path: "relative.elf" }, }); expect(parseMcpToolError(relative).error.code).toBe("invalid_request"); expect(providerCalls).toBe(1); @@ -421,7 +418,7 @@ it("profiles real bytes with exact offsets, valid advertised schemas and read-on ); expect(ajv.validate(inputSchema, { path, surprise: true })).toBe(false); const response = await client.callTool( - { name: "inspect_byte_entropy", arguments: { detail: "complete", path } }, + { name: "inspect_byte_entropy", arguments: { path } }, { toolDefinition }, ); expect(response.isError).not.toBe(true); @@ -450,7 +447,7 @@ it("profiles real bytes with exact offsets, valid advertised schemas and read-on ( await client.callTool({ name: "inspect_byte_entropy", - arguments: { detail: "complete", path, offset: 999999 }, + arguments: { path, offset: 999999 }, }) ).isError, ).toBe(true); @@ -491,7 +488,7 @@ it("records a portable export inventory through MCP without a binary target", as ); expect(schemas.ajv.validate(schemas.inputSchema, { path })).toBe(true); const response = await client.callTool( - { name: "inspect_native_exports", arguments: { detail: "complete", path } }, + { name: "inspect_native_exports", arguments: { path } }, { toolDefinition: schemas.toolDefinition }, ); expect( @@ -523,7 +520,7 @@ it("records a portable export inventory through MCP without a binary target", as ); const relative = await client.callTool({ name: "inspect_native_exports", - arguments: { detail: "complete", path: "relative.so" }, + arguments: { path: "relative.so" }, }); expect(parseMcpToolError(relative).error).toMatchObject({ code: "invalid_request", diff --git a/tests/boundary/mcp/browserMcp.test.ts b/tests/boundary/mcp/browserMcp.test.ts index f6ea8d03ffd..cefa90686bb 100644 --- a/tests/boundary/mcp/browserMcp.test.ts +++ b/tests/boundary/mcp/browserMcp.test.ts @@ -32,7 +32,6 @@ import { type FakeCdpBrowser, type FakeOptions, } from "../../fixtures/fakeCdpBrowser.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; const schemaValidation = createMcpSchemaValidation(); const resources = new ArtifactResourceScope(); @@ -260,7 +259,6 @@ cliTest( const cliResult = await cli.run({ arguments: [ "analyze-web-bundle", - ...COMPLETE_DETAIL, browser.endpoint, "allowed-page", "--allowed-origins", @@ -448,7 +446,6 @@ it("exposes CLI-equivalent Evidence results and session tools", async () => { const analyzed = await connected.client.callTool({ name: "analyze_web_bundle", arguments: { - detail: "complete", cdp_endpoint: browser.endpoint, target_id: "allowed-page", observation_ms: 0, @@ -777,7 +774,6 @@ cliTest( const result = await connected.client.callTool({ name: "analyze_web_bundle", arguments: { - detail: "complete", cdp_endpoint: browser.endpoint, target_id: "allowed-page", allowed_origins: [browser.allowedOrigin], @@ -816,7 +812,6 @@ cliTest( const cliResult = await cli.run({ arguments: [ "analyze-web-bundle", - ...COMPLETE_DETAIL, browser.endpoint, "allowed-page", "--allowed-origins", diff --git a/tests/boundary/mcp/browserScenarioInputDiagnosticsMcp.test.ts b/tests/boundary/mcp/browserScenarioInputDiagnosticsMcp.test.ts index bf4244ae1b8..4e089203d12 100644 --- a/tests/boundary/mcp/browserScenarioInputDiagnosticsMcp.test.ts +++ b/tests/boundary/mcp/browserScenarioInputDiagnosticsMcp.test.ts @@ -12,7 +12,6 @@ import { } from "../../fixtures/mcpToolError.js"; import { cliTest } from "../../support/cli/cliFixture.js"; import { createMcpSchemaValidation } from "../../fixtures/mcpSchemaValidation.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; // Compile SDK output validators for the tools a test calls, not the whole catalog. const schemaValidation = createMcpSchemaValidation(); @@ -141,7 +140,6 @@ cliTest( const cliResult = await cli.run({ arguments: [ "capture-browser-scenario", - ...COMPLETE_DETAIL, JSON.stringify(input), "--json", ], diff --git a/tests/boundary/mcp/bunStandaloneMcp.test.ts b/tests/boundary/mcp/bunStandaloneMcp.test.ts index c6dcb8aadbe..3f032f43d78 100644 --- a/tests/boundary/mcp/bunStandaloneMcp.test.ts +++ b/tests/boundary/mcp/bunStandaloneMcp.test.ts @@ -87,10 +87,7 @@ it("keeps a budget-limited Bun layout unresolved through MCP", async () => { for (const moduleCount of [9, 13]) { const reply = await client.callTool({ name: "inspect_artifact", - arguments: { - detail: "complete", - artifact_limits: { bun: { module_count: moduleCount } }, - }, + arguments: { artifact_limits: { bun: { module_count: moduleCount } } }, }); expect(reply.isError).toBe(true); expect(parseMcpToolError(reply).error).toMatchObject({ diff --git a/tests/boundary/mcp/capabilityRemediationMcp.test.ts b/tests/boundary/mcp/capabilityRemediationMcp.test.ts index 76e57d88300..0c86383f608 100644 --- a/tests/boundary/mcp/capabilityRemediationMcp.test.ts +++ b/tests/boundary/mcp/capabilityRemediationMcp.test.ts @@ -231,7 +231,7 @@ it.skipIf(process.platform === "win32")( const failed = (await client.callTool({ name: "inspect_with_objdump", - arguments: { detail: "complete", operation: "architectures" }, + arguments: { operation: "architectures" }, })) as CallToolResult; expect(failed.isError).toBe(true); const parsedFailure = parseMcpToolError(failed); @@ -266,7 +266,7 @@ it.skipIf(process.platform === "win32")( const retried = await client.callTool({ name: "inspect_with_objdump", - arguments: { detail: "complete", operation: "architectures" }, + arguments: { operation: "architectures" }, }); expect(retried.isError).not.toBe(true); diff --git a/tests/boundary/mcp/commandObservationViews.test.ts b/tests/boundary/mcp/commandObservationViews.test.ts index 0057c21f16b..35a61277b29 100644 --- a/tests/boundary/mcp/commandObservationViews.test.ts +++ b/tests/boundary/mcp/commandObservationViews.test.ts @@ -120,7 +120,7 @@ it("delivers ordered GDB records once and queries their retained parent after cl ); const input = { session_id: sessionId, command: capture.command }; const full = await client.callTool( - { name: "gdb_console", arguments: { ...input, detail: "complete" } }, + { name: "gdb_console", arguments: input }, { toolDefinition: schemas.toolDefinition }, ); const summary = await client.callTool( @@ -191,10 +191,7 @@ it("keeps pathless objdump observations subjectless and preserves the default co }), ).toBe(true); const full = await client.callTool( - { - name: "inspect_with_objdump", - arguments: { detail: "complete", operation: "architectures" }, - }, + { name: "inspect_with_objdump", arguments: { operation: "architectures" } }, { toolDefinition: schemas.toolDefinition }, ); const selected = await client.callTool( diff --git a/tests/boundary/mcp/completionInventoryAliasMcp.test.ts b/tests/boundary/mcp/completionInventoryAliasMcp.test.ts index 5adbb241016..324a2cad7cc 100644 --- a/tests/boundary/mcp/completionInventoryAliasMcp.test.ts +++ b/tests/boundary/mcp/completionInventoryAliasMcp.test.ts @@ -56,7 +56,7 @@ it.each([false, true])( await client.connect(clientTransport); const listed = await client.callTool({ name: "list_procedures", - arguments: { detail: "complete" }, + arguments: {}, }); expect(listed.isError).not.toBe(true); expect(listed.structuredContent).toMatchObject({ diff --git a/tests/boundary/mcp/debuggerExternalMutationLifecycleMcp.test.ts b/tests/boundary/mcp/debuggerExternalMutationLifecycleMcp.test.ts index 474f5d9a63e..700ca3b70f9 100644 --- a/tests/boundary/mcp/debuggerExternalMutationLifecycleMcp.test.ts +++ b/tests/boundary/mcp/debuggerExternalMutationLifecycleMcp.test.ts @@ -185,15 +185,9 @@ const GDB: Debugger = { session, { recordEvidence }, ), - command: { - name: "gdb_console", - arguments: { ...GDB_CONSOLE, detail: "complete" }, - }, + command: { name: "gdb_console", arguments: GDB_CONSOLE }, next: { - call: { - name: "gdb_console", - arguments: { ...GDB_CONSOLE, detail: "complete" }, - }, + call: { name: "gdb_console", arguments: GDB_CONSOLE }, runs: "execute", }, close: { name: "close_gdb_session", arguments: { session_id: SESSION_ID } }, diff --git a/tests/boundary/mcp/desktopApplicationMcp.test.ts b/tests/boundary/mcp/desktopApplicationMcp.test.ts index 625962a6b7a..9d99d5b6dff 100644 --- a/tests/boundary/mcp/desktopApplicationMcp.test.ts +++ b/tests/boundary/mcp/desktopApplicationMcp.test.ts @@ -74,7 +74,7 @@ it.each([false, true])( expect(selected.isError).not.toBe(true); const inspected = await harness.client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inspected.isError).not.toBe(true); const inspection = artifactInspectionResultSchema.parse( diff --git a/tests/boundary/mcp/devicetreeMcp.test.ts b/tests/boundary/mcp/devicetreeMcp.test.ts index 8ccb28e9498..c8ef0dcf06c 100644 --- a/tests/boundary/mcp/devicetreeMcp.test.ts +++ b/tests/boundary/mcp/devicetreeMcp.test.ts @@ -244,7 +244,7 @@ mcpTest("rejects relative paths and unsupported versions", async ({ mcp }) => { try { const response = await client.callTool({ name: "inspect_devicetree", - arguments: { detail: "complete", path: "board.dtb" }, + arguments: { path: "board.dtb" }, }); expect(parseMcpToolError(response).error).toMatchObject({ code: "invalid_request", @@ -254,7 +254,7 @@ mcpTest("rejects relative paths and unsupported versions", async ({ mcp }) => { await writeFile(path, devicetreeFixture(undefined, 18)); const unsupported = await client.callTool({ name: "inspect_devicetree", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(parseMcpToolError(unsupported).error).toMatchObject({ code: "unsupported_target", diff --git a/tests/boundary/mcp/electronMcp.test.ts b/tests/boundary/mcp/electronMcp.test.ts index 8f18adeec02..1971bf34b28 100644 --- a/tests/boundary/mcp/electronMcp.test.ts +++ b/tests/boundary/mcp/electronMcp.test.ts @@ -74,7 +74,6 @@ it("retains failed JavaScript inventory cleanup through server shutdown retries" const response = await client.callTool({ name: "analyze_javascript_application", arguments: { - detail: "complete", input_path: archive, integrity_policy: "record-and-continue", }, @@ -213,7 +212,7 @@ it("lets MCP JavaScript analysis continue only with recorded untrusted ASAR byte const rejected = await client.callTool({ name: "analyze_javascript_application", - arguments: { detail: "complete", input_path: archive }, + arguments: { input_path: archive }, }); expect(parseMcpToolError(rejected)).toMatchObject({ error: { @@ -227,7 +226,6 @@ it("lets MCP JavaScript analysis continue only with recorded untrusted ASAR byte const continued = await client.callTool({ name: "analyze_javascript_application", arguments: { - detail: "complete", input_path: archive, integrity_policy: "record-and-continue", }, @@ -378,7 +376,7 @@ it("exposes endpoint-scoped Electron discovery and inspection as Evidence", asyn ); const analyzed = await client.callTool({ name: "analyze_javascript_application", - arguments: { detail: "complete", input_path: root }, + arguments: { input_path: root }, }); expect(analyzed.isError).not.toBe(true); expect(analyzed.structuredContent).toMatchObject({ @@ -663,7 +661,7 @@ it("exposes the target-free static JavaScript application workflow", async () => const analyzed = await client.callTool( { name: "analyze_javascript_application", - arguments: { detail: "complete", input_path: root }, + arguments: { input_path: root }, }, { onprogress: (update) => progress.push(update.progress) }, ); @@ -765,13 +763,13 @@ it.skipIf(process.platform === "win32")( await client.connect(clientTransport); const initial = await client.callTool({ name: "analyze_javascript_application", - arguments: { detail: "complete", input_path: join(root, "app") }, + arguments: { input_path: join(root, "app") }, }); expect(initial.isError, JSON.stringify(initial)).not.toBe(true); const initialEvidence = parseEvidence(initial.structuredContent); const refused = await client.callTool({ name: "analyze_javascript_application", - arguments: { detail: "complete", input_path: `${root}/file/../app` }, + arguments: { input_path: `${root}/file/../app` }, }); expect(refused.isError).toBe(true); expect(parseMcpToolError(refused)).toMatchObject({ @@ -783,7 +781,7 @@ it.skipIf(process.platform === "win32")( const selected = `${root}/link/../app`; const admitted = await client.callTool({ name: "analyze_javascript_application", - arguments: { detail: "complete", input_path: selected }, + arguments: { input_path: selected }, }); expect(admitted.isError, JSON.stringify(admitted)).not.toBe(true); const evidence = parseEvidence(admitted.structuredContent); diff --git a/tests/boundary/mcp/erlangBeamMcp.test.ts b/tests/boundary/mcp/erlangBeamMcp.test.ts index 05808f93801..32595ff727c 100644 --- a/tests/boundary/mcp/erlangBeamMcp.test.ts +++ b/tests/boundary/mcp/erlangBeamMcp.test.ts @@ -54,7 +54,7 @@ mcpTest( await writeFile(path, erlangBeamFixture("mcp_mod")); const response = await client.callTool({ name: "inspect_erlang_beam", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(response.isError, JSON.stringify(response.content)).not.toBe(true); const evidence = completeBeamEvidenceSchema.parse( @@ -159,7 +159,7 @@ mcpTest( ); const response = await client.callTool({ name: "inspect_erlang_beam", - arguments: { detail: "complete", path: malformed, max_atoms: 1 }, + arguments: { path: malformed, max_atoms: 1 }, }); expect(parseMcpToolError(response).error).toMatchObject({ code: "unsupported_target", @@ -207,7 +207,7 @@ mcpTest( await writeFile(path, erlangBeamFixture("without_retention")); const complete = await client.callTool({ name: "inspect_erlang_beam", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(complete.isError).not.toBe(true); expect( @@ -235,7 +235,7 @@ mcpTest( ); const response = await client.callTool({ name: "inspect_erlang_beam", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(parseMcpToolError(response).error).toMatchObject({ code: "unsupported_target", diff --git a/tests/boundary/mcp/errorEvidenceLifecycleMcp.test.ts b/tests/boundary/mcp/errorEvidenceLifecycleMcp.test.ts index 257ce3ddc21..c6e4da02e64 100644 --- a/tests/boundary/mcp/errorEvidenceLifecycleMcp.test.ts +++ b/tests/boundary/mcp/errorEvidenceLifecycleMcp.test.ts @@ -42,7 +42,7 @@ const fixture = () => const invalidKey = `unexpected_${"x".repeat(6_000)}`; const invalidRequest = { name: "procedure_pseudo_code", - arguments: { detail: "complete", [invalidKey]: true }, + arguments: { [invalidKey]: true }, }; const retainedReference = (reply: CallToolResult): string => { const projected = parseMcpToolError(reply).error; diff --git a/tests/boundary/mcp/flutterMcp.test.ts b/tests/boundary/mcp/flutterMcp.test.ts index ef92371563a..13dc221fe78 100644 --- a/tests/boundary/mcp/flutterMcp.test.ts +++ b/tests/boundary/mcp/flutterMcp.test.ts @@ -243,7 +243,7 @@ it("advertises and enforces the same Unicode selector grammar through MCP", asyn ( await harness.client.callTool({ name: "inspect_dart_aot", - arguments: { ...arguments_, detail: "complete" }, + arguments: arguments_, }) ).isError, ).not.toBe(true); @@ -262,7 +262,7 @@ it("advertises and enforces the same Unicode selector grammar through MCP", asyn ); const refused = await harness.client.callTool({ name: "inspect_dart_aot", - arguments: { ...arguments_, detail: "complete" }, + arguments: arguments_, }); expect(parseMcpToolError(refused).error).toMatchObject({ code: "invalid_request", @@ -320,11 +320,7 @@ it("advertises an exact valid Flutter schema and records inline evidence through const inspected = await client.callTool({ name: "inspect_dart_aot", - arguments: { - detail: "complete", - path: "/targets/gallery.apk", - abi: "arm64-v8a", - }, + arguments: { path: "/targets/gallery.apk", abi: "arm64-v8a" }, }); expect(inspected.isError).not.toBe(true); const inspectedText = (inspected.content as { readonly text?: string }[]) diff --git a/tests/boundary/mcp/fridaLifecycleMcp.test.ts b/tests/boundary/mcp/fridaLifecycleMcp.test.ts index ade71a91e33..0ce4bc05de3 100644 --- a/tests/boundary/mcp/fridaLifecycleMcp.test.ts +++ b/tests/boundary/mcp/fridaLifecycleMcp.test.ts @@ -309,7 +309,7 @@ it.each(["attached", "during-resume", "after-resume"] as const)( const state = async () => { const result = await fixture.client.callTool({ name: "frida_session_status", - arguments: { detail: "complete", session_id: id }, + arguments: { session_id: id }, }); return fridaSessionStatusSchema.parse( toolContract("frida_session_status").outputSchema.parse( @@ -382,7 +382,7 @@ it("retains detached state and resume evidence when remote cleanup needs retry", expect((await close()).isError).toBe(true); const result = await fixture.client.callTool({ name: "frida_session_status", - arguments: { detail: "complete", session_id: id }, + arguments: { session_id: id }, }); expect( fridaSessionStatusSchema.parse( @@ -548,7 +548,7 @@ it.each([ ).toBeLessThanOrEqual(32_768); const status = await client.callTool({ name: "frida_session_status", - arguments: { detail: "complete", session_id: sessionId }, + arguments: { session_id: sessionId }, }); expect(status.isError).not.toBe(true); expect( @@ -637,7 +637,7 @@ it("declares non-destructive session mutation when status retains Evidence", asy expect((await bundle()).records).toHaveLength(0); const response = await client.callTool({ name: "frida_session_status", - arguments: { detail: "complete", session_id: id }, + arguments: { session_id: id }, }); expect(response.isError).not.toBe(true); const evidence = toolContract("frida_session_status").outputSchema.parse( @@ -687,10 +687,7 @@ it("declares non-destructive session mutation when status retains Evidence", asy const missing = await client.callTool({ name: "frida_session_status", - arguments: { - detail: "complete", - session_id: "00000000-0000-4000-8000-000000000000", - }, + arguments: { session_id: "00000000-0000-4000-8000-000000000000" }, }); expect(parseMcpToolError(missing)).toMatchObject({ error: { code: "invalid_request" }, @@ -1282,7 +1279,7 @@ it.each([ ( await fixture.client.callTool({ name: "frida_session_status", - arguments: { detail: "complete", session_id: id }, + arguments: { session_id: id }, }) ).isError, ).not.toBe(true); diff --git a/tests/boundary/mcp/gdbCancellationMcp.test.ts b/tests/boundary/mcp/gdbCancellationMcp.test.ts index cdb6620e017..726cbc6ab5b 100644 --- a/tests/boundary/mcp/gdbCancellationMcp.test.ts +++ b/tests/boundary/mcp/gdbCancellationMcp.test.ts @@ -121,11 +121,7 @@ process.stdin.on("data", (chunk) => { const command = await client.callTool({ name: "gdb_console", - arguments: { - detail: "complete", - session_id: sessionId, - command: "show version", - }, + arguments: { session_id: sessionId, command: "show version" }, }); expect(parseMcpToolError(command)).toMatchObject({ error: { code: "invalid_request" }, @@ -216,11 +212,7 @@ process.stdin.on("data", async (chunk) => { const command = client.callTool( { name: "gdb_console", - arguments: { - detail: "complete", - session_id: sessionId, - command: "shell sleep 600", - }, + arguments: { session_id: sessionId, command: "shell sleep 600" }, }, { signal: controller.signal }, ); @@ -244,11 +236,7 @@ process.stdin.on("data", async (chunk) => { parseMcpToolError( (await client.callTool({ name: "gdb_console", - arguments: { - detail: "complete", - session_id: sessionId, - command: "info registers", - }, + arguments: { session_id: sessionId, command: "info registers" }, })) as CallToolResult, ).error, ).toMatchObject({ @@ -521,7 +509,6 @@ it("records partial GDB Evidence from an MCP command error", async () => { const response = await client.callTool({ name: "gdb_console", arguments: { - detail: "complete", session_id: "00000000-0000-4000-8000-000000000001", command: "info registers", }, @@ -577,11 +564,7 @@ it("recovers only the owning debugger cleanup and reopens admitted analysis", as await client.connect(clientTransport); const command = await client.callTool({ name: "gdb_console", - arguments: { - detail: "complete", - session_id: ownerId, - command: "shell writer", - }, + arguments: { session_id: ownerId, command: "shell writer" }, }); expect(command.isError).toBe(true); diff --git a/tests/boundary/mcp/gdbCloseDisposition.test.ts b/tests/boundary/mcp/gdbCloseDisposition.test.ts index 66209bcf438..2cd4da7e7fd 100644 --- a/tests/boundary/mcp/gdbCloseDisposition.test.ts +++ b/tests/boundary/mcp/gdbCloseDisposition.test.ts @@ -76,7 +76,7 @@ createInterface({ input: process.stdin }).on('line', line => { ).session_id; const running = await client.callTool({ name: "gdb_console", - arguments: { detail: "complete", session_id: sessionId, command: "run" }, + arguments: { session_id: sessionId, command: "run" }, }); expect(running.isError).not.toBe(true); for (let attempt = 0; attempt < 2; attempt += 1) { @@ -103,11 +103,7 @@ createInterface({ input: process.stdin }).on('line', line => { } const disposed = await client.callTool({ name: "gdb_console", - arguments: { - detail: "complete", - session_id: sessionId, - command: disposition, - }, + arguments: { session_id: sessionId, command: disposition }, }); expect(disposed.isError).not.toBe(true); const closed = await client.callTool({ diff --git a/tests/boundary/mcp/gdbExecutableSelection.test.ts b/tests/boundary/mcp/gdbExecutableSelection.test.ts index c6836d44790..f670b65631b 100644 --- a/tests/boundary/mcp/gdbExecutableSelection.test.ts +++ b/tests/boundary/mcp/gdbExecutableSelection.test.ts @@ -29,7 +29,6 @@ import { fakeGdbStartupPreamble, } from "../providers/gdbTestHelpers.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; -import { COMPLETE_DETAIL } from "../../support/completeDetail.js"; const selectedBytes = Buffer.from("caller-selected executable bytes\n"); const selectedDigest = createHash("sha256").update(selectedBytes).digest("hex"); @@ -57,7 +56,6 @@ it.skipIf(process.platform === "win32")( }); const reply = await serveInProcessCli(cli, [ "debug-with-gdb", - ...COMPLETE_DETAIL, "info files", "--executable", f.executable, @@ -287,7 +285,7 @@ it.skipIf(process.platform === "win32")( for (const command of ["info files", "file /other/file", "info files"]) { const reply = await f.client.callTool({ name: "gdb_console", - arguments: { detail: "complete", session_id, command }, + arguments: { session_id, command }, }); expect(reply.isError).not.toBe(true); const evidence = evidenceSchema.parse(reply.structuredContent); @@ -324,7 +322,7 @@ it.skipIf(process.platform === "win32")( const { session_id } = startSchema.parse(started.structuredContent); const reply = await f.client.callTool({ name: "gdb_console", - arguments: { detail: "complete", session_id, command: "info files" }, + arguments: { session_id, command: "info files" }, }); const evidence = evidenceSchema.parse(reply.structuredContent); expect(evidence.subject.identity).toMatchObject({ diff --git a/tests/boundary/mcp/ghidraReopen.test.ts b/tests/boundary/mcp/ghidraReopen.test.ts index 2dec821fedf..a9bcd8e20a5 100644 --- a/tests/boundary/mcp/ghidraReopen.test.ts +++ b/tests/boundary/mcp/ghidraReopen.test.ts @@ -210,7 +210,7 @@ const connectGhidra = async () => { query: (addressSuffix: number) => mcp.callTool({ name: "list_strings", - arguments: { detail: "complete", address: `0x200${addressSuffix}` }, + arguments: { address: `0x200${addressSuffix}` }, }), }; }; diff --git a/tests/boundary/mcp/ghidraStartupCancellationMcp.test.ts b/tests/boundary/mcp/ghidraStartupCancellationMcp.test.ts index 5808b499010..4e284248796 100644 --- a/tests/boundary/mcp/ghidraStartupCancellationMcp.test.ts +++ b/tests/boundary/mcp/ghidraStartupCancellationMcp.test.ts @@ -104,7 +104,7 @@ it.each([0, 1])( calls.push( mcp .callTool( - { name: "list_strings", arguments: { detail: "complete" } }, + { name: "list_strings", arguments: {} }, { signal: controller.signal }, ) .then( @@ -133,10 +133,7 @@ it.each([0, 1])( expect(staying.value.isError).not.toBe(true); expect(startResults[1 - cancelledIndex]).toMatchObject({ ok: true }); expect(controllers[1 - cancelledIndex]?.signal.aborted).toBe(false); - const warm = await mcp.callTool({ - name: "list_strings", - arguments: { detail: "complete" }, - }); + const warm = await mcp.callTool({ name: "list_strings", arguments: {} }); expect(warm.isError).not.toBe(true); expect(startCount).toBe(3); expect(queryCount).toBe(2); diff --git a/tests/boundary/mcp/goBinaryMcp.test.ts b/tests/boundary/mcp/goBinaryMcp.test.ts index ed606856dc2..17101522e99 100644 --- a/tests/boundary/mcp/goBinaryMcp.test.ts +++ b/tests/boundary/mcp/goBinaryMcp.test.ts @@ -98,7 +98,7 @@ mcpTest( }); inspection = client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path }, + arguments: { path }, }); await goInspection.reached(inspection, "Go inspection"); closing = client.callTool({ @@ -160,7 +160,7 @@ for (const expectedErrno of ["ELOOP", "ENAMETOOLONG"] as const) { ); const response = await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path }, + arguments: { path }, }); const diagnostic = parseMcpToolError(response); expect(diagnostic.error).toMatchObject({ @@ -194,7 +194,7 @@ goMcpTest.skipIf(process.platform === "win32")( const rejected = await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path: selected }, + arguments: { path: selected }, }); const diagnostic = parseMcpToolError(rejected).error; expect(diagnostic).toMatchObject({ @@ -208,7 +208,7 @@ goMcpTest.skipIf(process.platform === "win32")( const retried = await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path: original }, + arguments: { path: original }, }); expect(retried.isError).not.toBe(true); }, @@ -226,7 +226,7 @@ for (const targetKind of ["dangling", "directory"] as const) { const rejected = await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path: selected }, + arguments: { path: selected }, }); const diagnostic = parseMcpToolError(rejected).error; expect(diagnostic).toMatchObject({ @@ -255,7 +255,7 @@ goMcpTest( await writeFile(path, fixture.bytes); const response = await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(response.isError).not.toBe(true); const evidence = evidenceResultOf(goBinarySchema).parse( @@ -277,7 +277,7 @@ goMcpTest( await writeFile(path, fixture.bytes); const response = await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect( response.isError, @@ -352,7 +352,7 @@ goMcpTest( }); const nulPath = await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path: "/artifacts/\0program" }, + arguments: { path: "/artifacts/\0program" }, }); expect(parseMcpToolError(nulPath)).toMatchObject({ error: { @@ -367,7 +367,7 @@ goMcpTest( }); await writeFile(path, fixture.bytes); const response = await client.callTool( - { name: "inspect_go_binary", arguments: { detail: "complete", path } }, + { name: "inspect_go_binary", arguments: { path } }, { toolDefinition: withCanonicalOutputSchema(advertised) }, ); expect(response.isError).not.toBe(true); @@ -387,7 +387,7 @@ goMcpTest( expect(session.evidenceById(evidence.evidence_id)).toEqual(evidence); const invalid = await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path: "relative.bin" }, + arguments: { path: "relative.bin" }, }); expect(parseMcpToolError(invalid)).toMatchObject({ error: { diff --git a/tests/boundary/mcp/goBinaryViews.test.ts b/tests/boundary/mcp/goBinaryViews.test.ts index 63beea950ed..454656ea739 100644 --- a/tests/boundary/mcp/goBinaryViews.test.ts +++ b/tests/boundary/mcp/goBinaryViews.test.ts @@ -119,10 +119,7 @@ goViewTest( "rejects authenticated inline and file parents with conflicting architecture", async ({ goViews: { client, root, call } }) => { const { path } = await writeGoModuleFixture(root); - const complete = await call("inspect_go_binary", { - detail: "complete", - path, - }); + const complete = await call("inspect_go_binary", { path }); const report = goBinarySchema.parse(complete.normalized_result); const conflicting = createEvidence( { @@ -178,10 +175,7 @@ goViewTest( ] = 0xff; const path = join(root, encoding); await writeFile(path, fixture.bytes); - const admitted = await call("inspect_go_binary", { - detail: "complete", - path, - }); + const admitted = await call("inspect_go_binary", { path }); const report = goBinarySchema.parse(admitted.normalized_result); const info = report.build_info; if (info === null) throw new Error("Expected observed build info"); @@ -264,10 +258,7 @@ goViewTest( "retains exact Go rows and complete Evidence after source removal", async ({ goViews: { client, root, call } }) => { const { path, bytes } = await writeGoModuleFixture(root); - const complete = await call("inspect_go_binary", { - detail: "complete", - path, - }); + const complete = await call("inspect_go_binary", { path }); const summary = await call("inspect_go_binary", { path, detail: "summary", diff --git a/tests/boundary/mcp/keyedArchiveXmlExtensionMcp.test.ts b/tests/boundary/mcp/keyedArchiveXmlExtensionMcp.test.ts index 8646e39c83b..3b5e8bb5ec2 100644 --- a/tests/boundary/mcp/keyedArchiveXmlExtensionMcp.test.ts +++ b/tests/boundary/mcp/keyedArchiveXmlExtensionMcp.test.ts @@ -50,7 +50,7 @@ mcpTest( expect(opened.isError, JSON.stringify(opened.content)).not.toBe(true); const inventoryReply = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect( inventoryReply.isError, diff --git a/tests/boundary/mcp/kunaCloseRetryMcp.test.ts b/tests/boundary/mcp/kunaCloseRetryMcp.test.ts index 9502fd14dd1..6f5bcf53d6b 100644 --- a/tests/boundary/mcp/kunaCloseRetryMcp.test.ts +++ b/tests/boundary/mcp/kunaCloseRetryMcp.test.ts @@ -72,10 +72,7 @@ it("names the same-connection close_binary retry for an unproven Kuna export sto const opened = await call("open_binary", { path: program }); expect(opened.isError, JSON.stringify(opened.content)).not.toBe(true); // The single-function answer returns while the project export stays live. - const text = await call("procedure_pseudo_code", { - detail: "complete", - procedure: "main", - }); + const text = await call("procedure_pseudo_code", { procedure: "main" }); expect(text.isError, JSON.stringify(text.content)).not.toBe(true); await expect.poll(() => exportsOf(fixture.kuna)).toHaveLength(1); diff --git a/tests/boundary/mcp/lateAbortApplicationEvidenceMcp.test.ts b/tests/boundary/mcp/lateAbortApplicationEvidenceMcp.test.ts index fa4251a9f9e..5baab6b9de4 100644 --- a/tests/boundary/mcp/lateAbortApplicationEvidenceMcp.test.ts +++ b/tests/boundary/mcp/lateAbortApplicationEvidenceMcp.test.ts @@ -58,10 +58,7 @@ it("retains late-cancelled Go artifact Evidence through MCP and keeps the server await server.connect(serverTransport); await client.connect(clientTransport); const call = client.callTool( - { - name: "inspect_go_binary", - arguments: { detail: "complete", path: report.artifact.path }, - }, + { name: "inspect_go_binary", arguments: { path: report.artifact.path } }, { signal: controller.signal }, ); await goInspection.reached(call, "MCP observation"); diff --git a/tests/boundary/mcp/managedArtifactSummaryMcp.test.ts b/tests/boundary/mcp/managedArtifactSummaryMcp.test.ts index ea0e1cbf0d2..1ccbc374ed9 100644 --- a/tests/boundary/mcp/managedArtifactSummaryMcp.test.ts +++ b/tests/boundary/mcp/managedArtifactSummaryMcp.test.ts @@ -159,7 +159,7 @@ it("keeps malformed metadata, empty returned rows and historical null subjects e const { client } = await createHarness(); const completeReply = await client.callTool({ name: "inspect_managed_artifact", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(completeReply.isError).not.toBe(true); const parent = parseEvidence(completeReply.structuredContent); @@ -260,7 +260,7 @@ it("refuses selected delivery before file access when the server cannot retain E } const complete = await client.callTool({ name: "inspect_managed_artifact", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(complete.isError).not.toBe(true); expect( diff --git a/tests/boundary/mcp/nativeMachoSummaryMcp.test.ts b/tests/boundary/mcp/nativeMachoSummaryMcp.test.ts index 04ea6751c12..9cbe5425a85 100644 --- a/tests/boundary/mcp/nativeMachoSummaryMcp.test.ts +++ b/tests/boundary/mcp/nativeMachoSummaryMcp.test.ts @@ -384,7 +384,7 @@ describe.skipIf(process.platform !== "darwin")( const complete = await client.callTool({ name: "inspect_macho", - arguments: { detail: "complete" }, + arguments: {}, }); expect(complete.isError, JSON.stringify(complete.content)).not.toBe( true, diff --git a/tests/boundary/mcp/ntfsMftAdmission.test.ts b/tests/boundary/mcp/ntfsMftAdmission.test.ts index 7f2d7e024a6..cc65efa2bca 100644 --- a/tests/boundary/mcp/ntfsMftAdmission.test.ts +++ b/tests/boundary/mcp/ntfsMftAdmission.test.ts @@ -119,7 +119,7 @@ mcpTest( expect(opened.isError, JSON.stringify(opened.content)).not.toBe(true); const inspected = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inspected.isError, JSON.stringify(inspected.content)).not.toBe(true); expectMftInventory(inspected.structuredContent); diff --git a/tests/boundary/mcp/officialArguments.test.ts b/tests/boundary/mcp/officialArguments.test.ts index 4b9ec5b20cf..c45646fc368 100644 --- a/tests/boundary/mcp/officialArguments.test.ts +++ b/tests/boundary/mcp/officialArguments.test.ts @@ -182,7 +182,7 @@ describe("official operation arguments", () => { expect(calls).toEqual([]); const valid = await client.callTool({ name: "list_procedures", - arguments: { detail: "complete" }, + arguments: {}, }); expect(valid.isError).not.toBe(true); expect(calls).toEqual(["list_procedures"]); diff --git a/tests/boundary/mcp/officialTools.test.ts b/tests/boundary/mcp/officialTools.test.ts index 1c1549530b8..c8c91f6f480 100644 --- a/tests/boundary/mcp/officialTools.test.ts +++ b/tests/boundary/mcp/officialTools.test.ts @@ -278,7 +278,7 @@ describe("official Hopper proxy tools", () => { const result = await client.callTool({ name: "list_procedures", - arguments: { detail: "complete" }, + arguments: {}, }); expect(result.structuredContent).toMatchObject({ @@ -313,7 +313,7 @@ describe("official Hopper proxy tools", () => { const result = await client.callTool({ name: "search_strings", - arguments: { detail: "complete", pattern: "coffee" }, + arguments: { pattern: "coffee" }, }); expect(result.structuredContent).toMatchObject({ diff --git a/tests/boundary/mcp/optionalProviderIsolation.test.ts b/tests/boundary/mcp/optionalProviderIsolation.test.ts index ac0c4744061..967719a3daa 100644 --- a/tests/boundary/mcp/optionalProviderIsolation.test.ts +++ b/tests/boundary/mcp/optionalProviderIsolation.test.ts @@ -217,11 +217,7 @@ mcpTest.for(failedAdapters)( await writeFile(join(directory, "index.js"), "exports.answer = 42;\n"); const analyzed = await client.callTool({ name: "analyze_javascript_application", - arguments: { - detail: "complete", - input_path: directory, - format: "directory", - }, + arguments: { input_path: directory, format: "directory" }, }); expect(analyzed.isError).not.toBe(true); expect(analyzed.structuredContent).toMatchObject({ diff --git a/tests/boundary/mcp/oversizedErrorDeliveryMcp.test.ts b/tests/boundary/mcp/oversizedErrorDeliveryMcp.test.ts index 1e571925f39..2a3effb66f6 100644 --- a/tests/boundary/mcp/oversizedErrorDeliveryMcp.test.ts +++ b/tests/boundary/mcp/oversizedErrorDeliveryMcp.test.ts @@ -392,7 +392,7 @@ it("keeps the untrusted target-content marker on an oversized error's replacemen await client.connect(clientTransport); const failure = await client.callTool({ name: "procedure_pseudo_code", - arguments: { detail: "complete" }, + arguments: {}, }); expect(failure.isError).toBe(true); expect(parseMcpToolError(failure)).toMatchObject({ @@ -406,7 +406,7 @@ it("keeps the untrusted target-content marker on an oversized error's replacemen // transport still marks them for target-content tools only. const invalidTarget = await client.callTool({ name: "list_strings", - arguments: { detail: "complete" }, + arguments: {}, }); expect(invalidTarget.isError).toBe(true); expect(invalidTarget._meta).toEqual(UNTRUSTED_TARGET_CONTENT); diff --git a/tests/boundary/mcp/pcapMcp.test.ts b/tests/boundary/mcp/pcapMcp.test.ts index 6a04f3ab26c..798e8a2fd47 100644 --- a/tests/boundary/mcp/pcapMcp.test.ts +++ b/tests/boundary/mcp/pcapMcp.test.ts @@ -116,7 +116,7 @@ it("advertises exact valid pcap schemas and records inline evidence through MCP" const inspected = await client.callTool({ name: "inspect_pcap_capture", - arguments: { detail: "complete", path: "/captures/session.pcap" }, + arguments: { path: "/captures/session.pcap" }, }); expect(inspected.isError).not.toBe(true); const text = (inspected.content as { readonly text?: string }[]) diff --git a/tests/boundary/mcp/pcapWorkspaceAllocation.test.ts b/tests/boundary/mcp/pcapWorkspaceAllocation.test.ts index 66747680b88..064dba343c8 100644 --- a/tests/boundary/mcp/pcapWorkspaceAllocation.test.ts +++ b/tests/boundary/mcp/pcapWorkspaceAllocation.test.ts @@ -77,7 +77,7 @@ const inspectWith = async (allocate: Allocate, path: string) => { return parseMcpToolError( await client.callTool({ name: "inspect_pcap_capture", - arguments: { detail: "complete", path }, + arguments: { path }, }), ).error; }; diff --git a/tests/boundary/mcp/pyinstallerArtifactMcp.test.ts b/tests/boundary/mcp/pyinstallerArtifactMcp.test.ts index 8624807b97d..21438621209 100644 --- a/tests/boundary/mcp/pyinstallerArtifactMcp.test.ts +++ b/tests/boundary/mcp/pyinstallerArtifactMcp.test.ts @@ -218,7 +218,7 @@ mcpTest.for([false, true])( expect(opened.isError).not.toBe(true); const inspected = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inspected.isError).not.toBe(true); const inspection = artifactInspectionResultSchema.parse( @@ -343,7 +343,7 @@ mcpTest( expect(opened.isError).not.toBe(true); const inspected = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inspected.isError).not.toBe(true); const inventory = artifactInspectionResultSchema.parse( @@ -396,7 +396,7 @@ mcpTest( expect(opened.isError).not.toBe(true); const inspected = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inspected.isError).not.toBe(true); const inspection = artifactInspectionResultSchema.parse( @@ -514,7 +514,7 @@ mcpTest.for([ ).not.toBe(true); const reply = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(reply.isError).not.toBe(true); const inspection = artifactInspectionResultSchema.parse( @@ -636,7 +636,7 @@ mcpTest.for([false, true])( ).not.toBe(true); const reply = await client.callTool({ name: "inspect_artifact", - arguments: { detail: "complete" }, + arguments: {}, }); expect(reply.isError).not.toBe(true); const inventory = artifactInspectionResultSchema.parse( diff --git a/tests/boundary/mcp/pythonPycMcp.test.ts b/tests/boundary/mcp/pythonPycMcp.test.ts index 1f5e50558bd..009843bac18 100644 --- a/tests/boundary/mcp/pythonPycMcp.test.ts +++ b/tests/boundary/mcp/pythonPycMcp.test.ts @@ -71,7 +71,7 @@ it("reads signed TYPE_INT64 constants and rejects a truncated payload", async () ); const response = await client.callTool({ name: "inspect_python_pyc", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(response.isError, JSON.stringify(response.content)).not.toBe(true); const { normalized_result } = completePycEvidenceSchema.parse( @@ -96,7 +96,7 @@ it("reads signed TYPE_INT64 constants and rejects a truncated payload", async () ); const truncated = await client.callTool({ name: "inspect_python_pyc", - arguments: { detail: "complete", path: truncatedPath }, + arguments: { path: truncatedPath }, }); expect(truncated.isError).toBe(true); expect(parseMcpToolError(truncated).error).toMatchObject({ @@ -141,7 +141,7 @@ it("advertises inspect_python_pyc and reads nested code objects", async () => { ]); await writeFile(path, bytes); const response = await client.callTool( - { name: "inspect_python_pyc", arguments: { detail: "complete", path } }, + { name: "inspect_python_pyc", arguments: { path } }, { toolDefinition: withCanonicalOutputSchema(advertised) }, ); expect(response.isError, JSON.stringify(response.content)).not.toBe(true); @@ -193,7 +193,7 @@ it("advertised pyc output schema preserves historical signed fields", async () = ]), ); const response = await client.callTool( - { name: "inspect_python_pyc", arguments: { detail: "complete", path } }, + { name: "inspect_python_pyc", arguments: { path } }, { toolDefinition: withCanonicalOutputSchema(advertised) }, ); expect(response.isError, JSON.stringify(response.content)).not.toBe(true); @@ -226,7 +226,7 @@ it("rejects negative code fields for magics after constructor validation was add ); const response = await client.callTool({ name: "inspect_python_pyc", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(response.isError).toBe(true); expect(parseMcpToolError(response).error).toMatchObject({ @@ -252,7 +252,7 @@ it("reports an unknown pyc magic as unsupported", async () => { await writeFile(path, bytes); const response = await client.callTool({ name: "inspect_python_pyc", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(response.isError).toBe(true); expect(parseMcpToolError(response).error).toMatchObject({ diff --git a/tests/boundary/mcp/reverseEngineeringPartialMcp.test.ts b/tests/boundary/mcp/reverseEngineeringPartialMcp.test.ts index 13d9474350c..0e5cfa2a324 100644 --- a/tests/boundary/mcp/reverseEngineeringPartialMcp.test.ts +++ b/tests/boundary/mcp/reverseEngineeringPartialMcp.test.ts @@ -72,11 +72,7 @@ mcpTest( const client = await mcp.connect(server); const result = await client.callTool({ name: "inspect_with_objdump", - arguments: { - detail: "complete", - path: "package.json", - operation: "file_headers", - }, + arguments: { path: "package.json", operation: "file_headers" }, }); const projected = parseMcpToolError(result); expect(projected.error).toMatchObject({ diff --git a/tests/boundary/mcp/serverIdentity.test.ts b/tests/boundary/mcp/serverIdentity.test.ts index 6f78200ee09..c28a0761533 100644 --- a/tests/boundary/mcp/serverIdentity.test.ts +++ b/tests/boundary/mcp/serverIdentity.test.ts @@ -262,7 +262,7 @@ describe("active-target availability over MCP", () => { }); const call = await client.callTool({ name: "inspect_macho", - arguments: { detail: "complete" }, + arguments: {}, }); expect(parseMcpToolError(call)).toMatchObject({ error: { code: "target_unavailable" }, diff --git a/tests/boundary/mcp/serverLifecycleMcp.test.ts b/tests/boundary/mcp/serverLifecycleMcp.test.ts index c65e8f9f83f..b5999434906 100644 --- a/tests/boundary/mcp/serverLifecycleMcp.test.ts +++ b/tests/boundary/mcp/serverLifecycleMcp.test.ts @@ -423,7 +423,7 @@ it("closes the bound Go, IL2CPP and web-capture services and retries failed shut await client.connect(clientTransport); const result = await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path: "/tmp/go-fixture" }, + arguments: { path: "/tmp/go-fixture" }, }); expect(result.isError).toBe(true); expect(goCalls).toBe(1); diff --git a/tests/boundary/mcp/serverUnknownsMcp.test.ts b/tests/boundary/mcp/serverUnknownsMcp.test.ts index 856067f18dc..d1d1327abd0 100644 --- a/tests/boundary/mcp/serverUnknownsMcp.test.ts +++ b/tests/boundary/mcp/serverUnknownsMcp.test.ts @@ -220,7 +220,9 @@ it("does not record capability unavailability without supporting Evidence", asyn const unavailable = await client.callTool({ name: "procedure_pseudo_code", - arguments: { detail: "complete", procedure: "main" }, + arguments: { + procedure: "main", + }, }); expect(unavailable.isError).toBe(true); expect(structured(unavailable)).toMatchObject({ diff --git a/tests/boundary/mcp/serverWorkflowMcp.test.ts b/tests/boundary/mcp/serverWorkflowMcp.test.ts index 661cfced00e..696488dd908 100644 --- a/tests/boundary/mcp/serverWorkflowMcp.test.ts +++ b/tests/boundary/mcp/serverWorkflowMcp.test.ts @@ -79,7 +79,7 @@ it("executes a realistic workflow: list methods, decompile selected, get xrefs", const listResult = await client.callTool({ name: "list_procedures", - arguments: { detail: "complete" }, + arguments: {}, }); expect(listResult.isError).not.toBe(true); expect(structured(listResult)).toMatchObject({ @@ -91,7 +91,7 @@ it("executes a realistic workflow: list methods, decompile selected, get xrefs", const decompileResult = await client.callTool({ name: "procedure_pseudo_code", - arguments: { detail: "complete", procedure: "0x1000" }, + arguments: { procedure: "0x1000" }, }); expect(structured(decompileResult)).toMatchObject({ normalized_result: "pseudo for 0x1000", diff --git a/tests/boundary/mcp/sessionAvailabilityRecovery.test.ts b/tests/boundary/mcp/sessionAvailabilityRecovery.test.ts index 34bbba75cda..7a4507e6157 100644 --- a/tests/boundary/mcp/sessionAvailabilityRecovery.test.ts +++ b/tests/boundary/mcp/sessionAvailabilityRecovery.test.ts @@ -901,7 +901,7 @@ it("keeps each provider's failures and ignores cancelled requests", async () => fixtureBroken = true; expect(await call("address_name", ADDRESS)).toBe("error"); // A cancelled request is not evidence that the provider recovered. - expect(await call("list_procedures", { detail: "complete" })).toBe("error"); + expect(await call("list_procedures", {})).toBe("error"); const fixtureFailure = { address_name: observedFailure("address_name"), current_address: inferredFailure("address_name"), @@ -1078,7 +1078,7 @@ it("restores composed tools in a scoped catalog after one composed success", asy const batchItemStatus = async () => { const reply = await client.callTool({ name: "batch_decompile", - arguments: { detail: "complete", addresses: ["0x1"] }, + arguments: { addresses: ["0x1"] }, }); expect(reply.isError).not.toBe(true); return reply.structuredContent; diff --git a/tests/boundary/mcp/sessionEvidenceReuseMcp.test.ts b/tests/boundary/mcp/sessionEvidenceReuseMcp.test.ts index efcbf06d56c..b878619eae2 100644 --- a/tests/boundary/mcp/sessionEvidenceReuseMcp.test.ts +++ b/tests/boundary/mcp/sessionEvidenceReuseMcp.test.ts @@ -199,15 +199,9 @@ it("preserves the selected path when reusing an identical observation for a diff return r.structuredContent; }; await call("open_binary", { path: first, format: "dos-com" }); - const before = await call("procedure_callees", { - detail: "complete", - procedure: "0x100", - }); + const before = await call("procedure_callees", { procedure: "0x100" }); await call("open_binary", { path: second, format: "dos-com" }); - const after = await call("procedure_callees", { - detail: "complete", - procedure: "0x100", - }); + const after = await call("procedure_callees", { procedure: "0x100" }); expect(before).toMatchObject({ subject: { name: "first.com", local_path: first }, }); @@ -224,10 +218,7 @@ it("preserves the selected path when reusing an identical observation for a diff ]), ).ok, ).toBe(true); - const sameTarget = await call("procedure_callees", { - detail: "complete", - procedure: "0x100", - }); + const sameTarget = await call("procedure_callees", { procedure: "0x100" }); expect(sameTarget).not.toHaveProperty("caller_input_path"); } finally { await client.close(); diff --git a/tests/boundary/mcp/stableArtifactSymlinkRecoveryMcp.test.ts b/tests/boundary/mcp/stableArtifactSymlinkRecoveryMcp.test.ts index ef18dbbe62d..edb1892e001 100644 --- a/tests/boundary/mcp/stableArtifactSymlinkRecoveryMcp.test.ts +++ b/tests/boundary/mcp/stableArtifactSymlinkRecoveryMcp.test.ts @@ -44,7 +44,6 @@ mcpTest.skipIf(process.platform === "win32")( const captureResponse = await client.callTool({ name: "inspect_web_network_capture", arguments: { - detail: "complete", capture_path: selected, format: "har", sensitive_values: ["unrelated marked value"], diff --git a/tests/boundary/mcp/universalSliceMcp.test.ts b/tests/boundary/mcp/universalSliceMcp.test.ts index e7ef5a91452..7156b2dd29e 100644 --- a/tests/boundary/mcp/universalSliceMcp.test.ts +++ b/tests/boundary/mcp/universalSliceMcp.test.ts @@ -110,7 +110,7 @@ sliceTest( const response = await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path, architecture: "arm64" }, + arguments: { path, architecture: "arm64" }, }); expect(response.isError, JSON.stringify(response.content)).not.toBe(true); expect( @@ -225,7 +225,7 @@ sliceTest( issues( await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path: thin, architecture: "arm64" }, + arguments: { path: thin, architecture: "arm64" }, }), ), ).toMatchObject({ @@ -310,11 +310,7 @@ sliceTest( containerRefusal( await client.callTool({ name: "inspect_go_binary", - arguments: { - detail: "complete", - path: disagreeing, - architecture: "arm64", - }, + arguments: { path: disagreeing, architecture: "arm64" }, }), ), ).toMatchObject({ @@ -360,7 +356,7 @@ sliceTest( const read = async (architecture: string) => { const response = await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path, architecture }, + arguments: { path, architecture }, }); expect(response.isError, JSON.stringify(response.content)).not.toBe(true); return goBinarySchema.parse( @@ -405,7 +401,6 @@ sliceTest( await client.callTool({ name: "inspect_go_binary", arguments: { - detail: "complete", path: await write(name, universalMacho(subtypes.map(slice)).bytes), architecture, }, @@ -446,7 +441,7 @@ sliceTest( containerRefusal( await client.callTool({ name: "inspect_go_binary", - arguments: { detail: "complete", path, architecture }, + arguments: { path, architecture }, }), ), ).toMatchObject({ @@ -473,11 +468,11 @@ sliceTest( const path = await write("universal-rust", universal.bytes); const thinResponse = await client.callTool({ name: "inspect_rust_binary", - arguments: { detail: "complete", path: thinPath }, + arguments: { path: thinPath }, }); const response = await client.callTool({ name: "inspect_rust_binary", - arguments: { detail: "complete", path, architecture: "arm64" }, + arguments: { path, architecture: "arm64" }, }); expect(response.isError, JSON.stringify(response.content)).not.toBe(true); const contract = toolContract("inspect_rust_binary"); @@ -508,7 +503,7 @@ sliceTest( issues( await client.callTool({ name: "inspect_rust_binary", - arguments: { detail: "complete", path }, + arguments: { path }, }), ).details.issues[0]?.path, ).toEqual(["architecture"]); diff --git a/tests/boundary/mcp/wasmArtifactMcp.test.ts b/tests/boundary/mcp/wasmArtifactMcp.test.ts index ea599712285..d4bbe6efcad 100644 --- a/tests/boundary/mcp/wasmArtifactMcp.test.ts +++ b/tests/boundary/mcp/wasmArtifactMcp.test.ts @@ -523,7 +523,7 @@ it("reads an oversized completed WASM result through its reported retained refer ); const reply = await harness.client.callTool({ name: "inspect_wasm_artifact", - arguments: { path: value.artifact.path, detail: "complete" }, + arguments: { path: value.artifact.path }, }); const reference = z .object({ diff --git a/tests/boundary/mcp/webBundleContainmentMcp.test.ts b/tests/boundary/mcp/webBundleContainmentMcp.test.ts index 69e58344b87..a5db7937f91 100644 --- a/tests/boundary/mcp/webBundleContainmentMcp.test.ts +++ b/tests/boundary/mcp/webBundleContainmentMcp.test.ts @@ -71,7 +71,6 @@ it("retains timeout Evidence and recovers on the same MCP server", async () => { const interrupted = await client.callTool({ name: "analyze_web_bundle", arguments: { - detail: "complete", cdp_endpoint: browser.endpoint, allowed_origins: [browser.allowedOrigin], target_id: "allowed-page", @@ -140,7 +139,6 @@ it("retains timeout Evidence and recovers on the same MCP server", async () => { const recovered = await client.callTool({ name: "analyze_web_bundle", arguments: { - detail: "complete", cdp_endpoint: browser.endpoint, allowed_origins: [browser.allowedOrigin], target_id: "allowed-page", diff --git a/tests/boundary/mcp/webNetworkCaptureMcp.test.ts b/tests/boundary/mcp/webNetworkCaptureMcp.test.ts index ab7abb99361..8bc8d095c7e 100644 --- a/tests/boundary/mcp/webNetworkCaptureMcp.test.ts +++ b/tests/boundary/mcp/webNetworkCaptureMcp.test.ts @@ -80,10 +80,7 @@ it("publishes valid SDK schemas and retains historical inline Evidence with the const args = { capture_path: "/capture.har", format: "har" }; expect(ajv.validate(inputSchema, args)).toBe(true); const response = await client.callTool( - { - name: "inspect_web_network_capture", - arguments: { ...args, detail: "complete" }, - }, + { name: "inspect_web_network_capture", arguments: args }, { toolDefinition: withCanonicalOutputSchema(advertised) }, ); expect(response.isError).not.toBe(true); @@ -174,11 +171,7 @@ it.each([false, true])( const response = await client.callTool({ name: "inspect_web_network_capture", - arguments: { - detail: "complete", - capture_path: "/capture.har", - format: "har", - }, + arguments: { capture_path: "/capture.har", format: "har" }, }); expect(response.isError).not.toBe(true); const capture = webNetworkCaptureSchema.parse( diff --git a/tests/boundary/mcp/webSourceLocationMcp.test.ts b/tests/boundary/mcp/webSourceLocationMcp.test.ts index 333105e41b9..ec127f594f7 100644 --- a/tests/boundary/mcp/webSourceLocationMcp.test.ts +++ b/tests/boundary/mcp/webSourceLocationMcp.test.ts @@ -56,10 +56,7 @@ it("validates source-location delivery and retains Evidence without a binary tar const inputSchema: Record = advertised.inputSchema; expect(ajv.validate(inputSchema, args)).toBe(true); const response = await client.callTool( - { - name: "trace_web_source_location", - arguments: { ...args, detail: "complete" }, - }, + { name: "trace_web_source_location", arguments: args }, { toolDefinition: withCanonicalOutputSchema(advertised) }, ); expect(response.isError).not.toBe(true); @@ -151,7 +148,7 @@ it("preserves missing Linux ps capability and recovery through source-map tracin for (let attempt = 0; attempt < 2; attempt += 1) { const response = await harness.client.callTool({ name: "trace_web_source_location", - arguments: { ...args, detail: "complete" }, + arguments: args, }); const { error } = parseMcpToolError(response); expect(error).toMatchObject({ diff --git a/tests/boundary/mcp/workflowSnapshotReplayMcp.test.ts b/tests/boundary/mcp/workflowSnapshotReplayMcp.test.ts index f3a81c998d2..62b90b59637 100644 --- a/tests/boundary/mcp/workflowSnapshotReplayMcp.test.ts +++ b/tests/boundary/mcp/workflowSnapshotReplayMcp.test.ts @@ -281,7 +281,7 @@ describe("MCP composed workflow snapshot replay", () => { .parse(output); const primitiveResult = await mcp.callTool({ name: "list_strings", - arguments: { detail: "complete", document: "fixture" }, + arguments: { document: "fixture" }, }); expect( primitiveResult.isError, @@ -329,7 +329,7 @@ describe("MCP composed workflow snapshot replay", () => { expect(reopened.isError, JSON.stringify(reopened.content)).not.toBe(true); const cachedPrimitive = await mcp.callTool({ name: "list_strings", - arguments: { detail: "complete", document: "fixture" }, + arguments: { document: "fixture" }, }); expect( cachedPrimitive.isError, @@ -464,7 +464,7 @@ describe("MCP investigation history snapshot replay", () => { if (disposition === "verified") { const inspected = await mcp.callTool({ name: "list_strings", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inspected.isError, JSON.stringify(inspected.content)).not.toBe( true, @@ -482,7 +482,7 @@ describe("MCP investigation history snapshot replay", () => { await openWorkflowTarget(mcp, secondPath); const unrelated = await mcp.callTool({ name: "list_strings", - arguments: { detail: "complete" }, + arguments: {}, }); expect(unrelated.isError).not.toBe(true); const foreignEvidence = toolContract("list_strings").outputSchema.parse( @@ -628,7 +628,7 @@ it("replays a source-bearing observation through an exported MCP snapshot", asyn ( await client.callTool({ name: "list_strings", - arguments: { detail: "complete", document: "fixture" }, + arguments: { document: "fixture" }, }) ).structuredContent, ); @@ -783,7 +783,7 @@ const expectRestoredSourceReplay = async ( ( await mcp.callTool({ name: "list_strings", - arguments: { detail: "complete", document: "fixture" }, + arguments: { document: "fixture" }, }) ).structuredContent, ); diff --git a/tests/boundary/process/androidAnalysisMcp.test.ts b/tests/boundary/process/androidAnalysisMcp.test.ts index eee83902970..a0d98b4805e 100644 --- a/tests/boundary/process/androidAnalysisMcp.test.ts +++ b/tests/boundary/process/androidAnalysisMcp.test.ts @@ -245,7 +245,7 @@ test.each([ const response = await client.callTool({ name: "inspect_android_package", - arguments: { detail: "complete", path: apk }, + arguments: { path: apk }, }); const projected = parseMcpToolError(response).error; expect(projected.code).toBe(errorCode); @@ -319,10 +319,7 @@ it("cleans an active engine when the MCP client disconnects", async () => { serverOptions: { androidAnalysis: provider }, }); const pending = client - .callTool({ - name: "inspect_android_package", - arguments: { detail: "complete", path: apk }, - }) + .callTool({ name: "inspect_android_package", arguments: { path: apk } }) .catch(() => undefined); await expect.poll(() => launches.length).toBe(1); await client.close(); diff --git a/tests/boundary/process/androidMappingMcp.test.ts b/tests/boundary/process/androidMappingMcp.test.ts index bc623cb1838..44298eae972 100644 --- a/tests/boundary/process/androidMappingMcp.test.ts +++ b/tests/boundary/process/androidMappingMcp.test.ts @@ -51,7 +51,6 @@ const connect = async () => { client.callTool({ name: "inspect_android_class", arguments: { - detail: "complete", path: fixture.apk, class_name: "fixture.Target", mapping_path, @@ -241,7 +240,7 @@ it("annotates class inspection with a caller-selected mapping and reuses one eng }); const unannotated = await client.callTool({ name: "inspect_android_class", - arguments: { detail: "complete", path: apk, class_name: "fixture.Target" }, + arguments: { path: apk, class_name: "fixture.Target" }, }); expect(unannotated.isError).not.toBe(true); expect( diff --git a/tests/boundary/process/jadxStartup.test.ts b/tests/boundary/process/jadxStartup.test.ts index b6fee38108e..44b9c972d01 100644 --- a/tests/boundary/process/jadxStartup.test.ts +++ b/tests/boundary/process/jadxStartup.test.ts @@ -300,7 +300,7 @@ it("returns terminal startup diagnostics and partial identity through the MCP co await client.connect(local); const pending = client.callTool({ name: "inspect_android_package", - arguments: { detail: "complete", path: f.apk }, + arguments: { path: f.apk }, }); await f.request; f.process.exit(); diff --git a/tests/boundary/providers/kuna/kunaAliasSearchMcp.test.ts b/tests/boundary/providers/kuna/kunaAliasSearchMcp.test.ts index 1f970ee9acb..bb143f3930d 100644 --- a/tests/boundary/providers/kuna/kunaAliasSearchMcp.test.ts +++ b/tests/boundary/providers/kuna/kunaAliasSearchMcp.test.ts @@ -144,7 +144,7 @@ test("searches the aliases exact lookup accepts without listing them as procedur ).toBe("0x1334"); const ambiguous = await client.callTool({ name: "procedure_address", - arguments: { detail: "complete", procedure: "audit_transform" }, + arguments: { procedure: "audit_transform" }, }); expect(parseMcpToolError(ambiguous).error.message).toContain( "0x1334, 0x133a", @@ -247,7 +247,7 @@ test("omits a data entry an alias names while keeping the code entry that shares const { error } = parseMcpToolError( await client.callTool({ name: "procedure_address", - arguments: { detail: "complete", procedure: "global_count" }, + arguments: { procedure: "global_count" }, }), ); expect(error.recovery).toBeUndefined(); @@ -267,7 +267,7 @@ test("reports lookup failures with recovery for the selected target, not the inp ]) { const response = await client.callTool({ name: "procedure_address", - arguments: { detail: "complete", procedure }, + arguments: { procedure }, }); const { error } = parseMcpToolError(response); expect(error.code).toBe("invalid_request"); diff --git a/tests/boundary/providers/kuna/kunaBatchDecompileMcp.test.ts b/tests/boundary/providers/kuna/kunaBatchDecompileMcp.test.ts index 0c93633d5c1..51e3ddbaa7c 100644 --- a/tests/boundary/providers/kuna/kunaBatchDecompileMcp.test.ts +++ b/tests/boundary/providers/kuna/kunaBatchDecompileMcp.test.ts @@ -129,7 +129,6 @@ test("keeps each Kuna no-pseudocode observation's limitations on its batch item" const batch = parseEvidence( ( await call("batch_decompile", { - detail: "complete", addresses: ["main", "broken", "puts", "0xdead"], }) ).structuredContent, diff --git a/tests/boundary/providers/kuna/kunaMachoInventoryMcp.test.ts b/tests/boundary/providers/kuna/kunaMachoInventoryMcp.test.ts index 42051062329..8cedf5084cc 100644 --- a/tests/boundary/providers/kuna/kunaMachoInventoryMcp.test.ts +++ b/tests/boundary/providers/kuna/kunaMachoInventoryMcp.test.ts @@ -98,7 +98,7 @@ test("keeps Mach-O data symbols out of listings, overviews and decompile_all", a const refused = await client.callTool({ name: "procedure_pseudo_code", - arguments: { detail: "complete", procedure: "global_count" }, + arguments: { procedure: "global_count" }, }); expect(refused.isError).toBe(true); expect(parseMcpToolError(refused).error).toMatchObject({ @@ -292,11 +292,7 @@ test("recovers only an explicitly selected, evidenced Mach-O call destination", ( await client.callTool({ name: "procedure_pseudo_code", - arguments: { - detail: "complete", - procedure, - analysis: "call_destination", - }, + arguments: { procedure, analysis: "call_destination" }, }) ).isError, procedure, @@ -306,7 +302,7 @@ test("recovers only an explicitly selected, evidenced Mach-O call destination", ( await client.callTool({ name: "procedure_pseudo_code", - arguments: { detail: "complete", procedure: destination }, + arguments: { procedure: destination }, }) ).isError, ).toBe(true); @@ -373,11 +369,7 @@ test.for([ } const failed = await client.callTool({ name: "procedure_pseudo_code", - arguments: { - detail: "complete", - procedure: destination, - analysis: "call_destination", - }, + arguments: { procedure: destination, analysis: "call_destination" }, }); expect(failed.isError).toBe(true); const error = parseMcpToolError(failed).error; diff --git a/tests/boundary/providers/native/nativeMachoUuidlessInspection.test.ts b/tests/boundary/providers/native/nativeMachoUuidlessInspection.test.ts index 9736918bd29..9c0de1ea573 100644 --- a/tests/boundary/providers/native/nativeMachoUuidlessInspection.test.ts +++ b/tests/boundary/providers/native/nativeMachoUuidlessInspection.test.ts @@ -334,7 +334,7 @@ it("delivers partial UUID-less inspection Evidence through production MCP", asyn const inspected = await client.callTool({ name: "inspect_macho", - arguments: { detail: "complete" }, + arguments: {}, }); expect(inspected.isError, JSON.stringify(inspected.content)).not.toBe(true); expect(inspected.structuredContent).toMatchObject({ diff --git a/tests/fixtures/artifactComparisonMcp.ts b/tests/fixtures/artifactComparisonMcp.ts index 152a96ca53e..f61f5450123 100644 --- a/tests/fixtures/artifactComparisonMcp.ts +++ b/tests/fixtures/artifactComparisonMcp.ts @@ -22,7 +22,7 @@ export async function connectArtifactComparisonMcp() { const inspect = async (path: string): Promise => { const opened = await call("open_binary", { path }); expect(opened.isError, JSON.stringify(opened)).not.toBe(true); - const response = await call("inspect_artifact", { detail: "complete" }); + const response = await call("inspect_artifact", {}); expect(response.isError, JSON.stringify(response)).not.toBe(true); return inventoryEvidence(response.structuredContent); }; diff --git a/tests/fixtures/javascriptReturnShapes.ts b/tests/fixtures/javascriptReturnShapes.ts index 24ae8883358..1c84c2498c7 100644 --- a/tests/fixtures/javascriptReturnShapes.ts +++ b/tests/fixtures/javascriptReturnShapes.ts @@ -49,8 +49,6 @@ const analyzeReturnShapesThroughCli = async ( const cliResponse = await cli.run({ arguments: [ "analyze-javascript-application", - "--detail", - "complete", root, "--artifact-format", "directory", diff --git a/tests/process-global/browserScenarioCleanup.test.ts b/tests/process-global/browserScenarioCleanup.test.ts index e1d39006bc1..6b7c52166ea 100644 --- a/tests/process-global/browserScenarioCleanup.test.ts +++ b/tests/process-global/browserScenarioCleanup.test.ts @@ -34,7 +34,6 @@ import { import { ok } from "../../src/domain/result.js"; import { phaseGate } from "../support/lifecycleHarness.js"; import { primaryAnalysisError } from "../../src/domain/analysisErrorBase.js"; -import { COMPLETE_DETAIL } from "../support/completeDetail.js"; const state = vi.hoisted(() => ({ provider: undefined as BrowserScenarioCapturePort | undefined, @@ -152,12 +151,7 @@ const serveScenario = async () => { let stdout = ""; let exitCode = 0; await cli.serve( - [ - "capture-browser-scenario", - ...COMPLETE_DETAIL, - JSON.stringify(scenario), - "--json", - ], + ["capture-browser-scenario", JSON.stringify(scenario), "--json"], { env: {}, exit: (code) => { diff --git a/tests/process-global/javascriptAnalysisCancellation.test.ts b/tests/process-global/javascriptAnalysisCancellation.test.ts index 2a312a02858..5025c83dff7 100644 --- a/tests/process-global/javascriptAnalysisCancellation.test.ts +++ b/tests/process-global/javascriptAnalysisCancellation.test.ts @@ -154,7 +154,6 @@ it.each([ { name: "analyze_javascript_application", arguments: { - detail: "complete", input_path: root, format: "directory", }, @@ -219,7 +218,10 @@ it.each([ expect(view.isError, JSON.stringify(view)).not.toBe(true); const next = await client.callTool({ name: "analyze_javascript_application", - arguments: { detail: "complete", input_path: root, format: "directory" }, + arguments: { + input_path: root, + format: "directory", + }, }); expect(next.isError, JSON.stringify(next)).not.toBe(true); await client.ping(); diff --git a/tests/process-global/javascriptFilesystemErrors.test.ts b/tests/process-global/javascriptFilesystemErrors.test.ts index 6aebcf2535c..9b41239159a 100644 --- a/tests/process-global/javascriptFilesystemErrors.test.ts +++ b/tests/process-global/javascriptFilesystemErrors.test.ts @@ -67,11 +67,7 @@ it.each([ ); const response = await client.callTool({ name: "analyze_javascript_application", - arguments: { - detail: "complete", - input_path: root, - format: "directory", - }, + arguments: { input_path: root, format: "directory" }, }); expect(fault.calls).toBe(1); expect(response.isError).toBe(true); @@ -106,11 +102,7 @@ it.each([ fault.method = ""; const control = await client.callTool({ name: "analyze_javascript_application", - arguments: { - detail: "complete", - input_path: root, - format: "directory", - }, + arguments: { input_path: root, format: "directory" }, }); expect(control.isError, JSON.stringify(control)).not.toBe(true); } finally { diff --git a/tests/process-global/javascriptRuntimeObservationCli.test.ts b/tests/process-global/javascriptRuntimeObservationCli.test.ts index a9c10960886..b2e08303536 100644 --- a/tests/process-global/javascriptRuntimeObservationCli.test.ts +++ b/tests/process-global/javascriptRuntimeObservationCli.test.ts @@ -16,7 +16,6 @@ import { ProviderCleanupError } from "../../src/domain/providerCleanupError.js"; import { ok } from "../../src/domain/result.js"; import { silentLogger } from "../../src/logger.js"; import { cliTest } from "../support/cli/cliFixture.js"; -import { completeApplicationAnalysis } from "../support/completeDetail.js"; const runtimeFactory = vi.hoisted(() => ({ provider: undefined as JavaScriptRuntimeObservationPort | undefined, @@ -110,7 +109,7 @@ cliTest( }, }); const analyzed = await cli.run({ - arguments: completeApplicationAnalysis(root), + arguments: ["analyze-javascript-application", root, "--json"], }); expect(analyzed.exitCode, analyzed.stderr).toBe(0); const analysis = parseEvidence(analyzed.json); diff --git a/tests/process-global/mcpDeliveryEnvironment.test.ts b/tests/process-global/mcpDeliveryEnvironment.test.ts index ab1e71f8691..ac4a1554e11 100644 --- a/tests/process-global/mcpDeliveryEnvironment.test.ts +++ b/tests/process-global/mcpDeliveryEnvironment.test.ts @@ -95,7 +95,7 @@ it("keeps independent server budgets for successful results and oversized errors [smallClient, largeClient].map((client) => client.callTool({ name: "procedure_pseudo_code", - arguments: { detail: "complete", procedure: "main" }, + arguments: { procedure: "main" }, }), ), ); diff --git a/tests/process-global/stableArtifactConsumers.test.ts b/tests/process-global/stableArtifactConsumers.test.ts index c012cccd9b6..ee531c0a4f6 100644 --- a/tests/process-global/stableArtifactConsumers.test.ts +++ b/tests/process-global/stableArtifactConsumers.test.ts @@ -873,7 +873,7 @@ mcpTest( for (let attempt = 0; attempt < 2; attempt++) { const response = await client.callTool({ name: "inspect_rust_binary", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(response.isError).toBe(true); const { error } = parseMcpToolError(response); @@ -916,7 +916,7 @@ mcpTest( fault.blocked.clear(); const recovered = await client.callTool({ name: "inspect_rust_binary", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(recovered.isError).not.toBe(true); expect(failures.map((error) => error.cleanupIncomplete)).toEqual([ @@ -1005,7 +1005,7 @@ mcpTest( try { const response = await client.callTool({ name: "inspect_rust_binary", - arguments: { detail: "complete", path }, + arguments: { path }, }); expect(parseMcpToolError(response).error.code).toBe("cleanup_incomplete"); expect(fault.handles[0]?.fd).toBeGreaterThanOrEqual(0); diff --git a/tests/process-global/windowsNativeControlCapability.test.ts b/tests/process-global/windowsNativeControlCapability.test.ts index 7acdab6acb3..2f2f5f36826 100644 --- a/tests/process-global/windowsNativeControlCapability.test.ts +++ b/tests/process-global/windowsNativeControlCapability.test.ts @@ -120,7 +120,7 @@ it("reports a missing Windows native control as an unavailable capability", asyn const response = await client.callTool({ name: "trace_web_source_location", - arguments: { ...webSourceLocationArgs, detail: "complete" }, + arguments: webSourceLocationArgs, }); const { error } = parseMcpToolError(response as CallToolResult); diff --git a/tests/support/cli/javascriptApplication.ts b/tests/support/cli/javascriptApplication.ts index 096ec260e63..0d70ae42d5c 100644 --- a/tests/support/cli/javascriptApplication.ts +++ b/tests/support/cli/javascriptApplication.ts @@ -9,7 +9,6 @@ import { javascriptApplicationAnalysisResultSchema } from "../../../src/domain/j import { connectLocalToolsMcp } from "../../fixtures/localToolsMcp.js"; import { INLINE_EVIDENCE_MCP_ENVIRONMENT } from "../../../scripts/lib/mcp-verification-environment.mjs"; import type { SharedMcpCall, TestCli } from "./cliFixture.js"; -import { COMPLETE_DETAIL } from "../completeDetail.js"; const execute = promisify(execFile); @@ -61,7 +60,6 @@ export const analyzeJavaScriptDirectory = async ( const response = await run({ arguments: [ "analyze-javascript-application", - ...COMPLETE_DETAIL, root, ...sourcePaths.flatMap((path) => ["--source-path", path]), "--format", @@ -74,7 +72,6 @@ export const analyzeJavaScriptDirectory = async ( } else { const call = await resolveJavaScriptApplicationMcpCall(cli, mcpCall); const response = await call("analyze_javascript_application", { - detail: "complete", input_path: root, format: "directory", ...(sourcePaths.length === 0 ? {} : { source_paths: sourcePaths }),