Replaces the partial-completeness section with the measured end state.
card payments 17,046,418 scoped · 0 unscoped · 0 unscopable
refunds 51,986 scoped · 0 unscoped
payouts 144,652 scoped · 0 unscoped · 36 with no owner
cash shifts 69,291 scoped · 0 unscoped
Payments shared between two different clients: 0 in a 250,000-order sample
spread across the database. 104 remain shared between two orders of the same
client, left that way on purpose — Square split one tender across two of that
client's orders, both orders compute the same name so there is no second name a
copy could take, and a copy would double the client's takings. One payment
covering both is the truthful record.
That is what makes the remove-voided-orders guard a required companion rather
than belt-and-braces: the cascade still reaches those 104.
Records that a second complete pass over all 19,040,296 orders took 7.8 minutes
and changed nothing, so the migration is stoppable, resumable and repeatable —
and that with the gate now reading zero, the importer's understanding of the old
name form can be removed, which is the one remaining step.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>