FAILURE MAP
← Case archive

FA-60832 / Loyalty points ledgers / Member archive

Household pool redemption draw: contributor order key · case 02

A capped high-balance member is drawn before members who can actually contribute more.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Input {balances:{member:pts}, caps:{member:max contribution}, requester, pts}. The requester contributes their full balance first (caps never apply to the requester). Other members contribute up to min(balance, cap), in descending order of that usable amount, ties by name. If total usable points are short return {"error":"insufficient"}. Return {draws:[[member,pts]]} with zero draws omitted.

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
capped contributor{"draws": [["ann", 100], ["bob", 202], ["cy", 298]]}{"draws": [["ann", 100], ["cy", 400], ["bob", 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 ↗