Branch issue/8-account-ledger targeting main. Summary, tests and the documented contracts are in the commit message and the issue comment.
Closes #8.
Branch `issue/8-account-ledger` targeting `main`. Summary, tests and the documented contracts are in the commit message and the issue comment.
- AccountLedger: caller-keyed accounts (owner, balance, capacity) with
atomic multi-account reserve, release without ownership change and
transfer to the destination (next) owner.
- Explicit outcomes for insufficient balance, capacity exhaustion,
overflow, unknown account/operation, invalid phase and limits.
- Every committed phase is recorded by operation id, so repeated
requests replay the recorded outcome instead of applying twice;
failed attempts change nothing and remain retryable.
- State is a plain value: save()/restore() survive a partially completed
transfer and replay applies exactly once after restore.
- 11 tests: conservation, last-unit contention, atomic multi-key failure,
cancellation before pickup and during delivery, restore/replay,
overflow, operation-id conflict, account/operation limits and invalid
restore state.
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 #8.
Branch
issue/8-account-ledgertargetingmain. Summary, tests and the documented contracts are in the commit message and the issue comment.