FAILURE MAP
← Case archive

FA-60410 / Loyalty points ledgers / Member archive

Expiring point lots: emptied lot cleanup · case 05

Statements list zero-point lots left over from redemptions.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Events ["earn",day,pts,ttl] create a lot expiring at day+ttl (usable through that day); ["redeem",day,pts] draws only unexpired lots, soonest expiry first (ties by earn day), rejecting with "insufficient" when unexpired points are short; ["sweep",day] removes lots whose expiry is before day and reports the points removed. Emptied lots are dropped. Return {results, lots:[[expiry, earn_day, pts]]}.

Why this case matters

Member point balances, statements and the program liability depend on this ledger rule.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
soonest expiry first{"lots": [[366, 1, 400], [45, 10, 0]], "results": [366, 45, [[45, 300], [366, 100]]]}{"lots": [[366, 1, 400]], "results": [366, 45, [[45, 300], [366, 100]]]}Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