A timeout leaves an operation unresolved
Retry policy needs a model of business effects as well as transport errors.
Separate response loss from failure
RFC 9110 defines idempotency in terms of the intended effect of multiple identical requests. It cautions against automatically retrying non-idempotent requests unless the client knows the semantics are idempotent or knows the original request was not applied. A timeout alone does not provide that knowledge.
In an original example, a worker asks a service to create an export. The service creates it, but the reply is lost. Issuing a second creation request can produce another export even though the first client attempt appeared unsuccessful.
Define an operation identity
Our suggested application contract assigns a durable identity to the intended operation and defines what happens when the same identity is presented again. Scope that identity to the caller, bind it to the intended parameters and specify retention. Decide how conflicting parameters and simultaneous requests are handled.
A retry key is a design input, not a magic header that every server understands. The server needs an atomic relationship between accepting the operation and remembering its result, or another documented recovery protocol.
Exercise the uncertain interval
In a staging fixture, interrupt the response after the server accepts harmless work, then retry using the supported contract. Check the number of resulting operations rather than counting successful client replies. Also test two simultaneous attempts and a retry after the retention window. Record which outcomes are guaranteed and which require reconciliation so an operator has a useful recovery path.