Retries become dangerous when the workflow cannot tell the difference between unfinished work and already-finished work.
Most retry bugs are not dramatic model failures. They are boring control failures. A message times out, a webhook returns late, or a downstream tool responds ambiguously, and the workflow simply tries again. If the first attempt already created a ticket, sent an email, changed a record, or posted a payout, the second attempt creates the damage. An AI retry state machine workflow gives the automation a safer operating shape. Instead of asking the model whether it feels safe to retry, the business defines states, receipts, retry budgets, and hold rules. The model can summarize what happened and route the case. The state machine should decide whether the workflow is pending, in progress, succeeded, failed, or waiting for human review.
01
Define the retry state before the workflow acts again
The workflow should persist state and action receipts so a retry is about an unfinished job, not a guessed rerun.
02
Separate safe retries from duplicate-risk retries
A timeout, partial write, or ambiguous response is not the same as a cleanly failed action, and the workflow should treat them differently.
03
Keep the retry boundary tied to proof instead of confidence
The model can help explain the ambiguity, but it should not invent permission to act again when the external system may already have changed.
04
When to hold the workflow instead of trying again
Some teams call every delay a retry problem when the real problem is weak observability or a missing source of truth.
Questions to ask before the first sprint
Keep reading on Fabren
Next step
Stop duplicate real-world actions with explicit retry control.
Fabren helps teams add receipts, state machines, reconciliation, and human stop rules to production AI workflows.
Design safer retriesRelated playbooks
Workflow Recipes
AI duplicate external action prevention workflow: keeping one real-world action from happening twice
Workflow Recipes
AI workflow rollback receipt workflow: proving the recovery happened instead of just hoping it did
Workflow Recipes