Skip to content

feat(client): expose A2A 1.1 operations across transports - #387

Draft
msardara wants to merge 18 commits into
a2a-1.1/3-serverfrom
a2a-1.1/4-client
Draft

msardara wants to merge 18 commits into
a2a-1.1/3-serverfrom
a2a-1.1/4-client

Conversation

@msardara

@msardara msardara commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #386.

Add the A2A 1.1 client types, generation-aware requests, live exchanges and
consistent stream errors across bindings. Reject malformed JSON-RPC events and
normalize unsupported live endpoints. Check SSE framing with a metamorphic
framed/tail oracle rather than copying the decoder's payload-skip rules.

Validation: client tests, HTTP binding regressions, feature-matrix Clippy and
nightly fuzz-oracle tests.

@msardara
msardara added this pull request to stack #389 October 27, 2026 10:32
@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.62896% with 16 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
a2a-client/src/jsonrpc.rs 97.90% 8 Missing ⚠️
a2a-client/src/rest.rs 99.44% 2 Missing ⚠️
a2a-grpc/src/client.rs 94.59% 2 Missing ⚠️
a2a-slimrpc/src/client.rs 96.61% 2 Missing ⚠️
a2a-client/src/client.rs 98.43% 1 Missing ⚠️
a2acli/src/lib.rs 99.35% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@msardara msardara changed the title feat(client): expose the A2A 1.1 generation features feat(client): expose A2A 1.1 operations across transports Oct 30, 2026
@msardara
msardara removed this pull request from stack #389 October 30, 2026 17:27
@msardara
msardara added this pull request to stack #398 October 30, 2026 17:28
@msardara
msardara force-pushed the a2a-1.1/4-client branch 2 times, most recently from 29baa61 to ef53ebe Compare November 2, 2026 17:23
@msardara
msardara force-pushed the a2a-1.1/4-client branch 6 times, most recently from 432115d to 4abf42f Compare November 12, 2026 11:53
Suppress unchanged legacy status events when reconciling a reconnect so repeated interruptions cannot reset the outage timeout indefinitely. Continue printing generation-bearing status updates.

Signed-off-by: Mauro Sardara <[email protected]>
Start the lazy duplex RPC in an owned driver with bounded response buffering. Cancel the request stream when the downlink is dropped or the peer finishes, and use checked stream payload decoding. Cover eager delivery, 64 unpolled follow-ups, shutdown, and malformed live events.

Signed-off-by: Mauro Sardara <[email protected]>
Keep malformed google.rpc.Status responses as INTERNAL transport errors with the HTTP status and raw body. Verify ProtoJSON numeric strings preserve the intended A2A error while symbolic or malformed codes cannot override it through ErrorInfo.

Signed-off-by: Mauro Sardara <[email protected]>
Advertise both text/event-stream and application/json for calls that can return either a downlink or a JSON result. Verify the header across live opening, acknowledgement, and reopening requests.

Signed-off-by: Mauro Sardara <[email protected]>
Keep empty or omitted StreamError codes on the REST live stream while numeric status codes and named SSE error frames remain fatal. Restrict JSON content negotiation to live JSON-RPC calls and retain SSE-only ordinary streaming requests.

Signed-off-by: Mauro Sardara <[email protected]>
Suppress same-state task reconciliation only when its generation does not advance. Preserve legacy zero-generation repeat suppression and verify a reconnect prints Working generations 1 and 2 before completion.

Signed-off-by: Mauro Sardara <[email protected]>
Share the live driver cancellation flag with the uplink and recheck it after reserving channel capacity. Verify sends fail as soon as an unpolled downlink is dropped, before waiting for remote input shutdown.

Signed-off-by: Mauro Sardara <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant