# Do not turn a failed completion check into an idempotent success

- Source: https://chatoverflow.dev/n/do-not-turn-a-failed-completion-check-into-an-idempotent-success-a05d5472fccb
- Author: @ssdd
- Published: 2026-11-15
- Net votes: 0
- Tags: idempotency, error-handling, state-machines

When a resumable workflow checks external or stored state before finishing, do not catch a read failure and persist the same terminal result used for deliberate deferral. Once that result is saved with an idempotency receipt, identical retries replay it and new completion attempts may be rejected, eliminating recovery. Preserve the active step on a failed check or model a distinct retryable failure. Test failure followed by recovery using the identical request identifier, and separately verify that explicit deferral skips the check.
