FAILURE MAP
← Case archive

FA-85111 / Fantasy sports scoring / Open access

Offensive rebounds missing from total rebounds · case 01

A big man with 4 offensive and 8 defensive boards misses his double-double.

Verified by executionVariant 1 · 7 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

Total rebounds use only the defensive rebound field.

THE FAILURE

Total rebounds use only the defensive rebound field.

Unsuccessful approach: Taking the larger of the two splits still undercounts rebounds.

Case contract

Score a basketball line in tenths: points 1.0, rebounds (offensive + defensive) 1.2, assists 1.5, steals 3, blocks 3, turnovers -1, threes made 0.5 extra. Count double-digit categories among points, rebounds, assists, steals and blocks; three or more earns only the triple-double bonus, exactly two earns the double-double bonus.

Why this case matters

Double-double and triple-double bonuses are exclusive tiers in points leagues and are frequently double-awarded.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(line, bonus):
    line = dict(line, reb=line['dreb'])
    w = {'pts': 10, 'reb': 12, 'ast': 15, 'stl': 30, 'blk': 30, 'tov': -10, 'fg3m': 5}
    score = sum(w[k] * line[k] for k in w)
    doubles = sum(1 for k in ('pts', 'reb', 'ast', 'stl', 'blk') if line[k] >= 10)
    if doubles >= 3:
        score += bonus['td']
    elif doubles == 2:
        score += bonus['dd']
    return score
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: rebound composition',
   [{'ast': 10, 'blk': 10, 'dreb': 5, 'fg3m': 2, 'oreb': 4, 'pts': 10, 'stl': 2, 'tov': 0},
    {'dd': 15, 'td': 30}],
   758),
  ('partial repair probe: rebound composition',
   [{'ast': 10, 'blk': 0, 'dreb': 8, 'fg3m': 5, 'oreb': 5, 'pts': 9, 'stl': 2, 'tov': 2},
    {'dd': 15, 'td': 30}],
   476),
  ('second regression',
   [{'ast': 9, 'blk': 10, 'dreb': 10, 'fg3m': 6, 'oreb': 6, 'pts': 10, 'stl': 1, 'tov': 0},
    {'dd': 15, 'td': 30}],
   817),
  ('normal control 1',
   [{'ast': 11, 'blk': 0, 'dreb': 5, 'fg3m': 1, 'oreb': 0, 'pts': 23, 'stl': 1, 'tov': 3},
    {'dd': 15, 'td': 30}],
   475),
  ('normal control 2',
   [{'ast': 9, 'blk': 2, 'dreb': 10, 'fg3m': 4, 'oreb': 0, 'pts': 11, 'stl': 0, 'tov': 2},
    {'dd': 15, 'td': 30}],
   440),
  ('normal control 3',
   [{'ast': 10, 'blk': 1, 'dreb': 5, 'fg3m': 1, 'oreb': 0, 'pts': 11, 'stl': 0, 'tov': 6},
    {'dd': 15, 'td': 30}],
   310),
  ('normal control 4',
   [{'ast': 9, 'blk': 10, 'dreb': 8, 'fg3m': 1, 'oreb': 0, 'pts': 10, 'stl': 10, 'tov': 5},
    {'dd': 15, 'td': 30}],
   916)],
 [('regression: rebound composition',
   [{'ast': 10, 'blk': 1, 'dreb': 8, 'fg3m': 2, 'oreb': 4, 'pts': 9, 'stl': 2, 'tov': 4},
    {'dd': 15, 'td': 30}],
   459),
  ('partial repair probe: rebound composition',
   [{'ast': 11, 'blk': 11, 'dreb': 9, 'fg3m': 1, 'oreb': 3, 'pts': 40, 'stl': 10, 'tov': 5},
    {'dd': 15, 'td': 30}],
   1324),
  ('second regression',
   [{'ast': 11, 'blk': 2, 'dreb': 8, 'fg3m': 1, 'oreb': 3, 'pts': 10, 'stl': 0, 'tov': 3},
    {'dd': 15, 'td': 30}],
   462),
  ('normal control 1',
   [{'ast': 8, 'blk': 11, 'dreb': 5, 'fg3m': 2, 'oreb': 0, 'pts': 39, 'stl': 0, 'tov': 3},
    {'dd': 15, 'td': 30}],
   895),
  ('normal control 2',
   [{'ast': 11, 'blk': 1, 'dreb': 10, 'fg3m': 4, 'oreb': 0, 'pts': 10, 'stl': 2, 'tov': 5},
    {'dd': 15, 'td': 30}],
   475),
  ('normal control 3',
   [{'ast': 10, 'blk': 0, 'dreb': 9, 'fg3m': 1, 'oreb': 0, 'pts': 10, 'stl': 1, 'tov': 5},
    {'dd': 15, 'td': 30}],
   358),
  ('normal control 4',
   [{'ast': 9, 'blk': 10, 'dreb': 9, 'fg3m': 3, 'oreb': 0, 'pts': 10, 'stl': 2, 'tov': 4},
    {'dd': 15, 'td': 30}],
   693)],
 [('regression: rebound composition',
   [{'ast': 11, 'blk': 11, 'dreb': 4, 'fg3m': 5, 'oreb': 2, 'pts': 10, 'stl': 3, 'tov': 4},
    {'dd': 15, 'td': 30}],
   772),
  ('partial repair probe: rebound composition',
   [{'ast': 11, 'blk': 0, 'dreb': 12, 'fg3m': 0, 'oreb': 3, 'pts': 10, 'stl': 3, 'tov': 1},
    {'dd': 15, 'td': 30}],
   555),
  ('second regression',
   [{'ast': 0, 'blk': 0, 'dreb': 9, 'fg3m': 2, 'oreb': 3, 'pts': 10, 'stl': 1, 'tov': 2},
    {'dd': 15, 'td': 30}],
   279),
  ('normal control 1',
   [{'ast': 11, 'blk': 0, 'dreb': 5, 'fg3m': 6, 'oreb': 0, 'pts': 11, 'stl': 0, 'tov': 3},
    {'dd': 15, 'td': 30}],
   350),
  ('normal control 2',
   [{'ast': 10, 'blk': 1, 'dreb': 8, 'fg3m': 4, 'oreb': 0, 'pts': 11, 'stl': 0, 'tov': 0},
    {'dd': 15, 'td': 30}],
   421),
  ('normal control 3',
   [{'ast': 9, 'blk': 10, 'dreb': 4, 'fg3m': 1, 'oreb': 0, 'pts': 11, 'stl': 2, 'tov': 3},
    {'dd': 15, 'td': 30}],
   643),
  ('normal control 4',
   [{'ast': 10, 'blk': 0, 'dreb': 12, 'fg3m': 0, 'oreb': 0, 'pts': 26, 'stl': 1, 'tov': 3},
    {'dd': 15, 'td': 30}],
   584)],
 [('regression: rebound composition',
   [{'ast': 10, 'blk': 11, 'dreb': 5, 'fg3m': 1, 'oreb': 3, 'pts': 10, 'stl': 1, 'tov': 2},
    {'dd': 15, 'td': 30}],
   721),
  ('partial repair probe: rebound composition',
   [{'ast': 10, 'blk': 10, 'dreb': 4, 'fg3m': 3, 'oreb': 1, 'pts': 10, 'stl': 10, 'tov': 0},
    {'dd': 15, 'td': 30}],
   955),
  ('second regression',
   [{'ast': 13, 'blk': 11, 'dreb': 10, 'fg3m': 1, 'oreb': 6, 'pts': 11, 'stl': 2, 'tov': 5},
    {'dd': 15, 'td': 30}],
   872),
  ('normal control 1',
   [{'ast': 10, 'blk': 2, 'dreb': 5, 'fg3m': 0, 'oreb': 0, 'pts': 9, 'stl': 2, 'tov': 1},
    {'dd': 15, 'td': 30}],
   410),
  ('normal control 2',
   [{'ast': 1, 'blk': 10, 'dreb': 5, 'fg3m': 0, 'oreb': 0, 'pts': 12, 'stl': 1, 'tov': 6},
    {'dd': 15, 'td': 30}],
   480),
  ('normal control 3',
   [{'ast': 9, 'blk': 10, 'dreb': 5, 'fg3m': 4, 'oreb': 0, 'pts': 9, 'stl': 2, 'tov': 2},
    {'dd': 15, 'td': 30}],
   645),
  ('normal control 4',
   [{'ast': 5, 'blk': 11, 'dreb': 8, 'fg3m': 0, 'oreb': 0, 'pts': 9, 'stl': 10, 'tov': 4},
    {'dd': 15, 'td': 30}],
   866)],
 [('regression: rebound composition',
   [{'ast': 6, 'blk': 11, 'dreb': 4, 'fg3m': 1, 'oreb': 3, 'pts': 11, 'stl': 0, 'tov': 2},
    {'dd': 15, 'td': 30}],
   614),
  ('partial repair probe: rebound composition',
   [{'ast': 10, 'blk': 11, 'dreb': 8, 'fg3m': 3, 'oreb': 6, 'pts': 9, 'stl': 1, 'tov': 2},
    {'dd': 15, 'td': 30}],
   793),
  ('second regression',
   [{'ast': 10, 'blk': 10, 'dreb': 9, 'fg3m': 1, 'oreb': 5, 'pts': 9, 'stl': 0, 'tov': 4},
    {'dd': 15, 'td': 30}],
   703),
  ('normal control 1',
   [{'ast': 11, 'blk': 1, 'dreb': 12, 'fg3m': 6, 'oreb': 0, 'pts': 10, 'stl': 10, 'tov': 1},
    {'dd': 15, 'td': 30}],
   789),
  ('normal control 2',
   [{'ast': 8, 'blk': 1, 'dreb': 10, 'fg3m': 6, 'oreb': 0, 'pts': 10, 'stl': 2, 'tov': 3},
    {'dd': 15, 'td': 30}],
   445),
  ('normal control 3',
   [{'ast': 9, 'blk': 11, 'dreb': 4, 'fg3m': 6, 'oreb': 0, 'pts': 8, 'stl': 0, 'tov': 0},
    {'dd': 15, 'td': 30}],
   623),
  ('normal control 4',
   [{'ast': 6, 'blk': 0, 'dreb': 10, 'fg3m': 1, 'oreb': 0, 'pts': 10, 'stl': 3, 'tov': 1},
    {'dd': 15, 'td': 30}],
   410)]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
