1. Complete Wire-Format Migration Matrix (v0.3.0 → v1.0.1)
A2A v1.0.1 finalized the canonical Proto3 wire contract (a2a.proto). Gateways migrating from v0.3 must update eight structural surfaces to pass strict conformance suites (a2a-tck and a2a-card-guard --strict-v1):
| Surface | Legacy A2A v0.3.0 |
Canonical A2A v1.0.1 |
|---|---|---|
| Discovery Endpoint | /.well-known/agent.json | /.well-known/agent-card.json (CARD-DISC-002) |
| Interface Declaration | Top-level url, protocolVersion, preferredTransport | supportedInterfaces: [{url, protocolBinding, protocolVersion: "1.0"}] |
| Message RPCs | message/send, message/stream | SendMessage, SendStreamingMessage |
| Task RPCs | tasks/get, tasks/cancel, tasks/resubscribe | GetTask, ListTasks, CancelTask, SubscribeToTask |
| Extended Card | supportsAuthenticatedExtendedCard + agent/getAuthenticatedExtendedCard | capabilities.extendedAgentCard: true + GetExtendedAgentCard |
| TaskState Enum | "submitted", "working", "input-required" | "TASK_STATE_SUBMITTED", "TASK_STATE_WORKING", "TASK_STATE_INPUT_REQUIRED" |
| Part Union | {"kind": "text", "text": "..."} | Flat oneof: {"text": "..."}, {"raw": "..."}, {"url": "..."}, {"data": {}} |
| Security Schemes | {"type": "http", "scheme": "bearer"} | Proto3 oneof: {"httpAuthSecurityScheme": {"scheme": "Bearer"}} |
2. Side-by-Side AgentCard Wire Diff
-// Legacy /.well-known/agent.json (v0.3.0)
-{
- "name": "Order Reconciler",
- "url": "https://agent.acme.dev/a2a",
- "protocolVersion": "0.3.0",
- "preferredTransport": "JSONRPC",
- "supportsAuthenticatedExtendedCard": false
-}
+// Canonical /.well-known/agent-card.json (v1.0.1)
+{
+ "name": "Order Reconciler",
+ "version": "1.1.0",
+ "supportedInterfaces": [
+ {
+ "url": "https://agent.acme.dev/a2a",
+ "protocolBinding": "JSONRPC",
+ "protocolVersion": "1.0"
+ }
+ ],
+ "capabilities": {
+ "streaming": true,
+ "pushNotifications": false,
+ "extendedAgentCard": false
+ },
+ "securitySchemes": {
+ "bearerAuth": {
+ "httpAuthSecurityScheme": { "scheme": "Bearer", "bearerFormat": "JWT" }
+ }
+ },
+ "securityRequirements": [
+ { "schemes": { "bearerAuth": { "list": ["a2a:task.invoke"] } } }
+ ]
+}
3. Zero-Downtime Dual-Card & Method Compatibility Router
To maintain 100% compatibility with older v0.3 clients without polluting your signed v1.0.1 card with deprecated top-level fields, publish your canonical signed v1.0.1 card at /.well-known/agent-card.json, project a read-only v0.3 view to /.well-known/agent.json, and map legacy JSON-RPC method names via Object.hasOwn:
export const LEGACY_V03_TO_V1_METHODS: Readonly<Record<string, string>> = Object.freeze({
"message/send": "SendMessage",
"message/stream": "SendStreamingMessage",
"tasks/get": "GetTask",
"tasks/list": "ListTasks",
"tasks/cancel": "CancelTask",
"tasks/resubscribe": "SubscribeToTask",
"tasks/pushNotificationConfig/set": "CreateTaskPushNotificationConfig",
"tasks/pushNotificationConfig/get": "GetTaskPushNotificationConfig",
"tasks/pushNotificationConfig/list": "ListTaskPushNotificationConfigs",
"tasks/pushNotificationConfig/delete": "DeleteTaskPushNotificationConfig",
"agent/getAuthenticatedExtendedCard": "GetExtendedAgentCard",
});
export function normalizeA2AMethod(method: string): { canonical: string; legacyV03: boolean } {
if (Object.hasOwn(LEGACY_V03_TO_V1_METHODS, method)) {
return { canonical: LEGACY_V03_TO_V1_METHODS[method], legacyV03: true };
}
return { canonical: method, legacyV03: false };
}