Build walkthrough · November 29, 2026
Your agent timed out. Did it send twice?
A booking agent submits a confirmation. The provider accepts it, but the network drops before the agent receives the response. The agent retries. Your customer now has two confirmations.
The missing piece is a durable record of the approved operation. Give that operation a stable ID. Record it in the same database transaction as the job that will execute it. Send the same ID to the provider each time you retry.
Build the recovery path
- Store the operation ID, approved payload and payload hash.
- Have a worker claim the job with a lease.
- Call the sandbox provider with that operation ID as its idempotency key.
- Persist the provider reference and final result.
- Reconcile an uncertain outcome before sending again.
An idempotency key lets a supporting provider recognize repeated attempts at the same operation. When the provider cannot deduplicate or look up the operation, route the uncertain result to human review.
Prove the recovery works
Inject a crash immediately after provider acceptance. Restart the worker. Inspect the provider’s records and your action ledger. The test should demonstrate a single external effect where the provider supports deduplication, or a blocked retry awaiting review where it does not.
The member workflow includes the implementation brief, required fields, failure sequence and acceptance checks. Adapt it to your application’s database and job runner.
Open the builder workflowsReference workflow. Validate it in your own stack before production use.