Skip to content

docs: describe omitted output schemas as the default in README translations - #10658

Merged
morluto merged 115 commits into
mainfrom
docs/output-schema-default-translations
Nov 15, 2026
Merged

morluto merged 115 commits into
mainfrom
docs/output-schema-default-translations

Conversation

@morluto

@morluto morluto commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #10646. That PR made off the 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 offered compact/off as the opt-in. Two sentences in the hot/cold section of the MCP contracts guide also still promised complete output schemas in tools/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, compact bounds each to 4,096 bytes, full restores 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 in website/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 written 4096 to avoid locale separators.
  • docs/reference/mcp-contracts.md (hot/cold catalogs): "Complete output schemas … are preserved when each tool loads" and "Output schemas remain in tools/list" now say each loaded tool keeps canonical result validation and the selected output profile, and output schemas stay in tools/list when the profile lists them.
  • Swept: English guides (README.md, client-configuration.md, esp-image.md already updated by feat(mcp): omit output schemas from tools/list by default #10646), .agents/skills/, and website/locales/*/messages.po (no output-schema text). docs/verification/ records are historical and left unchanged.

Not included: the FastMCP section of client-configuration.md still recommends REA_MCP_OUTPUT_SCHEMA_PROFILE=compact alongside its measured run; #10646 added a sentence that off is 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

  • Tests added or updated: none (documentation only).
  • Base reproduction or other evidence: source check; each translated paragraph before this change began with the equivalent of "Complete output schemas are advertised by default".
  • Remaining proof gaps: translations were written by an AI assistant without native-speaker review; a reviewer fluent in each language should check wording.

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

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: none.

Author readiness

Human owner:

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

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

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.
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T10:36:49.973824Z
We couldn’t complete this review. Comment @codex review to try again.
aa6ea12 New commits
ℹ️ 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 Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation-only PR appears safe to merge.

Summary

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

  • Translated READMEs now explain when output schemas are listed.
  • The hot/cold catalog guide ties schema listings to the selected profile.

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
* 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
…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.
…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
@morluto
morluto changed the base branch from feat/advertised-dialect-projector to main November 15, 2026 10:26
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@morluto
morluto merged commit 0ddc732 into main Nov 15, 2026
7 checks passed
@morluto
morluto deleted the docs/output-schema-default-translations branch November 15, 2026 10:37
@morluto morluto added the documentation Improvements or additions to documentation label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant