Repository navigation
perf(mcp): reuse output validators across catalog refreshes - #1433
Merged
Merged
Conversation
Advertise content- and dialect-bound identities for self-contained output schemas so the SDK can reuse unchanged Ajv validators after complete tools/list refreshes. Preserve explicit IDs and relative reference bases. Verify changed schemas, availability transitions, reconnects, numeric and selector constraints, explicit IDs, relative references, and advertised dialects through the pinned SDK boundaries. Refs #1065, #723
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
This was referenced Oct 10, 2026
Closed
2 tasks done
This was referenced Oct 10, 2026
N0zoM1z0
added a commit
that referenced
this pull request
Oct 10, 2026
#1461) Validate the target-free probe against the named definition discovered from the complete production catalog. Preserve initialized server and inventory observations when the SDK rejects the probe, and retain the schema failure reason, absolute deadline and owned-child cleanup. The negative stdio replay regression fails on original main and passes the fix; actual production-boundary fault injection confirms rejection. Nine doctor/help tests, serial full static checks and real small-target CLI/MCP parity pass. Successful doctor reports remain byte-identical. No performance or model-token reduction is claimed. Closes #1454. Refs #1065, #723, #1433.
This was referenced Oct 10, 2026
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…1433) Advertise content- and dialect-bound identities for self-contained output schemas so the SDK can reuse unchanged Ajv validators after complete tools/list refreshes. Preserve explicit IDs and relative reference bases. Verify changed schemas, availability transitions, reconnects, numeric and selector constraints, explicit IDs, relative references, and advertised dialects through the pinned SDK boundaries. Refs morluto#1065, morluto#723
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
morluto#1461) Validate the target-free probe against the named definition discovered from the complete production catalog. Preserve initialized server and inventory observations when the SDK rejects the probe, and retain the schema failure reason, absolute deadline and owned-child cleanup. The negative stdio replay regression fails on original main and passes the fix; actual production-boundary fault injection confirms rejection. Nine doctor/help tests, serial full static checks and real small-target CLI/MCP parity pass. Successful doctor reports remain byte-identical. No performance or model-token reduction is claimed. Closes morluto#1454. Refs morluto#1065, morluto#723, morluto#1433.
This was referenced Oct 12, 2026
[Tracker] Audit analysis and debugging coverage for the TIOBE top 100 languages (October 2026)
#2383
Open
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.
A complete
tools/listrefresh makes the pinned SDK prepare all output validators again. Schemas without an identity get recompiled even when their content is unchanged. Advertise a schema-local, content- and dialect-bound$idso clients reuse the existing Ajv compilation; changed schemas receive a new identity.Refs #1065 and #723. The full tool inventory, input guidance, output schemas and validation rules remain available. Equivalent outputs can share a validator across tool names. Explicit IDs and relative external reference bases are preserved, and projections remain cached by their conversion target. SDK freshness, availability and reconnect handling remain responsible for choosing the current tool definition.
Validation on source
6c1c13f7, based on main28595276, Node 24.18.0/npm 11.16.0, Linux x64 under the existing two-CPU resource guard:npm run check:fast, changed-file formatting, Git whitespace checks andnpm run docs:checkpassed. Static checking uses the documented single-threaded compiler with its full scope preserved.toolDefinitionshortcut was used.binary_sessiontook 2.74 seconds including 2.43 seconds of compilation, refresh calls took 114.6/29.6 ms, and the whole two-connection workflow took 9.60 seconds with 916 MiB peak process-family RSS.Generated catalog/document outputs are ignored build artifacts and are not committed. No providers, executable bytes, Evidence/result representation or runtime authority change. Real Hopper/Ghidra runs are not applicable to this metadata change.