Skip to content

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

Merged
morluto merged 2 commits into
mainfrom
test/drop-redundant-detail-requests
Nov 25, 2026
Merged

morluto merged 2 commits into
mainfrom
test/drop-redundant-detail-requests

Conversation

@morluto

@morluto morluto commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

#14252 added the agent result budget (delivery.agent_result_budget_bytes, launch seed REA_AGENT_RESULT_BUDGET_BYTES). Before the vitest seed (10 MiB) and the complete-Evidence harness in tests/support/completeEvidenceByDefault.ts existed, it added explicit complete-detail requests across many tests. This PR undoes those requests where the seed or the harness already delivers complete Evidence. Only tests/ changes; scripts/ verifiers are untouched.

Each reverted site goes back to its pre-#14252 form (git diff 123b693f08^1 123b693f08 -- tests). Expectation changes and new tests from #14252 stay as they are.

What stays and why

  • Delivery, summary and budget tests: agentResultBudgetMcp, analysisSummaryDetailMcp, completeEvidenceByDefault, contractCommandViewDelivery, largeToolResult, pseudocodeDeliveryMcp, webPageViewMcp (budgeted), cliOutput's budgeted case, the inspect_artifact summary-delivery assertions in artifactMcp.inlineInventory, the view cases in playwrightTrace, and managedMemberSummaryCli.

  • Callers that neither the seed nor the harness reaches: these are raw SDK clients on servers launched with an explicit environment, and in-process serveCli/createCli({}). In those spots the request still matters:

    • Whole files: javascriptSemanticTraceEvidence, javascriptSourceSelection, sessionEvidenceRecovery, workflowInputIdentities, and javascriptAnalysisResources. In that last file the omitted detail on the oversized-timeout partial kept a second budgeted record. CI caught it; the local runs did not.
    • MCP calls only: applicationWorkflowCli, fixtures/javascriptReturnShapes, dotnetBundleJourney, harmonyArtifactJourney, managedMemberRecovery.
    • CLI call only: ntfsMftAdmission.

    Some of these failed after the revert. Others passed only because their results fit the shipped 32 KiB default. To find the second group, I ran every touched file locally with the shipped default lowered to its 4 KiB minimum. That change was never committed.

tests/support/completeDetail.ts keeps its exports, because the sites above still use all of them.

Validation

  • npm run test:focused on all touched test files plus the consumers of the touched shared helpers, in batches, at the shipped default: passing. One Windows-only file (byteEntropyWindowsIdentity) is skipped on macOS.
  • The same touched files with the shipped default at 4 KiB: passing after the requests listed above were kept.
  • npx oxfmt --check ., oxlint on touched files and npm run check:fast (typecheck, lint and architecture guards): passing.

No provider behavior changes; this is test-only.

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.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The reviewed changes appear safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The reviewed changes appear safe to merge.

Summary

Removes redundant complete-detail requests from tests that already receive complete evidence through the test budget or shared helpers.

  • Tests rely on shared defaults for complete Evidence.

Reviews (2) · Last reviewed commit: "test: keep complete detail for the overs..." · Reviewed by Greptile

@morluto
morluto enabled auto-merge (squash) November 25, 2026 20:47
The raw client's server has no budget seed, so an omitted detail retains a budgeted summary of the partial observation as a second record.
@morluto
morluto merged commit 88fd8a9 into main Nov 25, 2026
48 checks passed
@morluto
morluto deleted the test/drop-redundant-detail-requests branch November 25, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant