FAILURE MAP
← Case archive

FA-84846 / Fantasy sports scoring / Open access

Exactly 300 passing yards misses the passing bonus · case 01

A quarterback finishing on exactly 300 passing yards gets no 3 point bonus.

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

ROOT CAUSE

The 300-yard bonus is tested with a strict greater-than, excluding the threshold value itself.

VERIFIED REPAIR

Award the bonus when passing yards are at least 300.

Unsuccessful approach: Counting rushing yards toward the passing bonus hands the bonus to scrambling quarterbacks below 300 passing yards.

Case contract

Score a skill-player stat line in integer hundredths. Passing yards earn 1 point per full 25 yards, rushing and receiving yards 1 point per full 10 yards, each category truncated toward zero separately. Pass TD 4, interception -2, rush/receiving TD 6, fumble lost -2 (fumbles recovered by the own team are free), two-point conversion 2, each first down 0.25. Receptions are worth 0/0.5/1 for std/half/ppr, and a TE earns an extra 0.5 per reception on top. 300+ passing, 100+ rushing and 100+ receiving yards each add a 3 point bonus. The display string rounds to tenths half away from zero and never shows -0.0.

Why this case matters

Fantasy football points drive weekly matchups and payouts; small unit or boundary mistakes flip results that users dispute.

1 / The failure

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

