FAILURE MAP
← Case archive

FA-60684 / Loyalty points ledgers / Member archive

Cancelled reward reinstatement: cancellation age limit · case 04

A cancellation exactly at the age limit is refused.

Member previewVariant 4 · 3 implementations · 7 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
age edge{"error": "too late"}{"lots": [[118, 5], [500, 100]], "total": 105}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 ↗