A timeout tells you the caller stopped waiting. Before sending a second write, look up the first operation at the destination using its original business-operation ID. Close the step if the destination proves it applied the intended effect. Retry only within a verified same-key receiver contract or after the destination establishes that the original operation can no longer apply. Keep the step open while the evidence is ambiguous.
Give the operation an ID that survives the model
Assign the operation ID when the workflow authorizes the effect. Record the destination, target, requested change, relevant request parameters, and authorization reference. Keep a distinct attempt ID for each transmission. A model retry can generate fresh wording or a new tool-call ID. The workflow still needs to recognize the same authorized effect.
Amazon’s idempotent API guidance describes using a caller-provided identifier to express intent and checking for changed parameters under an existing identifier. It also discusses late requests and the lifetime of an idempotency contract. Check the receiver’s own scope and retention before relying on the same pattern. Amazon Builders’ Library on idempotent APIs
Follow one timed-out catalog change
In a synthetic catalog workflow, an editor approves operation label-742 to change the display label on item POSTER-17 to “Harbor Blue.” The tool sends it once and times out. At that moment the user interface still displays the old label from a cached view. The operator checks the destination journal and the current item through the authoritative read path.
Destination evidence for label-742 |
Decision |
|---|---|
Applied to POSTER-17 with the approved parameters and resulting revision |
Record that revision and close the effect. If the item has since changed, report the later revision separately. |
| Accepted and still pending | Keep the effect pending. Check the same operation again within its resolution window. |
| Definitively rejected before application, with no later delivery possible | Confirm the authorization still holds before scheduling a new attempt under the receiver’s stated contract. |
| Missing, stale, or unavailable journal data | Leave the effect unresolved. Retry only if a current same-key contract covers the uncertainty. Otherwise reconcile with the destination owner. |
| Applied under the same ID with different parameters | Freeze the workflow step and investigate the identity conflict before another write. |
A current label that happens to match “Harbor Blue” provides a weak check by itself. Someone else might have made that change. A record for the exact operation, target and parameters establishes which write occurred. The retry budget and backoff still matter after you establish that a retry is safe. sinc-LLM guide to retry and backoff
Run a lost-response exercise before enabling retries
In a test destination, let one request commit and drop the response before the workflow receives it. The expected result is a reconciled successful effect and exactly one applied operation. Replay within the verified deduplication window with the original ID and parameters. Inspect the destination journal for an additional effect. Then make the lookup unavailable and the deduplication window expired in another fixture. That case should remain unresolved without an automatic second write.
A same-key retry still requires the original action to be authorized and the run to have retry budget left. Record the receiver’s key and parameter scope before the retry, then confirm the original logical action produced one destination effect.
Pick one write tool and add its operation lookup and receiver retention window to the runbook. The exercise needs a test destination and an authoritative read path. Its output is a decision your on-call operator can make even when the original request log ends in a timeout.
sinc-LLM