FA-85301 / Fantasy sports scoring / Open access
Under-seventy bonus tested against par · case 01
A 70 on a par-72 course earns the under-70 bonus.
ROOT CAUSE
The bonus compares strokes relative to par instead of absolute strokes.
VERIFIED REPAIR
Compare the total stroke count with 70.
Unsuccessful approach: Using <= 70 pays the bonus for a round of exactly 70.
Case contract
Score a golf round given [par, strokes] per hole, in tenths: albatross or better 13, eagle 8, birdie 3, par 0.5, bogey -0.5, double bogey or worse -1; any hole-in-one earns +5 on top. Each maximal run of three or more consecutive birdie-or-better holes earns one 3 point streak bonus. A complete 18-hole round with no bogey or worse earns +3; a complete 18-hole round under 70 strokes earns +5.
Why this case matters
Golf fantasy streak and round bonuses depend on precise run detection and completion conditions.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(holes):
pts = 0
run = 0
streaks = 0
for par, strokes in holes:
d = strokes - par
if d <= -3:
pts += 130
elif d == -2:
pts += 80
elif d == -1:
pts += 30
elif d == 0:
pts += 5
elif d == 1:
pts -= 5
else:
pts -= 10
if strokes == 1:
pts += 50
if d < 0:
run += 1
if run == 3:
streaks += 1
else:
run = 0
pts += 30 * streaks
if len(holes) == 18 and all(s - p <= 0 for p, s in holes):
pts += 30
if len(holes) == 18 and sum(s - p for p, s in holes) < 0:
pts += 50
return pts
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: under-seventy measure',
[[[5, 4], [5, 5], [5, 5], [4, 4], [4, 1], [4, 4], [4, 5], [5, 5], [3, 2], [5, 4], [5, 7], [4, 5], [3, 2],
[4, 1], [5, 5], [5, 6], [5, 5], [4, 2]]],
570),
('partial repair probe: under-seventy measure',
[[[4, 3], [4, 4], [4, 4], [4, 4], [4, 4], [5, 5], [4, 3], [4, 4], [5, 4], [5, 5], [5, 5], [3, 3], [5, 4],
[4, 4], [3, 2], [4, 4], [4, 4], [4, 4]]],
245),
('second regression',
[[[4, 5], [4, 1], [5, 5], [4, 3], [4, 3], [4, 6], [5, 4], [4, 3], [3, 2], [5, 6], [5, 6], [4, 4], [3, 3],
[5, 6], [5, 4], [4, 1], [5, 5], [4, 6]]],
550),
('normal control 1',
[[[3, 2], [4, 4], [4, 2], [5, 4], [3, 2], [4, 4], [5, 5], [4, 4], [4, 4], [4, 4], [4, 1], [5, 4], [3, 3],
[4, 3], [4, 4], [5, 5], [3, 3], [4, 4]]],
575),
('normal control 2', [[[4, 4], [4, 6], [3, 3], [5, 4], [3, 3], [3, 3], [4, 4], [3, 2], [4, 5]]], 70),
('normal control 3', [[[3, 1], [4, 5], [4, 3], [4, 4], [5, 4], [3, 4], [4, 3], [4, 3], [3, 1]]], 405),
('normal control 4',
[[[4, 3], [4, 4], [3, 4], [4, 3], [3, 3], [4, 3], [5, 5], [3, 2], [4, 3], [4, 4], [3, 3], [3, 1], [4, 4],
[5, 6], [5, 5], [4, 3], [4, 4], [4, 1]]],
570)],
[('regression: under-seventy measure',
[[[3, 2], [5, 7], [3, 5], [3, 2], [4, 5], [4, 5], [4, 5], [4, 3], [3, 2], [3, 2], [3, 2], [4, 6], [4, 1],
[4, 4], [4, 4], [5, 5], [4, 4], [4, 4]]],
420),
('partial repair probe: under-seventy measure',
[[[5, 5], [5, 7], [5, 4], [4, 3], [4, 3], [5, 4], [4, 3], [5, 5], [4, 4], [3, 4], [4, 4], [4, 4], [4, 4],
[4, 1], [3, 3], [5, 5], [4, 4], [4, 3]]],
420),
('second regression',
[[[4, 4], [4, 6], [4, 4], [4, 6], [4, 4], [3, 4], [4, 4], [3, 2], [4, 4], [3, 2], [4, 1], [5, 5], [3, 4],
[3, 5], [3, 2], [4, 3], [4, 4], [5, 4]]],
375),
('normal control 1',
[[[4, 4], [4, 4], [5, 5], [3, 5], [5, 5], [5, 5], [4, 5], [5, 1], [4, 3], [4, 4], [4, 3], [5, 6], [4, 4],
[3, 3]]],
260),
('normal control 2', [[[4, 4], [5, 5], [4, 3], [4, 4], [4, 3], [4, 4], [4, 6], [4, 3], [4, 4]]], 105),
('normal control 3',
[[[3, 3], [4, 3], [4, 2], [4, 3], [4, 3], [4, 4], [4, 4], [4, 4], [5, 4], [4, 4], [4, 3], [4, 3], [4, 4],
[4, 4]]],
325),
('normal control 4',
[[[5, 3], [5, 5], [4, 4], [4, 4], [4, 3], [4, 4], [4, 3], [4, 3], [3, 3], [4, 3], [3, 3], [4, 4], [5, 4],
[3, 2], [3, 3], [5, 4], [4, 3], [4, 3]]],
500)],
[('regression: under-seventy measure',
[[[5, 5], [3, 3], [5, 4], [5, 5], [5, 5], [4, 3], [4, 3], [5, 4], [4, 4], [4, 4], [5, 3], [5, 4], [5, 3],
[4, 4], [3, 3], [4, 6], [4, 4], [4, 3]]],
435),
('partial repair probe: under-seventy measure',
[[[4, 3], [5, 4], [4, 3], [3, 2], [5, 7], [4, 4], [3, 2], [4, 6], [5, 3], [5, 5], [4, 4], [4, 4], [4, 4],
[5, 5], [3, 5], [3, 4], [5, 1], [5, 4]]],
465),
('second regression',
[[[4, 4], [4, 4], [3, 2], [3, 5], [4, 3], [3, 3], [4, 4], [3, 5], [5, 5], [4, 4], [4, 3], [4, 4], [4, 3],
[5, 4], [5, 7], [5, 5], [4, 3], [4, 3]]],
220),
('normal control 1',
[[[4, 3], [4, 3], [4, 3], [3, 3], [5, 4], [4, 6], [4, 4], [4, 6], [4, 2], [5, 5], [4, 4], [3, 2], [4, 3],
[4, 4], [4, 3], [4, 4], [4, 3], [3, 1]]],
540),
('normal control 2',
[[[3, 3], [4, 6], [3, 3], [5, 4], [4, 4], [5, 6], [5, 6], [5, 5], [4, 4], [4, 3], [4, 4], [4, 4], [5, 1],
[5, 4]]],
285),
('normal control 3',
[[[4, 4], [4, 4], [4, 3], [4, 3], [3, 3], [4, 4], [5, 4], [4, 4], [4, 4], [5, 5], [3, 2], [5, 5], [4, 4],
[4, 4], [4, 3], [4, 2], [5, 5], [5, 4]]],
395),
('normal control 4',
[[[4, 3], [5, 4], [4, 1], [4, 3], [4, 4], [4, 4], [4, 5], [4, 4], [3, 3], [3, 2], [3, 2], [4, 4], [5, 5],
[3, 2]]],
415)],
[('regression: under-seventy measure',
[[[3, 3], [4, 4], [5, 7], [3, 3], [5, 5], [4, 6], [5, 5], [5, 6], [4, 4], [4, 3], [4, 3], [4, 3], [4, 4],
[4, 4], [5, 3], [5, 4], [5, 4], [5, 5]]],
310),
('partial repair probe: under-seventy measure',
[[[5, 4], [3, 2], [4, 4], [4, 4], [5, 4], [4, 4], [3, 3], [4, 4], [4, 4], [3, 3], [4, 4], [4, 3], [5, 5],
[4, 4], [4, 5], [5, 5], [5, 4], [5, 4]]],
230),
('second regression',
[[[4, 4], [4, 6], [4, 5], [3, 3], [4, 4], [5, 5], [5, 4], [3, 2], [5, 4], [5, 5], [4, 2], [5, 4], [4, 6],
[3, 2], [4, 4], [4, 4], [5, 4], [4, 4]]],
305),
('normal control 1', [[[3, 3], [4, 3], [5, 5], [3, 2], [3, 4], [4, 6], [4, 5], [4, 4], [4, 4]]], 60),
('normal control 2',
[[[5, 5], [3, 3], [5, 4], [4, 4], [4, 4], [4, 3], [3, 1], [4, 4], [4, 2], [4, 3], [5, 5], [3, 3], [4, 3],
[4, 3], [4, 4], [3, 3], [4, 3], [4, 2]]],
595),
('normal control 3',
[[[4, 4], [4, 1], [4, 4], [4, 3], [4, 4], [4, 3], [4, 3], [3, 3], [5, 5], [4, 4], [3, 3], [4, 4], [5, 5],
[3, 1]]],
445),
('normal control 4',
[[[3, 4], [4, 3], [5, 5], [3, 1], [3, 3], [4, 3], [5, 7], [3, 3], [4, 6], [3, 4], [5, 4], [4, 4], [4, 3],
[5, 1], [3, 2], [3, 2], [4, 3], [3, 2]]],
620)],
[('regression: under-seventy measure',
[[[4, 4], [3, 2], [4, 4], [5, 6], [5, 4], [5, 4], [3, 3], [4, 4], [5, 5], [4, 4], [5, 3], [5, 4], [5, 7],
[4, 1], [3, 3], [4, 3], [4, 3], [4, 6]]],
450),
('partial repair probe: under-seventy measure',
[[[3, 2], [5, 5], [4, 4], [4, 3], [4, 4], [4, 5], [4, 4], [4, 5], [5, 7], [4, 3], [4, 4], [3, 2], [4, 4],
[4, 2], [5, 5], [3, 5], [3, 2], [5, 4]]],
265),
('second regression',
[[[5, 4], [4, 2], [5, 7], [4, 4], [4, 3], [4, 4], [3, 5], [3, 1], [4, 4], [3, 2], [5, 5], [4, 4], [3, 2],
[4, 6], [5, 5], [5, 5], [4, 4], [4, 4]]],
345),
('normal control 1', [[[5, 4], [4, 4], [4, 3], [4, 4], [4, 3], [4, 4], [5, 4], [4, 4], [4, 1]]], 320),
('normal control 2',
[[[4, 1], [4, 4], [4, 6], [4, 4], [3, 3], [5, 4], [3, 1], [4, 3], [4, 3], [5, 4], [3, 5], [3, 3], [4, 4],
[4, 4], [4, 3], [4, 3], [5, 4], [5, 3]]],
720),
('normal control 3',
[[[4, 3], [5, 4], [4, 2], [5, 4], [5, 4], [5, 6], [4, 4], [5, 4], [3, 1], [3, 4], [3, 3], [3, 3], [4, 3],
[4, 3], [5, 4], [4, 5], [4, 6], [5, 5]]],
555),
('normal control 4',
[[[5, 5], [4, 1], [5, 7], [4, 4], [3, 2], [3, 2], [5, 7], [5, 5], [5, 5], [3, 2], [3, 5], [5, 5], [4, 4],
[4, 2]]],
350)]]
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: under-seventy measure | 620 | 570 | Failed |
| partial repair probe: under-seventy measure | 295 | 245 | Failed |
| second regression | 600 | 550 | Failed |
| normal control 1 | 575 | 575 | Passed |
| normal control 2 | 70 | 70 | Passed |
| normal control 3 | 405 | 405 | Passed |
| normal control 4 | 570 | 570 | Passed |
SHA-256 / 4c11b8bdc557125029eb6ad24dbc397af48e4f93119958c62a8964bb212868ed
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(holes):
pts = 0
run = 0
streaks = 0
for par, strokes in holes:
d = strokes - par
if d <= -3:
pts += 130
elif d == -2:
pts += 80
elif d == -1:
pts += 30
elif d == 0:
pts += 5
elif d == 1:
pts -= 5
else:
pts -= 10
if strokes == 1:
pts += 50
if d < 0:
run += 1
if run == 3:
streaks += 1
else:
run = 0
pts += 30 * streaks
if len(holes) == 18 and all(s - p <= 0 for p, s in holes):
pts += 30
if len(holes) == 18 and sum(s for _, s in holes) <= 70:
pts += 50
return pts
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: under-seventy measure',
[[[5, 4], [5, 5], [5, 5], [4, 4], [4, 1], [4, 4], [4, 5], [5, 5], [3, 2], [5, 4], [5, 7], [4, 5], [3, 2],
[4, 1], [5, 5], [5, 6], [5, 5], [4, 2]]],
570),
('partial repair probe: under-seventy measure',
[[[4, 3], [4, 4], [4, 4], [4, 4], [4, 4], [5, 5], [4, 3], [4, 4], [5, 4], [5, 5], [5, 5], [3, 3], [5, 4],
[4, 4], [3, 2], [4, 4], [4, 4], [4, 4]]],
245),
('second regression',
[[[4, 5], [4, 1], [5, 5], [4, 3], [4, 3], [4, 6], [5, 4], [4, 3], [3, 2], [5, 6], [5, 6], [4, 4], [3, 3],
[5, 6], [5, 4], [4, 1], [5, 5], [4, 6]]],
550),
('normal control 1',
[[[3, 2], [4, 4], [4, 2], [5, 4], [3, 2], [4, 4], [5, 5], [4, 4], [4, 4], [4, 4], [4, 1], [5, 4], [3, 3],
[4, 3], [4, 4], [5, 5], [3, 3], [4, 4]]],
575),
('normal control 2', [[[4, 4], [4, 6], [3, 3], [5, 4], [3, 3], [3, 3], [4, 4], [3, 2], [4, 5]]], 70),
('normal control 3', [[[3, 1], [4, 5], [4, 3], [4, 4], [5, 4], [3, 4], [4, 3], [4, 3], [3, 1]]], 405),
('normal control 4',
[[[4, 3], [4, 4], [3, 4], [4, 3], [3, 3], [4, 3], [5, 5], [3, 2], [4, 3], [4, 4], [3, 3], [3, 1], [4, 4],
[5, 6], [5, 5], [4, 3], [4, 4], [4, 1]]],
570)],
[('regression: under-seventy measure',
[[[3, 2], [5, 7], [3, 5], [3, 2], [4, 5], [4, 5], [4, 5], [4, 3], [3, 2], [3, 2], [3, 2], [4, 6], [4, 1],
[4, 4], [4, 4], [5, 5], [4, 4], [4, 4]]],
420),
('partial repair probe: under-seventy measure',
[[[5, 5], [5, 7], [5, 4], [4, 3], [4, 3], [5, 4], [4, 3], [5, 5], [4, 4], [3, 4], [4, 4], [4, 4], [4, 4],
[4, 1], [3, 3], [5, 5], [4, 4], [4, 3]]],
420),
('second regression',
[[[4, 4], [4, 6], [4, 4], [4, 6], [4, 4], [3, 4], [4, 4], [3, 2], [4, 4], [3, 2], [4, 1], [5, 5], [3, 4],
[3, 5], [3, 2], [4, 3], [4, 4], [5, 4]]],
375),
('normal control 1',
[[[4, 4], [4, 4], [5, 5], [3, 5], [5, 5], [5, 5], [4, 5], [5, 1], [4, 3], [4, 4], [4, 3], [5, 6], [4, 4],
[3, 3]]],
260),
('normal control 2', [[[4, 4], [5, 5], [4, 3], [4, 4], [4, 3], [4, 4], [4, 6], [4, 3], [4, 4]]], 105),
('normal control 3',
[[[3, 3], [4, 3], [4, 2], [4, 3], [4, 3], [4, 4], [4, 4], [4, 4], [5, 4], [4, 4], [4, 3], [4, 3], [4, 4],
[4, 4]]],
325),
('normal control 4',
[[[5, 3], [5, 5], [4, 4], [4, 4], [4, 3], [4, 4], [4, 3], [4, 3], [3, 3], [4, 3], [3, 3], [4, 4], [5, 4],
[3, 2], [3, 3], [5, 4], [4, 3], [4, 3]]],
500)],
[('regression: under-seventy measure',
[[[5, 5], [3, 3], [5, 4], [5, 5], [5, 5], [4, 3], [4, 3], [5, 4], [4, 4], [4, 4], [5, 3], [5, 4], [5, 3],
[4, 4], [3, 3], [4, 6], [4, 4], [4, 3]]],
435),
('partial repair probe: under-seventy measure',
[[[4, 3], [5, 4], [4, 3], [3, 2], [5, 7], [4, 4], [3, 2], [4, 6], [5, 3], [5, 5], [4, 4], [4, 4], [4, 4],
[5, 5], [3, 5], [3, 4], [5, 1], [5, 4]]],
465),
('second regression',
[[[4, 4], [4, 4], [3, 2], [3, 5], [4, 3], [3, 3], [4, 4], [3, 5], [5, 5], [4, 4], [4, 3], [4, 4], [4, 3],
[5, 4], [5, 7], [5, 5], [4, 3], [4, 3]]],
220),
('normal control 1',
[[[4, 3], [4, 3], [4, 3], [3, 3], [5, 4], [4, 6], [4, 4], [4, 6], [4, 2], [5, 5], [4, 4], [3, 2], [4, 3],
[4, 4], [4, 3], [4, 4], [4, 3], [3, 1]]],
540),
('normal control 2',
[[[3, 3], [4, 6], [3, 3], [5, 4], [4, 4], [5, 6], [5, 6], [5, 5], [4, 4], [4, 3], [4, 4], [4, 4], [5, 1],
[5, 4]]],
285),
('normal control 3',
[[[4, 4], [4, 4], [4, 3], [4, 3], [3, 3], [4, 4], [5, 4], [4, 4], [4, 4], [5, 5], [3, 2], [5, 5], [4, 4],
[4, 4], [4, 3], [4, 2], [5, 5], [5, 4]]],
395),
('normal control 4',
[[[4, 3], [5, 4], [4, 1], [4, 3], [4, 4], [4, 4], [4, 5], [4, 4], [3, 3], [3, 2], [3, 2], [4, 4], [5, 5],
[3, 2]]],
415)],
[('regression: under-seventy measure',
[[[3, 3], [4, 4], [5, 7], [3, 3], [5, 5], [4, 6], [5, 5], [5, 6], [4, 4], [4, 3], [4, 3], [4, 3], [4, 4],
[4, 4], [5, 3], [5, 4], [5, 4], [5, 5]]],
310),
('partial repair probe: under-seventy measure',
[[[5, 4], [3, 2], [4, 4], [4, 4], [5, 4], [4, 4], [3, 3], [4, 4], [4, 4], [3, 3], [4, 4], [4, 3], [5, 5],
[4, 4], [4, 5], [5, 5], [5, 4], [5, 4]]],
230),
('second regression',
[[[4, 4], [4, 6], [4, 5], [3, 3], [4, 4], [5, 5], [5, 4], [3, 2], [5, 4], [5, 5], [4, 2], [5, 4], [4, 6],
[3, 2], [4, 4], [4, 4], [5, 4], [4, 4]]],
305),
('normal control 1', [[[3, 3], [4, 3], [5, 5], [3, 2], [3, 4], [4, 6], [4, 5], [4, 4], [4, 4]]], 60),
('normal control 2',
[[[5, 5], [3, 3], [5, 4], [4, 4], [4, 4], [4, 3], [3, 1], [4, 4], [4, 2], [4, 3], [5, 5], [3, 3], [4, 3],
[4, 3], [4, 4], [3, 3], [4, 3], [4, 2]]],
595),
('normal control 3',
[[[4, 4], [4, 1], [4, 4], [4, 3], [4, 4], [4, 3], [4, 3], [3, 3], [5, 5], [4, 4], [3, 3], [4, 4], [5, 5],
[3, 1]]],
445),
('normal control 4',
[[[3, 4], [4, 3], [5, 5], [3, 1], [3, 3], [4, 3], [5, 7], [3, 3], [4, 6], [3, 4], [5, 4], [4, 4], [4, 3],
[5, 1], [3, 2], [3, 2], [4, 3], [3, 2]]],
620)],
[('regression: under-seventy measure',
[[[4, 4], [3, 2], [4, 4], [5, 6], [5, 4], [5, 4], [3, 3], [4, 4], [5, 5], [4, 4], [5, 3], [5, 4], [5, 7],
[4, 1], [3, 3], [4, 3], [4, 3], [4, 6]]],
450),
('partial repair probe: under-seventy measure',
[[[3, 2], [5, 5], [4, 4], [4, 3], [4, 4], [4, 5], [4, 4], [4, 5], [5, 7], [4, 3], [4, 4], [3, 2], [4, 4],
[4, 2], [5, 5], [3, 5], [3, 2], [5, 4]]],
265),
('second regression',
[[[5, 4], [4, 2], [5, 7], [4, 4], [4, 3], [4, 4], [3, 5], [3, 1], [4, 4], [3, 2], [5, 5], [4, 4], [3, 2],
[4, 6], [5, 5], [5, 5], [4, 4], [4, 4]]],
345),
('normal control 1', [[[5, 4], [4, 4], [4, 3], [4, 4], [4, 3], [4, 4], [5, 4], [4, 4], [4, 1]]], 320),
('normal control 2',
[[[4, 1], [4, 4], [4, 6], [4, 4], [3, 3], [5, 4], [3, 1], [4, 3], [4, 3], [5, 4], [3, 5], [3, 3], [4, 4],
[4, 4], [4, 3], [4, 3], [5, 4], [5, 3]]],
720),
('normal control 3',
[[[4, 3], [5, 4], [4, 2], [5, 4], [5, 4], [5, 6], [4, 4], [5, 4], [3, 1], [3, 4], [3, 3], [3, 3], [4, 3],
[4, 3], [5, 4], [4, 5], [4, 6], [5, 5]]],
555),
('normal control 4',
[[[5, 5], [4, 1], [5, 7], [4, 4], [3, 2], [3, 2], [5, 7], [5, 5], [5, 5], [3, 2], [3, 5], [5, 5], [4, 4],
[4, 2]]],
350)]]
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: under-seventy measure | 570 | 570 | Passed |
| partial repair probe: under-seventy measure | 295 | 245 | Failed |
| second regression | 550 | 550 | Passed |
| normal control 1 | 575 | 575 | Passed |
| normal control 2 | 70 | 70 | Passed |
| normal control 3 | 405 | 405 | Passed |
| normal control 4 | 570 | 570 | Passed |
SHA-256 / 503926ce9e8edfd6eecb970cd62b30e812888199f0a545b1f245dfeef75a52f8
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(holes):
pts = 0
run = 0
streaks = 0
for par, strokes in holes:
d = strokes - par
if d <= -3:
pts += 130
elif d == -2:
pts += 80
elif d == -1:
pts += 30
elif d == 0:
pts += 5
elif d == 1:
pts -= 5
else:
pts -= 10
if strokes == 1:
pts += 50
if d < 0:
run += 1
if run == 3:
streaks += 1
else:
run = 0
pts += 30 * streaks
if len(holes) == 18 and all(s - p <= 0 for p, s in holes):
pts += 30
if len(holes) == 18 and sum(s for _, s in holes) < 70:
pts += 50
return pts
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: under-seventy measure',
[[[5, 4], [5, 5], [5, 5], [4, 4], [4, 1], [4, 4], [4, 5], [5, 5], [3, 2], [5, 4], [5, 7], [4, 5], [3, 2],
[4, 1], [5, 5], [5, 6], [5, 5], [4, 2]]],
570),
('partial repair probe: under-seventy measure',
[[[4, 3], [4, 4], [4, 4], [4, 4], [4, 4], [5, 5], [4, 3], [4, 4], [5, 4], [5, 5], [5, 5], [3, 3], [5, 4],
[4, 4], [3, 2], [4, 4], [4, 4], [4, 4]]],
245),
('second regression',
[[[4, 5], [4, 1], [5, 5], [4, 3], [4, 3], [4, 6], [5, 4], [4, 3], [3, 2], [5, 6], [5, 6], [4, 4], [3, 3],
[5, 6], [5, 4], [4, 1], [5, 5], [4, 6]]],
550),
('normal control 1',
[[[3, 2], [4, 4], [4, 2], [5, 4], [3, 2], [4, 4], [5, 5], [4, 4], [4, 4], [4, 4], [4, 1], [5, 4], [3, 3],
[4, 3], [4, 4], [5, 5], [3, 3], [4, 4]]],
575),
('normal control 2', [[[4, 4], [4, 6], [3, 3], [5, 4], [3, 3], [3, 3], [4, 4], [3, 2], [4, 5]]], 70),
('normal control 3', [[[3, 1], [4, 5], [4, 3], [4, 4], [5, 4], [3, 4], [4, 3], [4, 3], [3, 1]]], 405),
('normal control 4',
[[[4, 3], [4, 4], [3, 4], [4, 3], [3, 3], [4, 3], [5, 5], [3, 2], [4, 3], [4, 4], [3, 3], [3, 1], [4, 4],
[5, 6], [5, 5], [4, 3], [4, 4], [4, 1]]],
570)],
[('regression: under-seventy measure',
[[[3, 2], [5, 7], [3, 5], [3, 2], [4, 5], [4, 5], [4, 5], [4, 3], [3, 2], [3, 2], [3, 2], [4, 6], [4, 1],
[4, 4], [4, 4], [5, 5], [4, 4], [4, 4]]],
420),
('partial repair probe: under-seventy measure',
[[[5, 5], [5, 7], [5, 4], [4, 3], [4, 3], [5, 4], [4, 3], [5, 5], [4, 4], [3, 4], [4, 4], [4, 4], [4, 4],
[4, 1], [3, 3], [5, 5], [4, 4], [4, 3]]],
420),
('second regression',
[[[4, 4], [4, 6], [4, 4], [4, 6], [4, 4], [3, 4], [4, 4], [3, 2], [4, 4], [3, 2], [4, 1], [5, 5], [3, 4],
[3, 5], [3, 2], [4, 3], [4, 4], [5, 4]]],
375),
('normal control 1',
[[[4, 4], [4, 4], [5, 5], [3, 5], [5, 5], [5, 5], [4, 5], [5, 1], [4, 3], [4, 4], [4, 3], [5, 6], [4, 4],
[3, 3]]],
260),
('normal control 2', [[[4, 4], [5, 5], [4, 3], [4, 4], [4, 3], [4, 4], [4, 6], [4, 3], [4, 4]]], 105),
('normal control 3',
[[[3, 3], [4, 3], [4, 2], [4, 3], [4, 3], [4, 4], [4, 4], [4, 4], [5, 4], [4, 4], [4, 3], [4, 3], [4, 4],
[4, 4]]],
325),
('normal control 4',
[[[5, 3], [5, 5], [4, 4], [4, 4], [4, 3], [4, 4], [4, 3], [4, 3], [3, 3], [4, 3], [3, 3], [4, 4], [5, 4],
[3, 2], [3, 3], [5, 4], [4, 3], [4, 3]]],
500)],
[('regression: under-seventy measure',
[[[5, 5], [3, 3], [5, 4], [5, 5], [5, 5], [4, 3], [4, 3], [5, 4], [4, 4], [4, 4], [5, 3], [5, 4], [5, 3],
[4, 4], [3, 3], [4, 6], [4, 4], [4, 3]]],
435),
('partial repair probe: under-seventy measure',
[[[4, 3], [5, 4], [4, 3], [3, 2], [5, 7], [4, 4], [3, 2], [4, 6], [5, 3], [5, 5], [4, 4], [4, 4], [4, 4],
[5, 5], [3, 5], [3, 4], [5, 1], [5, 4]]],
465),
('second regression',
[[[4, 4], [4, 4], [3, 2], [3, 5], [4, 3], [3, 3], [4, 4], [3, 5], [5, 5], [4, 4], [4, 3], [4, 4], [4, 3],
[5, 4], [5, 7], [5, 5], [4, 3], [4, 3]]],
220),
('normal control 1',
[[[4, 3], [4, 3], [4, 3], [3, 3], [5, 4], [4, 6], [4, 4], [4, 6], [4, 2], [5, 5], [4, 4], [3, 2], [4, 3],
[4, 4], [4, 3], [4, 4], [4, 3], [3, 1]]],
540),
('normal control 2',
[[[3, 3], [4, 6], [3, 3], [5, 4], [4, 4], [5, 6], [5, 6], [5, 5], [4, 4], [4, 3], [4, 4], [4, 4], [5, 1],
[5, 4]]],
285),
('normal control 3',
[[[4, 4], [4, 4], [4, 3], [4, 3], [3, 3], [4, 4], [5, 4], [4, 4], [4, 4], [5, 5], [3, 2], [5, 5], [4, 4],
[4, 4], [4, 3], [4, 2], [5, 5], [5, 4]]],
395),
('normal control 4',
[[[4, 3], [5, 4], [4, 1], [4, 3], [4, 4], [4, 4], [4, 5], [4, 4], [3, 3], [3, 2], [3, 2], [4, 4], [5, 5],
[3, 2]]],
415)],
[('regression: under-seventy measure',
[[[3, 3], [4, 4], [5, 7], [3, 3], [5, 5], [4, 6], [5, 5], [5, 6], [4, 4], [4, 3], [4, 3], [4, 3], [4, 4],
[4, 4], [5, 3], [5, 4], [5, 4], [5, 5]]],
310),
('partial repair probe: under-seventy measure',
[[[5, 4], [3, 2], [4, 4], [4, 4], [5, 4], [4, 4], [3, 3], [4, 4], [4, 4], [3, 3], [4, 4], [4, 3], [5, 5],
[4, 4], [4, 5], [5, 5], [5, 4], [5, 4]]],
230),
('second regression',
[[[4, 4], [4, 6], [4, 5], [3, 3], [4, 4], [5, 5], [5, 4], [3, 2], [5, 4], [5, 5], [4, 2], [5, 4], [4, 6],
[3, 2], [4, 4], [4, 4], [5, 4], [4, 4]]],
305),
('normal control 1', [[[3, 3], [4, 3], [5, 5], [3, 2], [3, 4], [4, 6], [4, 5], [4, 4], [4, 4]]], 60),
('normal control 2',
[[[5, 5], [3, 3], [5, 4], [4, 4], [4, 4], [4, 3], [3, 1], [4, 4], [4, 2], [4, 3], [5, 5], [3, 3], [4, 3],
[4, 3], [4, 4], [3, 3], [4, 3], [4, 2]]],
595),
('normal control 3',
[[[4, 4], [4, 1], [4, 4], [4, 3], [4, 4], [4, 3], [4, 3], [3, 3], [5, 5], [4, 4], [3, 3], [4, 4], [5, 5],
[3, 1]]],
445),
('normal control 4',
[[[3, 4], [4, 3], [5, 5], [3, 1], [3, 3], [4, 3], [5, 7], [3, 3], [4, 6], [3, 4], [5, 4], [4, 4], [4, 3],
[5, 1], [3, 2], [3, 2], [4, 3], [3, 2]]],
620)],
[('regression: under-seventy measure',
[[[4, 4], [3, 2], [4, 4], [5, 6], [5, 4], [5, 4], [3, 3], [4, 4], [5, 5], [4, 4], [5, 3], [5, 4], [5, 7],
[4, 1], [3, 3], [4, 3], [4, 3], [4, 6]]],
450),
('partial repair probe: under-seventy measure',
[[[3, 2], [5, 5], [4, 4], [4, 3], [4, 4], [4, 5], [4, 4], [4, 5], [5, 7], [4, 3], [4, 4], [3, 2], [4, 4],
[4, 2], [5, 5], [3, 5], [3, 2], [5, 4]]],
265),
('second regression',
[[[5, 4], [4, 2], [5, 7], [4, 4], [4, 3], [4, 4], [3, 5], [3, 1], [4, 4], [3, 2], [5, 5], [4, 4], [3, 2],
[4, 6], [5, 5], [5, 5], [4, 4], [4, 4]]],
345),
('normal control 1', [[[5, 4], [4, 4], [4, 3], [4, 4], [4, 3], [4, 4], [5, 4], [4, 4], [4, 1]]], 320),
('normal control 2',
[[[4, 1], [4, 4], [4, 6], [4, 4], [3, 3], [5, 4], [3, 1], [4, 3], [4, 3], [5, 4], [3, 5], [3, 3], [4, 4],
[4, 4], [4, 3], [4, 3], [5, 4], [5, 3]]],
720),
('normal control 3',
[[[4, 3], [5, 4], [4, 2], [5, 4], [5, 4], [5, 6], [4, 4], [5, 4], [3, 1], [3, 4], [3, 3], [3, 3], [4, 3],
[4, 3], [5, 4], [4, 5], [4, 6], [5, 5]]],
555),
('normal control 4',
[[[5, 5], [4, 1], [5, 7], [4, 4], [3, 2], [3, 2], [5, 7], [5, 5], [5, 5], [3, 2], [3, 5], [5, 5], [4, 4],
[4, 2]]],
350)]]
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: under-seventy measure | 570 | 570 | Passed |
| partial repair probe: under-seventy measure | 245 | 245 | Passed |
| second regression | 550 | 550 | Passed |
| normal control 1 | 575 | 575 | Passed |
| normal control 2 | 70 | 70 | Passed |
| normal control 3 | 405 | 405 | Passed |
| normal control 4 | 570 | 570 | Passed |
SHA-256 / 1ac53968b4a07db6b9295b0b262d6d2387250f6623f2bd3615d95d5d5b89a935
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:39.166925+00:00.
Case digest / 3f3c50f1d68175bdd8dcf5953f40216c8bd569fafc87fec86285f6ee7c662084