Repository navigation
revert(mcp): undo input schema fitting that broke main CI - #7135
Merged
Merged
Conversation
This reverts commit 7336a56 (#7119). After #7120 and the other merges of 2026-10-25 grew inspect_analysis_view's complete input schema (71,762 bytes plus 3,003 bytes of examples), the 64 KiB fitting from #7119 could no longer keep instance level 3 and fell back to level 2. That summarized the inline Evidence source and the view selector collections, so main CI failed in toolInputReferences, toolSchemaValidity, analysisViewMcp, absoluteLocalPathSchema, javascriptFactsViewMcp and godotPckMcp. #7119's own CI ran against bc14312, before that growth. Reverting restores the complete full-profile advertisement while the size limit is redesigned against these contracts (#4081 stays open). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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. |
2 tasks done
Contributor
[Medium impact] The PR appears safe to merge within its stated rollback scope. SummaryReverts size-based input-schema fitting to restore complete nested contracts in full-profile advertisements.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
C[Canonical input contract] --> P[Complete advertised projection]
P --> F[Full profile: complete schema]
P --> K[Compact profile: shared presenter]
F --> L[MCP tools/list and catalog identity]
K --> L
A[MCP tool arguments] --> V[Unchanged canonical parser]
V --> H[Tool handler]
Reviews (1) · Last reviewed commit: "revert(mcp): undo input schema fitting t..." · Reviewed by Greptile |
3 tasks
morluto
pushed a commit
that referenced
this pull request
Oct 25, 2026
This reverts commit 7336a56 (#7119). After #7120 and the other merges of 2026-10-25 grew inspect_analysis_view's complete input schema (71,762 bytes plus 3,003 bytes of examples), the 64 KiB fitting from #7119 could no longer keep instance level 3 and fell back to level 2. That summarized the inline Evidence source and the view selector collections, so main CI failed in toolInputReferences, toolSchemaValidity, analysisViewMcp, absoluteLocalPathSchema, javascriptFactsViewMcp and godotPckMcp. #7119's own CI ran against bc14312, before that growth. Reverting restores the complete full-profile advertisement while the size limit is redesigned against these contracts (#4081 stays open). Co-Authored-By: Claude Opus 5.5 <[email protected]> Refs: #7135
7 of 14 tasks
2 tasks done
3 tasks done
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.
What broke: main CI fails at 25f0f99 (run 40193564884) in 10 schema-advertisement tests, e.g.
toolInputReferences"preserves the complete inline Evidence contract",toolSchemaValidity"advertised schema rejects modules/index",analysisViewMcp,absoluteLocalPathSchema,javascriptFactsViewMcp,godotPckMcp.Fix: revert #7119 (64 KiB input-schema fitting). Its CI ran against bc14312; once #7120 and the other merges grew
inspect_analysis_view, fitting fell from instance level 3 to level 2 and summarized the inline Evidence source and view selectors.Risk: low; restores the exact pre-#7119 advertisement. The full (opt-in) profile again exceeds Claude Desktop's 64 KiB per-tool limit for
compare_web_capturesandinspect_analysis_view(#4081), as it did before; the default compact profile is unaffected.Summary
Refs #4081 (reopened by this revert; a follow-up will redesign the limit against these contracts).
Problem and expected behavior
On main 25f0f99 the complete
inspect_analysis_viewinput projection is 71,762 bytes plus 3,003 bytes of examples. Measured candidates from #7119's fitter: level 3 = 64,605 bytes before examples and guidance, so it no longer fits; level 2 = 50,924 bytes, which drops the inline Evidencerequiredlist and the view selector collection constraints that the failing tests assert. On #7119's branch base (bc14312) the schema was smaller and level 3 fit, so its CI passed.I also tried keeping small subschemas at the last level (summarizing only large ones). It still summarized the 7 KB inline Evidence object, so it doesn't satisfy these contracts; restoring the full advertisement needs a representation change, not a different cut. That is out of scope for a main-health fix.
Change and scope
git revert 7336a566a; applied cleanly on top of #7107/#7127. Contribution scope: not applicable.Contract and boundary impact
Semantic owner and earliest changed stage: advertised input-schema presentation (
src/contracts/inputSchemaPresentation.ts,toolSchemaMetadata.ts), back to its pre-fix(mcp): fit every advertised input schema within the 64 KiB client limit #7119 state.CLI and MCP/tool-catalog contract: full-profile advertisement returns to the complete projection; numeric
const/enumrelaxation from fix(mcp): fit every advertised input schema within the 64 KiB client limit #7119 is also reverted. Compact profile unchanged.Generated metadata, package, or installation impact: full-profile catalog digest returns to its pre-fix(mcp): fit every advertised input schema within the 64 KiB client limit #7119 value.
Documentation or usability only; no target interaction.
Evidence and regression coverage
npx vitest run src/contracts/toolInputReferences.test.tsfails 2/34 with the same assertion as CI.npm run test:focused --on the 10 files that failed or are touched (toolInputReferences, toolSchemaValidity, analysisViewMcp, absoluteLocalPathSchema, javascriptFactsViewMcp, godotPckMcp, workflowInputIdentities, compactInputSchemaMcp, browserComparisonInput, browserScenarioMcp): 10 files, 101 tests passed.workflowInputIdentitiestimed out in the failing CI run; it passes locally here, so I can't tell whether it was related.Validation performed
npm run test:focused -- <10 files above>— 101 passednpm run check:fast— passednpm run format:check— passednpm run docs:check— passedCompatibility, safety, and release
Author readiness
Human owner: @kaoru0822-kitauji
🤖 Generated with Claude Code