Repository navigation
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean, well-tested MCP tool-catalog reuse optimization.
Checked:
complete/completeClientstermination logic mirrorsforEachMcpToolsPage(repeated-cursor = incomplete, fail-closed).- Restore path is schema-validated, tool-presence-gated, with live-pagination fallback.
- Read reuse is gated on agent identity + non-scoped transport + wire-version + live non-synthetic evidence + endpoint match — cross-tenant isolation holds.
- Write merge drops stale catalogs on capability change.
- Witness-not-translator preserved; no fabrication or re-shaping at the seam.
- Changeset present and correctly scoped as a patch.
High-risk flag is true only due to (modified) files under src/lib/protocols/**; with no medium-or-higher findings, those modifications are presumed safe (row 5 does not fire without a medium finding). gated_paths is false, no author team gate. No blocking or medium findings → decision table falls through to row 9.
No blocking or medium findings.
This branch has not been deployed
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.
Store the complete paginated tool catalog with the existing scoped discovery evidence. Fresh MCP task sessions can restore required-task flags and output validators from that catalog. A missing, expired, invalidated or unusable catalog falls back to live pagination.
The regression opens separate clients against a two-page seller. Repeated tool calls and status polls reuse the first listing. A credential change, invalidation or expiry causes another listing.
The SDK build, typecheck and 178 focused discovery, task and polling tests passed.
Fixes #3722.