Repository navigation
feat: make V3 ToolRegistry the authoritative tool catalog - #273
Merged
Merged
Conversation
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d3744b0022
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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.
Tool identity, capability policy, aliases and MCP schemas previously lived in separate dictionaries, while ToolRegistry was not connected to runtime tools. The active workspace now owns a registry of complete ToolSpec records. Runtime lookup, policy, prompts, discovery, MCP/provider schemas and generated documentation derive from that catalog.
Closes #232. Prerequisite #227 is merged. Only this V3 issue is included.
Requirement coverage
Compatibility and boundaries
The40 adapter tools plus memory/discovery/orchestration yield48 runtime tools. Workspace/session isolation and child orchestration exclusion remain intact. Capability, token expiry/narrowing, configuration/mode restrictions and argument-sensitive approval logic remain owned by security. CLI confirmation surfaces and TUI risk remain distinct to preserve existing gates. Graph refresh retains its read capability but declares internal writes; browser/orchestration tools remain nonparallel. Only the existing pure calculator is marked parallel-safe; no scheduling behavior changes.
AVAILABLE_TOOLS stays a mutable compatibility view: registration obtains metadata, executor replacement retains metadata, removal drops descriptors/aliases without re-binding removed runtime tools, and snapshots retain complete specs. Legacy unknown callables remain dynamic/nonparallel. Registered names and aliases preserve canonical spelling across plain/XML/DSML calls, reject case-insensitive collisions, and immediately update existing action parsing and stream filtering; provider schemas contain canonical names only.
Existing string executors, MCP object/string conversion and shell CommandResult receipt behavior are preserved. Native typed invocation and pipe-protocol removal remain #233; SDK request serialization remains #229; typed result changes remain #235. The registry validates its supported JSON-schema vocabulary and rejects unsupported keywords rather than forwarding them unchecked; it is not a general JSON-schema evaluation engine. No new dependency or persistence schema change.
Validation
0807549c00301635fd9a644de99bee4e837b5299.No paid provider calls were made. Provider-neutral schema generation is tested; live/native provider tool execution is not claimed by this catalog change. Leave this PR unmerged pending maintainer confirmation.
Summary by CodeRabbit