N = 1
observations = []
def solve(stats, fmt, pos):
    def unit(y, per):
        q = abs(y) // per
        return q if y >= 0 else -q
    rec_val = {'std': 0, 'half': 50, 'ppr': 100}[fmt]
    if pos == 'TE':
        rec_val += 50
    pts = 0
    pts += unit(stats['pass_yds'], 25) * 100
    pts += stats['pass_td'] * 400
    pts -= stats['int'] * 200
    pts += unit(stats['rush_yds'], 10) * 100
    pts += stats['rush_td'] * 600
    pts += stats['rec'] * rec_val
    pts += unit(stats['rec_yds'], 10) * 100
    pts += stats['rec_td'] * 600
    pts -= stats['fum_lost'] * 200
    pts += stats['two_pt'] * 200
    pts += stats['first_downs'] * 25
    if stats['pass_yds'] > 300:
        pts += 300
    if stats['rush_yds'] >= 100:
        pts += 300
    if stats['rec_yds'] >= 100:
        pts += 300
    t = (abs(pts) + 5) // 10
    sign = '-' if pts < 0 and t else ''
    return {'hundredths': pts, 'display': '%s%d.%d' % (sign, t // 10, t % 10)}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: passing bonus threshold',
   [{'first_downs': 8,
     'fum': 2,
     'fum_lost': 2,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 300,
     'rec': 5,
     'rec_td': 0,
     'rec_yds': 112,
     'rush_td': 2,
     'rush_yds': 35,
     'two_pt': 1},
    'half', 'WR'],
   {'display': '42.5', 'hundredths': 4250}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 9,
     'fum': 0,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 4,
     'pass_yds': 300,
     'rec': 9,
     'rec_td': 0,
     'rec_yds': 19,
     'rush_td': 1,
     'rush_yds': -6,
     'two_pt': 0},
    'std', 'WR'],
   {'display': '38.3', 'hundredths': 3825}),
  ('second regression',
   [{'first_downs': 1,
     'fum': 2,
     'fum_lost': 1,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 271,
     'rec': 4,
     'rec_td': 2,
     'rec_yds': 100,
     'rush_td': 2,
     'rush_yds': 100,
     'two_pt': 1},
    'std', 'QB'],
   {'display': '56.3', 'hundredths': 5625}),
  ('normal control 1',
   [{'first_downs': 9,
     'fum': 2,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 0,
     'pass_yds': 33,
     'rec': 0,
     'rec_td': 0,
     'rec_yds': 0,
     'rush_td': 0,
     'rush_yds': -2,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '-4.8', 'hundredths': -475}),
  ('normal control 2',
   [{'first_downs': 8,
     'fum': 0,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 4,
     'pass_yds': 367,
     'rec': 3,
     'rec_td': 1,
     'rec_yds': 105,
     'rush_td': 2,
     'rush_yds': 27,
     'two_pt': 0},
    'std', 'WR'],
   {'display': '64.0', 'hundredths': 6400}),
  ('normal control 3',
   [{'first_downs': 4,
     'fum': 2,
     'fum_lost': 1,
     'int': 1,
     'pass_td': 2,
     'pass_yds': 328,
     'rec': 11,
     'rec_td': 2,
     'rec_yds': 100,
     'rush_td': 0,
     'rush_yds': 104,
     'two_pt': 0},
    'ppr', 'TE'],
   {'display': '75.5', 'hundredths': 7550}),
  ('normal control 4',
   [{'first_downs': 5,
     'fum': 2,
     'fum_lost': 2,
     'int': 0,
     'pass_td': 0,
     'pass_yds': 145,
     'rec': 4,
     'rec_td': 1,
     'rec_yds': 101,
     'rush_td': 2,
     'rush_yds': 66,
     'two_pt': 1},
    'std', 'QB'],
   {'display': '41.3', 'hundredths': 4125})],
 [('regression: passing bonus threshold',
   [{'first_downs': 8,
     'fum': 0,
     'fum_lost': 0,
     'int': 3,
     'pass_td': 4,
     'pass_yds': 300,
     'rec': 4,
     'rec_td': 1,
     'rec_yds': 100,
     'rush_td': 2,
     'rush_yds': 100,
     'two_pt': 0},
    'half', 'QB'],
   {'display': '73.0', 'hundredths': 7300}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 7,
     'fum': 1,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 4,
     'pass_yds': 299,
     'rec': 4,
     'rec_td': 0,
     'rec_yds': 19,
     'rush_td': 1,
     'rush_yds': 127,
     'two_pt': 1},
    'ppr', 'TE'],
   {'display': '50.8', 'hundredths': 5075}),
  ('second regression',
   [{'first_downs': 7,
     'fum': 3,
     'fum_lost': 3,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 261,
     'rec': 7,
     'rec_td': 0,
     'rec_yds': 70,
     'rush_td': 2,
     'rush_yds': 99,
     'two_pt': 0},
    'std', 'TE'],
   {'display': '33.3', 'hundredths': 3325}),
  ('normal control 1',
   [{'first_downs': 4,
     'fum': 3,
     'fum_lost': 2,
     'int': 0,
     'pass_td': 3,
     'pass_yds': 164,
     'rec': 0,
     'rec_td': 1,
     'rec_yds': 12,
     'rush_td': 2,
     'rush_yds': -13,
     'two_pt': 0},
    'std', 'RB'],
   {'display': '33.0', 'hundredths': 3300}),
  ('normal control 2',
   [{'first_downs': 3,
     'fum': 0,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 412,
     'rec': 2,
     'rec_td': 2,
     'rec_yds': 11,
     'rush_td': 2,
     'rush_yds': 56,
     'two_pt': 0},
    'ppr', 'QB'],
   {'display': '47.8', 'hundredths': 4775}),
  ('normal control 3',
   [{'first_downs': 3,
     'fum': 2,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 0,
     'pass_yds': 39,
     'rec': 0,
     'rec_td': 0,
     'rec_yds': 0,
     'rush_td': 0,
     'rush_yds': -14,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '-7.3', 'hundredths': -725}),
  ('normal control 4',
   [{'first_downs': 9,
     'fum': 0,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 4,
     'pass_yds': 316,
     'rec': 8,
     'rec_td': 1,
     'rec_yds': 20,
     'rush_td': 2,
     'rush_yds': 135,
     'two_pt': 0},
    'ppr', 'QB'],
   {'display': '75.3', 'hundredths': 7525})],
 [('regression: passing bonus threshold',
   [{'first_downs': 6,
     'fum': 0,
     'fum_lost': 0,
     'int': 3,
     'pass_td': 3,
     'pass_yds': 300,
     'rec': 10,
     'rec_td': 1,
     'rec_yds': 112,
     'rush_td': 1,
     'rush_yds': 95,
     'two_pt': 0},
    'ppr', 'RB'],
   {'display': '67.5', 'hundredths': 6750}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 1,
     'fum': 3,
     'fum_lost': 2,
     'int': 2,
     'pass_td': 3,
     'pass_yds': 290,
     'rec': 2,
     'rec_td': 1,
     'rec_yds': 79,
     'rush_td': 1,
     'rush_yds': 100,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '49.3', 'hundredths': 4925}),
  ('second regression',
   [{'first_downs': 3,
     'fum': 0,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 2,
     'pass_yds': 248,
     'rec': 2,
     'rec_td': 1,
     'rec_yds': 19,
     'rush_td': 2,
     'rush_yds': 119,
     'two_pt': 1},
    'std', 'WR'],
   {'display': '52.8', 'hundredths': 5275}),
  ('normal control 1',
   [{'first_downs': 3,
     'fum': 1,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 404,
     'rec': 8,
     'rec_td': 1,
     'rec_yds': 20,
     'rush_td': 1,
     'rush_yds': 100,
     'two_pt': 1},
    'half', 'TE'],
   {'display': '52.8', 'hundredths': 5275}),
  ('normal control 2',
   [{'first_downs': 7,
     'fum': 1,
     'fum_lost': 1,
     'int': 1,
     'pass_td': 1,
     'pass_yds': 106,
     'rec': 8,
     'rec_td': 2,
     'rec_yds': 108,
     'rush_td': 2,
     'rush_yds': 21,
     'two_pt': 1},
    'half', 'TE'],
   {'display': '54.8', 'hundredths': 5475}),
  ('normal control 3',
   [{'first_downs': 7,
     'fum': 2,
     'fum_lost': 2,
     'int': 3,
     'pass_td': 0,
     'pass_yds': 22,
     'rec': 0,
     'rec_td': 0,
     'rec_yds': 0,
     'rush_td': 0,
     'rush_yds': 1,
     'two_pt': 0},
    'std', 'TE'],
   {'display': '-8.3', 'hundredths': -825}),
  ('normal control 4',
   [{'first_downs': 5,
     'fum': 3,
     'fum_lost': 2,
     'int': 1,
     'pass_td': 3,
     'pass_yds': 301,
     'rec': 7,
     'rec_td': 1,
     'rec_yds': 127,
     'rush_td': 1,
     'rush_yds': 9,
     'two_pt': 1},
    'std', 'RB'],
   {'display': '51.3', 'hundredths': 5125})],
 [('regression: passing bonus threshold',
   [{'first_downs': 0,
     'fum': 0,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 2,
     'pass_yds': 300,
     'rec': 1,
     'rec_td': 0,
     'rec_yds': 119,
     'rush_td': 2,
     'rush_yds': 10,
     'two_pt': 0},
    'ppr', 'WR'],
   {'display': '47.0', 'hundredths': 4700}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 5,
     'fum': 1,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 1,
     'pass_yds': 208,
     'rec': 5,
     'rec_td': 0,
     'rec_yds': 99,
     'rush_td': 2,
     'rush_yds': 99,
     'two_pt': 1},
    'ppr', 'RB'],
   {'display': '48.3', 'hundredths': 4825}),
  ('second regression',
   [{'first_downs': 9,
     'fum': 3,
     'fum_lost': 3,
     'int': 0,
     'pass_td': 1,
     'pass_yds': 300,
     'rec': 6,
     'rec_td': 2,
     'rec_yds': 131,
     'rush_td': 1,
     'rush_yds': 11,
     'two_pt': 0},
    'std', 'TE'],
   {'display': '53.3', 'hundredths': 5325}),
  ('normal control 1',
   [{'first_downs': 3,
     'fum': 2,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 3,
     'pass_yds': 372,
     'rec': 0,
     'rec_td': 2,
     'rec_yds': 109,
     'rush_td': 0,
     'rush_yds': 9,
     'two_pt': 0},
    'std', 'RB'],
   {'display': '52.8', 'hundredths': 5275}),
  ('normal control 2',
   [{'first_downs': 0,
     'fum': 2,
     'fum_lost': 1,
     'int': 0,
     'pass_td': 1,
     'pass_yds': 318,
     'rec': 4,
     'rec_td': 0,
     'rec_yds': 100,
     'rush_td': 0,
     'rush_yds': -7,
     'two_pt': 0},
    'half', 'RB'],
   {'display': '32.0', 'hundredths': 3200}),
  ('normal control 3',
   [{'first_downs': 7,
     'fum': 2,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 0,
     'pass_yds': 129,
     'rec': 3,
     'rec_td': 2,
     'rec_yds': 99,
     'rush_td': 2,
     'rush_yds': 148,
     'two_pt': 0},
    'ppr', 'RB'],
   {'display': '59.8', 'hundredths': 5975}),
  ('normal control 4',
   [{'first_downs': 2,
     'fum': 2,
     'fum_lost': 1,
     'int': 1,
     'pass_td': 0,
     'pass_yds': 55,
     'rec': 7,
     'rec_td': 2,
     'rec_yds': 20,
     'rush_td': 0,
     'rush_yds': -13,
     'two_pt': 0},
    'ppr', 'TE'],
   {'display': '22.0', 'hundredths': 2200})],
 [('regression: passing bonus threshold',
   [{'first_downs': 4,
     'fum': 1,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 1,
     'pass_yds': 300,
     'rec': 5,
     'rec_td': 1,
     'rec_yds': 99,
     'rush_td': 1,
     'rush_yds': 100,
     'two_pt': 0},
    'std', 'QB'],
   {'display': '54.0', 'hundredths': 5400}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 6,
     'fum': 1,
     'fum_lost': 1,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 183,
     'rec': 2,
     'rec_td': 1,
     'rec_yds': 65,
     'rush_td': 2,
     'rush_yds': 140,
     'two_pt': 0},
    'half', 'QB'],
   {'display': '44.5', 'hundredths': 4450}),
  ('second regression',
   [{'first_downs': 1,
     'fum': 1,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 1,
     'pass_yds': 231,
     'rec': 1,
     'rec_td': 2,
     'rec_yds': 54,
     'rush_td': 1,
     'rush_yds': 72,
     'two_pt': 1},
    'std', 'QB'],
   {'display': '37.3', 'hundredths': 3725}),
  ('normal control 1',
   [{'first_downs': 0,
     'fum': 0,
     'fum_lost': 0,
     'int': 3,
     'pass_td': 2,
     'pass_yds': 193,
     'rec': 10,
     'rec_td': 1,
     'rec_yds': -4,
     'rush_td': 0,
     'rush_yds': 10,
     'two_pt': 1},
    'half', 'WR'],
   {'display': '23.0', 'hundredths': 2300}),
  ('normal control 2',
   [{'first_downs': 1,
     'fum': 1,
     'fum_lost': 1,
     'int': 0,
     'pass_td': 3,
     'pass_yds': 22,
     'rec': 9,
     'rec_td': 1,
     'rec_yds': 144,
     'rush_td': 2,
     'rush_yds': 78,
     'two_pt': 0},
    'ppr', 'QB'],
   {'display': '61.3', 'hundredths': 6125}),
  ('normal control 3',
   [{'first_downs': 4,
     'fum': 0,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 0,
     'pass_yds': 325,
     'rec': 5,
     'rec_td': 2,
     'rec_yds': 56,
     'rush_td': 2,
     'rush_yds': 10,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '52.0', 'hundredths': 5200}),
  ('normal control 4',
   [{'first_downs': 4,
     'fum': 2,
     'fum_lost': 1,
     'int': 0,
     'pass_td': 4,
     'pass_yds': 190,
     'rec': 8,
     'rec_td': 0,
     'rec_yds': 55,
     'rush_td': 2,
     'rush_yds': -10,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '46.0', 'hundredths': 4600})]]
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: passing bonus threshold{'display': '39.5', 'hundredths': 3950}{'display': '42.5', 'hundredths': 4250}Failed
partial repair probe: passing bonus threshold{'display': '35.3', 'hundredths': 3525}{'display': '38.3', 'hundredths': 3825}Failed
second regression{'display': '56.3', 'hundredths': 5625}{'display': '56.3', 'hundredths': 5625}Passed
normal control 1{'display': '-4.8', 'hundredths': -475}{'display': '-4.8', 'hundredths': -475}Passed
normal control 2{'display': '64.0', 'hundredths': 6400}{'display': '64.0', 'hundredths': 6400}Passed
normal control 3{'display': '75.5', 'hundredths': 7550}{'display': '75.5', 'hundredths': 7550}Passed
normal control 4{'display': '41.3', 'hundredths': 4125}{'display': '41.3', 'hundredths': 4125}Passed

