Skip to content

revert(mcp): undo input schema fitting that broke main CI - #7135

Merged
kaoru0822-kitauji merged 1 commit into
mainfrom
revert/7119-input-schema-fitting
Oct 26, 2026
Merged

kaoru0822-kitauji merged 1 commit into
mainfrom
revert/7119-input-schema-fitting

Conversation

@kaoru0822-kitauji

Copy link
Copy Markdown
Collaborator

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_captures and inspect_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_view input 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 Evidence required list 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

Evidence and regression coverage

  • Base reproduction: on origin/main 25f0f99, npx vitest run src/contracts/toolInputReferences.test.ts fails 2/34 with the same assertion as CI.
  • After the revert: 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.
  • workflowInputIdentities timed 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 passed
  • npm run check:fast — passed
  • npm run format:check — passed
  • npm run docs:check — passed

Compatibility, safety, and release

Author readiness

Human owner: @kaoru0822-kitauji

  • 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.

🤖 Generated with Claude Code

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]>
@kaoru0822-kitauji kaoru0822-kitauji added bug Something isn't working track:bugs Small-bug loop track PRs labels Oct 25, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T13:03:47.288179Z fac354d 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.

@greptile-apps

greptile-apps Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge within its stated rollback scope.

Summary

Reverts size-based input-schema fitting to restore complete nested contracts in full-profile advertisements.

  • Full MCP tool catalogs keep the complete input schema again.

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]
Loading

Reviews (1) · Last reviewed commit: "revert(mcp): undo input schema fitting t..." · Reviewed by Greptile

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
@kaoru0822-kitauji
kaoru0822-kitauji merged commit 18dc78f into main Oct 26, 2026
48 checks passed
@kaoru0822-kitauji
kaoru0822-kitauji deleted the revert/7119-input-schema-fitting branch October 26, 2026 09:06
@morluto morluto added the area: mcp MCP server, transport, and tool registration label Nov 23, 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 bug Something isn't working track:bugs Small-bug loop track PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants