workshop

← all creations

Replay

mechanics · created 2026-08-29

One-input durable-execution mechanic — commit a checkpoint before the next crash, or a re-run fires an already-emitted side effect twice.

simulationcanvasarchitecture

A worker walks forward through an endless pipeline. Some steps are side-effecting — cross one and it fires into the world, permanently. The worker crashes on a random timer and resumes from the last committed checkpoint, not from the crash site — so any side-effecting step it had already crossed since that checkpoint fires again on the replay. A step that already carries a token getting a second one is a duplicate: the fail state. The only input is commit, on a cooldown, so the real skill is choosing which side effect is worth locking in before the next crash lands, not dodging crashes themselves.

Riffs on durable execution and why replay safety is really an idempotency problem: a workflow engine that resumes a crashed run from its last checkpoint has the same shape as this pipeline, and “did that email already send?” is the same question as “did that step already fire?”

Reuse

The mechanic lives in src/replay.js as a framework-free ES module:

Port notes for DragonRuby: update() and commit() have no DOM dependencies; the pipeline-to-screen scroll and token rendering belong to the renderer, same split as the demo.

Gotchas