Skip to content

Conversation Lifecycle

A conversation starts working when it gets input. Then it may need a person, fail, wait, or finish. A person can also stop it or archive it. Its status shows where it is now, and every person sees the same status.

Status Meaning Indicator
working A turn runs or waits to start. Animated ring
needs_input It is blocked on a person, such as a sign-in or a question. Amber dot
failed The latest turn failed. Red dot
idle The turn ended, but the work is not done, such as while a watch waits. None
done The work is finished. None
stopped A person or the parent agent stopped it. None

An archived conversation keeps its status.

%%{init: {"flowchart": {"nodeSpacing": 8, "padding": 6, "diagramPadding": 0}}}%%
flowchart TB
input([New input]) --> working
working -->|blocked| needs_input
working -->|turn failed| failed
working -->|watch live| idle
working -->|finished| done
idle -->|last watch ends| done
idle -.->|watch fires| working
done ~~~ stop([A person or the parent stops]) --> stopped
class needs_input needs-input
class failed failed
New input moves any status to working. A stop moves any status to stopped.

A child agent is done when its result completes the task from its parent. Any other conversation is done when it replied to the latest message or trigger and no watch is live.

A conversation can start child agents. Lists, the Space sidebar, and the Threads panel show the roll-up of a tree: the first of needs_input, failed, working, and idle that any conversation in the tree has. If none has one, the tree is done, or stopped when its top conversation is stopped.

  • A Space shows the roll-up of its root conversation’s tree.
  • Archived conversations do not count.
  • Roll-ups are the same for every person. What waits on you is in your Inbox.

A child waits

One Task waits for a sign-in, and another failed. needs_input comes first, so the Space shows amber.

  • Space: Ship the billing migrationidle
    • Task: Connect Sentryneeds_input
    • Task: Backfill scriptfailed
    • Task: Audit the write pointsworking

Person signs in

Nothing waits on a person now. The failed backfill is next, so the Space shows red.

  • Space: Ship the billing migrationidle
    • Task: Connect Sentrydone
    • Task: Backfill scriptfailed
    • Task: Audit the write pointsworking

All done

The backfill ran again, and every conversation finished. The Space shows nothing.

  • Space: Ship the billing migrationdone
    • Task: Connect Sentrydone
    • Task: Backfill scriptdone
    • Task: Audit the write pointsdone
A conversation's Agents panel and the Space rows, each with its indicator
In the dashboard, the Agents panel shows each child agent's own status, and each Space row shows its roll-up.

For the full rules, such as interim results and the automated-turn limit, see design/conversation-status.md.

Read Watches to see how a conversation waits for an event.