Graphs that refuse to be wrong later
A workflow is validated before it is stored, published by version, and executed by a runtime that bounds every node. When a graph cannot run as drawn, the product says so instead of discovering it halfway through a run.
Validation comes first
validateWorkflow rejects a definition that cannot execute. publishWorkflow stores an immutable version.
- Structure checked
- Nodes, edges and required configuration are validated as a graph; unreachable or malformed structures fail with a taxonomy error.
- Parallelism bounded
- The default parallel branch limit is 4 and the hard ceiling is 8. A definition asking for more is rejected, never silently clamped.
- Versions, not edits
- Publishing creates a version. A run records the version it executed.
The runtime bounds every node
Each node type declares its own timeout and retry policy; the runtime applies them and escalates through the node's onError policy.
| onError | Result |
|---|---|
| fail_run | The run stops with the node's error code. |
| continue | The run proceeds, recording the node as failed. |
| route:<nodeId> | Control transfers to the named node with the failure recorded. |
Transient failures retry up to the node's declared maximum (two attempts). Approval and invalid-input failures never retry — retrying them would only repeat the same refusal.
Approvals share the same expiry sweep as agent runs: every five minutes, expired approval steps close as timed out with an audit event and a notification.
How runs start
Only paths that exist in the codebase are listed.
- Callable
- startWorkflowRun requires org membership and the workflow's execution entitlement. Starts are rate-limited per user and per org.
- Schedule
- runScheduledWorkflows starts due scheduled workflows on a scheduled function.
- Webhook
- workflowWebhook accepts an inbound trigger for workflows configured with a webhook entry point.
Build one and validate it
The workflow builder validates as you go. A definition that cannot run is refused at save time.