Story 1 · Workflow Rescue
A retry should not write the same invoice twice
- The problem
- An automation fails halfway. Someone retries it, and the rows it had already written are written again. Nobody notices until the totals are wrong.
- What changed
- A public n8n invoice template was rebuilt with error paths on every step, a duplicate key on every write, and a replay test.
- The test
- The same 50 synthetic invoices, before and after: duplicate rows 48 → 0, clean results 0 → 49 of 50. A separate replay of the whole run added no rows.
- The limit
- One hidden instruction in an invoice still gets through, and 1 of 50 runs is not clean. Writes went to a local stand-in; it is a public template, not a client system.
Recorded · gpt-4o-mini-2024-07-18 · 7 and 12 Oct 2026
Fig. 05 — Boardroom | build log■ One line fixes it
The 48 → 0 result is the synthetic before-and-after test. The replay is a separate test: it added no rows.