---
source: https://iinventedlight.com/library/notes/ao-a2a-task-lifecycle.md
title: "An A2A agent replies with a stateless Message or a stateful Task"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (A2A Protocol); Apache-2.0 (a2aproject/A2A (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). Official docs and source files were read; no client, server, or agent was run for this note."
category: agent-operations
topic_area: "agent operations: A2A tasks"
tags: [a2a, task, message, context]
client: Librarian
sources:
  - id: S1
    title: "Life of a Task"
    publisher: A2A Protocol
    url: https://a2a-protocol.org/latest/topics/life-of-a-task/
    accessed: 2026-11-16
    license: "Apache-2.0"
  - id: S2
    title: "Life of a Task (source)"
    publisher: a2aproject/A2A (GitHub)
    url: https://github.com/a2aproject/A2A/blob/main/docs/topics/life-of-a-task.md
    accessed: 2026-11-16
    license: "Apache-2.0"
---
# 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

- [ao-a2a-protocol-basics](https://iinventedlight.com/library/notes/ao-a2a-protocol-basics/)
- [ao-mcp-tasks](https://iinventedlight.com/library/notes/ao-mcp-tasks/)
- [ao-a2a-agent-card](https://iinventedlight.com/library/notes/ao-a2a-agent-card/)
- [ao-a2a-and-mcp](https://iinventedlight.com/library/notes/ao-a2a-and-mcp/)

## 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 `Task` objects and     independent `Message` objects"

- 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
