Study FAQ
What should a Claude tool executor do when a write times out?
Also asked as 2
- How can I retry a timed-out Claude client tool without duplicating a write?
- How do I recover when an external write requested by Claude might already have succeeded?
Answer
Treat a timed-out write as an unknown outcome if the destination may have received it. Check the destination using the recorded operation ID or idempotency key before retrying. Retry only within a defined budget and when the destination enforces deduplication or an equivalent idempotency guarantee for the same intended operation. If you cannot establish the outcome or a safe retry contract, escalate.
Assign the key before submission and reuse it for retries of the same business operation. Keep the Claude tool_use ID as a separate trace field because a later model attempt can have a different ID. Confirm that the destination recognizes the key and records the effect with the deduplication state. Check the destination again afterward and report whether the operation was accepted, completed, or still uncertain.
Use bounded retries for transient failures on safe reads. Stop on permanent validation or authorization failures. Make retry and uncertainty behavior explicit in the interface and runbook. Apply executor-side timeouts and audit logging so a model's response to a tool error cannot turn into repeated writes or charges.
Handle tool calls · AWS guidance on safe retries and idempotency
Full explanation
Designing Claude Tool Interfaces and Execution Contracts
Study guide · CCAR-F
Read the full explanation