Crash-Recovery Verification Pattern
Storage engines, Kafka consumers, and Stripe-style payment ledgers achieve effectively-once state updates over at-least-once delivery by persisting transaction IDs inside the same atomic WAL batch as the balance mutation. Proving idempotence + monotonic appliedTx membership guarantees zero double-credits across arbitrary crash-restart traces.