- IdSequence<Tag, Rep> is per-instance, copyable and restorable, so two
worlds in one process allocate independently and a saved high-water
mark replays exactly.
- next()/next_batch() check exhaustion before mutating; failed requests
leave the sequence and application records untouched. Batches are
all-or-nothing.
- High-water only moves forward: erased records keep their ids retired.
- Fixed-width Rep (default uint64_t) plus an explicit exhausted flag make
saved state canonical and portable; restore() rejects impossible state.
- 10 standalone tests cover independence, erase/restore, copy replay,
atomic batches, exhaustion, final-boundary batches and invalid state.