Repository navigation
v1.0.2
Catch-up with the Python SDK from 0d5473c to 494a8ec (a2a-sdk 1.2.0 to 1.2.2). Interop tests now pin a2a-sdk 1.2.2.
Fixed
- ListTasks page tokens survive the listing changing. A token named the first task of the next page and was looked up again, so deleting that task made the next request fail with
InvalidParamsError, and updating it restarted the listing with duplicates. Tokens now carry the sort position of the last task returned (TaskUtils::encodeListTasksCursor()), and the next page starts strictly after it. Tokens issued by 1.0.x are still accepted. BothInMemoryTaskStoreandPdoTaskStore; Python b7cba7c. CreateTaskPushNotificationConfigreturns the id the config was stored under. A config created without an id was stored under the task id but returned with an empty id, so the client could not get or delete it. The newPushNotificationConfigs::normalize()is what every store saves and what the handler returns; the store interface is unchanged. Python dac7d9d.- JCS depth bound counts open containers, the outermost at 1, so an empty object or array at depth 129 is refused like any other container past the bound (it was accepted). Also in
Signing::cleanEmpty(). Python 5653daf. - The client prefers an A2A 1.0 interface regardless of its patch version (
1.0.0and1.0.3count as1.0). Before,1.0.0was treated as "above 1.0" and could lose to another interface. Python cbb2d84. - A wrongly shaped response no longer slips through as a PHP warning. The pure-PHP protobuf runtime warns and carries on for some shape errors (for example
securitySchemesas a string); the client now raisesA2AClientErrorfor those, as for any unreadable response. Python 486f0f6. - Agent Card
If-None-Matchuses the weak comparison and accepts*(RFC 9110). Proxies that weaken ETags, such as nginx when it gzips, got a full response every time instead of a 304. Python 83d7f5d.
Changed
- A JSON-RPC request whose params cannot be parsed gets
InvalidParamsErrorwithdata.parseErrorholding the parser's message. Python 83f1cf8.
Added
- Dependabot: weekly grouped update PRs for GitHub Actions, Composer (
widen, so supported ranges are kept) and the interop test packages. Dependabot security alerts and security updates are enabled. ProtoUtils::warnOnMissingRequiredFields():DefaultRequestHandlerand the Agent Card route (given a logger) log a warning when a card misses REQUIRED fields, without failing. Python 4f4101c.- Tests: the cross-SDK Agent Card signature vectors (cards signed by a2a-python, @a2a-js/sdk, a2a-go and a reference signer verify in PHP, with identical canonical bytes) and the
jcs_depth_v1depth vectors, both copied from a2a-python.
Not ported yet
- Python's cluster mode (
a2a.server.cluster, versioned task store). PHP already shares task state across processes throughQueueManager; what is missing is versioned task writes. See the Python → PHP mapping. - Python's opt-in input-mode validation.
- Python's
application/a2a+jsonresponses (dc5a5da). Spec v1.0.0 and the A2A TCK still requireapplication/json, so HTTP+JSON keeps it.
Install: composer require praveendias1180/a2a-php:^1.0 (Laravel: praveendias1180/a2a-laravel:^1.0)