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

Đang mở
#3,642 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
go

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
4.5k
Fork
937
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
150

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của kagent-dev/kagent

Tất cả issue của kagent-dev/kagent

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.