{"abstract":"A 70 on a par-72 course earns the under-70 bonus.","category":"Fantasy sports scoring","checks":7,"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.","evaluation_group":"w2-fantasy-sports-scoring-golf-round","failed_approach":"Using <= 70 pays the bonus for a round of exactly 70.","family":"w2-fantasy-sports-scoring-golf-round-under-seventy-measure","id":"FA-85301","implementations":{"attempt":{"sha256":"503926ce9e8edfd6eecb970cd62b30e812888199f0a545b1f245dfeef75a52f8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(holes):\n    pts = 0\n    run = 0\n    streaks = 0\n    for par, strokes in holes:\n        d = strokes - par\n        if d <= -3:\n            pts += 130\n        elif d == -2:\n            pts += 80\n        elif d == -1:\n            pts += 30\n        elif d == 0:\n            pts += 5\n        elif d == 1:\n            pts -= 5\n        else:\n            pts -= 10\n        if strokes == 1:\n            pts += 50\n        if d < 0:\n            run += 1\n            if run == 3:\n                streaks += 1\n        else:\n            run = 0\n    pts += 30 * streaks\n    if len(holes) == 18 and all(s - p <= 0 for p, s in holes):\n        pts += 30\n    if len(holes) == 18 and sum(s for _, s in holes) <= 70:\n        pts += 50\n    return pts\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: under-seventy measure',\n   [[[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],\n     [4, 1], [5, 5], [5, 6], [5, 5], [4, 2]]],\n   570),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 4], [3, 2], [4, 4], [4, 4], [4, 4]]],\n   245),\n  ('second regression',\n   [[[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],\n     [5, 6], [5, 4], [4, 1], [5, 5], [4, 6]]],\n   550),\n  ('normal control 1',\n   [[[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],\n     [4, 3], [4, 4], [5, 5], [3, 3], [4, 4]]],\n   575),\n  ('normal control 2', [[[4, 4], [4, 6], [3, 3], [5, 4], [3, 3], [3, 3], [4, 4], [3, 2], [4, 5]]], 70),\n  ('normal control 3', [[[3, 1], [4, 5], [4, 3], [4, 4], [5, 4], [3, 4], [4, 3], [4, 3], [3, 1]]], 405),\n  ('normal control 4',\n   [[[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],\n     [5, 6], [5, 5], [4, 3], [4, 4], [4, 1]]],\n   570)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 4], [4, 4], [5, 5], [4, 4], [4, 4]]],\n   420),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 1], [3, 3], [5, 5], [4, 4], [4, 3]]],\n   420),\n  ('second regression',\n   [[[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],\n     [3, 5], [3, 2], [4, 3], [4, 4], [5, 4]]],\n   375),\n  ('normal control 1',\n   [[[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],\n     [3, 3]]],\n   260),\n  ('normal control 2', [[[4, 4], [5, 5], [4, 3], [4, 4], [4, 3], [4, 4], [4, 6], [4, 3], [4, 4]]], 105),\n  ('normal control 3',\n   [[[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],\n     [4, 4]]],\n   325),\n  ('normal control 4',\n   [[[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],\n     [3, 2], [3, 3], [5, 4], [4, 3], [4, 3]]],\n   500)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 4], [3, 3], [4, 6], [4, 4], [4, 3]]],\n   435),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [5, 5], [3, 5], [3, 4], [5, 1], [5, 4]]],\n   465),\n  ('second regression',\n   [[[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],\n     [5, 4], [5, 7], [5, 5], [4, 3], [4, 3]]],\n   220),\n  ('normal control 1',\n   [[[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],\n     [4, 4], [4, 3], [4, 4], [4, 3], [3, 1]]],\n   540),\n  ('normal control 2',\n   [[[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],\n     [5, 4]]],\n   285),\n  ('normal control 3',\n   [[[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],\n     [4, 4], [4, 3], [4, 2], [5, 5], [5, 4]]],\n   395),\n  ('normal control 4',\n   [[[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],\n     [3, 2]]],\n   415)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 4], [5, 3], [5, 4], [5, 4], [5, 5]]],\n   310),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 4], [4, 5], [5, 5], [5, 4], [5, 4]]],\n   230),\n  ('second regression',\n   [[[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],\n     [3, 2], [4, 4], [4, 4], [5, 4], [4, 4]]],\n   305),\n  ('normal control 1', [[[3, 3], [4, 3], [5, 5], [3, 2], [3, 4], [4, 6], [4, 5], [4, 4], [4, 4]]], 60),\n  ('normal control 2',\n   [[[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],\n     [4, 3], [4, 4], [3, 3], [4, 3], [4, 2]]],\n   595),\n  ('normal control 3',\n   [[[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],\n     [3, 1]]],\n   445),\n  ('normal control 4',\n   [[[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],\n     [5, 1], [3, 2], [3, 2], [4, 3], [3, 2]]],\n   620)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 1], [3, 3], [4, 3], [4, 3], [4, 6]]],\n   450),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 2], [5, 5], [3, 5], [3, 2], [5, 4]]],\n   265),\n  ('second regression',\n   [[[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],\n     [4, 6], [5, 5], [5, 5], [4, 4], [4, 4]]],\n   345),\n  ('normal control 1', [[[5, 4], [4, 4], [4, 3], [4, 4], [4, 3], [4, 4], [5, 4], [4, 4], [4, 1]]], 320),\n  ('normal control 2',\n   [[[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],\n     [4, 4], [4, 3], [4, 3], [5, 4], [5, 3]]],\n   720),\n  ('normal control 3',\n   [[[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],\n     [4, 3], [5, 4], [4, 5], [4, 6], [5, 5]]],\n   555),\n  ('normal control 4',\n   [[[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],\n     [4, 2]]],\n   350)]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"4c11b8bdc557125029eb6ad24dbc397af48e4f93119958c62a8964bb212868ed","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(holes):\n    pts = 0\n    run = 0\n    streaks = 0\n    for par, strokes in holes:\n        d = strokes - par\n        if d <= -3:\n            pts += 130\n        elif d == -2:\n            pts += 80\n        elif d == -1:\n            pts += 30\n        elif d == 0:\n            pts += 5\n        elif d == 1:\n            pts -= 5\n        else:\n            pts -= 10\n        if strokes == 1:\n            pts += 50\n        if d < 0:\n            run += 1\n            if run == 3:\n                streaks += 1\n        else:\n            run = 0\n    pts += 30 * streaks\n    if len(holes) == 18 and all(s - p <= 0 for p, s in holes):\n        pts += 30\n    if len(holes) == 18 and sum(s - p for p, s in holes) < 0:\n        pts += 50\n    return pts\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: under-seventy measure',\n   [[[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],\n     [4, 1], [5, 5], [5, 6], [5, 5], [4, 2]]],\n   570),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 4], [3, 2], [4, 4], [4, 4], [4, 4]]],\n   245),\n  ('second regression',\n   [[[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],\n     [5, 6], [5, 4], [4, 1], [5, 5], [4, 6]]],\n   550),\n  ('normal control 1',\n   [[[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],\n     [4, 3], [4, 4], [5, 5], [3, 3], [4, 4]]],\n   575),\n  ('normal control 2', [[[4, 4], [4, 6], [3, 3], [5, 4], [3, 3], [3, 3], [4, 4], [3, 2], [4, 5]]], 70),\n  ('normal control 3', [[[3, 1], [4, 5], [4, 3], [4, 4], [5, 4], [3, 4], [4, 3], [4, 3], [3, 1]]], 405),\n  ('normal control 4',\n   [[[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],\n     [5, 6], [5, 5], [4, 3], [4, 4], [4, 1]]],\n   570)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 4], [4, 4], [5, 5], [4, 4], [4, 4]]],\n   420),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 1], [3, 3], [5, 5], [4, 4], [4, 3]]],\n   420),\n  ('second regression',\n   [[[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],\n     [3, 5], [3, 2], [4, 3], [4, 4], [5, 4]]],\n   375),\n  ('normal control 1',\n   [[[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],\n     [3, 3]]],\n   260),\n  ('normal control 2', [[[4, 4], [5, 5], [4, 3], [4, 4], [4, 3], [4, 4], [4, 6], [4, 3], [4, 4]]], 105),\n  ('normal control 3',\n   [[[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],\n     [4, 4]]],\n   325),\n  ('normal control 4',\n   [[[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],\n     [3, 2], [3, 3], [5, 4], [4, 3], [4, 3]]],\n   500)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 4], [3, 3], [4, 6], [4, 4], [4, 3]]],\n   435),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [5, 5], [3, 5], [3, 4], [5, 1], [5, 4]]],\n   465),\n  ('second regression',\n   [[[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],\n     [5, 4], [5, 7], [5, 5], [4, 3], [4, 3]]],\n   220),\n  ('normal control 1',\n   [[[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],\n     [4, 4], [4, 3], [4, 4], [4, 3], [3, 1]]],\n   540),\n  ('normal control 2',\n   [[[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],\n     [5, 4]]],\n   285),\n  ('normal control 3',\n   [[[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],\n     [4, 4], [4, 3], [4, 2], [5, 5], [5, 4]]],\n   395),\n  ('normal control 4',\n   [[[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],\n     [3, 2]]],\n   415)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 4], [5, 3], [5, 4], [5, 4], [5, 5]]],\n   310),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 4], [4, 5], [5, 5], [5, 4], [5, 4]]],\n   230),\n  ('second regression',\n   [[[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],\n     [3, 2], [4, 4], [4, 4], [5, 4], [4, 4]]],\n   305),\n  ('normal control 1', [[[3, 3], [4, 3], [5, 5], [3, 2], [3, 4], [4, 6], [4, 5], [4, 4], [4, 4]]], 60),\n  ('normal control 2',\n   [[[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],\n     [4, 3], [4, 4], [3, 3], [4, 3], [4, 2]]],\n   595),\n  ('normal control 3',\n   [[[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],\n     [3, 1]]],\n   445),\n  ('normal control 4',\n   [[[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],\n     [5, 1], [3, 2], [3, 2], [4, 3], [3, 2]]],\n   620)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 1], [3, 3], [4, 3], [4, 3], [4, 6]]],\n   450),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 2], [5, 5], [3, 5], [3, 2], [5, 4]]],\n   265),\n  ('second regression',\n   [[[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],\n     [4, 6], [5, 5], [5, 5], [4, 4], [4, 4]]],\n   345),\n  ('normal control 1', [[[5, 4], [4, 4], [4, 3], [4, 4], [4, 3], [4, 4], [5, 4], [4, 4], [4, 1]]], 320),\n  ('normal control 2',\n   [[[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],\n     [4, 4], [4, 3], [4, 3], [5, 4], [5, 3]]],\n   720),\n  ('normal control 3',\n   [[[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],\n     [4, 3], [5, 4], [4, 5], [4, 6], [5, 5]]],\n   555),\n  ('normal control 4',\n   [[[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],\n     [4, 2]]],\n   350)]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"fixed":{"sha256":"1ac53968b4a07db6b9295b0b262d6d2387250f6623f2bd3615d95d5d5b89a935","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(holes):\n    pts = 0\n    run = 0\n    streaks = 0\n    for par, strokes in holes:\n        d = strokes - par\n        if d <= -3:\n            pts += 130\n        elif d == -2:\n            pts += 80\n        elif d == -1:\n            pts += 30\n        elif d == 0:\n            pts += 5\n        elif d == 1:\n            pts -= 5\n        else:\n            pts -= 10\n        if strokes == 1:\n            pts += 50\n        if d < 0:\n            run += 1\n            if run == 3:\n                streaks += 1\n        else:\n            run = 0\n    pts += 30 * streaks\n    if len(holes) == 18 and all(s - p <= 0 for p, s in holes):\n        pts += 30\n    if len(holes) == 18 and sum(s for _, s in holes) < 70:\n        pts += 50\n    return pts\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: under-seventy measure',\n   [[[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],\n     [4, 1], [5, 5], [5, 6], [5, 5], [4, 2]]],\n   570),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 4], [3, 2], [4, 4], [4, 4], [4, 4]]],\n   245),\n  ('second regression',\n   [[[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],\n     [5, 6], [5, 4], [4, 1], [5, 5], [4, 6]]],\n   550),\n  ('normal control 1',\n   [[[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],\n     [4, 3], [4, 4], [5, 5], [3, 3], [4, 4]]],\n   575),\n  ('normal control 2', [[[4, 4], [4, 6], [3, 3], [5, 4], [3, 3], [3, 3], [4, 4], [3, 2], [4, 5]]], 70),\n  ('normal control 3', [[[3, 1], [4, 5], [4, 3], [4, 4], [5, 4], [3, 4], [4, 3], [4, 3], [3, 1]]], 405),\n  ('normal control 4',\n   [[[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],\n     [5, 6], [5, 5], [4, 3], [4, 4], [4, 1]]],\n   570)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 4], [4, 4], [5, 5], [4, 4], [4, 4]]],\n   420),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 1], [3, 3], [5, 5], [4, 4], [4, 3]]],\n   420),\n  ('second regression',\n   [[[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],\n     [3, 5], [3, 2], [4, 3], [4, 4], [5, 4]]],\n   375),\n  ('normal control 1',\n   [[[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],\n     [3, 3]]],\n   260),\n  ('normal control 2', [[[4, 4], [5, 5], [4, 3], [4, 4], [4, 3], [4, 4], [4, 6], [4, 3], [4, 4]]], 105),\n  ('normal control 3',\n   [[[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],\n     [4, 4]]],\n   325),\n  ('normal control 4',\n   [[[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],\n     [3, 2], [3, 3], [5, 4], [4, 3], [4, 3]]],\n   500)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 4], [3, 3], [4, 6], [4, 4], [4, 3]]],\n   435),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [5, 5], [3, 5], [3, 4], [5, 1], [5, 4]]],\n   465),\n  ('second regression',\n   [[[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],\n     [5, 4], [5, 7], [5, 5], [4, 3], [4, 3]]],\n   220),\n  ('normal control 1',\n   [[[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],\n     [4, 4], [4, 3], [4, 4], [4, 3], [3, 1]]],\n   540),\n  ('normal control 2',\n   [[[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],\n     [5, 4]]],\n   285),\n  ('normal control 3',\n   [[[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],\n     [4, 4], [4, 3], [4, 2], [5, 5], [5, 4]]],\n   395),\n  ('normal control 4',\n   [[[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],\n     [3, 2]]],\n   415)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 4], [5, 3], [5, 4], [5, 4], [5, 5]]],\n   310),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 4], [4, 5], [5, 5], [5, 4], [5, 4]]],\n   230),\n  ('second regression',\n   [[[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],\n     [3, 2], [4, 4], [4, 4], [5, 4], [4, 4]]],\n   305),\n  ('normal control 1', [[[3, 3], [4, 3], [5, 5], [3, 2], [3, 4], [4, 6], [4, 5], [4, 4], [4, 4]]], 60),\n  ('normal control 2',\n   [[[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],\n     [4, 3], [4, 4], [3, 3], [4, 3], [4, 2]]],\n   595),\n  ('normal control 3',\n   [[[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],\n     [3, 1]]],\n   445),\n  ('normal control 4',\n   [[[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],\n     [5, 1], [3, 2], [3, 2], [4, 3], [3, 2]]],\n   620)],\n [('regression: under-seventy measure',\n   [[[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],\n     [4, 1], [3, 3], [4, 3], [4, 3], [4, 6]]],\n   450),\n  ('partial repair probe: under-seventy measure',\n   [[[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],\n     [4, 2], [5, 5], [3, 5], [3, 2], [5, 4]]],\n   265),\n  ('second regression',\n   [[[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],\n     [4, 6], [5, 5], [5, 5], [4, 4], [4, 4]]],\n   345),\n  ('normal control 1', [[[5, 4], [4, 4], [4, 3], [4, 4], [4, 3], [4, 4], [5, 4], [4, 4], [4, 1]]], 320),\n  ('normal control 2',\n   [[[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],\n     [4, 4], [4, 3], [4, 3], [5, 4], [5, 3]]],\n   720),\n  ('normal control 3',\n   [[[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],\n     [4, 3], [5, 4], [4, 5], [4, 6], [5, 5]]],\n   555),\n  ('normal control 4',\n   [[[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],\n     [4, 2]]],\n   350)]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"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.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w2-fantasy-sports-scoring-golf-round-under-seventy-measure","generated_at":"2026-09-29T14:50:39.166925+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Golf fantasy streak and round bonuses depend on precise run detection and completion conditions.","repair":"Compare the total stroke count with 70.","root_cause":"The bonus compares strokes relative to par instead of absolute strokes.","sha256":"3f3c50f1d68175bdd8dcf5953f40216c8bd569fafc87fec86285f6ee7c662084","title":"Under-seventy bonus tested against par · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.864,"exit_code":1,"observations":[{"actual":570,"check":"regression: under-seventy measure","expected":570,"passed":true},{"actual":295,"check":"partial repair probe: under-seventy measure","expected":245,"passed":false},{"actual":550,"check":"second regression","expected":550,"passed":true},{"actual":575,"check":"normal control 1","expected":575,"passed":true},{"actual":70,"check":"normal control 2","expected":70,"passed":true},{"actual":405,"check":"normal control 3","expected":405,"passed":true},{"actual":570,"check":"normal control 4","expected":570,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: under-seventy measure\", \"actual\": 570, \"expected\": 570, \"passed\": true}, {\"check\": \"partial repair probe: under-seventy measure\", \"actual\": 295, \"expected\": 245, \"passed\": false}, {\"check\": \"second regression\", \"actual\": 550, \"expected\": 550, \"passed\": true}, {\"check\": \"normal control 1\", \"actual\": 575, \"expected\": 575, \"passed\": true}, {\"check\": \"normal control 2\", \"actual\": 70, \"expected\": 70, \"passed\": true}, {\"check\": \"normal control 3\", \"actual\": 405, \"expected\": 405, \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": 570, \"expected\": 570, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.948,"exit_code":1,"observations":[{"actual":620,"check":"regression: under-seventy measure","expected":570,"passed":false},{"actual":295,"check":"partial repair probe: under-seventy measure","expected":245,"passed":false},{"actual":600,"check":"second regression","expected":550,"passed":false},{"actual":575,"check":"normal control 1","expected":575,"passed":true},{"actual":70,"check":"normal control 2","expected":70,"passed":true},{"actual":405,"check":"normal control 3","expected":405,"passed":true},{"actual":570,"check":"normal control 4","expected":570,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: under-seventy measure\", \"actual\": 620, \"expected\": 570, \"passed\": false}, {\"check\": \"partial repair probe: under-seventy measure\", \"actual\": 295, \"expected\": 245, \"passed\": false}, {\"check\": \"second regression\", \"actual\": 600, \"expected\": 550, \"passed\": false}, {\"check\": \"normal control 1\", \"actual\": 575, \"expected\": 575, \"passed\": true}, {\"check\": \"normal control 2\", \"actual\": 70, \"expected\": 70, \"passed\": true}, {\"check\": \"normal control 3\", \"actual\": 405, \"expected\": 405, \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": 570, \"expected\": 570, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.023,"exit_code":0,"observations":[{"actual":570,"check":"regression: under-seventy measure","expected":570,"passed":true},{"actual":245,"check":"partial repair probe: under-seventy measure","expected":245,"passed":true},{"actual":550,"check":"second regression","expected":550,"passed":true},{"actual":575,"check":"normal control 1","expected":575,"passed":true},{"actual":70,"check":"normal control 2","expected":70,"passed":true},{"actual":405,"check":"normal control 3","expected":405,"passed":true},{"actual":570,"check":"normal control 4","expected":570,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: under-seventy measure\", \"actual\": 570, \"expected\": 570, \"passed\": true}, {\"check\": \"partial repair probe: under-seventy measure\", \"actual\": 245, \"expected\": 245, \"passed\": true}, {\"check\": \"second regression\", \"actual\": 550, \"expected\": 550, \"passed\": true}, {\"check\": \"normal control 1\", \"actual\": 575, \"expected\": 575, \"passed\": true}, {\"check\": \"normal control 2\", \"actual\": 70, \"expected\": 70, \"passed\": true}, {\"check\": \"normal control 3\", \"actual\": 405, \"expected\": 405, \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": 570, \"expected\": 570, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}