[FEATURE] Declared agent-to-agent delegation for Substrate actors (follow-up to #3007 deferral of subAgent.agentRef)

未关闭
#3,642 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
go

调研方向

Read runtimeauth.Authorizer, docs/architecture/a2a-gateway.md, and the prior discussion in #3007 to understand the current actor access rules and deferred design. The issue asks maintainers to choose between subAgent.agentRef and configurable actor grants; implementation and completion criteria depend on that decision.

由索引模型根据 Issue 内容生成。

描述

On v1.0.0, an Agent running as a Substrate actor cannot call another Agent. runtimeauth.Authorizer allows an actor to get only its own Agent and Session, and docs/architecture/a2a-gateway.md says that cross-agent delegation and configurable actor grants are not implemented.

The workarounds don't cover it:

  • The shared subAgent.templateRef compiles into the parent's runtime, so it can't give the peer its own MCP servers, credentials, Session or harness.
  • invoke_agent (#3486) is unavailable to actors for the same reason.

We carry a small patch for this (planeodev/kagent#12). Peers must be declared by annotation and be in the same namespace. Calls are served on behalf of the Session owner, and no bearer token is passed to the peer. We would like to upstream this policy, either as part of Dedicated subagents or as configurable actor grants.

Question: which shape do the maintainers prefer?

  1. subAgent.agentRef with the same rule (the follow-up deferred in #3007).
  2. An actor grant in the authorizer configuration.

We're happy to send the PR for whichever shape you pick.

主要语言
Go
星标
4.5k
派生
937
平均合并
1 天 10 小时
30 天内合并 PR
150

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

kagent-dev/kagent 的其他 Issue

查看 kagent-dev/kagent 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。