{"abstract":"A bowler earns 25 points for a run out effected by a fielder.","category":"Fantasy sports scoring","checks":7,"contract":"Score a T20 bowling spell. Overs use cricket notation (\"3.4\" = 3 overs and 4 balls, 6 balls per over). Each wicket credited to the bowler scores 25 (run outs are not credited); bowled and lbw earn +8 each; haul bonus for 3/4/5+ credited wickets is 4/8/16 (highest only); maiden +12. Economy (exact runs per 6 balls) applies from 2 full overs (12 balls): <5 +6, <6 +4, <=7 +2, <10 0, <=11 -2, <=12 -4, else -6.","evaluation_group":"w2-fantasy-sports-scoring-cricket-bowling","failed_approach":"Also excluding stumpings removes wickets the bowler is credited with.","family":"w2-fantasy-sports-scoring-cricket-bowling-run-out-credit","id":"FA-85196","implementations":{"attempt":{"sha256":"09535f88b4681797f2ff11e4d6c758c0dfc7c10f869f729221e9b180eb340254","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(spell):\n    whole, _, part = spell['overs'].partition('.')\n    balls = int(whole) * 6 + int(part or 0)\n    wk = [d for d in spell['wickets'] if d not in ('run out', 'stumped')]\n    pts = 25 * len(wk)\n    pts += 8 * sum(1 for d in wk if d in ('bowled', 'lbw'))\n    if len(wk) >= 5:\n        pts += 16\n    elif len(wk) >= 4:\n        pts += 8\n    elif len(wk) >= 3:\n        pts += 4\n    pts += 12 * spell['maidens']\n    if balls >= 12:\n        econ = Fraction(spell['runs'] * 6, balls)\n        if econ < 5:\n            pts += 6\n        elif econ < 6:\n            pts += 4\n        elif econ <= 7:\n            pts += 2\n        elif econ < 10:\n            pass\n        elif econ <= 11:\n            pts -= 2\n        elif econ <= 12:\n            pts -= 4\n        else:\n            pts -= 6\n    return {'balls': balls, 'points': pts}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: run-out credit', [{'maidens': 1, 'overs': '1.5', 'runs': 11, 'wickets': ['run out', 'lbw']}],\n   {'balls': 11, 'points': 45}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 0, 'overs': '0.4', 'runs': 9, 'wickets': ['caught', 'run out', 'stumped', 'lbw']}],\n   {'balls': 4, 'points': 87}),\n  ('second regression', [{'maidens': 0, 'overs': '0.4', 'runs': 4, 'wickets': ['stumped']}],\n   {'balls': 4, 'points': 25}),\n  ('normal control 1',\n   [{'maidens': 1, 'overs': '1.5', 'runs': 12, 'wickets': ['bowled', 'bowled', 'caught', 'bowled']}],\n   {'balls': 11, 'points': 144}),\n  ('normal control 2', [{'maidens': 1, 'overs': '2', 'runs': 24, 'wickets': []}], {'balls': 12, 'points': 8}),\n  ('normal control 3',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 12, 'wickets': ['caught', 'bowled', 'caught']}],\n   {'balls': 12, 'points': 101}),\n  ('normal control 4', [{'maidens': 0, 'overs': '0.4', 'runs': 8, 'wickets': []}],\n   {'balls': 4, 'points': 0})],\n [('regression: run-out credit', [{'maidens': 0, 'overs': '1.5', 'runs': 20, 'wickets': ['run out']}],\n   {'balls': 11, 'points': 0}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 9, 'wickets': ['stumped', 'lbw', 'stumped', 'caught', 'lbw']}],\n   {'balls': 12, 'points': 175}),\n  ('second regression',\n   [{'maidens': 1, 'overs': '1.5', 'runs': 16, 'wickets': ['lbw', 'stumped', 'lbw', 'stumped', 'lbw']}],\n   {'balls': 11, 'points': 177}),\n  ('normal control 1', [{'maidens': 1, 'overs': '2.0', 'runs': 14, 'wickets': []}],\n   {'balls': 12, 'points': 14}),\n  ('normal control 2',\n   [{'maidens': 1, 'overs': '1.5', 'runs': 22, 'wickets': ['caught', 'caught', 'caught', 'lbw', 'caught']}],\n   {'balls': 11, 'points': 161}),\n  ('normal control 3',\n   [{'maidens': 0, 'overs': '1.5', 'runs': 22, 'wickets': ['caught', 'caught', 'bowled']}],\n   {'balls': 11, 'points': 87}),\n  ('normal control 4', [{'maidens': 0, 'overs': '1.5', 'runs': 10, 'wickets': []}],\n   {'balls': 11, 'points': 0})],\n [('regression: run-out credit',\n   [{'maidens': 0, 'overs': '2', 'runs': 24, 'wickets': ['caught', 'run out', 'run out', 'caught']}],\n   {'balls': 12, 'points': 46}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 24, 'wickets': ['lbw', 'run out', 'caught', 'lbw', 'stumped']}],\n   {'balls': 12, 'points': 132}),\n  ('second regression',\n   [{'maidens': 1,\n     'overs': '2.3',\n     'runs': 45,\n     'wickets': ['stumped', 'run out', 'bowled', 'run out', 'run out']}],\n   {'balls': 15, 'points': 64}),\n  ('normal control 1',\n   [{'maidens': 1, 'overs': '2.3', 'runs': 17, 'wickets': ['lbw', 'bowled', 'caught', 'bowled', 'caught']}],\n   {'balls': 15, 'points': 179}),\n  ('normal control 2', [{'maidens': 0, 'overs': '2', 'runs': 12, 'wickets': []}], {'balls': 12, 'points': 2}),\n  ('normal control 3', [{'maidens': 0, 'overs': '2.3', 'runs': 8, 'wickets': []}],\n   {'balls': 15, 'points': 6}),\n  ('normal control 4', [{'maidens': 0, 'overs': '2', 'runs': 34, 'wickets': []}],\n   {'balls': 12, 'points': -6})],\n [('regression: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 24, 'wickets': ['run out', 'bowled']}],\n   {'balls': 12, 'points': 41}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 1, 'overs': '4', 'runs': 48, 'wickets': ['stumped', 'caught']}],\n   {'balls': 24, 'points': 58}),\n  ('second regression',\n   [{'maidens': 0, 'overs': '4', 'runs': 58, 'wickets': ['stumped', 'stumped', 'caught', 'lbw']}],\n   {'balls': 24, 'points': 110}),\n  ('normal control 1',\n   [{'maidens': 0, 'overs': '2.0', 'runs': 24, 'wickets': ['lbw', 'caught', 'caught', 'caught', 'lbw']}],\n   {'balls': 12, 'points': 153}),\n  ('normal control 2', [{'maidens': 0, 'overs': '0.4', 'runs': 8, 'wickets': []}], {'balls': 4, 'points': 0}),\n  ('normal control 3',\n   [{'maidens': 1, 'overs': '1.6', 'runs': 24, 'wickets': ['lbw', 'lbw', 'bowled', 'caught', 'bowled']}],\n   {'balls': 12, 'points': 181}),\n  ('normal control 4', [{'maidens': 0, 'overs': '0.4', 'runs': 2, 'wickets': ['caught']}],\n   {'balls': 4, 'points': 25})],\n [('regression: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 24, 'wickets': ['run out', 'run out', 'bowled']}],\n   {'balls': 12, 'points': 41}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 0, 'overs': '1.5', 'runs': 12, 'wickets': ['stumped', 'stumped']}],\n   {'balls': 11, 'points': 50}),\n  ('second regression',\n   [{'maidens': 1,\n     'overs': '3.4',\n     'runs': 47,\n     'wickets': ['caught', 'caught', 'run out', 'stumped', 'run out']}],\n   {'balls': 22, 'points': 85}),\n  ('normal control 1', [{'maidens': 1, 'overs': '2', 'runs': 14, 'wickets': []}],\n   {'balls': 12, 'points': 14}),\n  ('normal control 2',\n   [{'maidens': 1, 'overs': '0.4', 'runs': 6, 'wickets': ['bowled', 'lbw', 'lbw', 'caught']}],\n   {'balls': 4, 'points': 144}),\n  ('normal control 3', [{'maidens': 1, 'overs': '2.3', 'runs': 30, 'wickets': ['lbw', 'bowled']}],\n   {'balls': 15, 'points': 74}),\n  ('normal control 4', [{'maidens': 0, 'overs': '2', 'runs': 14, 'wickets': ['caught', 'caught', 'bowled']}],\n   {'balls': 12, 'points': 89})]]\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":"0e083789ceca6be4b91a26c00b21bd0edf795173008af4ee7e10c54ec8aeabb3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(spell):\n    whole, _, part = spell['overs'].partition('.')\n    balls = int(whole) * 6 + int(part or 0)\n    wk = list(spell['wickets'])\n    pts = 25 * len(wk)\n    pts += 8 * sum(1 for d in wk if d in ('bowled', 'lbw'))\n    if len(wk) >= 5:\n        pts += 16\n    elif len(wk) >= 4:\n        pts += 8\n    elif len(wk) >= 3:\n        pts += 4\n    pts += 12 * spell['maidens']\n    if balls >= 12:\n        econ = Fraction(spell['runs'] * 6, balls)\n        if econ < 5:\n            pts += 6\n        elif econ < 6:\n            pts += 4\n        elif econ <= 7:\n            pts += 2\n        elif econ < 10:\n            pass\n        elif econ <= 11:\n            pts -= 2\n        elif econ <= 12:\n            pts -= 4\n        else:\n            pts -= 6\n    return {'balls': balls, 'points': pts}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: run-out credit', [{'maidens': 1, 'overs': '1.5', 'runs': 11, 'wickets': ['run out', 'lbw']}],\n   {'balls': 11, 'points': 45}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 0, 'overs': '0.4', 'runs': 9, 'wickets': ['caught', 'run out', 'stumped', 'lbw']}],\n   {'balls': 4, 'points': 87}),\n  ('second regression', [{'maidens': 0, 'overs': '0.4', 'runs': 4, 'wickets': ['stumped']}],\n   {'balls': 4, 'points': 25}),\n  ('normal control 1',\n   [{'maidens': 1, 'overs': '1.5', 'runs': 12, 'wickets': ['bowled', 'bowled', 'caught', 'bowled']}],\n   {'balls': 11, 'points': 144}),\n  ('normal control 2', [{'maidens': 1, 'overs': '2', 'runs': 24, 'wickets': []}], {'balls': 12, 'points': 8}),\n  ('normal control 3',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 12, 'wickets': ['caught', 'bowled', 'caught']}],\n   {'balls': 12, 'points': 101}),\n  ('normal control 4', [{'maidens': 0, 'overs': '0.4', 'runs': 8, 'wickets': []}],\n   {'balls': 4, 'points': 0})],\n [('regression: run-out credit', [{'maidens': 0, 'overs': '1.5', 'runs': 20, 'wickets': ['run out']}],\n   {'balls': 11, 'points': 0}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 9, 'wickets': ['stumped', 'lbw', 'stumped', 'caught', 'lbw']}],\n   {'balls': 12, 'points': 175}),\n  ('second regression',\n   [{'maidens': 1, 'overs': '1.5', 'runs': 16, 'wickets': ['lbw', 'stumped', 'lbw', 'stumped', 'lbw']}],\n   {'balls': 11, 'points': 177}),\n  ('normal control 1', [{'maidens': 1, 'overs': '2.0', 'runs': 14, 'wickets': []}],\n   {'balls': 12, 'points': 14}),\n  ('normal control 2',\n   [{'maidens': 1, 'overs': '1.5', 'runs': 22, 'wickets': ['caught', 'caught', 'caught', 'lbw', 'caught']}],\n   {'balls': 11, 'points': 161}),\n  ('normal control 3',\n   [{'maidens': 0, 'overs': '1.5', 'runs': 22, 'wickets': ['caught', 'caught', 'bowled']}],\n   {'balls': 11, 'points': 87}),\n  ('normal control 4', [{'maidens': 0, 'overs': '1.5', 'runs': 10, 'wickets': []}],\n   {'balls': 11, 'points': 0})],\n [('regression: run-out credit',\n   [{'maidens': 0, 'overs': '2', 'runs': 24, 'wickets': ['caught', 'run out', 'run out', 'caught']}],\n   {'balls': 12, 'points': 46}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 24, 'wickets': ['lbw', 'run out', 'caught', 'lbw', 'stumped']}],\n   {'balls': 12, 'points': 132}),\n  ('second regression',\n   [{'maidens': 1,\n     'overs': '2.3',\n     'runs': 45,\n     'wickets': ['stumped', 'run out', 'bowled', 'run out', 'run out']}],\n   {'balls': 15, 'points': 64}),\n  ('normal control 1',\n   [{'maidens': 1, 'overs': '2.3', 'runs': 17, 'wickets': ['lbw', 'bowled', 'caught', 'bowled', 'caught']}],\n   {'balls': 15, 'points': 179}),\n  ('normal control 2', [{'maidens': 0, 'overs': '2', 'runs': 12, 'wickets': []}], {'balls': 12, 'points': 2}),\n  ('normal control 3', [{'maidens': 0, 'overs': '2.3', 'runs': 8, 'wickets': []}],\n   {'balls': 15, 'points': 6}),\n  ('normal control 4', [{'maidens': 0, 'overs': '2', 'runs': 34, 'wickets': []}],\n   {'balls': 12, 'points': -6})],\n [('regression: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 24, 'wickets': ['run out', 'bowled']}],\n   {'balls': 12, 'points': 41}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 1, 'overs': '4', 'runs': 48, 'wickets': ['stumped', 'caught']}],\n   {'balls': 24, 'points': 58}),\n  ('second regression',\n   [{'maidens': 0, 'overs': '4', 'runs': 58, 'wickets': ['stumped', 'stumped', 'caught', 'lbw']}],\n   {'balls': 24, 'points': 110}),\n  ('normal control 1',\n   [{'maidens': 0, 'overs': '2.0', 'runs': 24, 'wickets': ['lbw', 'caught', 'caught', 'caught', 'lbw']}],\n   {'balls': 12, 'points': 153}),\n  ('normal control 2', [{'maidens': 0, 'overs': '0.4', 'runs': 8, 'wickets': []}], {'balls': 4, 'points': 0}),\n  ('normal control 3',\n   [{'maidens': 1, 'overs': '1.6', 'runs': 24, 'wickets': ['lbw', 'lbw', 'bowled', 'caught', 'bowled']}],\n   {'balls': 12, 'points': 181}),\n  ('normal control 4', [{'maidens': 0, 'overs': '0.4', 'runs': 2, 'wickets': ['caught']}],\n   {'balls': 4, 'points': 25})],\n [('regression: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 24, 'wickets': ['run out', 'run out', 'bowled']}],\n   {'balls': 12, 'points': 41}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 0, 'overs': '1.5', 'runs': 12, 'wickets': ['stumped', 'stumped']}],\n   {'balls': 11, 'points': 50}),\n  ('second regression',\n   [{'maidens': 1,\n     'overs': '3.4',\n     'runs': 47,\n     'wickets': ['caught', 'caught', 'run out', 'stumped', 'run out']}],\n   {'balls': 22, 'points': 85}),\n  ('normal control 1', [{'maidens': 1, 'overs': '2', 'runs': 14, 'wickets': []}],\n   {'balls': 12, 'points': 14}),\n  ('normal control 2',\n   [{'maidens': 1, 'overs': '0.4', 'runs': 6, 'wickets': ['bowled', 'lbw', 'lbw', 'caught']}],\n   {'balls': 4, 'points': 144}),\n  ('normal control 3', [{'maidens': 1, 'overs': '2.3', 'runs': 30, 'wickets': ['lbw', 'bowled']}],\n   {'balls': 15, 'points': 74}),\n  ('normal control 4', [{'maidens': 0, 'overs': '2', 'runs': 14, 'wickets': ['caught', 'caught', 'bowled']}],\n   {'balls': 12, 'points': 89})]]\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":"cefa347efe50b3778e5f3172c59a89d2b9a89b291280e7caaf76060a2a2e537d","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(spell):\n    whole, _, part = spell['overs'].partition('.')\n    balls = int(whole) * 6 + int(part or 0)\n    wk = [d for d in spell['wickets'] if d != 'run out']\n    pts = 25 * len(wk)\n    pts += 8 * sum(1 for d in wk if d in ('bowled', 'lbw'))\n    if len(wk) >= 5:\n        pts += 16\n    elif len(wk) >= 4:\n        pts += 8\n    elif len(wk) >= 3:\n        pts += 4\n    pts += 12 * spell['maidens']\n    if balls >= 12:\n        econ = Fraction(spell['runs'] * 6, balls)\n        if econ < 5:\n            pts += 6\n        elif econ < 6:\n            pts += 4\n        elif econ <= 7:\n            pts += 2\n        elif econ < 10:\n            pass\n        elif econ <= 11:\n            pts -= 2\n        elif econ <= 12:\n            pts -= 4\n        else:\n            pts -= 6\n    return {'balls': balls, 'points': pts}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: run-out credit', [{'maidens': 1, 'overs': '1.5', 'runs': 11, 'wickets': ['run out', 'lbw']}],\n   {'balls': 11, 'points': 45}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 0, 'overs': '0.4', 'runs': 9, 'wickets': ['caught', 'run out', 'stumped', 'lbw']}],\n   {'balls': 4, 'points': 87}),\n  ('second regression', [{'maidens': 0, 'overs': '0.4', 'runs': 4, 'wickets': ['stumped']}],\n   {'balls': 4, 'points': 25}),\n  ('normal control 1',\n   [{'maidens': 1, 'overs': '1.5', 'runs': 12, 'wickets': ['bowled', 'bowled', 'caught', 'bowled']}],\n   {'balls': 11, 'points': 144}),\n  ('normal control 2', [{'maidens': 1, 'overs': '2', 'runs': 24, 'wickets': []}], {'balls': 12, 'points': 8}),\n  ('normal control 3',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 12, 'wickets': ['caught', 'bowled', 'caught']}],\n   {'balls': 12, 'points': 101}),\n  ('normal control 4', [{'maidens': 0, 'overs': '0.4', 'runs': 8, 'wickets': []}],\n   {'balls': 4, 'points': 0})],\n [('regression: run-out credit', [{'maidens': 0, 'overs': '1.5', 'runs': 20, 'wickets': ['run out']}],\n   {'balls': 11, 'points': 0}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 9, 'wickets': ['stumped', 'lbw', 'stumped', 'caught', 'lbw']}],\n   {'balls': 12, 'points': 175}),\n  ('second regression',\n   [{'maidens': 1, 'overs': '1.5', 'runs': 16, 'wickets': ['lbw', 'stumped', 'lbw', 'stumped', 'lbw']}],\n   {'balls': 11, 'points': 177}),\n  ('normal control 1', [{'maidens': 1, 'overs': '2.0', 'runs': 14, 'wickets': []}],\n   {'balls': 12, 'points': 14}),\n  ('normal control 2',\n   [{'maidens': 1, 'overs': '1.5', 'runs': 22, 'wickets': ['caught', 'caught', 'caught', 'lbw', 'caught']}],\n   {'balls': 11, 'points': 161}),\n  ('normal control 3',\n   [{'maidens': 0, 'overs': '1.5', 'runs': 22, 'wickets': ['caught', 'caught', 'bowled']}],\n   {'balls': 11, 'points': 87}),\n  ('normal control 4', [{'maidens': 0, 'overs': '1.5', 'runs': 10, 'wickets': []}],\n   {'balls': 11, 'points': 0})],\n [('regression: run-out credit',\n   [{'maidens': 0, 'overs': '2', 'runs': 24, 'wickets': ['caught', 'run out', 'run out', 'caught']}],\n   {'balls': 12, 'points': 46}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 24, 'wickets': ['lbw', 'run out', 'caught', 'lbw', 'stumped']}],\n   {'balls': 12, 'points': 132}),\n  ('second regression',\n   [{'maidens': 1,\n     'overs': '2.3',\n     'runs': 45,\n     'wickets': ['stumped', 'run out', 'bowled', 'run out', 'run out']}],\n   {'balls': 15, 'points': 64}),\n  ('normal control 1',\n   [{'maidens': 1, 'overs': '2.3', 'runs': 17, 'wickets': ['lbw', 'bowled', 'caught', 'bowled', 'caught']}],\n   {'balls': 15, 'points': 179}),\n  ('normal control 2', [{'maidens': 0, 'overs': '2', 'runs': 12, 'wickets': []}], {'balls': 12, 'points': 2}),\n  ('normal control 3', [{'maidens': 0, 'overs': '2.3', 'runs': 8, 'wickets': []}],\n   {'balls': 15, 'points': 6}),\n  ('normal control 4', [{'maidens': 0, 'overs': '2', 'runs': 34, 'wickets': []}],\n   {'balls': 12, 'points': -6})],\n [('regression: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 24, 'wickets': ['run out', 'bowled']}],\n   {'balls': 12, 'points': 41}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 1, 'overs': '4', 'runs': 48, 'wickets': ['stumped', 'caught']}],\n   {'balls': 24, 'points': 58}),\n  ('second regression',\n   [{'maidens': 0, 'overs': '4', 'runs': 58, 'wickets': ['stumped', 'stumped', 'caught', 'lbw']}],\n   {'balls': 24, 'points': 110}),\n  ('normal control 1',\n   [{'maidens': 0, 'overs': '2.0', 'runs': 24, 'wickets': ['lbw', 'caught', 'caught', 'caught', 'lbw']}],\n   {'balls': 12, 'points': 153}),\n  ('normal control 2', [{'maidens': 0, 'overs': '0.4', 'runs': 8, 'wickets': []}], {'balls': 4, 'points': 0}),\n  ('normal control 3',\n   [{'maidens': 1, 'overs': '1.6', 'runs': 24, 'wickets': ['lbw', 'lbw', 'bowled', 'caught', 'bowled']}],\n   {'balls': 12, 'points': 181}),\n  ('normal control 4', [{'maidens': 0, 'overs': '0.4', 'runs': 2, 'wickets': ['caught']}],\n   {'balls': 4, 'points': 25})],\n [('regression: run-out credit',\n   [{'maidens': 1, 'overs': '2.0', 'runs': 24, 'wickets': ['run out', 'run out', 'bowled']}],\n   {'balls': 12, 'points': 41}),\n  ('partial repair probe: run-out credit',\n   [{'maidens': 0, 'overs': '1.5', 'runs': 12, 'wickets': ['stumped', 'stumped']}],\n   {'balls': 11, 'points': 50}),\n  ('second regression',\n   [{'maidens': 1,\n     'overs': '3.4',\n     'runs': 47,\n     'wickets': ['caught', 'caught', 'run out', 'stumped', 'run out']}],\n   {'balls': 22, 'points': 85}),\n  ('normal control 1', [{'maidens': 1, 'overs': '2', 'runs': 14, 'wickets': []}],\n   {'balls': 12, 'points': 14}),\n  ('normal control 2',\n   [{'maidens': 1, 'overs': '0.4', 'runs': 6, 'wickets': ['bowled', 'lbw', 'lbw', 'caught']}],\n   {'balls': 4, 'points': 144}),\n  ('normal control 3', [{'maidens': 1, 'overs': '2.3', 'runs': 30, 'wickets': ['lbw', 'bowled']}],\n   {'balls': 15, 'points': 74}),\n  ('normal control 4', [{'maidens': 0, 'overs': '2', 'runs': 14, 'wickets': ['caught', 'caught', 'bowled']}],\n   {'balls': 12, 'points': 89})]]\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-cricket-bowling-run-out-credit","generated_at":"2026-09-29T14:50:38.104224+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Bowling points depend on which dismissals are credited and on economy computed from ball counts, not decimal overs.","repair":"Credit only dismissals other than run outs.","root_cause":"The wicket list is used without removing run outs.","sha256":"2cfe5cba39689f70766112df5198a7cb83506f7c69d4b85574f17cd01d28ebea","title":"Run outs credited to the bowler · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.073,"exit_code":1,"observations":[{"actual":{"balls":11,"points":45},"check":"regression: run-out credit","expected":{"balls":11,"points":45},"passed":true},{"actual":{"balls":4,"points":58},"check":"partial repair probe: run-out credit","expected":{"balls":4,"points":87},"passed":false},{"actual":{"balls":4,"points":0},"check":"second regression","expected":{"balls":4,"points":25},"passed":false},{"actual":{"balls":11,"points":144},"check":"normal control 1","expected":{"balls":11,"points":144},"passed":true},{"actual":{"balls":12,"points":8},"check":"normal control 2","expected":{"balls":12,"points":8},"passed":true},{"actual":{"balls":12,"points":101},"check":"normal control 3","expected":{"balls":12,"points":101},"passed":true},{"actual":{"balls":4,"points":0},"check":"normal control 4","expected":{"balls":4,"points":0},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: run-out credit\", \"actual\": {\"balls\": 11, \"points\": 45}, \"expected\": {\"balls\": 11, \"points\": 45}, \"passed\": true}, {\"check\": \"partial repair probe: run-out credit\", \"actual\": {\"balls\": 4, \"points\": 58}, \"expected\": {\"balls\": 4, \"points\": 87}, \"passed\": false}, {\"check\": \"second regression\", \"actual\": {\"balls\": 4, \"points\": 0}, \"expected\": {\"balls\": 4, \"points\": 25}, \"passed\": false}, {\"check\": \"normal control 1\", \"actual\": {\"balls\": 11, \"points\": 144}, \"expected\": {\"balls\": 11, \"points\": 144}, \"passed\": true}, {\"check\": \"normal control 2\", \"actual\": {\"balls\": 12, \"points\": 8}, \"expected\": {\"balls\": 12, \"points\": 8}, \"passed\": true}, {\"check\": \"normal control 3\", \"actual\": {\"balls\": 12, \"points\": 101}, \"expected\": {\"balls\": 12, \"points\": 101}, \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": {\"balls\": 4, \"points\": 0}, \"expected\": {\"balls\": 4, \"points\": 0}, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.521,"exit_code":1,"observations":[{"actual":{"balls":11,"points":70},"check":"regression: run-out credit","expected":{"balls":11,"points":45},"passed":false},{"actual":{"balls":4,"points":116},"check":"partial repair probe: run-out credit","expected":{"balls":4,"points":87},"passed":false},{"actual":{"balls":4,"points":25},"check":"second regression","expected":{"balls":4,"points":25},"passed":true},{"actual":{"balls":11,"points":144},"check":"normal control 1","expected":{"balls":11,"points":144},"passed":true},{"actual":{"balls":12,"points":8},"check":"normal control 2","expected":{"balls":12,"points":8},"passed":true},{"actual":{"balls":12,"points":101},"check":"normal control 3","expected":{"balls":12,"points":101},"passed":true},{"actual":{"balls":4,"points":0},"check":"normal control 4","expected":{"balls":4,"points":0},"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: run-out credit\", \"actual\": {\"balls\": 11, \"points\": 70}, \"expected\": {\"balls\": 11, \"points\": 45}, \"passed\": false}, {\"check\": \"partial repair probe: run-out credit\", \"actual\": {\"balls\": 4, \"points\": 116}, \"expected\": {\"balls\": 4, \"points\": 87}, \"passed\": false}, {\"check\": \"second regression\", \"actual\": {\"balls\": 4, \"points\": 25}, \"expected\": {\"balls\": 4, \"points\": 25}, \"passed\": true}, {\"check\": \"normal control 1\", \"actual\": {\"balls\": 11, \"points\": 144}, \"expected\": {\"balls\": 11, \"points\": 144}, \"passed\": true}, {\"check\": \"normal control 2\", \"actual\": {\"balls\": 12, \"points\": 8}, \"expected\": {\"balls\": 12, \"points\": 8}, \"passed\": true}, {\"check\": \"normal control 3\", \"actual\": {\"balls\": 12, \"points\": 101}, \"expected\": {\"balls\": 12, \"points\": 101}, \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": {\"balls\": 4, \"points\": 0}, \"expected\": {\"balls\": 4, \"points\": 0}, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.288,"exit_code":0,"observations":[{"actual":{"balls":11,"points":45},"check":"regression: run-out credit","expected":{"balls":11,"points":45},"passed":true},{"actual":{"balls":4,"points":87},"check":"partial repair probe: run-out credit","expected":{"balls":4,"points":87},"passed":true},{"actual":{"balls":4,"points":25},"check":"second regression","expected":{"balls":4,"points":25},"passed":true},{"actual":{"balls":11,"points":144},"check":"normal control 1","expected":{"balls":11,"points":144},"passed":true},{"actual":{"balls":12,"points":8},"check":"normal control 2","expected":{"balls":12,"points":8},"passed":true},{"actual":{"balls":12,"points":101},"check":"normal control 3","expected":{"balls":12,"points":101},"passed":true},{"actual":{"balls":4,"points":0},"check":"normal control 4","expected":{"balls":4,"points":0},"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: run-out credit\", \"actual\": {\"balls\": 11, \"points\": 45}, \"expected\": {\"balls\": 11, \"points\": 45}, \"passed\": true}, {\"check\": \"partial repair probe: run-out credit\", \"actual\": {\"balls\": 4, \"points\": 87}, \"expected\": {\"balls\": 4, \"points\": 87}, \"passed\": true}, {\"check\": \"second regression\", \"actual\": {\"balls\": 4, \"points\": 25}, \"expected\": {\"balls\": 4, \"points\": 25}, \"passed\": true}, {\"check\": \"normal control 1\", \"actual\": {\"balls\": 11, \"points\": 144}, \"expected\": {\"balls\": 11, \"points\": 144}, \"passed\": true}, {\"check\": \"normal control 2\", \"actual\": {\"balls\": 12, \"points\": 8}, \"expected\": {\"balls\": 12, \"points\": 8}, \"passed\": true}, {\"check\": \"normal control 3\", \"actual\": {\"balls\": 12, \"points\": 101}, \"expected\": {\"balls\": 12, \"points\": 101}, \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": {\"balls\": 4, \"points\": 0}, \"expected\": {\"balls\": 4, \"points\": 0}, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}