You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG][Medium]- Same named tools can execute under another tool's capability declaration #94
Distinct tools from qualified Rust paths can share the same final function name. The program builder retains the first declaration for that name, including its capabilities, while the generated runtime environment binds tools by the same bare name and a later binding replaces the earlier implementation. In a module that lists a lower privilege tool before a compatible privileged one, a tool call can reach the privileged implementation under the lower privilege declaration.
Reject conflicting same name tools during program construction, or preserve a qualified stable identity through declaration, binding, validation, and dispatch.
Ensure the capability declaration checked at load belongs to the implementation actually invoked.
Acceptance criteria
Two distinct same name tools cannot silently share a tool ID or overwrite each other's runtime binding.
The invoked implementation's capabilities are validated before execution.
Related issues
#33 requested tool support; #72 concerns typed tool architecture. This ticket is the specific mismatch between retained capability metadata and the implementation selected by name.
Activity
fix: bind host capabilities and reject tool name collisions (krypticm…