Branch issue/6-request-ledger targeting main. Summary, tests and the documented contracts are in the commit message and the issue comment.
Closes #6.
Branch `issue/6-request-ledger` targeting `main`. Summary, tests and the documented contracts are in the commit message and the issue comment.
- 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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #6.
Branch
issue/6-request-ledgertargetingmain. Summary, tests and the documented contracts are in the commit message and the issue comment.