Dry run
A dry run steps the draft in the machine editor through a list of events you type, in the browser, before you publish. It does not create an instance and it does not call a Durable Object.
Open a machine, choose the Dry run tab, add event names and optional JSON payloads, and press Run. The step list shows each event's outcome, the state it left and the state it landed in, any guard it evaluated, and the effects a deployed instance would run.
What a dry run proves
- Each event lands on the same state, with the same context, that time-travel replay reconstructs for that definition and event list.
- Guards are evaluated. A rejected guard is shown with its expression and a fail result.
- Rejected steps show the rule value:
allowedTools:<tool>for a disallowed tool,allowedActions:<actionType>for a disallowedagent_step, andmaxContextByteswhen context exceeds the entered state's budget. Approval refusals showapproval:<code>; a disallowed actor showsallowedActors. - Effects a deployed instance would run (
log,http,emit,agent_step) are listed on the step.assignis applied to context and is not listed as an effect.
What a dry run does not prove
- Effects are not executed. No HTTP request is sent, no webhook is emitted, no log line is delivered, and no agent step is dispatched.
- Timers are not armed. A state's
afterdelay does not elapse. The timeout eventorchestate.afteris not sent unless you add it to the list yourself. - The live instance's lifetime
maxTransitionscounter is not applied. Replay does not feed that counter, and the dry run follows replay, so a long script can still be rejected for that budget after you publish and run it. - A draft that fails the publish structure or guardrail checks is not stepped. The panel shows those findings and produces no steps.
Next steps
- Quickstart — publish a machine and send events to a real instance.
- Machine definitions — guards, actions, and
aftertimers.