Skip to content

test(mcp): size source recovery budget from delivered evidence - #9566

Merged
N0zoM1z0 merged 1 commit into
mainfrom
fix/main-ci-audit-20261109
Nov 9, 2026
Merged

N0zoM1z0 merged 1 commit into
mainfrom
fix/main-ci-audit-20261109

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

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 c78c8aed4 in 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

  • Baseline: the selected file reproduced the CI assertion (1 failed, 10 passed).
  • Four MCP boundary files: sourcePublicationComposed, sourcePublicationContext, sourcePublicationRecovery, and oversizedErrorDeliveryMcp — 43 passed.
  • Post-merge main 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.
  • Fault injection: reversing omission priority to discard the smaller source first makes the repaired regression fail; production code restored afterward.
  • npm run check:fast -- --concurrency=1 — passed; formatting and commit/push hooks passed.
  • Two-CPU bounded boundary run: 26.2 s elapsed, 29.1 s user+system CPU, 1.61 GiB peak sampled session RSS (200 ms sampling, shared pages may be counted twice). Serial static checks: 43.1 s elapsed, 55.5 s CPU, 4.42 GiB peak RSS. Initial static attempt was stopped at its 4 GiB guard; it was not a pass. No speedup or token reduction claim.

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 ETIMEDOUT with 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)

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T04:12:44.335821Z 66a486e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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 gensokyo-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@greptile-apps

greptile-apps Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issue was found in the changed test.

Summary

Repairs the test’s delivery budget without changing production limits.

  • The source-recovery test sizes its limit from delivered responses.

Reviews (1) · Last reviewed commit: "test(mcp): size source recovery budget f..." · Reviewed by Greptile

@N0zoM1z0
N0zoM1z0 merged commit 78a84d7 into main Nov 9, 2026
51 checks passed
@N0zoM1z0
N0zoM1z0 deleted the fix/main-ci-audit-20261109 branch November 9, 2026 05:03
WenyuChiou added a commit to WenyuChiou/rea that referenced this pull request Nov 9, 2026
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.
maxazure added a commit to maxazure/rea that referenced this pull request Nov 9, 2026
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.
earakely-scale added a commit to earakely-scale/rea that referenced this pull request Nov 9, 2026
Main's source-publication test fix (morluto#9566) clears the shard failure this
branch's last CI run hit.
RishTheFish21 added a commit to RishTheFish21/rea that referenced this pull request Nov 10, 2026
…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.
@morluto morluto added the area: mcp MCP server, transport, and tool registration label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: mcp MCP server, transport, and tool registration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants