Repository navigation
Gateway/UI: data-driven agents tools catalog with provenance - #24199
Conversation
3c3ce5c to
5b35e3d
Compare
|
PR #24199 - Gateway/UI: data-driven agents tools catalog with provenance (#24199) Merged via squash.
Thanks @Takhoffman! |
…w#24199) thanks @Takhoffman Verified: - pnpm install --frozen-lockfile - pnpm build - gh pr checks 24199 --watch --fail-fast Co-authored-by: Takhoffman <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
…w#24199) thanks @Takhoffman Verified: - pnpm install --frozen-lockfile - pnpm build - gh pr checks 24199 --watch --fail-fast Co-authored-by: Takhoffman <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
…w#24199) thanks @Takhoffman Verified: - pnpm install --frozen-lockfile - pnpm build - gh pr checks 24199 --watch --fail-fast Co-authored-by: Takhoffman <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
…w#24199) thanks @Takhoffman Verified: - pnpm install --frozen-lockfile - pnpm build - gh pr checks 24199 --watch --fail-fast Co-authored-by: Takhoffman <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
…w#24199) thanks @Takhoffman Verified: - pnpm install --frozen-lockfile - pnpm build - gh pr checks 24199 --watch --fail-fast Co-authored-by: Takhoffman <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
…w#24199) thanks @Takhoffman Verified: - pnpm install --frozen-lockfile - pnpm build - gh pr checks 24199 --watch --fail-fast Co-authored-by: Takhoffman <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
…w#24199) thanks @Takhoffman Verified: - pnpm install --frozen-lockfile - pnpm build - gh pr checks 24199 --watch --fail-fast Co-authored-by: Takhoffman <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
|
Hi @zeroaltitude and team, This is a very well-thought-out proposal. The hook surfaces you've outlined are exactly what security plugins need to enforce trust policies. I'd like to propose a complementary layer: a pluggable execution backend that can enforce these policies at runtime. Our project agent-core is a Rust-based WASM execution engine that provides:
With agent-core as an optional execution backend, security plugins could:
I'd love to collaborate on integrating agent-core as a reference implementation for the trust-aware plugin ecosystem. Happy to provide a PoC or contribute to the RFC discussions. agent-core repo: https://github.com/d87skg/agent-core-temp |
…w#24199) thanks @Takhoffman Verified: - pnpm install --frozen-lockfile - pnpm build - gh pr checks 24199 --watch --fail-fast Co-authored-by: Takhoffman <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
…w#24199) thanks @Takhoffman Verified: - pnpm install --frozen-lockfile - pnpm build - gh pr checks 24199 --watch --fail-fast Co-authored-by: Takhoffman <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
…w#24199) thanks @Takhoffman Verified: - pnpm install --frozen-lockfile - pnpm build - gh pr checks 24199 --watch --fail-fast Co-authored-by: Takhoffman <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
…w#24199) thanks @Takhoffman Verified: - pnpm install --frozen-lockfile - pnpm build - gh pr checks 24199 --watch --fail-fast Co-authored-by: Takhoffman <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
Summary
Describe the problem and fix in 2–5 bullets:
/agentsTools and shared tool policy were static and drifted from runtime tool registration, so tools likettswere missing from the UI/policy view.tools.catalogRPC, shared core tool catalog source,/agentsdata-driven rendering, per-tool provenance labels (core/plugin:<id>+optional), protocol/schema updates, tests, and docs/changelog updates.allow/denystill authoritative).Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
/agentsTools now loads a runtime catalog viatools.catalog.coreorplugin:<id>, andoptionalwhere applicable.ttsnow appears in the core media group/path where expected.Security Impact (required)
Yes/No): Yes (tools.catalogread RPC added underoperator.read)Yes/No): NoYes/No): Yes (Control UI now requeststools.catalog)Yes/No): No execution semantics changeYes/No): NoYes, explain risk + mitigation:operator.read), validated params/schemas, and contains metadata only (no secrets or execution side effects).Repro + Verification
Environment
Steps
/agentsTools panel for an agent.Expected
tts) with provenance labels.Actual
Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
pnpm checkpasses.tools.cataloghandlers and WS integration.agentIdreturns invalid request.includePlugins=falseexcludes plugin groups.Compatibility / Migration
Yes/No): YesYes/No): NoYes/No): NoFailure Recovery (if this breaks)
tools.catalogusage.ui/src/ui/views/agents-panels-tools-skills.ts,ui/src/ui/controllers/agents.ts, gatewaytools-catalogfiles, protocol schema/type exports./agentsdue to catalog fetch failure.Risks and Mitigations
List only real risks for this PR. Add/remove entries as needed. If none, write
None.Greptile Summary
This PR migrates the Tools panel from static UI definitions to a data-driven architecture powered by a new
tools.catalogRPC endpoint. The implementation extracts shared tool definitions tosrc/agents/tool-catalog.ts, adds runtime catalog retrieval with per-tool provenance labels (corevsplugin:<id>plusoptionalmarkers), and provides graceful fallback to static definitions when the runtime catalog is unavailable.Key changes:
tools.catalogRPC method underoperator.readscope with agent-scoped catalog retrievalsrc/agents/tool-catalog.tsIntegration points:
server-methods.tsand listed inserver-methods-list.tsloadToolsCatalogfetches catalog on agent selectionConfidence Score: 4/5
Last reviewed commit: 3c3ce5c