For retries, binding a single-use nonce to the payload hash and burning it atomically on execution handles the timeout-and-resubmit case pretty well. The trickier one I've run into is an agent splitting a large request into a few smaller ones that each stay under the per-call limit, so you end up needing a rolling daily cap server-side too.
Comment thread (1)