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
Support exact native Pi extension tool selections #9254
An explicitly loaded Pi extension can register a native tool, while piToolsFor drops that tool's declared name from the agent's strict selection. Removing the selection would expose unrelated tools. MCP-specific name passthrough alone does not support ordinary names such as a CVE investigator's cve tool.
Implement ADR 0166 after its design PR is accepted, coordinating with #9179 rather than duplicating its MCP and child-permission work.
Required implementation
Keep existing built-in translations, and resolve exact native tool requests against tools supplied by the vetted extension set.
Reject a missing or ambiguous requested tool before inference. Never fall back to all extension tools or Pi defaults.
Emit explicit effective selections, including empty selections, and preserve native identity through hooks.
If delegation supports the selected tool, load the same vetted extension code and enforce the parent/child permission intersection. Otherwise refuse that path.
Keep repository-owned discovery disabled and retain extension integrity checks before launch and retry. Tool selection grants no shell, network or publication capability.
Update guides and migration notes. Previously ignored invalid tool names becoming setup errors require explicit breaking-change treatment in the implementation PR.
Acceptance
Use a neutral real-Pi extension with an allowed tool and a forbidden sibling. Prove only the selected tool executes, builtin shell/edit tools remain unavailable, an empty selection runs neither tool, and a missing name fails before the model call. Exercise hook denials, child permission intersections where supported, and extension integrity failures. Include Go patch coverage and normal runtime tests.
No CVE-specific names should be hardcoded into the runner.
Activity