Repository navigation
docs: describe omitted output schemas as the default in README translations - #10658
Merged
Merged
Conversation
The hot-cold catalog registered discover_tools directly with the SDK, so the default compact input profile still advertised its canonical schema, including page-size defaults clients apply on their own (#5322). Route every listed input schema, transport discovery included, through one server-owned presentation, and pass the selected presentation to the deferred server, which serves recorded tool schemas but not discovery.
borrowEvidenceInput installed its advertised projection on one schema instance. A call site's .describe() rebuilds the schema from its definition, so match_native_functions advertised left and right as unconstrained values in every input profile. Install the projection in the borrowed parser's constructor so derived schemas keep it, for both borrowed inputs and borrowed arrays.
… into HEAD # Conflicts: # scripts/lib/verify-package-core.mjs # src/contracts/advertisedDialectBaseline.ts # tests/boundary/mcp/advertisedDialect.test.ts
… dialect One projection (advertisedDialectProjection.ts) owns the compact input advertisement: one type per node, items on every array, string literals as enums, oneOf widened to anyOf, allOf merged, tuples as element unions, exclusive bounds made inclusive, and every keyword outside the dialect dropped. Each rewrite is exact or widening; server validation is unchanged. The root description and sentences for dropped cross-field constraints move to the tool description, which Codex and Zed keep. The compact baseline falls to nullable values only (29), which the dialect cannot express without narrowing an input. The gateway shape repairs (typeArrayItemUnions, hasGatewayIncompatibleShape), the second dependentRequired-to-prose copy and the strict-gateway test denylist are removed; the dialect checker gates the inline presentation instead.
No surveyed model API reads an output schema, MCP client validators repeat REA's own result validation, and complete output schemas were about 92% of the default tools/list. REA_MCP_OUTPUT_SCHEMA_PROFILE now resolves to off through one owner (resolveMcpOutputSchemaProfile); compact and full remain selectable. structuredContent is still delivered, and the deferred server serves both off and full from the recorded catalog with the matching recorded identity. Tests and artifact verifiers that validate results against complete advertised output contracts select full explicitly.
Codex Review Summary: ❌ FailedThis 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. |
Contributor
[Low impact] This documentation-only PR appears safe to merge. SummaryUpdates all 23 translated READMEs to describe omitted output schemas as the default. Also fixes two statements about output schemas in the hot/cold catalog guide.
Reviews (16) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
# Conflicts: # tests/boundary/mcp/advertisedDialect.test.ts
# Conflicts: # docs/development/testing.md # scripts/lib/verify-package-core.mjs # src/contracts/advertisedDialectBaseline.ts # tests/boundary/mcp/advertisedDialect.test.ts # tests/boundary/mcp/advertisedPatternsVMode.test.ts
* feat(mcp): omit output schemas from tools/list by default No surveyed model API reads an output schema, MCP client validators repeat REA's own result validation, and complete output schemas were about 92% of the default tools/list. REA_MCP_OUTPUT_SCHEMA_PROFILE now resolves to off through one owner (resolveMcpOutputSchemaProfile); compact and full remain selectable. structuredContent is still delivered, and the deferred server serves both off and full from the recorded catalog with the matching recorded identity. Tests and artifact verifiers that validate results against complete advertised output contracts select full explicitly. * fix(mcp): select schemas in verification workflows * fix(mcp): select complete output schemas in the Electron verifier * fix(mcp): select complete output schemas in standalone verifier probes * fix(mcp): select complete output schemas in every verifier transport * test(mcp): select full output schemas in packet and signal schema checks * fix(mcp): validate the doctor probe reply against the canonical output contract (#10655) * fix(mcp): validate the doctor probe reply against the canonical output contract * test(mcp): replay doctor probe validation under every output profile * test(mcp): accept typed-branch nullable unions in the advertised dialect (#10649) * test(mcp): select full output schemas in HTTP session workflows
Base automatically changed from
feat/output-schemas-off-by-default
to
feat/advertised-dialect-projector
November 15, 2026 05:44
1 of 12 tasks
* fix(mcp): keep the Evidence union on described borrowed inputs borrowEvidenceInput installed its advertised projection on one schema instance. A call site's .describe() rebuilds the schema from its definition, so match_native_functions advertised left and right as unconstrained values in every input profile. Install the projection in the borrowed parser's constructor so derived schemas keep it, for both borrowed inputs and borrowed arrays. * test(mcp): select the borrowed Evidence contract from its family
…' into fix/compact-discover-tools-input
…dialect-projector # Conflicts: # src/contracts/advertisedDialectBaseline.ts # tests/boundary/mcp/evidenceInputContractsMcp.test.ts
…type lists The reduced fallback derived a property's types and emitted them as a type list, which Gemini, Moonshot and Ark reject. A property whose canonical schema is anyOf string and number therefore traded a typed union for a rejected construct when the inline projection fell back. Emit one type, or anyOf typed branches, so [T, null] becomes the dialect's nullable union.
…ema-default-translations
…ct-projector # Conflicts: # docs/development/testing.md # src/contracts/advertisedDialectBaseline.ts # src/contracts/inputSchemaPresentation.ts # src/main/deferredRuntime.ts # src/server/DeferredEvidenceMcpServer.ts # src/server/EvidenceMcpServerCore.ts # tests/boundary/mcp/evidenceInputContractsMcp.test.ts
…ema-default-translations
morluto
changed the base branch from
feat/advertised-dialect-projector
to
main
November 15, 2026 10:26
19 tasks
…fault-translations
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
Follow-up to #10646. That PR made
offthe default output schema profile and updated the English README and guides, but the 23 translated READMEs still said complete output schemas are advertised by default and offeredcompact/offas the opt-in. Two sentences in the hot/cold section of the MCP contracts guide also still promised complete output schemas intools/list. This PR brings both in line with the new default.Stacked on #10646 → #10632 → #10597 → #10592 → #10582 → #10567.
Problem and expected behavior
Readers of any translated README were told the opposite of the shipped default. Expected: every README edition says output schemas are omitted by default,
compactbounds each to 4,096 bytes,fullrestores complete schemas for MCP clients that validate results, and server-side validation and structured results are unchanged.Change and scope
docs/readme/README_*.md(23 files): the one output-schema paragraph in each is retranslated from the current English paragraph. Per CONTRIBUTING.md "Translation corrections", README editions are hand-maintained files listed inwebsite/locales/languages.json(no generator or sync script), so each was edited directly. Commands, the variable name and the "Output schemas" section reference are unchanged; numbers are written4096to avoid locale separators.docs/reference/mcp-contracts.md(hot/cold catalogs): "Complete output schemas … are preserved when each tool loads" and "Output schemas remain intools/list" now say each loaded tool keeps canonical result validation and the selected output profile, and output schemas stay intools/listwhen the profile lists them.README.md,client-configuration.md,esp-image.mdalready updated by feat(mcp): omit output schemas from tools/list by default #10646),.agents/skills/, andwebsite/locales/*/messages.po(no output-schema text).docs/verification/records are historical and left unchanged.Not included: the FastMCP section of
client-configuration.mdstill recommendsREA_MCP_OUTPUT_SCHEMA_PROFILE=compactalongside its measured run; #10646 added a sentence thatoffis the default and smaller. I left the recorded measurement's settings as they were.Contract and boundary impact
Semantic owner and earliest changed stage: documentation only; the default is owned by
resolveMcpOutputSchemaProfile(feat(mcp): omit output schemas from tools/list by default #10646).Contribution scope fit and linked maintainer decision: W3 follow-up; decision D3 in the approved cleanup plan.
CLI and MCP/tool-catalog contract: none.
Provider, bridge, target-format, or platform compatibility: none.
Evidence, artifact, provenance, or reconstruction contract: none.
Target selection, authority, upstream behavior, and cleanup details: not applicable.
Generated metadata, package, or installation impact: none.
Documentation or usability only; no target interaction.
Evidence and regression coverage
Validation performed
npx oxfmt --check docs/readme docs/reference/mcp-contracts.md— all files formatted.npm run docs:check— passed.npm run test:local -- tests/conformance/readmeConsistency.test.ts— 10 passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.