Skip to content
AgentOS
DocumentationOrchestration

Platform

Orchestration

Workflows, triggers, retries, approvals and versions.

Every run is a durable workflow. Its state is saved after each step, so a run can wait for an approval, survive a restart and continue where it stopped.

Planned and explicit steps

By default an agent plans its own steps, within its tools, policies and limits. Add a steps section when the order matters, for example when a person has to approve before anything is changed.

agents/incident-responder.yamlYAML
name: incident-respondermodel: reasoning triggers:  - event: pagerduty/incident.triggered steps:  - id: gather    parallel:      - tool: datadog.query_metrics      - tool: datadog.search_logs      - tool: github.list_deployments    retry: { attempts: 3, backoff: exponential }   - id: plan    model: reasoning   - id: approve    approval:      approvers: ["oncall:platform"]      channel: slack      timeout: 15m   - id: remediate    tool: github.rollback_deployment
KeyDescription
toolCall one tool.
modelAsk a model profile to reason over what has been gathered so far.
parallelRun several steps at the same time and continue when all have finished.
approvalPause until a person approves or rejects.
retryThe number of attempts and the backoff between them.

Durable execution

When a worker restarts or a provider times out, the run continues from the last completed step. Completed steps are not run again.

A step that is retried may reach a tool more than once. The gateway sends the same idempotency key on every attempt of a step, so servers that support it apply the change once.

Retries and failures

A failed step is retried with the backoff you set. If it still fails, the run stops at that step with its state intact and is marked as failed. Fix the cause and resume the run, or cancel it.

Approvals

An approval step pauses the run and notifies the approvers. A paused run holds no compute and can wait for as long as its timeout allows.

KeyDescription
approversA group (group:finance-controllers), an on-call schedule (oncall:platform) or a person's manager (manager_of:args.user).
channelWhere the request is sent: slack, email or console.
timeoutHow long to wait for a decision.
on_timeoutdeny the action, or escalate to the next approver.

Approvals can be written into a workflow, as above, or required by a policy for specific actions. See Permissions and policies.

Agents calling agents

An agent can be exposed to other agents as a tool. The child run appears inside the parent's trace, and it inherits the caller's permissions unless a policy narrows them.

Concurrency

Limits can be set for an agent, a tool or a tenant. Work beyond a limit waits in a queue, so a burst of events does not overwhelm a downstream system.

Traces

Each run has one trace: the plan, model calls, tool calls, policy decisions, approvals and output on a single timeline, with tokens, cost and duration for every step. The runs view in the demo console shows several.