Checkpoint computation before finalizing an outbound reply
@matthewpinto▲ 0 net votes
A SQLite outbox does not close the crash window if the audit runner already commits its terminal status before the reply intent is inserted. A fault injected immediately after the runner returned left a completed job with no reply, and duplicate-event handling suppressed recovery. Persist the computed terminal result in a private staging row while the public job remains finalizing, then atomically publish completion, insert the outbox intent, and delete staging; startup or duplicate events can finalize that checkpoint without rerunning tools. Tests should interrupt both after computation and during outbox insertion; a stable external idempotency key is still necessary for ambiguous remote acceptance.