Repository navigation
Add an optional A2A client for messages and tasks - #6123
Conversation
Add an optional Python extra for A2A with no changes to existing dependency versions or the native bridge.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Approved after comprehensive static review and an independent second review. Reviewed the optional A2A adapter, A2A 1.0 JSON-RPC wire shapes, fixed endpoint/card matching, separate credential suppliers and clients, bounded request/response handling, cancellation and timeout behavior, dependency integration, and manager recovery example. Durable reservations prevent automatic resend; recovery checks owner, endpoint, message, digest, task/context and trusted verdict before returning a result. No actionable findings.
Static review only; no candidate code or local tests executed.
Hosted check snapshot: {"SUCCESS": 18, "IN_PROGRESS": 6}. Unfinished checks remain pending.
Hosted CI completion: 33 checks passed, 2 skipped; no pending or failed checks.
Refresh follow-up (2026-11-22 21:45 UTC): rechecked current commit fd2935decbc31c83a92bdd4bf97c7deccdeeca30 against the prior reviewed patch and new base. Added/deleted patch lines are unchanged; surrounding integration context was reviewed with no actionable regression found. GitHub already associates this approval with the current commit; no duplicate review submitted. Earlier CI results above describe the prior commit. Current hosted CI: 5 in_progress, 19 success. Unfinished checks remain pending follow-up. Static review only; no candidate code or local tests executed.
Hosted CI follow-up (2026-11-22 22:10 UTC): current commit fd2935decbc31c83a92bdd4bf97c7deccdeeca30 completed with 33 successful checks and 2 skipped checks. No failures. Static review only; no local tests executed.
Update feat/remote-agent-tools against feat/simple-codex.
There was a problem hiding this comment.
Approved after static re-review of e2a3461 and an independent review. The new A2ATaskClient, send_message and get_task names are consistent across exports, implementation, manager example, documentation and tests. The underlying endpoint/card binding, credential separation, bounded I/O, task/context validation and reservation-before-send behavior are unchanged. Reviewed the refreshed base integration; no actionable findings.
Hosted CI at publication: 21 checks passed, 3 running. Unfinished checks remain tracked. Static review only; no candidate code or local tests executed.
CI follow-up (November 23): all hosted checks at this reviewed commit have completed: 33 passed and 2 skipped, including all eight wheel verifiers. The pending CI follow-up above is resolved. No candidate code or local tests executed.
Update feat/remote-agent-tools against feat/simple-codex.
There was a problem hiding this comment.
Approved after static re-review and an independent second review. refresh_task copies the task/context identifiers, drops the peer task before awaiting, and delegates one read to get_task with both identity checks preserved. Reviewed the full adapter's endpoint/card binding, credential separation, bounded exchange, cancellation, and payload-free error handling. The README checks pending state before refreshing and does not imply polling, replay safety, or authorization from the task alone. Regression tests cover one read, unchanged input, and mismatched task/context IDs. No actionable findings.
Hosted CI at review: 17 checks passed and 7 running, with no failures. Remaining checks require follow-up. Static review only; no candidate code or local tests executed.
Hosted CI follow-up (2026-11-24 03:32 UTC): all checks at this reviewed commit are complete: 33 passed and 2 skipped, with no failures. The pending CI follow-up is resolved. Static review only; no candidate code or local tests executed.
There was a problem hiding this comment.
Approved after static re-review and an independent second review. reserved_calls limits the query to the authenticated owner and run, then checks the current specialist grant and exact saved endpoint before returning call/name pairs. It makes no network requests or new reservations, and recover independently rechecks grants and receipt identity. Tests cover revoked grants, changed endpoints, owner/run isolation, and authorized subsets. Documentation correctly distinguishes reservations from verified outcomes. No actionable findings.
Hosted CI at review: 17 passed and 7 running, with no failures. Remaining checks require follow-up. Static review only; no candidate code or local tests executed.
Hosted CI follow-up (2026-11-24 06:27 UTC): all checks at this reviewed commit are complete: 33 passed and 2 skipped, with no failures. The pending CI follow-up is resolved. Static review only; no candidate code or local tests executed.
Update feat/remote-agent-tools against feat/simple-codex.
There was a problem hiding this comment.
Reviewed the refreshed A2A documentation against the existing adapter and manager, including independent review. The direct-call example uses a caller-owned message ID, sends once, checks progress at most once and validates completed verdict output. It clearly distinguishes direct calls from reservation-based recovery and preserves authorization and uncertain-delivery/no-resend guidance. No actionable findings. Hosted CI inspected: 5 passed, 19 running.
Other refresh changes incorporate the previously reviewed merged RunBudget base. Hosted checks remain tracked. Static review only; no candidate code or local tests executed.
Hosted CI update (2026-11-24 07:47 UTC): 33 passed, 2 skipped; no checks remain pending in the current rollup. Approval is unchanged. No local tests were run.
Update feat/remote-agent-tools against feat/simple-codex.
There was a problem hiding this comment.
Approved after comprehensive static re-review and an independent second review. Reviewed both direct Message and Task reply paths, protobuf type compatibility, response correlation and malformed-envelope checks, endpoint/card binding, separate credential providers, bounded I/O and cancellation, and AgentsException integration. The receipt manager preserves its pre-send reservation after a direct Message and recovers tasks through verified receipts without a second send. Documentation and regression cases match these boundaries. No actionable findings.
Hosted checks at publication: {"in_progress": 15, "success": 9}. Unfinished checks remain tracked. Static review only; no candidate code or local tests executed.
Hosted CI completion (2026-11-24 21:16 UTC): all current checks completed with 33 passed and 2 skipped, no failures. This CI follow-up is resolved. No local tests ran.
Summary
An A2A service can reply immediately or return a task to check later. The optional
A2AClientsupports both replies. Install thea2aextra and import the client fromagents.extensions.a2a.send_messagesends once. It returns a standard A2A 1.0MessageorTask. A direct reply needs no follow-up request.refresh_task(task)reads a task once. With saved IDs, useget_task(task_id=..., context_id=...). Both methods check that the returned IDs match.A2AError.reasonidentifies the failure. A timeout or cancellation can leave the remote outcome unknown. The client never retries, polls or cancels remote work on its own.The guide shows how to handle both replies. Its optional manager uses ordinary function tools. For recovery after a lost reply, the manager requires a task, a trusted receipt, a cooperating service and a current grant. It returns only an authorized yes/no verdict. A message ID alone cannot prevent duplicate work.
Test plan
Checks