Upgrading from 0.10 to 0.11

No Rust signature changed. Three wire-format corrections, each labelled BREAKING (wire format) under ### Changed, plus one addition worth acting on. Nothing here is a compile error; all of it can fail a test, a gateway rule or a peer.

Six §5.4 error mappings corrected

ErrorCode::http_status() and ErrorCode::grpc_status() keep their signatures and return different values for six codes. The SDK had implemented a stale vendored copy of the specification's table. Upstream did not amend the document in place, as this entry previously said: the corrections shipped as the tagged patch release v1.0.1 on 2026-05-28, and A2A's v1.0.0 tag still carries the superseded table.

A2A errorHTTP was → isgRPC was → is
TaskNotCancelableError409 → 400—
ContentTypeNotSupportedError415 → 400—
InvalidAgentResponseError502 → 500—
PushNotificationNotSupportedError—UNIMPLEMENTED → FAILED_PRECONDITION
UnsupportedOperationError—UNIMPLEMENTED → FAILED_PRECONDITION
VersionNotSupportedError—UNIMPLEMENTED → FAILED_PRECONDITION

The Axum adapter carried a second, hand-written copy of the table that had drifted three more places (its TaskNotCancelable and InvalidStateTransition answered 409, its PushNotSupported answered 501; all are 400). It now defers to ErrorCode::http_status(). PayloadTooLarge (413) and Overloaded (503) remain adapter-specific because A2A has no error code for either.

What to change: any client that matches on the old status, any test that asserts it, any gateway rule keyed on it. The current values, as the crate returns them:

#![allow(unused)]
fn main() {
use a2a_protocol_types::ErrorCode;

assert_eq!(ErrorCode::TaskNotCancelable.http_status(), 400); // was 409
assert_eq!(ErrorCode::ContentTypeNotSupported.http_status(), 400); // was 415
assert_eq!(ErrorCode::InvalidAgentResponse.http_status(), 500); // was 502
assert_eq!(ErrorCode::UnsupportedOperation.grpc_status(), "FAILED_PRECONDITION"); // was UNIMPLEMENTED
}

If you grade against the official a2aproject/a2a-tck, expect two MUST failures — HTTP_JSON-STATUS-001 and GRPC-ERR-002. That suite vendors the same stale table; both rows are baselined with a reproduction in docs/official-tck-findings.md §20.

Push notifications are delivered as application/a2a+json

§4.3.3 specifies the A2A media type for the webhook POST; the sender used application/json. A receiver that matches the header exactly — a framework body parser keyed on application/json, a gateway rule, a WAF — stops accepting deliveries until it also accepts application/a2a+json. The body is unchanged, and any +json structured-suffix parser already handles it. The value is exported:

#![allow(unused)]
fn main() {
use a2a_protocol_types::A2A_CONTENT_TYPE;

assert_eq!(A2A_CONTENT_TYPE, "application/a2a+json");
}

WEBSOCKET_BINDING_URI (https://a2a-rust.com/bindings/websocket/v1) is new in a2a-protocol-types. §5.8 says a custom binding SHOULD be identified by a URI rather than a bare name. AgentInterface::protocol_binding is a free-form string the crates never match on, so nothing breaks either way — but a card advertising the bare "WEBSOCKET" should move, and a reader should accept both while cards in the wild carry the old spelling.

#![allow(unused)]
fn main() {
use a2a_protocol_types::{A2A_VERSION, AgentInterface, WEBSOCKET_BINDING_URI};

// (From 0.16, `AgentInterface` is `#[non_exhaustive]`: build it with `new`.)
let interface = AgentInterface::new("wss://agent.example.com:3002", WEBSOCKET_BINDING_URI) // was "WEBSOCKET"
    .with_protocol_version(A2A_VERSION);
let _ = interface;
}

Back to Upgrading Between Minor Versions.