- RequestLedger<Payload, Result, PayloadEqual> keys idempotent host
requests by (epoch, trusted client, request id).
- check() admits the first request, replays a recorded result for an
exact repeat (including a rejected outcome), reports in_progress while
the request is still running, rejects a changed payload and rejects
keys from an obsolete/future epoch before side effects.
- record() stores the caller-defined result exactly once; results are
never overwritten.
- Capacity/admission/archival is explicit: entries are never evicted
within an epoch (capacity_exceeded instead), and advancing the epoch
clears memory. An old request number therefore cannot execute a second
time after cleanup.
- 8 tests: replay, rejected outcome, payload conflict, delayed retry
after newer operations, epoch rollover, capacity pressure, in-flight
state/immutable result and non-advancing epoch rejection.