Task lifecycle
One platform, distinct responsibilities. Explore the structure, follow a Task, and inspect where execution and trust boundaries sit.
ARCHITECTURE / 02
Task lifecycle
An illustrative tool-using Task. A Task that needs no tools can finish after inference; human interaction and delegation are conditional branches.
4 supporting components are available in the full architecture.
Explore by component
Expand a component for its role and limits. The reading steps below describe the flow.
READ THE FLOW
How to read this view
- 01
Authorize the caller, apply quotas and preserve submission idempotency.
- 02
Persist Task/Run and resolve admitted Agent, Environment, model and tool versions.
- 03
Claim a Run and compose permitted history, memory, files and Skills before driving the engine.
- 04
Route tools under policy; wait for the exact input/approval or join child Tasks when needed.
- 05
Retain output, artifacts and reported usage; observe events and reconcile after reconnecting.
Boundary review: 2026-11-27. States describe implemented contracts, not a live inventory or acceptance certificate. Motion follows your reduced-motion preference.
A tool-using Task moves from authenticated submission through durable orchestration, Worker inference and admitted execution to output, artifacts, events and usage records. Input, approvals, child Tasks and external tools are conditional branches, not mandatory stages for every Task.
Submit, admit and claim
The product backend authorizes its own user and business ownership, chooses an accessible Workspace/Agent binding and preserves submission idempotency. Network retries of the same request reuse the same key and input. The Control Plane resolves fixed versions, persists Task/Run and schedules against capabilities and capacity.
A Task is durable work; a Run is an execution attempt. A Worker claims a leased Run with state-version fencing, renews it and reports progress. Notifications wake consumers; persistent state still governs actual claims and transitions. See the Native Task API.
Context, models and tools
The Worker composes permitted instructions, Skills, files, history and published memory, then drives a Codex session. The model returns text or tool intent. Work without tools can finish after inference. Otherwise the admitted binding, engine mode and policy determine the execution path.
An operation may call a platform API, HTTP Executor, Runtime Host, MCP service or remote A2A Agent. Files and processes run within the selected execution boundary. Model credentials remain within the required model-call boundary. Domain providers extend capability through images, schemas and command manifests; core does not contain business-specific command tables.
Multi-Agent collaboration creates durable child Tasks and joins their results. Handoffs do not implicitly copy all parent history or grant arbitrary shared-directory access; participant, Workspace, memory and Artifact access still applies. See Goals and Workflows and Domain tools.
Wait and continue
Input or approval creates an explicit persisted waiting state. Answer the exact question using its schema and state version; a new Task is not a continuation. Approval grants only its operation scope. Live interactive input depends on the deployed Worker capability; source endpoints and transitions do not prove production enablement.
Display capacity waiting, inference, tool execution, human waiting and recovery separately. Queueing or retries are not continuous model generation. See Human interaction.
Observe, deliver and meter
Read the current snapshot and available history before subscribing to authorized SSE. Reconcile state and cursors after reconnecting. Configured Webhooks and channels deliver asynchronous results; receivers handle signatures, deduplication and retries.
Final output, Artifact metadata and reported usage belong to the Task/Run. Content uses authorized object transfers with size and digest verification. Signed download URLs expire and are not durable Artifact identifiers. Missing provider token/cache fields are not reported zeroes. See Events and Webhooks and Artifact delivery.