Client continuation messages can be stored with the agent role
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 50/100
Hướng nghiên cứu
Start in DefaultRequestHandler.onMessageSend, where a client message reaches the executor with ROLE_AGENT and is written to task history for an existing task. The probe test DefaultRequestHandlerTest#probeClientAgentRoleIsAccepted reproduces the sequence and can be adapted to assert rejection. Done means a client message without ROLE_USER is refused before the executor runs or history changes, and the existing tests still pass. Confirm the rejection behaviour with maintainers first, since the issue proposes enforcing the protocol direction rather than citing an explicit MUST.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened?
A client can send an agent-authored message to DefaultRequestHandler.onMessageSend when continuing an existing task. The request succeeds, the executor receives ROLE_AGENT, and the same caller-supplied message is persisted in the task history with ROLE_AGENT. This can make client text appear agent-authored to history consumers.
Reproduced on a2a-java main 897835ef with an in-memory task store and the real default request handler:
- Save a task in
TASK_STATE_INPUT_REQUIREDwith a task ID and context ID. - Call
onMessageSendwith a message containing those IDs, a text part, andMessage.Role.ROLE_AGENT. - Have the executor start work and complete the task.
- The call succeeds;
RequestContext.getMessage().role()isROLE_AGENT, and the persisted task history contains the caller's message ID withROLE_AGENT.
A focused JUnit test using this sequence passed with mvn -o -pl server-common -am -Dtest=DefaultRequestHandlerTest#probeClientAgentRoleIsAccepted -Dsurefire.failIfNoSpecifiedTests=false test. This reproduction uses the default handler directly, not a network transport. It establishes the existing-task continuation case; it does not claim the new-task response has the same history behavior.
Expected behavior
Reject client messages without ROLE_USER as invalid input before invoking the agent or updating task history. The protocol describes ROLE_USER as client-to-server and ROLE_AGENT as server-to-client. This proposes enforcing that direction rather than asserting a separate explicit protocol MUST for rejection.
Related reports: a2aproject/a2a-go#564, a2aproject/a2a-js#819, a2aproject/a2a-rs#557 and a2aproject/a2a-dotnet#607.
- Ngôn ngữ chính
- Java
- Star
- 514
- Fork
- 200
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 53
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 a2aproject/a2a-java
-
Document 1.x is the actively supported stream, and not 0.3.xCó thể đã có người làm @Linux2010 đã nhận 2 ngày trước. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 62/100
a2aproject/a2a-java#1321 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
HTTP+JSON CancelTask returns 409 Conflict instead of 400 Bad Request for TaskNotCancelableErrorCó thể làm lại được @ravismash đã nhận 9 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
a2aproject/a2a-java#1298 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix: handle blank push notification config id consistently across transportsCó thể đã có người làm @prachisinghal-1 đã nhận 24 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
a2aproject/a2a-java#1012 · 2 bình luận · 1 người được giao ·
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 65/100
a2aproject/a2a-java#464 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Create a sample that demonstrates how to use a shared contextId across multiple tasksCó thể làm lại được @tanish111 đã nhận 390 ngày trước và không có pull request nào đang mở. Đang mởsample
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
a2aproject/a2a-java#375 · 5 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của a2aproject/a2a-java
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/skywalking#14239 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
account bug exercise lecture modeling programming
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Re-executed query with IN condition on an index column returns deleted rows (stale IndexCursor)Có thể đã có người làm @dbusche đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
h2database/h2database#4580 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vips-drift
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Stirling-Tools/JPDFium#300 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
hermes-queue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
chrisalunlloyd2-sudo/mindpalace#403 ·
Maintainer thường phản hồi trong vòng 1 ngày