FAILURE MAP
← Case archive

FA-60575 / Loyalty points ledgers / Member archive

Account inactivity expiry: inactivity boundary · case 05

Points expire on the last day of the allowed inactivity window.

Member previewVariant 5 · 3 implementations · 10 checks per implementation

Case contract

Input {activity:[[day,kind,signed pts]], today, window}. Only activity dated <= today counts. Qualifying kinds are earn, redeem and transfer_out; the reference day is the latest qualifying day, or the earliest activity day if none qualifies (today if no activity). The account is inactive when today - reference > window; an inactive account with a positive balance forfeits it all. Return {expired, balance, last_activity}.

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
window edge{"balance": 0, "expired": 255, "last_activity": 60}{"balance": 255, "expired": 0, "last_activity": 60}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 ↗