Check whether an AI action finished before you retry it
Treat a timeout as an unknown outcome. First look up the action using its request or correlation ID; if the connected API supports idempotency, retry with the same key and unchanged parameters. Do not blindly send the action again with a new key.
What you need
For an operations or engineering owner handling AI-prepared writes that can create tasks, send messages or change records.
- The action name, target record and request or correlation ID.
- The API’s documented retry and idempotency behavior.
- A read-only status check or safe test environment before any retry.
Recover an unknown action outcome without creating a duplicate side effect
- Record the original request, target, parameters and stable action ID.
- After a timeout, check the target system or event log for the original action before retrying.
- If the API supports idempotency, reuse the same key with the same parameters; follow that API’s specific rules.
- If the outcome remains unknown or the request changed, hold for a person to reconcile rather than issuing a fresh action.
One timed-out request, one safe outcome check
Synthetic API example. The Stripe documentation is linked as one implementation example; other systems may behave differently.
Scroll the table to see all columns.
| Attempt | Key | Target state | Decision |
|---|---|---|---|
| 1 | run-205-action-3 | No response; state unknown | Do not create a new action yet |
| Lookup | run-205-action-3 | Task T-88 already exists | Treat original action as complete |
| Alternative test | same stable key and same values | Provider confirms prior result | Only retry under documented provider rules |
The status lookup finds task T-88, so no second create request is needed. If the target cannot be checked, keep the case open for reconciliation.
What to hand over
A timeout recovery record with original request ID, observed target state, retry decision and evidence against duplicate execution.
Limitation. Idempotency behavior is provider-specific and may expire; do not assume every connector or business system supports safe retries.
Next step
Bring a redacted example of a timed-out write and the target system’s retry rules. Agree what evidence proves whether the action completed.
Related guides
Sources
- Stripe API documentation: idempotent requests (accessed 24 November 2026)
- Stripe engineering: designing robust APIs with idempotency (accessed 24 November 2026)
- Practitioner question: handling an AI agent payment timeout (accessed 24 November 2026)