regression: rebound composition710758Failed
partial repair probe: rebound composition401476Failed
second regression745817Failed
normal control 1475475Passed
normal control 2440440Passed
normal control 3310310Passed
normal control 4916916Passed

SHA-256 / 679c0bc44f67b5c536e99f05c00986a2898f1aff4c938399989a99c53472ee1e

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(line, bonus):
    line = dict(line, reb=max(line['oreb'], line['dreb']))
    w = {'pts': 10, 'reb': 12, 'ast': 15, 'stl': 30, 'blk': 30, 'tov': -10, 'fg3m': 5}
    score = sum(w[k] * line[k] for k in w)
    doubles = sum(1 for k in ('pts', 'reb', 'ast', 'stl', 'blk') if line[k] >= 10)
    if doubles >= 3:
        score += bonus['td']
    elif doubles == 2:
        score += bonus['dd']
    return score
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: rebound composition',
   [{'ast': 10, 'blk': 10, 'dreb': 5, 'fg3m': 2, 'oreb': 4, 'pts': 10, 'stl': 2, 'tov': 0},
    {'dd': 15, 'td': 30}],
   758),
  ('partial repair probe: rebound composition',
   [{'ast': 10, 'blk': 0, 'dreb': 8, 'fg3m': 5, 'oreb': 5, 'pts': 9, 'stl': 2, 'tov': 2},
    {'dd': 15, 'td': 30}],
   476),
  ('second regression',
   [{'ast': 9, 'blk': 10, 'dreb': 10, 'fg3m': 6, 'oreb': 6, 'pts': 10, 'stl': 1, 'tov': 0},
    {'dd': 15, 'td': 30}],
   817),
  ('normal control 1',
   [{'ast': 11, 'blk': 0, 'dreb': 5, 'fg3m': 1, 'oreb': 0, 'pts': 23, 'stl': 1, 'tov': 3},
    {'dd': 15, 'td': 30}],
   475),
  ('normal control 2',
   [{'ast': 9, 'blk': 2, 'dreb': 10, 'fg3m': 4, 'oreb': 0, 'pts': 11, 'stl': 0, 'tov': 2},
    {'dd': 15, 'td': 30}],
   440),
  ('normal control 3',
   [{'ast': 10, 'blk': 1, 'dreb': 5, 'fg3m': 1, 'oreb': 0, 'pts': 11, 'stl': 0, 'tov': 6},
    {'dd': 15, 'td': 30}],
   310),
  ('normal control 4',
   [{'ast': 9, 'blk': 10, 'dreb': 8, 'fg3m': 1, 'oreb': 0, 'pts': 10, 'stl': 10, 'tov': 5},
    {'dd': 15, 'td': 30}],
   916)],
 [('regression: rebound composition',
   [{'ast': 10, 'blk': 1, 'dreb': 8, 'fg3m': 2, 'oreb': 4, 'pts': 9, 'stl': 2, 'tov': 4},
    {'dd': 15, 'td': 30}],
   459),
  ('partial repair probe: rebound composition',
   [{'ast': 11, 'blk': 11, 'dreb': 9, 'fg3m': 1, 'oreb': 3, 'pts': 40, 'stl': 10, 'tov': 5},
    {'dd': 15, 'td': 30}],
   1324),
  ('second regression',
   [{'ast': 11, 'blk': 2, 'dreb': 8, 'fg3m': 1, 'oreb': 3, 'pts': 10, 'stl': 0, 'tov': 3},
    {'dd': 15, 'td': 30}],
   462),
  ('normal control 1',
   [{'ast': 8, 'blk': 11, 'dreb': 5, 'fg3m': 2, 'oreb': 0, 'pts': 39, 'stl': 0, 'tov': 3},
    {'dd': 15, 'td': 30}],
   895),
  ('normal control 2',
   [{'ast': 11, 'blk': 1, 'dreb': 10, 'fg3m': 4, 'oreb': 0, 'pts': 10, 'stl': 2, 'tov': 5},
    {'dd': 15, 'td': 30}],
   475),
  ('normal control 3',
   [{'ast': 10, 'blk': 0, 'dreb': 9, 'fg3m': 1, 'oreb': 0, 'pts': 10, 'stl': 1, 'tov': 5},
    {'dd': 15, 'td': 30}],
   358),
  ('normal control 4',
   [{'ast': 9, 'blk': 10, 'dreb': 9, 'fg3m': 3, 'oreb': 0, 'pts': 10, 'stl': 2, 'tov': 4},
    {'dd': 15, 'td': 30}],
   693)],
 [('regression: rebound composition',
   [{'ast': 11, 'blk': 11, 'dreb': 4, 'fg3m': 5, 'oreb': 2, 'pts': 10, 'stl': 3, 'tov': 4},
    {'dd': 15, 'td': 30}],
   772),
  ('partial repair probe: rebound composition',
   [{'ast': 11, 'blk': 0, 'dreb': 12, 'fg3m': 0, 'oreb': 3, 'pts': 10, 'stl': 3, 'tov': 1},
    {'dd': 15, 'td': 30}],
   555),
  ('second regression',
   [{'ast': 0, 'blk': 0, 'dreb': 9, 'fg3m': 2, 'oreb': 3, 'pts': 10, 'stl': 1, 'tov': 2},
    {'dd': 15, 'td': 30}],
   279),
  ('normal control 1',
   [{'ast': 11, 'blk': 0, 'dreb': 5, 'fg3m': 6, 'oreb': 0, 'pts': 11, 'stl': 0, 'tov': 3},
    {'dd': 15, 'td': 30}],
   350),
  ('normal control 2',
   [{'ast': 10, 'blk': 1, 'dreb': 8, 'fg3m': 4, 'oreb': 0, 'pts': 11, 'stl': 0, 'tov': 0},
    {'dd': 15, 'td': 30}],
   421),
  ('normal control 3',
   [{'ast': 9, 'blk': 10, 'dreb': 4, 'fg3m': 1, 'oreb': 0, 'pts': 11, 'stl': 2, 'tov': 3},
    {'dd': 15, 'td': 30}],
   643),
  ('normal control 4',
   [{'ast': 10, 'blk': 0, 'dreb': 12, 'fg3m': 0, 'oreb': 0, 'pts': 26, 'stl': 1, 'tov': 3},
    {'dd': 15, 'td': 30}],
   584)],
 [('regression: rebound composition',
   [{'ast': 10, 'blk': 11, 'dreb': 5, 'fg3m': 1, 'oreb': 3, 'pts': 10, 'stl': 1, 'tov': 2},
    {'dd': 15, 'td': 30}],
   721),
  ('partial repair probe: rebound composition',
   [{'ast': 10, 'blk': 10, 'dreb': 4, 'fg3m': 3, 'oreb': 1, 'pts': 10, 'stl': 10, 'tov': 0},
    {'dd': 15, 'td': 30}],
   955),
  ('second regression',
   [{'ast': 13, 'blk': 11, 'dreb': 10, 'fg3m': 1, 'oreb': 6, 'pts': 11, 'stl': 2, 'tov': 5},
    {'dd': 15, 'td': 30}],
   872),
  ('normal control 1',
   [{'ast': 10, 'blk': 2, 'dreb': 5, 'fg3m': 0, 'oreb': 0, 'pts': 9, 'stl': 2, 'tov': 1},
    {'dd': 15, 'td': 30}],
   410),
  ('normal control 2',
   [{'ast': 1, 'blk': 10, 'dreb': 5, 'fg3m': 0, 'oreb': 0, 'pts': 12, 'stl': 1, 'tov': 6},
    {'dd': 15, 'td': 30}],
   480),
  ('normal control 3',
   [{'ast': 9, 'blk': 10, 'dreb': 5, 'fg3m': 4, 'oreb': 0, 'pts': 9, 'stl': 2, 'tov': 2},
    {'dd': 15, 'td': 30}],
   645),
  ('normal control 4',
   [{'ast': 5, 'blk': 11, 'dreb': 8, 'fg3m': 0, 'oreb': 0, 'pts': 9, 'stl': 10, 'tov': 4},
    {'dd': 15, 'td': 30}],
   866)],
 [('regression: rebound composition',
   [{'ast': 6, 'blk': 11, 'dreb': 4, 'fg3m': 1, 'oreb': 3, 'pts': 11, 'stl': 0, 'tov': 2},
    {'dd': 15, 'td': 30}],
   614),
  ('partial repair probe: rebound composition',
   [{'ast': 10, 'blk': 11, 'dreb': 8, 'fg3m': 3, 'oreb': 6, 'pts': 9, 'stl': 1, 'tov': 2},
    {'dd': 15, 'td': 30}],
   793),
  ('second regression',
   [{'ast': 10, 'blk': 10, 'dreb': 9, 'fg3m': 1, 'oreb': 5, 'pts': 9, 'stl': 0, 'tov': 4},
    {'dd': 15, 'td': 30}],
   703),
  ('normal control 1',
   [{'ast': 11, 'blk': 1, 'dreb': 12, 'fg3m': 6, 'oreb': 0, 'pts': 10, 'stl': 10, 'tov': 1},
    {'dd': 15, 'td': 30}],
   789),
  ('normal control 2',
   [{'ast': 8, 'blk': 1, 'dreb': 10, 'fg3m': 6, 'oreb': 0, 'pts': 10, 'stl': 2, 'tov': 3},
    {'dd': 15, 'td': 30}],
   445),
  ('normal control 3',
   [{'ast': 9, 'blk': 11, 'dreb': 4, 'fg3m': 6, 'oreb': 0, 'pts': 8, 'stl': 0, 'tov': 0},
    {'dd': 15, 'td': 30}],
   623),
  ('normal control 4',
   [{'ast': 6, 'blk': 0, 'dreb': 10, 'fg3m': 1, 'oreb': 0, 'pts': 10, 'stl': 3, 'tov': 1},
    {'dd': 15, 'td': 30}],
   410)]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
regression: rebound composition710758Failed
partial repair probe: rebound composition401476Failed
second regression745817Failed
normal control 1475475Passed
normal control 2440440Passed
normal control 3310310Passed
normal control 4916916Passed

SHA-256 / ef20e5ad898cdfbe48fc12ebdd62d34a4b50d770cd77bb1113e3ef249d3482ce

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 7 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.

Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.

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

Sign in to the archive ↗

Verification & scope

A deterministic toy scoring contract stipulated for this example; it is not the rulebook of any real fantasy platform. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.

Observations recorded using Python 3.12.14 at 2026-09-29T14:50:37.309629+00:00.

Case digest / a4afffb302cdcff5db71816d2cd3d7dd86f8702c30f9197bcf6916d6c45e89d7