AI agents now work inside Duna processesSee agentic orchestration
Documentation/Test & operate

Simulation and testing

Duna’s real simulation service runs a draft on a throwaway in-memory engine. It does not persist a production instance. Side-effecting work can be stubbed; file operations use the simulation store.

The verified entry points

  • POST /definitions/simulate simulates a definition draft.
  • POST /evaluate evaluates an expression using the documented request contract.

The simulation request model includes definition, initial vars, action stubs, canned children, ordered wait resolve entries, options, optional file seeds, mock service configuration and checks. Use the source API reference for limits and exact shapes.

A practical testing loop

  1. Validate the draft.
  2. Provide required initial variables.
  3. Stub integration outputs and failures.
  4. Resolve human and event waits with deliberate payloads.
  5. Run and inspect the trace, variable snapshots and checks.
  6. Save useful scenarios in the operational Test Studio.

Stub sequences can model failures followed by success; the action’s retry policy determines whether another attempt occurs. Do not treat a successful simulated run as evidence that real credentials, service availability or network policies are correct.

Where simulation runs

Simulation and expression testing run in your configured Duna environment. This website explains the capability; it does not execute processes or provide a simulator.

See the illustrated process patterns for an overview of approvals, waits, parallel work and recovery.