Repository navigation
feat(acts): transport adapters - #60
Merged
Merged
Conversation
mykytanetipa
reviewed
Sep 6, 2026
…le redirect following across all dispatchers
mykytanetipa
approved these changes
Sep 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Binds ACTS's abstract operations and error names to the three wire protocols, so the runner can dispatch a step without knowing which binding carries it. Follows 4.1's corpus and loader; nothing evaluates assertions yet.
test_suite/acts/wire_map.pyis the single mapping table:{jsonrpc_method, grpc_method, rest_method, rest_path},{jsonrpc_code, grpc_status, http_status, reason}, plus reverse lookups.It tracks A2A §5.3 and §5.4, not the ACTS restatements of them, which ACTS §6.2's own footnote defers to and which are stale: §4.1 writes
GETforsubscribe_to_task, drops theTaskinfix from all four push-config methods and calls the collectionpushNotifications- a dispatcher built from that table 404s on every push-config call - while §6.2 givesVersionNotSupportedErrora code that belongs toInvalidAgentResponseError, and assigns-32007to an error A2A does not define.test_suite/acts/dispatcher/holds the three adapters behind one interface:dispatch,dispatch_rawandstream, all returning a commonWireResponse. An error from the SUT comes back asresponse.error; only a failure to complete the exchange raises.payloadis always the response message - JSON-RPC unwrapsresult, REST has no envelope, gRPC isMessageToDict- soexpect.bodyreads identically on all three. Errors are identified by JSON-RPCerror.codeorgoogle.rpc.ErrorInfo.reason, never by status: A2A §11.6 mandates thatErrorInfoprecisely because status is not injective, and a SUT that omits it leaves the error unnamed rather than guessed at.dispatcher/params.pyreshapes two operations whose params don't fit their request message, identically on every binding since all three carry the same messages.send_messagepassestaskId/contextIdbesidemessage, but those areMessagefields;create_push_confignestspushNotificationConfig: {url}, but the request message isTaskPushNotificationConfigwithurlat the top level. Neither is a guess - the same tests already assertexpect.bodyagainst the reshaped form. A test pins that every operation step in the corpus now parses into a valid A2A request.Other changes
a2a-sdkdependency is dropped. Nothing in the repo imported it; it arrived with the first commit and would have gained its first real user here, for the generated protobuf types.build_protos.shnow fetchesspecification/a2a.protoat a pinnedA2A_SPEC_REFand generatespyproto/a2a_pb2{,_grpc}.pybeside the existinginstruction_pb2ones - the proto is not vendored, the stubs are committed, same pattern as before.pydanticis now declared dependency