Checkpoints, interrupts and replay 00:00:01 One refund survives a restart The worker stops just after the payment processor accepts twenty-four dollars for order forty-two. The last saved workflow picture is older and still says “ready to refund.” Pressing play from that picture could pay the customer twice. A checkpoint is a durable workflow snapshot at a known boundary. It enables suspension, human review, resumption and controlled forks. Its transaction boundary may differ from that of an external service such as a payment system. Bind the approval to the particular order, amount and version. Then attach one operation key to the external effect. On recovery, ask the payment ledger what committed under that key before sending a new write. 00:00:49 Reconcile the checkpoint with the ledger The run pauses before a consequential write. Store the proposed arguments and version so the approval refers to a specific refund. On resume, compare the approved arguments with the current proposal. A changed amount requires a new decision. If a worker crashed after the write but before the next checkpoint, recover the existing result by key. A replay cannot undo or safely repeat an arbitrary payment. 00:01:19 What did approval actually cover? Checkpoint a workflow at defined state transitions using a durable thread or run identity. A checkpoint stores enough state to resume according to the runtime contract. An external write may already have happened when persistence fails, so give side effects independent idempotency keys. Crash after a tool writes but before the workflow saves its next state. Resume from the checkpoint and recover the original write by operation key. A human-in-the-loop interrupt pauses execution and persists the decision context. Show the proposed action, evidence, scope and expiry to the reviewer. On resume, check that the approved arguments and current permissions still match. A free-form “yes” detached from the proposal is ambiguous. An approval refers to 24 USD. Change the proposed amount to 42 before resume and require a fresh decision on the revised arguments. Time travel restores or forks from a historical checkpoint to explore an alternative path. Keep the original history intact for comparison. Replaying a state transition does not undo an email, refund or other external effect. Use inert fixtures or idempotent operations when exploring past runs. Fork a checkpoint immediately before a query rewrite. Compare the original and alternative retrieved IDs while keeping real external writes disabled. The critical interval is between an external effect and the checkpoint recording it. Use stable operation identity and independent confirmation of the effect so a crash inside that interval does not cause a duplicate action. 00:03:07 Replay an interrupted refund A checkpoint precedes a completed refund and the worker restarts. What determines whether the charge has already changed? Durable workflow state and external effects can commit at different times. Consult the authoritative operation record before issuing another write. A checkpoint can restore the assistant's place in its workflow. Only the authoritative effect record settles whether money has already moved.