Run lifecycle
This guide is a short entry point. The full walkthrough (state machine,awaiting_input, SSE, polling) is in the repository: run-lifecycle.md.
Quick facts
- Runs transition through
queued→running→ terminal (succeeded,failed,cancelled) orstalledpending recovery. - Progress is observable via
GET /v1/runs/{id}/eventsorGET /v1/runs/{id}/events/stream(SSE). - Human-in-the-loop flows use
POST /v1/runs/{id}/signalwhen the run is awaiting input.