a2a: GetExtendedAgentCard through the mesh returns the agent's own URLs
Maintainer thường phản hồi trong vòng 1 ngà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
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- backend-api-design, networking
Hướng nghiên cứu
Start by reading the A2A egress proxy path that forwards JSON-RPC and HTTP+JSON requests, then compare it with the public Agent Card regeneration path and TestA2ACUJ. The issue describes two possible approaches but asks maintainers to choose between them, so the first step is to get that design decision. Done means the extended card served through the mesh has interfaces and capabilities consistent with the public card, with tests covering both request protocols.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What is broken
The caller's node regenerates the public agent card, but not the extended
card. GetExtendedAgentCard (JSON-RPC) and GET /extendedAgentCard
(HTTP+JSON) are proxied as they are, so the extended card a client gets
through the mesh still names the provider's private addresses: the
127.0.0.1 JSON-RPC URL, the gRPC interface the mesh dropped from the public
card, and capabilities that differ from the public card the mesh served.
How to reproduce
Two nodes, an a2a-go agent whose public card declares
capabilities.extendedAgentCard: true and an extended card with a JSON-RPC
interface at http://127.0.0.1:7777 and a gRPC interface at
10.0.0.5:50051 (a2asrv.WithExtendedAgentCard). A stock a2aclient
built from the regenerated card calls GetExtendedAgentCard through node B
(same setup as TestA2ACUJ; I can post the test if it helps). Output on main
(273e6fb), Linux:
public card via mesh: streaming=false interfaces=[JSONRPC http://127.0.0.1:10092/mesh/12D3KooW.../a2a/ext]
extended card via mesh: description="extended" streaming=true interfaces=[JSONRPC http://127.0.0.1:7777 GRPC 10.0.0.5:50051]
extended card interface JSONRPC "http://127.0.0.1:7777" is not a mesh URL
extended card interface GRPC "10.0.0.5:50051" is not a mesh URL
SendMessage with a client built from the extended card: err=failed to send HTTP request: Post "http://127.0.0.1:7777": dial tcp 127.0.0.1:7777: connect: connection refused
Expected
A2A 1.0, section 3.1.11 (specification.md, line 425):
Card Replacement: Clients retrieving this extended card SHOULD replace
their cached public Agent Card with the content received from this endpoint
and section 8.3.1 (line 2000): "Each interface MUST accurately declare its
transport protocol and URL". A client that follows 3.1.11 drops the mesh URL
and dials the provider's private address. Where that address happens to be
reachable from the caller, the call skips the caller's node, so the labels
gate and the provider's policy check never see it.
Possible fix
The extended card needs the same regeneration as the public one. For
HTTP+JSON the request is recognisable from the path (GET .../extendedAgentCard). For JSON-RPC the method is in the request body, so
the egress proxy would have to read the body of POSTs on a2a routes to find
GetExtendedAgentCard, then rewrite result in the response. That is a
change to the proxy hot path, so I have not sent a patch; I would like to
know which way you prefer first:
- Read and bound the JSON-RPC request body on a2a egress routes, regenerate
theresultofGetExtendedAgentCard. - Refuse
GetExtendedAgentCardon the mesh (answer
UnsupportedOperationError) and setcapabilities.extendedAgentCardto
false in the regenerated public card, the way streaming is handled today.
- Ngôn ngữ chính
- Go
- Star
- 1.2k
- Fork
- 207
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 85
Chuẩn bị môi trường
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.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của google/agentmesh
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
google/agentmesh#952 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Proposal: Out of Band Host Containment and Local Veto Hook for Uncooperative Agents (KillSwitch Integration)Có thể đã có người làm @oyesanyf đã nhận 15 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
google/agentmesh#879 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của google/agentmesh
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
projectcalico/calico#14766 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
forward/review service/container
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
hashicorp/terraform-provider-google#30852 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
docs(scheduling): a rolling deploy can open a second launch-gate episode (old replica after new)Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
SocialGouv/iterion#3826 ·
Maintainer thường phản hồi trong vòng 1 ngày