Most automation is judged by what happens when a step fails. I built this debugger for the control layer around automated work: a small graph of tasks that can fail, retry, wait for a person to approve them and then resume. Step through it one tick at a time and it shows what ran, what failed, what needs a decision and what will happen next.
One run of a six-task workflow as cloth: each task is a warp ribbon, each tick a pass of the one weft thread, and a ribbon lies on top while its task holds a slot or a result. A bead marks each attempt; indigo marks the pass where the run waits for approval.
The workflow debugger
Start with a recoverable failure, or write your own dependency graph of up to 12 tasks. Step one tick at a time. Approve one exact version, use up a retry budget, then resume without repeating the tasks that already succeeded.
The invoices and jobs are made up. Everything runs in your browser and nothing is sent anywhere.
Edit the DAG and submit events
1 to 12 nodes. Operations: inspect, reconcile, review, record. Retry budget 0 to 3; injected failures 0 to 6. Editing freezes execution until you validate a new run.
A new key starts at version 1. Changed content under an existing key needs the next version. Resubmitting the same event is safe.
Loading the local engine. No operation has run.
Each tick completes prior work, propagates failures, then assigns up to the configured slot count. Ticks advance only when you step or run, and Run stops at review, exhausted failures or completion.
Each column shows the nodes of the selected workflow as a tick finished.
Cell codes: pen pending, run running, ret waiting to retry, rev needs review, ok succeeded, fail failed, blk blocked. Approvals and retries given between ticks appear in the next column.
Checkpoint inspector
Select a review checkpoint to capture its exact request.
Captured approval binding
No approval request captured.
Fields changed since capture
Capture a request to compare it with the current content.
Payload & evidence
Values are integer cents. The artifact list keeps one simulated artifact per workflow version.
Submit an event.
Execution trace
Seq / tick
Workflow / node
Transition / rule
Evidence
Replay an exported run
Paste a report from this lab, up to 2,000,000 UTF-16 characters. A command that would exceed this export/import bound is rejected without changing the previous run. Replay starts from the DAG and commands and recomputes the snapshot. A matching report replaces the current run.
Method and limits
The default run, worked by hand
Five packs at 2,500 cents total 12,500, below the 15,000 authorization and 250,000 policy ceiling. Intake starts at tick 1. Reconcile fails once at tick 3, retries at tick 4 and succeeds at tick 5. Review pauses at tick 6.
Capture and approve the review. Record fails at ticks 8 and 10, exhausting its one automatic retry. Close becomes blocked. Grant record one retry: it succeeds at tick 12 and close completes at tick 13. Exactly one synthetic artifact exists; intake still has one attempt.
Approvals and revisions
An approval binds to the complete canonical DAG, node, workflow key, version and payload. Capture a request, draft version 2, change the reference and submit. The old capture stays on screen and lists the fields that changed as JSON pointers, here /payload/reference and /version; approving it returns STALE_APPROVAL with the same list.
A revision resets every task and approval for that workflow. Earlier artifacts keep the label of their old version. The trace only grows, and an effect outside the simulator would stay done.
Scheduling and retries
A stable topological order breaks ties by specification order, then workflows by arrival order. Every dependency must succeed. Slots are global, 1 to 4; operations take one logical tick. The automatic retry budget counts extra attempts after the first.
Backoff is min(8, 2^(attempt - 1)) ticks. Injected failure N fails the first N attempts of that node for every workflow version. An exhausted transient failure can receive at most three manual extra attempts. Data and policy failures clear only with a corrected next version; approvals and retries leave them failed.
The tick timeline shows every node of the selected workflow as each tick finishes. Slot use counts dispatches per tick, because a task holds its slot for exactly one tick: the default run uses 9 of 26 slot-ticks (2 slots over 13 ticks), one per attempt.
What an input must satisfy
Unknown fields, missing dependencies, duplicate IDs and cycles are rejected. A record node must have reconciliation and review in its ancestry. Invoice totals are quantity times unit cents. A job must have completed exactly its planned units, with matching declared cost and sufficient authorization. A failed reconciliation names every check that failed, in the order RECONCILIATION_UNITS, RECONCILIATION_TOTAL, RECONCILIATION_AUTHORIZATION, and takes the first as its code.
External destinations and values above the configured policy ceiling are hard denials. The pre-flight check reports one when the event is submitted, before any tick; the run then refuses it at the first completion and at approval. Repeated event IDs with identical content are ignored; different content conflicts. A fresh event ID with the same workflow key, version and payload is also a no-op. Different keys are independent, even if their references match.
Source, export and limits
I wrote this as a discrete-event state machine. Every rule on this page lives in one file, the engine; the page only displays what it returns.
The JSON export holds the validated spec, every accepted command, the full event trace, the latest task states, the artifact list and slot use. Replay starts again from the spec and the commands, recomputes the whole snapshot and slot use, and compares them. The timeline is redrawn from the exported trace with RV_AUTOMATION.timeline(state, key). That checks consistency: a file whose commands and snapshot were both changed can still match. Approval here is a simulation in an ordinary browser page, and a reload clears it.
Limits: 12 nodes, 12 workflow keys, 20 invoice lines, 2,000 commands and 16,000 trace entries. Run advances at most 256 ticks per click. The trace shows the latest 200 matching entries; the export keeps all of them. The duplicate check is local and tied to a version. The model stops at one process: fairness, crash recovery, distributed locking, transactions and exactly-once delivery are outside it.