Repository navigation
test: drop detail requests the budget seed made redundant - #14615
Merged
Merged
Conversation
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.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] The reviewed changes appear safe to merge. SummaryRemoves redundant complete-detail requests from tests that already receive complete evidence through the test budget or shared helpers.
Reviews (2) · Last reviewed commit: "test: keep complete detail for the overs..." · Reviewed by Greptile |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#14252 added the agent result budget (
delivery.agent_result_budget_bytes, launch seedREA_AGENT_RESULT_BUDGET_BYTES). Before the vitest seed (10 MiB) and the complete-Evidence harness intests/support/completeEvidenceByDefault.tsexisted, it added explicit complete-detail requests across many tests. This PR undoes those requests where the seed or the harness already delivers complete Evidence. Onlytests/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, theinspect_artifactsummary-delivery assertions inartifactMcp.inlineInventory, the view cases inplaywrightTrace, andmanagedMemberSummaryCli.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:javascriptSemanticTraceEvidence,javascriptSourceSelection,sessionEvidenceRecovery,workflowInputIdentities, andjavascriptAnalysisResources. 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.applicationWorkflowCli,fixtures/javascriptReturnShapes,dotnetBundleJourney,harmonyArtifactJourney,managedMemberRecovery.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.tskeeps its exports, because the sites above still use all of them.Validation
npm run test:focusedon 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.npx oxfmt --check ., oxlint on touched files andnpm run check:fast(typecheck, lint and architecture guards): passing.No provider behavior changes; this is test-only.