Machine-readable companion: /docs-for-robots

Arc/docs

Traffic Model

Workflows And Traces

Workflows let Arc reason about multi-step runs instead of isolated requests. Traces and spans give you a single execution view across those calls.

Object Model

Workflow Model

Workflow

Defines execution policy such as budgets, duration, and enforcement mode.

contains many

Trace

One workflow execution identified by a trace ID.

contains many

Span / Call

Individual proxied requests or steps within a trace.

A workflow defines the policy. A trace is one execution inside that workflow. Each proxied call can become a span inside the trace.

Workflow Headers

X-Arc-Workflow

string

Workflow slug. If omitted, Arc can resolve the default active workflow for the project.

X-Arc-Trace-Id

uuid

Stable trace ID to continue an existing run or explicitly name a new one.

X-Arc-Span-Name

string

Human-readable name for the current span or call.

X-Arc-Parent-Span-Id

uuid

Optional parent relationship if you are constructing a tree of spans.

X-Arc-Trace-Status

completed | failed

Optional terminal status to close the trace when this request finishes.

Workflow Policy

Workflows can enforce budget caps, max duration, max calls per trace, and trace timeout. Arc evaluates these in the proxy path once workflow mode is active.

When to use workflows

Use workflows when your app makes several model calls that logically belong to one end-user run, such as an agent loop, tool plan, or orchestrated pipeline.