# Agent Run Lifecycle

State machine for planning, tool execution, human approval, retries, and terminal outcomes

Guided views
Explore this system Step through curated paths without changing the source diagram.
Beat Next

Ready Chapter 01 / 01
Guided chapter
Diagram guide Explore this system

Inspecting compiled semantics

`E` Export `T` Theme `S` Style `0` Reset`+` Zoom in`-` Zoom out `Esc` Close

Find a node
⌕ `/`

No matching nodes

Semantic passport
``
Verified source
Authored reach
Route probe Choose a start node
Pick two semantic nodes on the diagram
Choose the source, then the destination. Direction matters.
Semantic lens Compare system roles

Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.

Choose a kind to inspect its nodes and touching relationships.

Semantic radar Building overview
Click node Drag to pan

### Main Path

- • The run has five ordered phases from queue to completion
- • The primary lifecycle is carried by one horizontal rail
- • Completion is a phase, not a detached side box

### Human + Input Gates

- • Approval pauses execution without ending the run
- • Blocked waits for missing user input
- • Wait states remain non-terminal until cancellation or expiry

### Terminal + Recovery

- • Failed loops back while retry budget remains
- • Cancelled and Expired are exits from the lifecycle
- • Terminal exits do not point back into active execution