SHA-256 / 281a3c4a0fd393ce9046da658879d01994629f5997147021b2d29d2a80da28b8

2 / The unsuccessful fix

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

N = 1
observations = []
def solve(stats, fmt, pos):
    def unit(y, per):
        q = abs(y) // per
        return q if y >= 0 else -q
    rec_val = {'std': 0, 'half': 50, 'ppr': 100}[fmt]
    if pos == 'TE':
        rec_val += 50
    pts = 0
    pts += unit(stats['pass_yds'], 25) * 100
    pts += stats['pass_td'] * 400
    pts -= stats['int'] * 200
    pts += unit(stats['rush_yds'], 10) * 100
    pts += stats['rush_td'] * 600
    pts += stats['rec'] * rec_val
    pts += unit(stats['rec_yds'], 10) * 100
    pts += stats['rec_td'] * 600
    pts -= stats['fum_lost'] * 200
    pts += stats['two_pt'] * 200
    pts += stats['first_downs'] * 25
    if stats['pass_yds'] + stats['rush_yds'] >= 300:
        pts += 300
    if stats['rush_yds'] >= 100:
        pts += 300
    if stats['rec_yds'] >= 100:
        pts += 300
    t = (abs(pts) + 5) // 10
    sign = '-' if pts < 0 and t else ''
    return {'hundredths': pts, 'display': '%s%d.%d' % (sign, t // 10, t % 10)}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: passing bonus threshold',
   [{'first_downs': 8,
     'fum': 2,
     'fum_lost': 2,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 300,
     'rec': 5,
     'rec_td': 0,
     'rec_yds': 112,
     'rush_td': 2,
     'rush_yds': 35,
     'two_pt': 1},
    'half', 'WR'],
   {'display': '42.5', 'hundredths': 4250}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 9,
     'fum': 0,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 4,
     'pass_yds': 300,
     'rec': 9,
     'rec_td': 0,
     'rec_yds': 19,
     'rush_td': 1,
     'rush_yds': -6,
     'two_pt': 0},
    'std', 'WR'],
   {'display': '38.3', 'hundredths': 3825}),
  ('second regression',
   [{'first_downs': 1,
     'fum': 2,
     'fum_lost': 1,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 271,
     'rec': 4,
     'rec_td': 2,
     'rec_yds': 100,
     'rush_td': 2,
     'rush_yds': 100,
     'two_pt': 1},
    'std', 'QB'],
   {'display': '56.3', 'hundredths': 5625}),
  ('normal control 1',
   [{'first_downs': 9,
     'fum': 2,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 0,
     'pass_yds': 33,
     'rec': 0,
     'rec_td': 0,
     'rec_yds': 0,
     'rush_td': 0,
     'rush_yds': -2,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '-4.8', 'hundredths': -475}),
  ('normal control 2',
   [{'first_downs': 8,
     'fum': 0,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 4,
     'pass_yds': 367,
     'rec': 3,
     'rec_td': 1,
     'rec_yds': 105,
     'rush_td': 2,
     'rush_yds': 27,
     'two_pt': 0},
    'std', 'WR'],
   {'display': '64.0', 'hundredths': 6400}),
  ('normal control 3',
   [{'first_downs': 4,
     'fum': 2,
     'fum_lost': 1,
     'int': 1,
     'pass_td': 2,
     'pass_yds': 328,
     'rec': 11,
     'rec_td': 2,
     'rec_yds': 100,
     'rush_td': 0,
     'rush_yds': 104,
     'two_pt': 0},
    'ppr', 'TE'],
   {'display': '75.5', 'hundredths': 7550}),
  ('normal control 4',
   [{'first_downs': 5,
     'fum': 2,
     'fum_lost': 2,
     'int': 0,
     'pass_td': 0,
     'pass_yds': 145,
     'rec': 4,
     'rec_td': 1,
     'rec_yds': 101,
     'rush_td': 2,
     'rush_yds': 66,
     'two_pt': 1},
    'std', 'QB'],
   {'display': '41.3', 'hundredths': 4125})],
 [('regression: passing bonus threshold',
   [{'first_downs': 8,
     'fum': 0,
     'fum_lost': 0,
     'int': 3,
     'pass_td': 4,
     'pass_yds': 300,
     'rec': 4,
     'rec_td': 1,
     'rec_yds': 100,
     'rush_td': 2,
     'rush_yds': 100,
     'two_pt': 0},
    'half', 'QB'],
   {'display': '73.0', 'hundredths': 7300}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 7,
     'fum': 1,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 4,
     'pass_yds': 299,
     'rec': 4,
     'rec_td': 0,
     'rec_yds': 19,
     'rush_td': 1,
     'rush_yds': 127,
     'two_pt': 1},
    'ppr', 'TE'],
   {'display': '50.8', 'hundredths': 5075}),
  ('second regression',
   [{'first_downs': 7,
     'fum': 3,
     'fum_lost': 3,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 261,
     'rec': 7,
     'rec_td': 0,
     'rec_yds': 70,
     'rush_td': 2,
     'rush_yds': 99,
     'two_pt': 0},
    'std', 'TE'],
   {'display': '33.3', 'hundredths': 3325}),
  ('normal control 1',
   [{'first_downs': 4,
     'fum': 3,
     'fum_lost': 2,
     'int': 0,
     'pass_td': 3,
     'pass_yds': 164,
     'rec': 0,
     'rec_td': 1,
     'rec_yds': 12,
     'rush_td': 2,
     'rush_yds': -13,
     'two_pt': 0},
    'std', 'RB'],
   {'display': '33.0', 'hundredths': 3300}),
  ('normal control 2',
   [{'first_downs': 3,
     'fum': 0,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 412,
     'rec': 2,
     'rec_td': 2,
     'rec_yds': 11,
     'rush_td': 2,
     'rush_yds': 56,
     'two_pt': 0},
    'ppr', 'QB'],
   {'display': '47.8', 'hundredths': 4775}),
  ('normal control 3',
   [{'first_downs': 3,
     'fum': 2,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 0,
     'pass_yds': 39,
     'rec': 0,
     'rec_td': 0,
     'rec_yds': 0,
     'rush_td': 0,
     'rush_yds': -14,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '-7.3', 'hundredths': -725}),
  ('normal control 4',
   [{'first_downs': 9,
     'fum': 0,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 4,
     'pass_yds': 316,
     'rec': 8,
     'rec_td': 1,
     'rec_yds': 20,
     'rush_td': 2,
     'rush_yds': 135,
     'two_pt': 0},
    'ppr', 'QB'],
   {'display': '75.3', 'hundredths': 7525})],
 [('regression: passing bonus threshold',
   [{'first_downs': 6,
     'fum': 0,
     'fum_lost': 0,
     'int': 3,
     'pass_td': 3,
     'pass_yds': 300,
     'rec': 10,
     'rec_td': 1,
     'rec_yds': 112,
     'rush_td': 1,
     'rush_yds': 95,
     'two_pt': 0},
    'ppr', 'RB'],
   {'display': '67.5', 'hundredths': 6750}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 1,
     'fum': 3,
     'fum_lost': 2,
     'int': 2,
     'pass_td': 3,
     'pass_yds': 290,
     'rec': 2,
     'rec_td': 1,
     'rec_yds': 79,
     'rush_td': 1,
     'rush_yds': 100,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '49.3', 'hundredths': 4925}),
  ('second regression',
   [{'first_downs': 3,
     'fum': 0,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 2,
     'pass_yds': 248,
     'rec': 2,
     'rec_td': 1,
     'rec_yds': 19,
     'rush_td': 2,
     'rush_yds': 119,
     'two_pt': 1},
    'std', 'WR'],
   {'display': '52.8', 'hundredths': 5275}),
  ('normal control 1',
   [{'first_downs': 3,
     'fum': 1,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 404,
     'rec': 8,
     'rec_td': 1,
     'rec_yds': 20,
     'rush_td': 1,
     'rush_yds': 100,
     'two_pt': 1},
    'half', 'TE'],
   {'display': '52.8', 'hundredths': 5275}),
  ('normal control 2',
   [{'first_downs': 7,
     'fum': 1,
     'fum_lost': 1,
     'int': 1,
     'pass_td': 1,
     'pass_yds': 106,
     'rec': 8,
     'rec_td': 2,
     'rec_yds': 108,
     'rush_td': 2,
     'rush_yds': 21,
     'two_pt': 1},
    'half', 'TE'],
   {'display': '54.8', 'hundredths': 5475}),
  ('normal control 3',
   [{'first_downs': 7,
     'fum': 2,
     'fum_lost': 2,
     'int': 3,
     'pass_td': 0,
     'pass_yds': 22,
     'rec': 0,
     'rec_td': 0,
     'rec_yds': 0,
     'rush_td': 0,
     'rush_yds': 1,
     'two_pt': 0},
    'std', 'TE'],
   {'display': '-8.3', 'hundredths': -825}),
  ('normal control 4',
   [{'first_downs': 5,
     'fum': 3,
     'fum_lost': 2,
     'int': 1,
     'pass_td': 3,
     'pass_yds': 301,
     'rec': 7,
     'rec_td': 1,
     'rec_yds': 127,
     'rush_td': 1,
     'rush_yds': 9,
     'two_pt': 1},
    'std', 'RB'],
   {'display': '51.3', 'hundredths': 5125})],
 [('regression: passing bonus threshold',
   [{'first_downs': 0,
     'fum': 0,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 2,
     'pass_yds': 300,
     'rec': 1,
     'rec_td': 0,
     'rec_yds': 119,
     'rush_td': 2,
     'rush_yds': 10,
     'two_pt': 0},
    'ppr', 'WR'],
   {'display': '47.0', 'hundredths': 4700}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 5,
     'fum': 1,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 1,
     'pass_yds': 208,
     'rec': 5,
     'rec_td': 0,
     'rec_yds': 99,
     'rush_td': 2,
     'rush_yds': 99,
     'two_pt': 1},
    'ppr', 'RB'],
   {'display': '48.3', 'hundredths': 4825}),
  ('second regression',
   [{'first_downs': 9,
     'fum': 3,
     'fum_lost': 3,
     'int': 0,
     'pass_td': 1,
     'pass_yds': 300,
     'rec': 6,
     'rec_td': 2,
     'rec_yds': 131,
     'rush_td': 1,
     'rush_yds': 11,
     'two_pt': 0},
    'std', 'TE'],
   {'display': '53.3', 'hundredths': 5325}),
  ('normal control 1',
   [{'first_downs': 3,
     'fum': 2,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 3,
     'pass_yds': 372,
     'rec': 0,
     'rec_td': 2,
     'rec_yds': 109,
     'rush_td': 0,
     'rush_yds': 9,
     'two_pt': 0},
    'std', 'RB'],
   {'display': '52.8', 'hundredths': 5275}),
  ('normal control 2',
   [{'first_downs': 0,
     'fum': 2,
     'fum_lost': 1,
     'int': 0,
     'pass_td': 1,
     'pass_yds': 318,
     'rec': 4,
     'rec_td': 0,
     'rec_yds': 100,
     'rush_td': 0,
     'rush_yds': -7,
     'two_pt': 0},
    'half', 'RB'],
   {'display': '32.0', 'hundredths': 3200}),
  ('normal control 3',
   [{'first_downs': 7,
     'fum': 2,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 0,
     'pass_yds': 129,
     'rec': 3,
     'rec_td': 2,
     'rec_yds': 99,
     'rush_td': 2,
     'rush_yds': 148,
     'two_pt': 0},
    'ppr', 'RB'],
   {'display': '59.8', 'hundredths': 5975}),
  ('normal control 4',
   [{'first_downs': 2,
     'fum': 2,
     'fum_lost': 1,
     'int': 1,
     'pass_td': 0,
     'pass_yds': 55,
     'rec': 7,
     'rec_td': 2,
     'rec_yds': 20,
     'rush_td': 0,
     'rush_yds': -13,
     'two_pt': 0},
    'ppr', 'TE'],
   {'display': '22.0', 'hundredths': 2200})],
 [('regression: passing bonus threshold',
   [{'first_downs': 4,
     'fum': 1,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 1,
     'pass_yds': 300,
     'rec': 5,
     'rec_td': 1,
     'rec_yds': 99,
     'rush_td': 1,
     'rush_yds': 100,
     'two_pt': 0},
    'std', 'QB'],
   {'display': '54.0', 'hundredths': 5400}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 6,
     'fum': 1,
     'fum_lost': 1,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 183,
     'rec': 2,
     'rec_td': 1,
     'rec_yds': 65,
     'rush_td': 2,
     'rush_yds': 140,
     'two_pt': 0},
    'half', 'QB'],
   {'display': '44.5', 'hundredths': 4450}),
  ('second regression',
   [{'first_downs': 1,
     'fum': 1,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 1,
     'pass_yds': 231,
     'rec': 1,
     'rec_td': 2,
     'rec_yds': 54,
     'rush_td': 1,
     'rush_yds': 72,
     'two_pt': 1},
    'std', 'QB'],
   {'display': '37.3', 'hundredths': 3725}),
  ('normal control 1',
   [{'first_downs': 0,
     'fum': 0,
     'fum_lost': 0,
     'int': 3,
     'pass_td': 2,
     'pass_yds': 193,
     'rec': 10,
     'rec_td': 1,
     'rec_yds': -4,
     'rush_td': 0,
     'rush_yds': 10,
     'two_pt': 1},
    'half', 'WR'],
   {'display': '23.0', 'hundredths': 2300}),
  ('normal control 2',
   [{'first_downs': 1,
     'fum': 1,
     'fum_lost': 1,
     'int': 0,
     'pass_td': 3,
     'pass_yds': 22,
     'rec': 9,
     'rec_td': 1,
     'rec_yds': 144,
     'rush_td': 2,
     'rush_yds': 78,
     'two_pt': 0},
    'ppr', 'QB'],
   {'display': '61.3', 'hundredths': 6125}),
  ('normal control 3',
   [{'first_downs': 4,
     'fum': 0,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 0,
     'pass_yds': 325,
     'rec': 5,
     'rec_td': 2,
     'rec_yds': 56,
     'rush_td': 2,
     'rush_yds': 10,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '52.0', 'hundredths': 5200}),
  ('normal control 4',
   [{'first_downs': 4,
     'fum': 2,
     'fum_lost': 1,
     'int': 0,
     'pass_td': 4,
     'pass_yds': 190,
     'rec': 8,
     'rec_td': 0,
     'rec_yds': 55,
     'rush_td': 2,
     'rush_yds': -10,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '46.0', 'hundredths': 4600})]]
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: passing bonus threshold{'display': '42.5', 'hundredths': 4250}{'display': '42.5', 'hundredths': 4250}Passed
partial repair probe: passing bonus threshold{'display': '35.3', 'hundredths': 3525}{'display': '38.3', 'hundredths': 3825}Failed
second regression{'display': '59.3', 'hundredths': 5925}{'display': '56.3', 'hundredths': 5625}Failed
normal control 1{'display': '-4.8', 'hundredths': -475}{'display': '-4.8', 'hundredths': -475}Passed
normal control 2{'display': '64.0', 'hundredths': 6400}{'display': '64.0', 'hundredths': 6400}Passed
normal control 3{'display': '75.5', 'hundredths': 7550}{'display': '75.5', 'hundredths': 7550}Passed
normal control 4{'display': '41.3', 'hundredths': 4125}{'display': '41.3', 'hundredths': 4125}Passed

