Repository navigation
test(mcp): size source recovery budget from delivered evidence - #9566
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
gensokyo-dev
left a comment
There was a problem hiding this comment.
Automated review: the test now selects its delivery budget from actual MCP wire sizes, retains source Evidence assertions, and verifies bounded delivery. Baseline failure reproduced; 43 related boundary tests and static checks passed; reversed omission priority was detected by fault injection. This review does not attest to human review. CI results remain to be inspected before merge.
[Low impact] The PR appears safe to merge; no actionable issue was found in the changed test. SummaryRepairs the test’s delivery budget without changing production limits.
Reviews (1) · Last reviewed commit: "test(mcp): size source recovery budget f..." · Reviewed by Greptile |
Merge upstream main b46f4fc, including the evidence-sized MCP recovery test from morluto#9566. Keep the reconstruction adapter unchanged. Separate the reference-loader constructor fixture map from its assertions to fix the new main max-lines-per-function failure without relaxing lint or changing fixture contents and expectations.
Resolve the sourcePublicationComposed test conflict using the exact implementation merged in morluto#9566. Preserve the existing Evidence depth fix unchanged relative to main 99d00d1. Validated on Node 24.22.1 and npm 11.16.0: 31 focused files / 503 tests, check:ci:fast, test discovery, and diff checks. Full check:pr and real providers were not run. Human readiness declarations remain unchecked.
Main's source-publication test fix (morluto#9566) clears the shard failure this branch's last CI run hit.
…gests Main's morluto#9566 fixes the sourcePublicationComposed failure in test shard 6. The raw profile digests changed again; both are repinned, and this PR's indirect_branch_inventory assertion is kept.
Summary
Fix the main-branch MCP source-publication regression without changing production delivery limits. The fixed 10 KiB test budget no longer fits the approximately 8.9 KiB source Evidence plus its escaped MCP error envelope, so the test accidentally asks production to omit both observations.
Measure the complete public MCP response and its source-only envelope, then choose a budget between them. Verify the original source Evidence, unknown completed-result retention, explicit omission, empty session ledger, and final delivered byte bound.
No separate issue: this directly repairs the failure on main
c78c8aed4in both full qualification and fast feedback.Scope and contracts
Test arrangement is the changed owner. No CLI/MCP schema, provider, authority, Evidence format, package, or documentation behavior changes. No target execution or new capability; maintainer scope decision is not applicable. The test exercises production registration, comparison, retention refusal, delivery, and SDK transport using authenticated contract examples; no real external provider was exercised.
Validation performed
sourcePublicationComposed,sourcePublicationContext,sourcePublicationRecovery, andoversizedErrorDeliveryMcp— 43 passed.78a84d75c: selected-file V8 coverage run with--shard=1/1— 11 passed, exit 0; 42.6 s elapsed, 38.7 s CPU, 1.06 GiB peak sampled session RSS. This targeted run does not establish full-suite coverage thresholds.npm run check:fast -- --concurrency=1— passed; formatting and commit/push hooks passed.Current-head CI: build, static checks, 24,742 source tests (16 skipped), all eight built-test shards, and Portable tests passed. CodeQL actions, JavaScript/TypeScript, and Python checks passed. Greptile and Codex automatic reviews reported no findings. Final CI required gate passed; merged after the complete current-head CI run succeeded. The earlier macOS failure recorded TLS
ETIMEDOUTwith cleanup diagnostics; later full CI on the same baseline passed both native macOS architectures and reproduced only this MCP assertion. No second code defect was established.Author readiness
Human owner: @N0zoM1z0 (declaration-exempt author under CONTRIBUTING.md)