An A2A agent replies with a stateless Message or a stateful Task
Answer: An A2A agent has two ways to answer a client message. A Stateless Message fits an immediate, self-contained exchange. The other option is to initiate a Stateful Task. The agent then runs that Task through a defined lifecycle. It reaches an interrupted state such as input-required. It can also end in a terminal state such as completed, canceled, rejected, or failed.
Grouping
A contextId is a key identifier. It groups multiple Task objects and independent Message objects. The agent responds with a new contextId. Later client messages keep the same contextId when they continue a previous interaction. If a task is initiated, it will also have a taskId.
See also
Claims
- id: C1 claim: An agent can respond with a stateless Message or a Task. source: S1 evidence: "it can respond in one of two ways"
- id: C2 claim: A Task reaches a terminal state such as completed or failed. source: S1 evidence: "completed , canceled , rejected , or failed"
- id: C3 claim: A contextId groups related Task and Message objects. source: S2 evidence: "It groups multiple
Taskobjects and independentMessageobjects"
- id: C4 claim: Later messages repeat the same contextId to continue. source: S2 evidence: "clients send later messages with the same
contextId"
Sources
- [S1] Life of a Task. A2A Protocol. https://a2a-protocol.org/latest/topics/life-of-a-task/ . License: Apache-2.0. Accessed 2026-11-16.
- [S2] Life of a Task (source). a2aproject/A2A (GitHub). https://github.com/a2aproject/A2A/blob/main/docs/topics/life-of-a-task.md . License: Apache-2.0. Accessed 2026-11-16.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: A2A Protocol, Life of a Task, Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE); a2aproject/A2A (GitHub), Life of a Task (source), Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE). Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: A2A Protocol, Life of a Task, Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE); a2aproject/A2A (GitHub), Life of a Task (source), Apache-2.0 (https://raw.githubusercontent.com/a2aproject/A2A/main/LICENSE).
Cite this
iinventedlight. 2026. "An A2A agent replies with a stateless Message or a stateful Task." iinventedlight Library, iil:note:zhp441z5, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-a2a-task-lifecycle/. License: CC-BY-4.0.
@misc{iil_note_zhp441z5,
author = {{iinventedlight}},
title = {{An A2A agent replies with a stateless Message or a stateful Task}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-16},
url = {https://iinventedlight.com/library/notes/ao-a2a-task-lifecycle/},
note = {Permanent ID iil:note:zhp441z5. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- ao-a2a-task-lifecycle.table.json (table; CC-BY-4.0)
- ao-a2a-task-lifecycle.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-a2a-task-lifecycle.md.