SHA-256 / a3b84bc69ff7422920d3adfb72f85d7afe08bf51adb4782c1985f07eb6cada87

3 / The verified repair

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

N = 1
observations = []
def solve(stats, fmt, pos):
    def unit(y, per):
        q = abs(y) // per
        return q if y >= 0 else -q
    rec_val = {'std': 0, 'half': 50, 'ppr': 100}[fmt]
    if pos == 'TE':
        rec_val += 50
    pts = 0
    pts += unit(stats['pass_yds'], 25) * 100
    pts += stats['pass_td'] * 400
    pts -= stats['int'] * 200
    pts += unit(stats['rush_yds'], 10) * 100
    pts += stats['rush_td'] * 600
    pts += stats['rec'] * rec_val
    pts += unit(stats['rec_yds'], 10) * 100
    pts += stats['rec_td'] * 600
    pts -= stats['fum_lost'] * 200
    pts += stats['two_pt'] * 200
    pts += stats['first_downs'] * 25
    if stats['pass_yds'] >= 300:
        pts += 300
    if stats['rush_yds'] >= 100:
        pts += 300
    if stats['rec_yds'] >= 100:
        pts += 300
    t = (abs(pts) + 5) // 10
    sign = '-' if pts < 0 and t else ''
    return {'hundredths': pts, 'display': '%s%d.%d' % (sign, t // 10, t % 10)}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: passing bonus threshold',
   [{'first_downs': 8,
     'fum': 2,
     'fum_lost': 2,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 300,
     'rec': 5,
     'rec_td': 0,
     'rec_yds': 112,
     'rush_td': 2,
     'rush_yds': 35,
     'two_pt': 1},
    'half', 'WR'],
   {'display': '42.5', 'hundredths': 4250}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 9,
     'fum': 0,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 4,
     'pass_yds': 300,
     'rec': 9,
     'rec_td': 0,
     'rec_yds': 19,
     'rush_td': 1,
     'rush_yds': -6,
     'two_pt': 0},
    'std', 'WR'],
   {'display': '38.3', 'hundredths': 3825}),
  ('second regression',
   [{'first_downs': 1,
     'fum': 2,
     'fum_lost': 1,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 271,
     'rec': 4,
     'rec_td': 2,
     'rec_yds': 100,
     'rush_td': 2,
     'rush_yds': 100,
     'two_pt': 1},
    'std', 'QB'],
   {'display': '56.3', 'hundredths': 5625}),
  ('normal control 1',
   [{'first_downs': 9,
     'fum': 2,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 0,
     'pass_yds': 33,
     'rec': 0,
     'rec_td': 0,
     'rec_yds': 0,
     'rush_td': 0,
     'rush_yds': -2,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '-4.8', 'hundredths': -475}),
  ('normal control 2',
   [{'first_downs': 8,
     'fum': 0,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 4,
     'pass_yds': 367,
     'rec': 3,
     'rec_td': 1,
     'rec_yds': 105,
     'rush_td': 2,
     'rush_yds': 27,
     'two_pt': 0},
    'std', 'WR'],
   {'display': '64.0', 'hundredths': 6400}),
  ('normal control 3',
   [{'first_downs': 4,
     'fum': 2,
     'fum_lost': 1,
     'int': 1,
     'pass_td': 2,
     'pass_yds': 328,
     'rec': 11,
     'rec_td': 2,
     'rec_yds': 100,
     'rush_td': 0,
     'rush_yds': 104,
     'two_pt': 0},
    'ppr', 'TE'],
   {'display': '75.5', 'hundredths': 7550}),
  ('normal control 4',
   [{'first_downs': 5,
     'fum': 2,
     'fum_lost': 2,
     'int': 0,
     'pass_td': 0,
     'pass_yds': 145,
     'rec': 4,
     'rec_td': 1,
     'rec_yds': 101,
     'rush_td': 2,
     'rush_yds': 66,
     'two_pt': 1},
    'std', 'QB'],
   {'display': '41.3', 'hundredths': 4125})],
 [('regression: passing bonus threshold',
   [{'first_downs': 8,
     'fum': 0,
     'fum_lost': 0,
     'int': 3,
     'pass_td': 4,
     'pass_yds': 300,
     'rec': 4,
     'rec_td': 1,
     'rec_yds': 100,
     'rush_td': 2,
     'rush_yds': 100,
     'two_pt': 0},
    'half', 'QB'],
   {'display': '73.0', 'hundredths': 7300}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 7,
     'fum': 1,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 4,
     'pass_yds': 299,
     'rec': 4,
     'rec_td': 0,
     'rec_yds': 19,
     'rush_td': 1,
     'rush_yds': 127,
     'two_pt': 1},
    'ppr', 'TE'],
   {'display': '50.8', 'hundredths': 5075}),
  ('second regression',
   [{'first_downs': 7,
     'fum': 3,
     'fum_lost': 3,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 261,
     'rec': 7,
     'rec_td': 0,
     'rec_yds': 70,
     'rush_td': 2,
     'rush_yds': 99,
     'two_pt': 0},
    'std', 'TE'],
   {'display': '33.3', 'hundredths': 3325}),
  ('normal control 1',
   [{'first_downs': 4,
     'fum': 3,
     'fum_lost': 2,
     'int': 0,
     'pass_td': 3,
     'pass_yds': 164,
     'rec': 0,
     'rec_td': 1,
     'rec_yds': 12,
     'rush_td': 2,
     'rush_yds': -13,
     'two_pt': 0},
    'std', 'RB'],
   {'display': '33.0', 'hundredths': 3300}),
  ('normal control 2',
   [{'first_downs': 3,
     'fum': 0,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 412,
     'rec': 2,
     'rec_td': 2,
     'rec_yds': 11,
     'rush_td': 2,
     'rush_yds': 56,
     'two_pt': 0},
    'ppr', 'QB'],
   {'display': '47.8', 'hundredths': 4775}),
  ('normal control 3',
   [{'first_downs': 3,
     'fum': 2,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 0,
     'pass_yds': 39,
     'rec': 0,
     'rec_td': 0,
     'rec_yds': 0,
     'rush_td': 0,
     'rush_yds': -14,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '-7.3', 'hundredths': -725}),
  ('normal control 4',
   [{'first_downs': 9,
     'fum': 0,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 4,
     'pass_yds': 316,
     'rec': 8,
     'rec_td': 1,
     'rec_yds': 20,
     'rush_td': 2,
     'rush_yds': 135,
     'two_pt': 0},
    'ppr', 'QB'],
   {'display': '75.3', 'hundredths': 7525})],
 [('regression: passing bonus threshold',
   [{'first_downs': 6,
     'fum': 0,
     'fum_lost': 0,
     'int': 3,
     'pass_td': 3,
     'pass_yds': 300,
     'rec': 10,
     'rec_td': 1,
     'rec_yds': 112,
     'rush_td': 1,
     'rush_yds': 95,
     'two_pt': 0},
    'ppr', 'RB'],
   {'display': '67.5', 'hundredths': 6750}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 1,
     'fum': 3,
     'fum_lost': 2,
     'int': 2,
     'pass_td': 3,
     'pass_yds': 290,
     'rec': 2,
     'rec_td': 1,
     'rec_yds': 79,
     'rush_td': 1,
     'rush_yds': 100,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '49.3', 'hundredths': 4925}),
  ('second regression',
   [{'first_downs': 3,
     'fum': 0,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 2,
     'pass_yds': 248,
     'rec': 2,
     'rec_td': 1,
     'rec_yds': 19,
     'rush_td': 2,
     'rush_yds': 119,
     'two_pt': 1},
    'std', 'WR'],
   {'display': '52.8', 'hundredths': 5275}),
  ('normal control 1',
   [{'first_downs': 3,
     'fum': 1,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 404,
     'rec': 8,
     'rec_td': 1,
     'rec_yds': 20,
     'rush_td': 1,
     'rush_yds': 100,
     'two_pt': 1},
    'half', 'TE'],
   {'display': '52.8', 'hundredths': 5275}),
  ('normal control 2',
   [{'first_downs': 7,
     'fum': 1,
     'fum_lost': 1,
     'int': 1,
     'pass_td': 1,
     'pass_yds': 106,
     'rec': 8,
     'rec_td': 2,
     'rec_yds': 108,
     'rush_td': 2,
     'rush_yds': 21,
     'two_pt': 1},
    'half', 'TE'],
   {'display': '54.8', 'hundredths': 5475}),
  ('normal control 3',
   [{'first_downs': 7,
     'fum': 2,
     'fum_lost': 2,
     'int': 3,
     'pass_td': 0,
     'pass_yds': 22,
     'rec': 0,
     'rec_td': 0,
     'rec_yds': 0,
     'rush_td': 0,
     'rush_yds': 1,
     'two_pt': 0},
    'std', 'TE'],
   {'display': '-8.3', 'hundredths': -825}),
  ('normal control 4',
   [{'first_downs': 5,
     'fum': 3,
     'fum_lost': 2,
     'int': 1,
     'pass_td': 3,
     'pass_yds': 301,
     'rec': 7,
     'rec_td': 1,
     'rec_yds': 127,
     'rush_td': 1,
     'rush_yds': 9,
     'two_pt': 1},
    'std', 'RB'],
   {'display': '51.3', 'hundredths': 5125})],
 [('regression: passing bonus threshold',
   [{'first_downs': 0,
     'fum': 0,
     'fum_lost': 0,
     'int': 2,
     'pass_td': 2,
     'pass_yds': 300,
     'rec': 1,
     'rec_td': 0,
     'rec_yds': 119,
     'rush_td': 2,
     'rush_yds': 10,
     'two_pt': 0},
    'ppr', 'WR'],
   {'display': '47.0', 'hundredths': 4700}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 5,
     'fum': 1,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 1,
     'pass_yds': 208,
     'rec': 5,
     'rec_td': 0,
     'rec_yds': 99,
     'rush_td': 2,
     'rush_yds': 99,
     'two_pt': 1},
    'ppr', 'RB'],
   {'display': '48.3', 'hundredths': 4825}),
  ('second regression',
   [{'first_downs': 9,
     'fum': 3,
     'fum_lost': 3,
     'int': 0,
     'pass_td': 1,
     'pass_yds': 300,
     'rec': 6,
     'rec_td': 2,
     'rec_yds': 131,
     'rush_td': 1,
     'rush_yds': 11,
     'two_pt': 0},
    'std', 'TE'],
   {'display': '53.3', 'hundredths': 5325}),
  ('normal control 1',
   [{'first_downs': 3,
     'fum': 2,
     'fum_lost': 0,
     'int': 1,
     'pass_td': 3,
     'pass_yds': 372,
     'rec': 0,
     'rec_td': 2,
     'rec_yds': 109,
     'rush_td': 0,
     'rush_yds': 9,
     'two_pt': 0},
    'std', 'RB'],
   {'display': '52.8', 'hundredths': 5275}),
  ('normal control 2',
   [{'first_downs': 0,
     'fum': 2,
     'fum_lost': 1,
     'int': 0,
     'pass_td': 1,
     'pass_yds': 318,
     'rec': 4,
     'rec_td': 0,
     'rec_yds': 100,
     'rush_td': 0,
     'rush_yds': -7,
     'two_pt': 0},
    'half', 'RB'],
   {'display': '32.0', 'hundredths': 3200}),
  ('normal control 3',
   [{'first_downs': 7,
     'fum': 2,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 0,
     'pass_yds': 129,
     'rec': 3,
     'rec_td': 2,
     'rec_yds': 99,
     'rush_td': 2,
     'rush_yds': 148,
     'two_pt': 0},
    'ppr', 'RB'],
   {'display': '59.8', 'hundredths': 5975}),
  ('normal control 4',
   [{'first_downs': 2,
     'fum': 2,
     'fum_lost': 1,
     'int': 1,
     'pass_td': 0,
     'pass_yds': 55,
     'rec': 7,
     'rec_td': 2,
     'rec_yds': 20,
     'rush_td': 0,
     'rush_yds': -13,
     'two_pt': 0},
    'ppr', 'TE'],
   {'display': '22.0', 'hundredths': 2200})],
 [('regression: passing bonus threshold',
   [{'first_downs': 4,
     'fum': 1,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 1,
     'pass_yds': 300,
     'rec': 5,
     'rec_td': 1,
     'rec_yds': 99,
     'rush_td': 1,
     'rush_yds': 100,
     'two_pt': 0},
    'std', 'QB'],
   {'display': '54.0', 'hundredths': 5400}),
  ('partial repair probe: passing bonus threshold',
   [{'first_downs': 6,
     'fum': 1,
     'fum_lost': 1,
     'int': 2,
     'pass_td': 0,
     'pass_yds': 183,
     'rec': 2,
     'rec_td': 1,
     'rec_yds': 65,
     'rush_td': 2,
     'rush_yds': 140,
     'two_pt': 0},
    'half', 'QB'],
   {'display': '44.5', 'hundredths': 4450}),
  ('second regression',
   [{'first_downs': 1,
     'fum': 1,
     'fum_lost': 1,
     'int': 3,
     'pass_td': 1,
     'pass_yds': 231,
     'rec': 1,
     'rec_td': 2,
     'rec_yds': 54,
     'rush_td': 1,
     'rush_yds': 72,
     'two_pt': 1},
    'std', 'QB'],
   {'display': '37.3', 'hundredths': 3725}),
  ('normal control 1',
   [{'first_downs': 0,
     'fum': 0,
     'fum_lost': 0,
     'int': 3,
     'pass_td': 2,
     'pass_yds': 193,
     'rec': 10,
     'rec_td': 1,
     'rec_yds': -4,
     'rush_td': 0,
     'rush_yds': 10,
     'two_pt': 1},
    'half', 'WR'],
   {'display': '23.0', 'hundredths': 2300}),
  ('normal control 2',
   [{'first_downs': 1,
     'fum': 1,
     'fum_lost': 1,
     'int': 0,
     'pass_td': 3,
     'pass_yds': 22,
     'rec': 9,
     'rec_td': 1,
     'rec_yds': 144,
     'rush_td': 2,
     'rush_yds': 78,
     'two_pt': 0},
    'ppr', 'QB'],
   {'display': '61.3', 'hundredths': 6125}),
  ('normal control 3',
   [{'first_downs': 4,
     'fum': 0,
     'fum_lost': 0,
     'int': 0,
     'pass_td': 0,
     'pass_yds': 325,
     'rec': 5,
     'rec_td': 2,
     'rec_yds': 56,
     'rush_td': 2,
     'rush_yds': 10,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '52.0', 'hundredths': 5200}),
  ('normal control 4',
   [{'first_downs': 4,
     'fum': 2,
     'fum_lost': 1,
     'int': 0,
     'pass_td': 4,
     'pass_yds': 190,
     'rec': 8,
     'rec_td': 0,
     'rec_yds': 55,
     'rush_td': 2,
     'rush_yds': -10,
     'two_pt': 0},
    'half', 'TE'],
   {'display': '46.0', 'hundredths': 4600})]]
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: passing bonus threshold{'display': '42.5', 'hundredths': 4250}{'display': '42.5', 'hundredths': 4250}Passed
partial repair probe: passing bonus threshold{'display': '38.3', 'hundredths': 3825}{'display': '38.3', 'hundredths': 3825}Passed
second regression{'display': '56.3', 'hundredths': 5625}{'display': '56.3', 'hundredths': 5625}Passed
normal control 1{'display': '-4.8', 'hundredths': -475}{'display': '-4.8', 'hundredths': -475}Passed
normal control 2{'display': '64.0', 'hundredths': 6400}{'display': '64.0', 'hundredths': 6400}Passed
normal control 3{'display': '75.5', 'hundredths': 7550}{'display': '75.5', 'hundredths': 7550}Passed
normal control 4{'display': '41.3', 'hundredths': 4125}{'display': '41.3', 'hundredths': 4125}Passed

SHA-256 / 6160264ff4b49eb9b37ebfa857370e03d3f8aa820d7c573d7d65964dfd8a1897

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:34.858636+00:00.

Case digest / cc7636df8d576facf3f6d858b892b8ec075ef48fcbe149f84ad74d458ce20769