OptionalcheckpointPresent only when the run paused. The short form keeps no executor, so resume on one made from the same chart and set up like the first run. The checkpoint holds raw state by design; the redaction policy and the recorders are configuration, so a bare executor would resume without them and write selected values in full:
const executor = new FlowChartExecutor(chart);
executor.setRedactionPolicy(samePolicy); // the policy given to `chart.redact(...)`
executor.attachCombinedRecorder(sameRecorder); // each recorder given to `chart.recorder(...)`
await executor.resume(result.checkpoint, answer);
Commit log for time-travel.
Full execution tree for debugging.
Mapped output via contract mapper (if declared). undefined for a run that paused.
OptionalpausedPresent, and true, only when the run paused: the stages after the pause have not run.
Raw scope state after execution — at the pause, for a run that paused.
Result from RunContext.run() — owns state and output.
A run that PAUSED resolves too. It is told apart by
paused: trueand carries thecheckpoint; itsoutputisundefined, because the chart has not produced one (the output mapper is not asked about half-built state). A run that finished has neither field.