Agent-to-Agent Protocols › Summary
Language AI HandbookAll chapters Agent-to-agent protocols address the four failures that plain HTTP-and-natural-language cannot: capability ambiguity (addressed by discovery), task identity (addressed by stable task IDs), result structure (addressed by typed artifacts), and outcome disagreement (addressed by a shared lifecycle). The A2A specification, pinned to a specific revision, standardizes each of these.
- Discovery centers on the Agent Card served at a well-known URL, listing skills (units of capability), capabilities (transport features like streaming and push notifications), input/output modes, and security schemes. Discovery is a programmatic decision over structured metadata, but the card is an untrusted claim.
- Delegation sends a message. The receiving agent can answer with a direct message or return a task. A returned task has an
id, acontextId, a state, and artifacts as they become available. Initial retry safety depends on a documented message-ID deduplication policy. - Lifecycle states include
submitted,working,input-required,auth-required,completed,failed,canceled, andrejected. Completion, failure, cancellation, and rejection are terminal. Input and authentication requirements are interruptions and may need a client response. - Status events vs. artifacts is a deliberate separation: status events report progress and outcome, artifacts carry deliverable content. An artifact arrival is not a completion signal; a terminal status is.
- Cancellation is a request, not a guarantee. A cancel can lose to completion. In the mock, the first terminal transition wins and later operations leave the stored task intact. A caller can stop waiting at its own deadline and report that the remote outcome is unresolved.
- Interoperability is limited by semantic drift in skill descriptions and by spec-version differences; pin your spec revision, check advertised capabilities, and validate artifacts against the application’s expected media and content.
- Client policy (caching verified cards, enforcing per-task deadlines, draining status until terminal, and validating artifacts) is where robustness actually lives, and it is the client's job, not the protocol's.
The working in-memory exchange made each of these concrete: an idempotent submit that returns the existing task on retry, a bounded observation loop that answers input-required, and a cancel race that resolves deterministically to whichever terminal transition commits first. Those invariants, more than any wire format, are what make long-horizon delegation between independent agents safe. The closely related problem of when a human must approve a delegation or a cancellation is the subject of the next chapter, Human Approval and Control Boundaries, and the question of whether a whole multi-agent protocol exchange actually solved the task is handled in Long-Horizon Agent Evaluation.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!