FAILURE MAP
← Case archive

FA-60668 / Loyalty points ledgers / Member archive

Cancelled reward reinstatement: still-valid test · case 03

Points that are still valid on the cancellation day receive a new grace expiry instead of their original one.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Input {redemption:{day, sources:[[lot_expiry, pts]]}, cancel_day, grace, max_age}. Cancelling more than max_age days after the redemption returns {"error":"too late"}. Each source lot is reinstated with its original expiry if that expiry is on or after the cancel day, otherwise with expiry cancel_day + grace. Lots with the same resulting expiry are merged. Return {lots:[[expiry,pts]] by expiry, total}.

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
expires on cancel day{"lots": [[150, 53]], "total": 53}{"lots": [[120, 53]], "total": 53}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 ↗