A2A Protocol
Course overview
A2A (the Agent2Agent Protocol) addresses how independently built, potentially opaque Agent applications discover capabilities, exchange messages, manage long-running work, and deliver results. It does not prescribe an Agent’s internal reasoning, nor does it replace MCP, Tool Calling, or a specific Agent framework.
This course uses A2A Protocol `1.0.0` as its contract baseline. It develops testable engineering understanding of protocol boundaries, Agent Cards, Task lifecycles, the three standard bindings, asynchronous delivery, identity and authorization, multitenant isolation, version migration, and interoperability testing. The lessons and examples are original to this project; the official specification is used only as a factual source and does not reproduce its text or SDK.
A moving boundary
On 2026-07-21, the A2A official site listed `1.0.0` as the latest released version. The protocol core has reached a stable release, but SDKs, extensions, the TCK, and framework adapters can still change. Before a production integration, re-check the official specification, the target SDK version, and the server Agent Card. This course’s offline validator is a teaching contract, not official conformance certification.
Why this belongs in “Frontier and references”
`frontier-reference` accepts only topics that meet all of these conditions:
- They have a public, versionable primary specification or original paper, rather than a marketing concept alone.
- They can produce testable engineering artifacts rather than merely list news.
- Their boundary with the main curriculum is clear, so they do not duplicate the existing knowledge base.
- They explicitly record the observation date, adoption conditions, exit conditions, and migration risks.
- Their core learning method remains transferable even if the ecosystem changes.
A2A 1.0 has a formal specification, version negotiation, standard bindings, a security section, and interoperability-test requirements. Learners can produce Agent Cards, Task-state contracts, negative test cases, and adoption records, so it meets the admission criteria. It remains an optional course on both role tracks; it is not presented as a default dependency for every Agent project.
Where it fits in the overall roadmap
- Agent application development: study it after completing single-Agent, workflow, or multi-Agent practice, when cross-framework or cross-organization delegation is needed.
- Agent platforms and reliability: study it when building an Agent catalog, gateway, identity layer, version compatibility, or interoperability testing.
- In-process sub-Agents, handoffs inside one framework, and ordinary tool calls do not need A2A merely to “keep up with the trend.”
The following capabilities are recommended but are not whole-course hard prerequisites:
- Ability to read JSON, HTTP, authentication headers, and state machines.
- Understanding of delegation, routing, and failure isolation in Multi-Agent Collaboration.
- Understanding of trust boundaries and object-level authorization in AI Safety.
Learning objectives
- Accurately distinguish A2A, MCP, Tool Calling, Agent frameworks, and ordinary business APIs.
- Design an Agent Card that makes capabilities discoverable without overexposing internal details.
- Correctly distinguish Message, Task, TaskStatus, Part, and Artifact.
- Choose suitable delivery and recovery strategies for polling, streaming subscriptions, and webhooks.
- Separate authentication, authorization, tenant routing, credential acquisition, and approval into independent boundaries.
- Identify the breaking structural changes from A2A `0.3` to `1.0` and establish evidence for a dual-version migration.
- Run the offline contract-validation project and state which online properties it does not prove.
Recommended sequence
- Protocol boundaries and architecture
- Agent Cards, discovery, and trust
- Task, Message, and Artifact lifecycles
- Transports, streaming, asynchrony, and version negotiation
- Authentication, authorization, and multitenant security
- Interoperability testing, migration, and adoption decisions
- Project: offline A2A contract validation
The protocol’s place at a glance
```mermaid flowchart LR U[“User or upstream system”] —> CA[“Client Agent”] CA —>|“A2A: discovery, messages, Tasks, Artifacts”| RA[“Remote Agent”] CA —>|“MCP: tools and resources”| CT[“Client Agent tools”] RA —>|“MCP or business API”| RT[“Remote Agent tools”] CA -. “Framework-internal orchestration” .-> SUB[“Local sub-Agent / workflow”] ```
This diagram is an original redraw for this project. It expresses responsibility boundaries; it does not mean that every system must use both A2A and MCP.
Mastery standard
- Decide from a requirement whether it needs protocol interoperability or an in-application function call.
- Inspect the required Agent Card fields, binding, version, capabilities, and security declarations.
- Explain the different recovery paths for `INPUT_REQUIRED`, `AUTH_REQUIRED`, and terminal states.
- Write negative tests for webhook replay, SSRF, unauthorized queries, cross-tenant IDs, and untrusted Artifacts.
- Explain why a `0.3` structure cannot impersonate `1.0`, and provide evidence for a gradual migration and rollback.
- Report offline schema/state checks separately from validation with a real SDK, TCK, TLS, identity provider, and production observability.