{"abstract":"Teams level on points are ordered by points difference instead of wins.","category":"Sports scoring and tiebreakers","checks":9,"contract":"Rugby union league points. results rows are [team, tries, score, opponent, opp_tries, opp_score]. Win 4 points, draw 2, loss 0. A try bonus point is earned by any team scoring 4 or more tries, and a losing bonus point by a team that loses by 7 points or fewer (both can apply to a loser). Rank by points, then wins, then points difference, then name. Return [team, points, wins, points difference] rows for teams that appear.","evaluation_group":"w2-sports-scoring-rugby-bonus-point-table","failed_approach":"Keeping wins second but sorting points difference ascending ranks the weaker side first.","family":"w2-sports-scoring-rugby-bonus-point-table-table-tiebreak-order","id":"FA-84056","implementations":{"attempt":{"sha256":"29cd70a3679345c5867b57a9c9796c3d419af0bf604ec7cc366c198bb32c6520","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(results):\n    table = {}\n    for t1, tr1, s1, t2, tr2, s2 in results:\n        for team, tries, s, o in ((t1, tr1, s1, s2), (t2, tr2, s2, s1)):\n            row = table.setdefault(team, [0, 0, 0])\n            if s > o:\n                row[0] += 4\n                row[1] += 1\n            elif s == o:\n                row[0] += 2\n            if tries >= 4:\n                row[0] += 1\n            if s < o and o - s <= 7:\n                row[0] += 1\n            row[2] += s - o\n    order = sorted(table, key=lambda t: (-table[t][0], -table[t][1], table[t][2], t))\n    return [[t] + table[t] for t in order]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ndef run(args):\n    try:\n        return solve(*args)\n    except Exception as exc:\n        return 'raised ' + type(exc).__name__\ncases = [[('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Sale', 1, 10, 'Wasps', 5, 15], ['Bath', 3, 17, 'Leeds', 4, 5]],),\n   [['Wasps', 5, 1, 5], ['Bath', 4, 1, 12], ['Sale', 1, 0, -5], ['Leeds', 1, 0, -12]]),\n  ('regression: table tiebreak order',\n   ([['Wasps', 6, 27, 'Sale', 0, 27],\n     ['Sale', 0, 5, 'Bath', 2, 12],\n     ['Bath', 2, 7, 'Sale', 4, 3],\n     ['Wasps', 5, 33, 'Sale', 4, 10]],),\n   [['Bath', 8, 2, 11], ['Wasps', 8, 1, 23], ['Sale', 6, 0, -34]]),\n  ('variant scenario 1',\n   ([['Bath', 5, 3, 'Leeds', 3, 3],\n     ['Wasps', 2, 3, 'Bath', 4, 27],\n     ['Wasps', 0, 3, 'Sale', 4, 7],\n     ['Leeds', 5, 33, 'Wasps', 0, 17]],),\n   [['Bath', 8, 1, 24], ['Leeds', 7, 1, 16], ['Sale', 5, 1, 4], ['Wasps', 1, 0, -44]]),\n  ('variant scenario 2',\n   ([['Bath', 0, 5, 'Sale', 3, 12],\n     ['Wasps', 0, 12, 'Leeds', 6, 27],\n     ['Wasps', 2, 5, 'Leeds', 0, 12],\n     ['Sale', 1, 10, 'Leeds', 5, 30]],),\n   [['Leeds', 14, 3, 42], ['Sale', 4, 1, -13], ['Bath', 1, 0, -7], ['Wasps', 1, 0, -22]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Wasps', 1, 10, 'Bath', 0, 17], ['Bath', 4, 7, 'Sale', 4, 24]],),\n   [['Sale', 5, 1, 17], ['Bath', 5, 1, -10], ['Wasps', 1, 0, -7]]),\n  ('regression: table tiebreak order',\n   ([['Sale', 0, 3, 'Wasps', 1, 5],\n     ['Bath', 6, 15, 'Leeds', 3, 27],\n     ['Sale', 6, 7, 'Bath', 2, 7],\n     ['Bath', 3, 27, 'Wasps', 0, 17],\n     ['Wasps', 3, 7, 'Leeds', 3, 17]],),\n   [['Leeds', 8, 2, 22], ['Bath', 7, 1, -2], ['Wasps', 4, 1, -18], ['Sale', 4, 0, -2]]),\n  ('variant scenario 1',\n   ([['Wasps', 4, 7, 'Leeds', 3, 30],\n     ['Leeds', 4, 20, 'Sale', 2, 3],\n     ['Sale', 0, 7, 'Leeds', 1, 17],\n     ['Bath', 4, 3, 'Sale', 0, 20],\n     ['Sale', 5, 10, 'Bath', 6, 17],\n     ['Sale', 2, 12, 'Bath', 2, 5]],),\n   [['Leeds', 13, 3, 50], ['Sale', 10, 2, -10], ['Bath', 7, 1, -17], ['Wasps', 1, 0, -23]]),\n  ('variant scenario 2',\n   ([['Wasps', 5, 5, 'Bath', 0, 12],\n     ['Sale', 4, 27, 'Bath', 5, 27],\n     ['Sale', 1, 3, 'Wasps', 3, 24]],),\n   [['Bath', 7, 1, 7], ['Wasps', 6, 1, 14], ['Sale', 3, 0, -21]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Leeds', 6, 30, 'Wasps', 6, 27],\n     ['Wasps', 3, 5, 'Leeds', 6, 10],\n     ['Sale', 6, 10, 'Bath', 6, 10]],),\n   [['Leeds', 10, 2, 8], ['Bath', 3, 0, 0], ['Sale', 3, 0, 0], ['Wasps', 3, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Sale', 5, 33, 'Bath', 0, 7],\n     ['Wasps', 3, 7, 'Bath', 3, 24],\n     ['Wasps', 2, 27, 'Bath', 1, 17],\n     ['Bath', 4, 24, 'Sale', 2, 22],\n     ['Bath', 5, 20, 'Wasps', 0, 24],\n     ['Sale', 3, 5, 'Bath', 0, 7],\n     ['Leeds', 0, 30, 'Sale', 5, 17]],),\n   [['Bath', 15, 3, -19], ['Wasps', 8, 2, -3], ['Sale', 8, 1, 9], ['Leeds', 4, 1, 13]]),\n  ('variant scenario 1',\n   ([['Leeds', 6, 22, 'Sale', 2, 27],\n     ['Leeds', 1, 20, 'Wasps', 6, 24],\n     ['Sale', 3, 33, 'Bath', 4, 24],\n     ['Wasps', 0, 24, 'Leeds', 6, 17],\n     ['Leeds', 6, 15, 'Wasps', 5, 17],\n     ['Wasps', 2, 24, 'Sale', 3, 3]],),\n   [['Wasps', 18, 4, 34], ['Sale', 8, 2, -7], ['Leeds', 7, 0, -18], ['Bath', 1, 0, -9]]),\n  ('variant scenario 2',\n   ([['Wasps', 3, 7, 'Sale', 3, 5], ['Sale', 0, 30, 'Wasps', 0, 30]],),\n   [['Wasps', 6, 1, 2], ['Sale', 3, 0, -2]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Leeds', 2, 7, 'Bath', 2, 27],\n     ['Sale', 5, 30, 'Bath', 3, 12],\n     ['Sale', 3, 15, 'Leeds', 5, 30],\n     ['Bath', 2, 10, 'Sale', 2, 27],\n     ['Bath', 4, 5, 'Wasps', 6, 22]],),\n   [['Sale', 9, 2, 20], ['Wasps', 5, 1, 17], ['Leeds', 5, 1, -5], ['Bath', 5, 1, -32]]),\n  ('regression: table tiebreak order',\n   ([['Bath', 5, 5, 'Wasps', 3, 7],\n     ['Sale', 0, 30, 'Wasps', 0, 27],\n     ['Wasps', 1, 33, 'Bath', 5, 22],\n     ['Wasps', 4, 12, 'Bath', 3, 7],\n     ['Sale', 3, 7, 'Bath', 5, 27],\n     ['Sale', 4, 22, 'Wasps', 5, 5]],),\n   [['Wasps', 15, 3, -2], ['Sale', 9, 2, 0], ['Bath', 9, 1, 2]]),\n  ('variant scenario 1',\n   ([['Bath', 4, 3, 'Wasps', 1, 7],\n     ['Bath', 6, 30, 'Sale', 3, 15],\n     ['Sale', 1, 12, 'Bath', 2, 10],\n     ['Bath', 3, 12, 'Wasps', 4, 17]],),\n   [['Wasps', 9, 2, 9], ['Bath', 9, 1, 4], ['Sale', 4, 1, -13]]),\n  ('variant scenario 2',\n   ([['Leeds', 5, 12, 'Sale', 6, 22],\n     ['Wasps', 6, 3, 'Sale', 1, 15],\n     ['Sale', 3, 33, 'Leeds', 2, 7],\n     ['Bath', 0, 30, 'Leeds', 4, 17],\n     ['Sale', 1, 33, 'Bath', 1, 27],\n     ['Leeds', 5, 15, 'Bath', 2, 22],\n     ['Wasps', 1, 12, 'Sale', 2, 15]],),\n   [['Sale', 21, 5, 57], ['Bath', 9, 2, 14], ['Leeds', 4, 0, -56], ['Wasps', 2, 0, -15]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Leeds', 5, 3, 'Wasps', 4, 24], ['Bath', 3, 10, 'Sale', 6, 20]],),\n   [['Wasps', 5, 1, 21], ['Sale', 5, 1, 10], ['Leeds', 1, 0, -21], ['Bath', 0, 0, -10]]),\n  ('regression: table tiebreak order',\n   ([['Bath', 4, 17, 'Sale', 0, 30],\n     ['Wasps', 2, 5, 'Sale', 0, 17],\n     ['Wasps', 1, 22, 'Leeds', 2, 3],\n     ['Bath', 1, 22, 'Sale', 3, 22],\n     ['Wasps', 2, 3, 'Leeds', 3, 24],\n     ['Bath', 3, 20, 'Wasps', 0, 20],\n     ['Bath', 5, 33, 'Sale', 2, 7]],),\n   [['Sale', 10, 2, -1], ['Bath', 10, 1, 13], ['Wasps', 6, 1, -14], ['Leeds', 4, 1, 2]]),\n  ('variant scenario 1',\n   ([['Leeds', 5, 15, 'Bath', 4, 10],\n     ['Bath', 1, 22, 'Wasps', 2, 7],\n     ['Wasps', 6, 22, 'Sale', 4, 27],\n     ['Bath', 4, 12, 'Sale', 1, 27],\n     ['Leeds', 1, 15, 'Sale', 1, 24],\n     ['Leeds', 5, 30, 'Wasps', 4, 5]],),\n   [['Sale', 13, 3, 29], ['Leeds', 10, 2, 21], ['Bath', 7, 1, -5], ['Wasps', 3, 0, -45]]),\n  ('variant scenario 2',\n   ([['Leeds', 0, 33, 'Wasps', 4, 30],\n     ['Wasps', 3, 22, 'Sale', 6, 12],\n     ['Wasps', 3, 20, 'Bath', 5, 27]],),\n   [['Wasps', 7, 1, 0], ['Bath', 5, 1, 7], ['Leeds', 4, 1, 3], ['Sale', 1, 0, -10]])]]\nfor label, args, expected in cases[N - 1]:\n    check(label, run(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":"d53884680352fa81cef2edcae0f73283fa7f5a17ad86fef721f064792e1e4ee6","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(results):\n    table = {}\n    for t1, tr1, s1, t2, tr2, s2 in results:\n        for team, tries, s, o in ((t1, tr1, s1, s2), (t2, tr2, s2, s1)):\n            row = table.setdefault(team, [0, 0, 0])\n            if s > o:\n                row[0] += 4\n                row[1] += 1\n            elif s == o:\n                row[0] += 2\n            if tries >= 4:\n                row[0] += 1\n            if s < o and o - s <= 7:\n                row[0] += 1\n            row[2] += s - o\n    order = sorted(table, key=lambda t: (-table[t][0], -table[t][2], -table[t][1], t))\n    return [[t] + table[t] for t in order]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ndef run(args):\n    try:\n        return solve(*args)\n    except Exception as exc:\n        return 'raised ' + type(exc).__name__\ncases = [[('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Sale', 1, 10, 'Wasps', 5, 15], ['Bath', 3, 17, 'Leeds', 4, 5]],),\n   [['Wasps', 5, 1, 5], ['Bath', 4, 1, 12], ['Sale', 1, 0, -5], ['Leeds', 1, 0, -12]]),\n  ('regression: table tiebreak order',\n   ([['Wasps', 6, 27, 'Sale', 0, 27],\n     ['Sale', 0, 5, 'Bath', 2, 12],\n     ['Bath', 2, 7, 'Sale', 4, 3],\n     ['Wasps', 5, 33, 'Sale', 4, 10]],),\n   [['Bath', 8, 2, 11], ['Wasps', 8, 1, 23], ['Sale', 6, 0, -34]]),\n  ('variant scenario 1',\n   ([['Bath', 5, 3, 'Leeds', 3, 3],\n     ['Wasps', 2, 3, 'Bath', 4, 27],\n     ['Wasps', 0, 3, 'Sale', 4, 7],\n     ['Leeds', 5, 33, 'Wasps', 0, 17]],),\n   [['Bath', 8, 1, 24], ['Leeds', 7, 1, 16], ['Sale', 5, 1, 4], ['Wasps', 1, 0, -44]]),\n  ('variant scenario 2',\n   ([['Bath', 0, 5, 'Sale', 3, 12],\n     ['Wasps', 0, 12, 'Leeds', 6, 27],\n     ['Wasps', 2, 5, 'Leeds', 0, 12],\n     ['Sale', 1, 10, 'Leeds', 5, 30]],),\n   [['Leeds', 14, 3, 42], ['Sale', 4, 1, -13], ['Bath', 1, 0, -7], ['Wasps', 1, 0, -22]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Wasps', 1, 10, 'Bath', 0, 17], ['Bath', 4, 7, 'Sale', 4, 24]],),\n   [['Sale', 5, 1, 17], ['Bath', 5, 1, -10], ['Wasps', 1, 0, -7]]),\n  ('regression: table tiebreak order',\n   ([['Sale', 0, 3, 'Wasps', 1, 5],\n     ['Bath', 6, 15, 'Leeds', 3, 27],\n     ['Sale', 6, 7, 'Bath', 2, 7],\n     ['Bath', 3, 27, 'Wasps', 0, 17],\n     ['Wasps', 3, 7, 'Leeds', 3, 17]],),\n   [['Leeds', 8, 2, 22], ['Bath', 7, 1, -2], ['Wasps', 4, 1, -18], ['Sale', 4, 0, -2]]),\n  ('variant scenario 1',\n   ([['Wasps', 4, 7, 'Leeds', 3, 30],\n     ['Leeds', 4, 20, 'Sale', 2, 3],\n     ['Sale', 0, 7, 'Leeds', 1, 17],\n     ['Bath', 4, 3, 'Sale', 0, 20],\n     ['Sale', 5, 10, 'Bath', 6, 17],\n     ['Sale', 2, 12, 'Bath', 2, 5]],),\n   [['Leeds', 13, 3, 50], ['Sale', 10, 2, -10], ['Bath', 7, 1, -17], ['Wasps', 1, 0, -23]]),\n  ('variant scenario 2',\n   ([['Wasps', 5, 5, 'Bath', 0, 12],\n     ['Sale', 4, 27, 'Bath', 5, 27],\n     ['Sale', 1, 3, 'Wasps', 3, 24]],),\n   [['Bath', 7, 1, 7], ['Wasps', 6, 1, 14], ['Sale', 3, 0, -21]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Leeds', 6, 30, 'Wasps', 6, 27],\n     ['Wasps', 3, 5, 'Leeds', 6, 10],\n     ['Sale', 6, 10, 'Bath', 6, 10]],),\n   [['Leeds', 10, 2, 8], ['Bath', 3, 0, 0], ['Sale', 3, 0, 0], ['Wasps', 3, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Sale', 5, 33, 'Bath', 0, 7],\n     ['Wasps', 3, 7, 'Bath', 3, 24],\n     ['Wasps', 2, 27, 'Bath', 1, 17],\n     ['Bath', 4, 24, 'Sale', 2, 22],\n     ['Bath', 5, 20, 'Wasps', 0, 24],\n     ['Sale', 3, 5, 'Bath', 0, 7],\n     ['Leeds', 0, 30, 'Sale', 5, 17]],),\n   [['Bath', 15, 3, -19], ['Wasps', 8, 2, -3], ['Sale', 8, 1, 9], ['Leeds', 4, 1, 13]]),\n  ('variant scenario 1',\n   ([['Leeds', 6, 22, 'Sale', 2, 27],\n     ['Leeds', 1, 20, 'Wasps', 6, 24],\n     ['Sale', 3, 33, 'Bath', 4, 24],\n     ['Wasps', 0, 24, 'Leeds', 6, 17],\n     ['Leeds', 6, 15, 'Wasps', 5, 17],\n     ['Wasps', 2, 24, 'Sale', 3, 3]],),\n   [['Wasps', 18, 4, 34], ['Sale', 8, 2, -7], ['Leeds', 7, 0, -18], ['Bath', 1, 0, -9]]),\n  ('variant scenario 2',\n   ([['Wasps', 3, 7, 'Sale', 3, 5], ['Sale', 0, 30, 'Wasps', 0, 30]],),\n   [['Wasps', 6, 1, 2], ['Sale', 3, 0, -2]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Leeds', 2, 7, 'Bath', 2, 27],\n     ['Sale', 5, 30, 'Bath', 3, 12],\n     ['Sale', 3, 15, 'Leeds', 5, 30],\n     ['Bath', 2, 10, 'Sale', 2, 27],\n     ['Bath', 4, 5, 'Wasps', 6, 22]],),\n   [['Sale', 9, 2, 20], ['Wasps', 5, 1, 17], ['Leeds', 5, 1, -5], ['Bath', 5, 1, -32]]),\n  ('regression: table tiebreak order',\n   ([['Bath', 5, 5, 'Wasps', 3, 7],\n     ['Sale', 0, 30, 'Wasps', 0, 27],\n     ['Wasps', 1, 33, 'Bath', 5, 22],\n     ['Wasps', 4, 12, 'Bath', 3, 7],\n     ['Sale', 3, 7, 'Bath', 5, 27],\n     ['Sale', 4, 22, 'Wasps', 5, 5]],),\n   [['Wasps', 15, 3, -2], ['Sale', 9, 2, 0], ['Bath', 9, 1, 2]]),\n  ('variant scenario 1',\n   ([['Bath', 4, 3, 'Wasps', 1, 7],\n     ['Bath', 6, 30, 'Sale', 3, 15],\n     ['Sale', 1, 12, 'Bath', 2, 10],\n     ['Bath', 3, 12, 'Wasps', 4, 17]],),\n   [['Wasps', 9, 2, 9], ['Bath', 9, 1, 4], ['Sale', 4, 1, -13]]),\n  ('variant scenario 2',\n   ([['Leeds', 5, 12, 'Sale', 6, 22],\n     ['Wasps', 6, 3, 'Sale', 1, 15],\n     ['Sale', 3, 33, 'Leeds', 2, 7],\n     ['Bath', 0, 30, 'Leeds', 4, 17],\n     ['Sale', 1, 33, 'Bath', 1, 27],\n     ['Leeds', 5, 15, 'Bath', 2, 22],\n     ['Wasps', 1, 12, 'Sale', 2, 15]],),\n   [['Sale', 21, 5, 57], ['Bath', 9, 2, 14], ['Leeds', 4, 0, -56], ['Wasps', 2, 0, -15]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Leeds', 5, 3, 'Wasps', 4, 24], ['Bath', 3, 10, 'Sale', 6, 20]],),\n   [['Wasps', 5, 1, 21], ['Sale', 5, 1, 10], ['Leeds', 1, 0, -21], ['Bath', 0, 0, -10]]),\n  ('regression: table tiebreak order',\n   ([['Bath', 4, 17, 'Sale', 0, 30],\n     ['Wasps', 2, 5, 'Sale', 0, 17],\n     ['Wasps', 1, 22, 'Leeds', 2, 3],\n     ['Bath', 1, 22, 'Sale', 3, 22],\n     ['Wasps', 2, 3, 'Leeds', 3, 24],\n     ['Bath', 3, 20, 'Wasps', 0, 20],\n     ['Bath', 5, 33, 'Sale', 2, 7]],),\n   [['Sale', 10, 2, -1], ['Bath', 10, 1, 13], ['Wasps', 6, 1, -14], ['Leeds', 4, 1, 2]]),\n  ('variant scenario 1',\n   ([['Leeds', 5, 15, 'Bath', 4, 10],\n     ['Bath', 1, 22, 'Wasps', 2, 7],\n     ['Wasps', 6, 22, 'Sale', 4, 27],\n     ['Bath', 4, 12, 'Sale', 1, 27],\n     ['Leeds', 1, 15, 'Sale', 1, 24],\n     ['Leeds', 5, 30, 'Wasps', 4, 5]],),\n   [['Sale', 13, 3, 29], ['Leeds', 10, 2, 21], ['Bath', 7, 1, -5], ['Wasps', 3, 0, -45]]),\n  ('variant scenario 2',\n   ([['Leeds', 0, 33, 'Wasps', 4, 30],\n     ['Wasps', 3, 22, 'Sale', 6, 12],\n     ['Wasps', 3, 20, 'Bath', 5, 27]],),\n   [['Wasps', 7, 1, 0], ['Bath', 5, 1, 7], ['Leeds', 4, 1, 3], ['Sale', 1, 0, -10]])]]\nfor label, args, expected in cases[N - 1]:\n    check(label, run(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":"476f24ee36c795ee84cde4d72f52b0730f852ee9f1e111d0cbfbcc6ff605aa69","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(results):\n    table = {}\n    for t1, tr1, s1, t2, tr2, s2 in results:\n        for team, tries, s, o in ((t1, tr1, s1, s2), (t2, tr2, s2, s1)):\n            row = table.setdefault(team, [0, 0, 0])\n            if s > o:\n                row[0] += 4\n                row[1] += 1\n            elif s == o:\n                row[0] += 2\n            if tries >= 4:\n                row[0] += 1\n            if s < o and o - s <= 7:\n                row[0] += 1\n            row[2] += s - o\n    order = sorted(table, key=lambda t: (-table[t][0], -table[t][1], -table[t][2], t))\n    return [[t] + table[t] for t in order]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ndef run(args):\n    try:\n        return solve(*args)\n    except Exception as exc:\n        return 'raised ' + type(exc).__name__\ncases = [[('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Sale', 1, 10, 'Wasps', 5, 15], ['Bath', 3, 17, 'Leeds', 4, 5]],),\n   [['Wasps', 5, 1, 5], ['Bath', 4, 1, 12], ['Sale', 1, 0, -5], ['Leeds', 1, 0, -12]]),\n  ('regression: table tiebreak order',\n   ([['Wasps', 6, 27, 'Sale', 0, 27],\n     ['Sale', 0, 5, 'Bath', 2, 12],\n     ['Bath', 2, 7, 'Sale', 4, 3],\n     ['Wasps', 5, 33, 'Sale', 4, 10]],),\n   [['Bath', 8, 2, 11], ['Wasps', 8, 1, 23], ['Sale', 6, 0, -34]]),\n  ('variant scenario 1',\n   ([['Bath', 5, 3, 'Leeds', 3, 3],\n     ['Wasps', 2, 3, 'Bath', 4, 27],\n     ['Wasps', 0, 3, 'Sale', 4, 7],\n     ['Leeds', 5, 33, 'Wasps', 0, 17]],),\n   [['Bath', 8, 1, 24], ['Leeds', 7, 1, 16], ['Sale', 5, 1, 4], ['Wasps', 1, 0, -44]]),\n  ('variant scenario 2',\n   ([['Bath', 0, 5, 'Sale', 3, 12],\n     ['Wasps', 0, 12, 'Leeds', 6, 27],\n     ['Wasps', 2, 5, 'Leeds', 0, 12],\n     ['Sale', 1, 10, 'Leeds', 5, 30]],),\n   [['Leeds', 14, 3, 42], ['Sale', 4, 1, -13], ['Bath', 1, 0, -7], ['Wasps', 1, 0, -22]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Wasps', 1, 10, 'Bath', 0, 17], ['Bath', 4, 7, 'Sale', 4, 24]],),\n   [['Sale', 5, 1, 17], ['Bath', 5, 1, -10], ['Wasps', 1, 0, -7]]),\n  ('regression: table tiebreak order',\n   ([['Sale', 0, 3, 'Wasps', 1, 5],\n     ['Bath', 6, 15, 'Leeds', 3, 27],\n     ['Sale', 6, 7, 'Bath', 2, 7],\n     ['Bath', 3, 27, 'Wasps', 0, 17],\n     ['Wasps', 3, 7, 'Leeds', 3, 17]],),\n   [['Leeds', 8, 2, 22], ['Bath', 7, 1, -2], ['Wasps', 4, 1, -18], ['Sale', 4, 0, -2]]),\n  ('variant scenario 1',\n   ([['Wasps', 4, 7, 'Leeds', 3, 30],\n     ['Leeds', 4, 20, 'Sale', 2, 3],\n     ['Sale', 0, 7, 'Leeds', 1, 17],\n     ['Bath', 4, 3, 'Sale', 0, 20],\n     ['Sale', 5, 10, 'Bath', 6, 17],\n     ['Sale', 2, 12, 'Bath', 2, 5]],),\n   [['Leeds', 13, 3, 50], ['Sale', 10, 2, -10], ['Bath', 7, 1, -17], ['Wasps', 1, 0, -23]]),\n  ('variant scenario 2',\n   ([['Wasps', 5, 5, 'Bath', 0, 12],\n     ['Sale', 4, 27, 'Bath', 5, 27],\n     ['Sale', 1, 3, 'Wasps', 3, 24]],),\n   [['Bath', 7, 1, 7], ['Wasps', 6, 1, 14], ['Sale', 3, 0, -21]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Leeds', 6, 30, 'Wasps', 6, 27],\n     ['Wasps', 3, 5, 'Leeds', 6, 10],\n     ['Sale', 6, 10, 'Bath', 6, 10]],),\n   [['Leeds', 10, 2, 8], ['Bath', 3, 0, 0], ['Sale', 3, 0, 0], ['Wasps', 3, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Sale', 5, 33, 'Bath', 0, 7],\n     ['Wasps', 3, 7, 'Bath', 3, 24],\n     ['Wasps', 2, 27, 'Bath', 1, 17],\n     ['Bath', 4, 24, 'Sale', 2, 22],\n     ['Bath', 5, 20, 'Wasps', 0, 24],\n     ['Sale', 3, 5, 'Bath', 0, 7],\n     ['Leeds', 0, 30, 'Sale', 5, 17]],),\n   [['Bath', 15, 3, -19], ['Wasps', 8, 2, -3], ['Sale', 8, 1, 9], ['Leeds', 4, 1, 13]]),\n  ('variant scenario 1',\n   ([['Leeds', 6, 22, 'Sale', 2, 27],\n     ['Leeds', 1, 20, 'Wasps', 6, 24],\n     ['Sale', 3, 33, 'Bath', 4, 24],\n     ['Wasps', 0, 24, 'Leeds', 6, 17],\n     ['Leeds', 6, 15, 'Wasps', 5, 17],\n     ['Wasps', 2, 24, 'Sale', 3, 3]],),\n   [['Wasps', 18, 4, 34], ['Sale', 8, 2, -7], ['Leeds', 7, 0, -18], ['Bath', 1, 0, -9]]),\n  ('variant scenario 2',\n   ([['Wasps', 3, 7, 'Sale', 3, 5], ['Sale', 0, 30, 'Wasps', 0, 30]],),\n   [['Wasps', 6, 1, 2], ['Sale', 3, 0, -2]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Leeds', 2, 7, 'Bath', 2, 27],\n     ['Sale', 5, 30, 'Bath', 3, 12],\n     ['Sale', 3, 15, 'Leeds', 5, 30],\n     ['Bath', 2, 10, 'Sale', 2, 27],\n     ['Bath', 4, 5, 'Wasps', 6, 22]],),\n   [['Sale', 9, 2, 20], ['Wasps', 5, 1, 17], ['Leeds', 5, 1, -5], ['Bath', 5, 1, -32]]),\n  ('regression: table tiebreak order',\n   ([['Bath', 5, 5, 'Wasps', 3, 7],\n     ['Sale', 0, 30, 'Wasps', 0, 27],\n     ['Wasps', 1, 33, 'Bath', 5, 22],\n     ['Wasps', 4, 12, 'Bath', 3, 7],\n     ['Sale', 3, 7, 'Bath', 5, 27],\n     ['Sale', 4, 22, 'Wasps', 5, 5]],),\n   [['Wasps', 15, 3, -2], ['Sale', 9, 2, 0], ['Bath', 9, 1, 2]]),\n  ('variant scenario 1',\n   ([['Bath', 4, 3, 'Wasps', 1, 7],\n     ['Bath', 6, 30, 'Sale', 3, 15],\n     ['Sale', 1, 12, 'Bath', 2, 10],\n     ['Bath', 3, 12, 'Wasps', 4, 17]],),\n   [['Wasps', 9, 2, 9], ['Bath', 9, 1, 4], ['Sale', 4, 1, -13]]),\n  ('variant scenario 2',\n   ([['Leeds', 5, 12, 'Sale', 6, 22],\n     ['Wasps', 6, 3, 'Sale', 1, 15],\n     ['Sale', 3, 33, 'Leeds', 2, 7],\n     ['Bath', 0, 30, 'Leeds', 4, 17],\n     ['Sale', 1, 33, 'Bath', 1, 27],\n     ['Leeds', 5, 15, 'Bath', 2, 22],\n     ['Wasps', 1, 12, 'Sale', 2, 15]],),\n   [['Sale', 21, 5, 57], ['Bath', 9, 2, 14], ['Leeds', 4, 0, -56], ['Wasps', 2, 0, -15]])],\n [('control plain win',\n   ([['Bath', 2, 20, 'Leeds', 1, 10]],),\n   [['Bath', 4, 1, 10], ['Leeds', 0, 0, -10]]),\n  ('boundary losing by seven',\n   ([['Bath', 1, 17, 'Leeds', 2, 10]],),\n   [['Bath', 4, 1, 7], ['Leeds', 1, 0, -7]]),\n  ('boundary four tries in defeat',\n   ([['Bath', 3, 30, 'Leeds', 4, 24]],),\n   [['Bath', 4, 1, 6], ['Leeds', 2, 0, -6]]),\n  ('control draw', ([['Bath', 1, 10, 'Leeds', 1, 10]],), [['Bath', 2, 0, 0], ['Leeds', 2, 0, 0]]),\n  ('boundary losing by eight',\n   ([['Sale', 2, 18, 'Wasps', 1, 10]],),\n   [['Sale', 4, 1, 8], ['Wasps', 0, 0, -8]]),\n  ('regression: table tiebreak order',\n   ([['Leeds', 5, 3, 'Wasps', 4, 24], ['Bath', 3, 10, 'Sale', 6, 20]],),\n   [['Wasps', 5, 1, 21], ['Sale', 5, 1, 10], ['Leeds', 1, 0, -21], ['Bath', 0, 0, -10]]),\n  ('regression: table tiebreak order',\n   ([['Bath', 4, 17, 'Sale', 0, 30],\n     ['Wasps', 2, 5, 'Sale', 0, 17],\n     ['Wasps', 1, 22, 'Leeds', 2, 3],\n     ['Bath', 1, 22, 'Sale', 3, 22],\n     ['Wasps', 2, 3, 'Leeds', 3, 24],\n     ['Bath', 3, 20, 'Wasps', 0, 20],\n     ['Bath', 5, 33, 'Sale', 2, 7]],),\n   [['Sale', 10, 2, -1], ['Bath', 10, 1, 13], ['Wasps', 6, 1, -14], ['Leeds', 4, 1, 2]]),\n  ('variant scenario 1',\n   ([['Leeds', 5, 15, 'Bath', 4, 10],\n     ['Bath', 1, 22, 'Wasps', 2, 7],\n     ['Wasps', 6, 22, 'Sale', 4, 27],\n     ['Bath', 4, 12, 'Sale', 1, 27],\n     ['Leeds', 1, 15, 'Sale', 1, 24],\n     ['Leeds', 5, 30, 'Wasps', 4, 5]],),\n   [['Sale', 13, 3, 29], ['Leeds', 10, 2, 21], ['Bath', 7, 1, -5], ['Wasps', 3, 0, -45]]),\n  ('variant scenario 2',\n   ([['Leeds', 0, 33, 'Wasps', 4, 30],\n     ['Wasps', 3, 22, 'Sale', 6, 12],\n     ['Wasps', 3, 20, 'Bath', 5, 27]],),\n   [['Wasps', 7, 1, 0], ['Bath', 5, 1, 7], ['Leeds', 4, 1, 3], ['Sale', 1, 0, -10]])]]\nfor label, args, expected in cases[N - 1]:\n    check(label, run(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":"Stipulated, bounded toy contract stated in the contract field; not a claim of conformance with any governing body rulebook or operator house rules. 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-sports-scoring-rugby-bonus-point-table-table-tiebreak-order","generated_at":"2026-09-29T14:50:27.225443+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Bonus-point tables are tight; each threshold changes qualification.","repair":"Order by points, wins, points difference, name.","root_cause":"The sort key compares points difference before wins.","sha256":"b78e79d76646a963564d5e8a3f02461224d7defa4e905b44b6129ad24c00e790","title":"Points difference ranked ahead of wins · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.515,"exit_code":1,"observations":[{"actual":[["Bath",4,1,10],["Leeds",0,0,-10]],"check":"control plain win","expected":[["Bath",4,1,10],["Leeds",0,0,-10]],"passed":true},{"actual":[["Bath",4,1,7],["Leeds",1,0,-7]],"check":"boundary losing by seven","expected":[["Bath",4,1,7],["Leeds",1,0,-7]],"passed":true},{"actual":[["Bath",4,1,6],["Leeds",2,0,-6]],"check":"boundary four tries in defeat","expected":[["Bath",4,1,6],["Leeds",2,0,-6]],"passed":true},{"actual":[["Bath",2,0,0],["Leeds",2,0,0]],"check":"control draw","expected":[["Bath",2,0,0],["Leeds",2,0,0]],"passed":true},{"actual":[["Sale",4,1,8],["Wasps",0,0,-8]],"check":"boundary losing by eight","expected":[["Sale",4,1,8],["Wasps",0,0,-8]],"passed":true},{"actual":[["Wasps",5,1,5],["Bath",4,1,12],["Leeds",1,0,-12],["Sale",1,0,-5]],"check":"regression: table tiebreak order","expected":[["Wasps",5,1,5],["Bath",4,1,12],["Sale",1,0,-5],["Leeds",1,0,-12]],"passed":false},{"actual":[["Bath",8,2,11],["Wasps",8,1,23],["Sale",6,0,-34]],"check":"regression: table tiebreak order","expected":[["Bath",8,2,11],["Wasps",8,1,23],["Sale",6,0,-34]],"passed":true},{"actual":[["Bath",8,1,24],["Leeds",7,1,16],["Sale",5,1,4],["Wasps",1,0,-44]],"check":"variant scenario 1","expected":[["Bath",8,1,24],["Leeds",7,1,16],["Sale",5,1,4],["Wasps",1,0,-44]],"passed":true},{"actual":[["Leeds",14,3,42],["Sale",4,1,-13],["Wasps",1,0,-22],["Bath",1,0,-7]],"check":"variant scenario 2","expected":[["Leeds",14,3,42],["Sale",4,1,-13],["Bath",1,0,-7],["Wasps",1,0,-22]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"control plain win\", \"actual\": [[\"Bath\", 4, 1, 10], [\"Leeds\", 0, 0, -10]], \"expected\": [[\"Bath\", 4, 1, 10], [\"Leeds\", 0, 0, -10]], \"passed\": true}, {\"check\": \"boundary losing by seven\", \"actual\": [[\"Bath\", 4, 1, 7], [\"Leeds\", 1, 0, -7]], \"expected\": [[\"Bath\", 4, 1, 7], [\"Leeds\", 1, 0, -7]], \"passed\": true}, {\"check\": \"boundary four tries in defeat\", \"actual\": [[\"Bath\", 4, 1, 6], [\"Leeds\", 2, 0, -6]], \"expected\": [[\"Bath\", 4, 1, 6], [\"Leeds\", 2, 0, -6]], \"passed\": true}, {\"check\": \"control draw\", \"actual\": [[\"Bath\", 2, 0, 0], [\"Leeds\", 2, 0, 0]], \"expected\": [[\"Bath\", 2, 0, 0], [\"Leeds\", 2, 0, 0]], \"passed\": true}, {\"check\": \"boundary losing by eight\", \"actual\": [[\"Sale\", 4, 1, 8], [\"Wasps\", 0, 0, -8]], \"expected\": [[\"Sale\", 4, 1, 8], [\"Wasps\", 0, 0, -8]], \"passed\": true}, {\"check\": \"regression: table tiebreak order\", \"actual\": [[\"Wasps\", 5, 1, 5], [\"Bath\", 4, 1, 12], [\"Leeds\", 1, 0, -12], [\"Sale\", 1, 0, -5]], \"expected\": [[\"Wasps\", 5, 1, 5], [\"Bath\", 4, 1, 12], [\"Sale\", 1, 0, -5], [\"Leeds\", 1, 0, -12]], \"passed\": false}, {\"check\": \"regression: table tiebreak order\", \"actual\": [[\"Bath\", 8, 2, 11], [\"Wasps\", 8, 1, 23], [\"Sale\", 6, 0, -34]], \"expected\": [[\"Bath\", 8, 2, 11], [\"Wasps\", 8, 1, 23], [\"Sale\", 6, 0, -34]], \"passed\": true}, {\"check\": \"variant scenario 1\", \"actual\": [[\"Bath\", 8, 1, 24], [\"Leeds\", 7, 1, 16], [\"Sale\", 5, 1, 4], [\"Wasps\", 1, 0, -44]], \"expected\": [[\"Bath\", 8, 1, 24], [\"Leeds\", 7, 1, 16], [\"Sale\", 5, 1, 4], [\"Wasps\", 1, 0, -44]], \"passed\": true}, {\"check\": \"variant scenario 2\", \"actual\": [[\"Leeds\", 14, 3, 42], [\"Sale\", 4, 1, -13], [\"Wasps\", 1, 0, -22], [\"Bath\", 1, 0, -7]], \"expected\": [[\"Leeds\", 14, 3, 42], [\"Sale\", 4, 1, -13], [\"Bath\", 1, 0, -7], [\"Wasps\", 1, 0, -22]], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.575,"exit_code":1,"observations":[{"actual":[["Bath",4,1,10],["Leeds",0,0,-10]],"check":"control plain win","expected":[["Bath",4,1,10],["Leeds",0,0,-10]],"passed":true},{"actual":[["Bath",4,1,7],["Leeds",1,0,-7]],"check":"boundary losing by seven","expected":[["Bath",4,1,7],["Leeds",1,0,-7]],"passed":true},{"actual":[["Bath",4,1,6],["Leeds",2,0,-6]],"check":"boundary four tries in defeat","expected":[["Bath",4,1,6],["Leeds",2,0,-6]],"passed":true},{"actual":[["Bath",2,0,0],["Leeds",2,0,0]],"check":"control draw","expected":[["Bath",2,0,0],["Leeds",2,0,0]],"passed":true},{"actual":[["Sale",4,1,8],["Wasps",0,0,-8]],"check":"boundary losing by eight","expected":[["Sale",4,1,8],["Wasps",0,0,-8]],"passed":true},{"actual":[["Wasps",5,1,5],["Bath",4,1,12],["Sale",1,0,-5],["Leeds",1,0,-12]],"check":"regression: table tiebreak order","expected":[["Wasps",5,1,5],["Bath",4,1,12],["Sale",1,0,-5],["Leeds",1,0,-12]],"passed":true},{"actual":[["Wasps",8,1,23],["Bath",8,2,11],["Sale",6,0,-34]],"check":"regression: table tiebreak order","expected":[["Bath",8,2,11],["Wasps",8,1,23],["Sale",6,0,-34]],"passed":false},{"actual":[["Bath",8,1,24],["Leeds",7,1,16],["Sale",5,1,4],["Wasps",1,0,-44]],"check":"variant scenario 1","expected":[["Bath",8,1,24],["Leeds",7,1,16],["Sale",5,1,4],["Wasps",1,0,-44]],"passed":true},{"actual":[["Leeds",14,3,42],["Sale",4,1,-13],["Bath",1,0,-7],["Wasps",1,0,-22]],"check":"variant scenario 2","expected":[["Leeds",14,3,42],["Sale",4,1,-13],["Bath",1,0,-7],["Wasps",1,0,-22]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"control plain win\", \"actual\": [[\"Bath\", 4, 1, 10], [\"Leeds\", 0, 0, -10]], \"expected\": [[\"Bath\", 4, 1, 10], [\"Leeds\", 0, 0, -10]], \"passed\": true}, {\"check\": \"boundary losing by seven\", \"actual\": [[\"Bath\", 4, 1, 7], [\"Leeds\", 1, 0, -7]], \"expected\": [[\"Bath\", 4, 1, 7], [\"Leeds\", 1, 0, -7]], \"passed\": true}, {\"check\": \"boundary four tries in defeat\", \"actual\": [[\"Bath\", 4, 1, 6], [\"Leeds\", 2, 0, -6]], \"expected\": [[\"Bath\", 4, 1, 6], [\"Leeds\", 2, 0, -6]], \"passed\": true}, {\"check\": \"control draw\", \"actual\": [[\"Bath\", 2, 0, 0], [\"Leeds\", 2, 0, 0]], \"expected\": [[\"Bath\", 2, 0, 0], [\"Leeds\", 2, 0, 0]], \"passed\": true}, {\"check\": \"boundary losing by eight\", \"actual\": [[\"Sale\", 4, 1, 8], [\"Wasps\", 0, 0, -8]], \"expected\": [[\"Sale\", 4, 1, 8], [\"Wasps\", 0, 0, -8]], \"passed\": true}, {\"check\": \"regression: table tiebreak order\", \"actual\": [[\"Wasps\", 5, 1, 5], [\"Bath\", 4, 1, 12], [\"Sale\", 1, 0, -5], [\"Leeds\", 1, 0, -12]], \"expected\": [[\"Wasps\", 5, 1, 5], [\"Bath\", 4, 1, 12], [\"Sale\", 1, 0, -5], [\"Leeds\", 1, 0, -12]], \"passed\": true}, {\"check\": \"regression: table tiebreak order\", \"actual\": [[\"Wasps\", 8, 1, 23], [\"Bath\", 8, 2, 11], [\"Sale\", 6, 0, -34]], \"expected\": [[\"Bath\", 8, 2, 11], [\"Wasps\", 8, 1, 23], [\"Sale\", 6, 0, -34]], \"passed\": false}, {\"check\": \"variant scenario 1\", \"actual\": [[\"Bath\", 8, 1, 24], [\"Leeds\", 7, 1, 16], [\"Sale\", 5, 1, 4], [\"Wasps\", 1, 0, -44]], \"expected\": [[\"Bath\", 8, 1, 24], [\"Leeds\", 7, 1, 16], [\"Sale\", 5, 1, 4], [\"Wasps\", 1, 0, -44]], \"passed\": true}, {\"check\": \"variant scenario 2\", \"actual\": [[\"Leeds\", 14, 3, 42], [\"Sale\", 4, 1, -13], [\"Bath\", 1, 0, -7], [\"Wasps\", 1, 0, -22]], \"expected\": [[\"Leeds\", 14, 3, 42], [\"Sale\", 4, 1, -13], [\"Bath\", 1, 0, -7], [\"Wasps\", 1, 0, -22]], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.164,"exit_code":0,"observations":[{"actual":[["Bath",4,1,10],["Leeds",0,0,-10]],"check":"control plain win","expected":[["Bath",4,1,10],["Leeds",0,0,-10]],"passed":true},{"actual":[["Bath",4,1,7],["Leeds",1,0,-7]],"check":"boundary losing by seven","expected":[["Bath",4,1,7],["Leeds",1,0,-7]],"passed":true},{"actual":[["Bath",4,1,6],["Leeds",2,0,-6]],"check":"boundary four tries in defeat","expected":[["Bath",4,1,6],["Leeds",2,0,-6]],"passed":true},{"actual":[["Bath",2,0,0],["Leeds",2,0,0]],"check":"control draw","expected":[["Bath",2,0,0],["Leeds",2,0,0]],"passed":true},{"actual":[["Sale",4,1,8],["Wasps",0,0,-8]],"check":"boundary losing by eight","expected":[["Sale",4,1,8],["Wasps",0,0,-8]],"passed":true},{"actual":[["Wasps",5,1,5],["Bath",4,1,12],["Sale",1,0,-5],["Leeds",1,0,-12]],"check":"regression: table tiebreak order","expected":[["Wasps",5,1,5],["Bath",4,1,12],["Sale",1,0,-5],["Leeds",1,0,-12]],"passed":true},{"actual":[["Bath",8,2,11],["Wasps",8,1,23],["Sale",6,0,-34]],"check":"regression: table tiebreak order","expected":[["Bath",8,2,11],["Wasps",8,1,23],["Sale",6,0,-34]],"passed":true},{"actual":[["Bath",8,1,24],["Leeds",7,1,16],["Sale",5,1,4],["Wasps",1,0,-44]],"check":"variant scenario 1","expected":[["Bath",8,1,24],["Leeds",7,1,16],["Sale",5,1,4],["Wasps",1,0,-44]],"passed":true},{"actual":[["Leeds",14,3,42],["Sale",4,1,-13],["Bath",1,0,-7],["Wasps",1,0,-22]],"check":"variant scenario 2","expected":[["Leeds",14,3,42],["Sale",4,1,-13],["Bath",1,0,-7],["Wasps",1,0,-22]],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"control plain win\", \"actual\": [[\"Bath\", 4, 1, 10], [\"Leeds\", 0, 0, -10]], \"expected\": [[\"Bath\", 4, 1, 10], [\"Leeds\", 0, 0, -10]], \"passed\": true}, {\"check\": \"boundary losing by seven\", \"actual\": [[\"Bath\", 4, 1, 7], [\"Leeds\", 1, 0, -7]], \"expected\": [[\"Bath\", 4, 1, 7], [\"Leeds\", 1, 0, -7]], \"passed\": true}, {\"check\": \"boundary four tries in defeat\", \"actual\": [[\"Bath\", 4, 1, 6], [\"Leeds\", 2, 0, -6]], \"expected\": [[\"Bath\", 4, 1, 6], [\"Leeds\", 2, 0, -6]], \"passed\": true}, {\"check\": \"control draw\", \"actual\": [[\"Bath\", 2, 0, 0], [\"Leeds\", 2, 0, 0]], \"expected\": [[\"Bath\", 2, 0, 0], [\"Leeds\", 2, 0, 0]], \"passed\": true}, {\"check\": \"boundary losing by eight\", \"actual\": [[\"Sale\", 4, 1, 8], [\"Wasps\", 0, 0, -8]], \"expected\": [[\"Sale\", 4, 1, 8], [\"Wasps\", 0, 0, -8]], \"passed\": true}, {\"check\": \"regression: table tiebreak order\", \"actual\": [[\"Wasps\", 5, 1, 5], [\"Bath\", 4, 1, 12], [\"Sale\", 1, 0, -5], [\"Leeds\", 1, 0, -12]], \"expected\": [[\"Wasps\", 5, 1, 5], [\"Bath\", 4, 1, 12], [\"Sale\", 1, 0, -5], [\"Leeds\", 1, 0, -12]], \"passed\": true}, {\"check\": \"regression: table tiebreak order\", \"actual\": [[\"Bath\", 8, 2, 11], [\"Wasps\", 8, 1, 23], [\"Sale\", 6, 0, -34]], \"expected\": [[\"Bath\", 8, 2, 11], [\"Wasps\", 8, 1, 23], [\"Sale\", 6, 0, -34]], \"passed\": true}, {\"check\": \"variant scenario 1\", \"actual\": [[\"Bath\", 8, 1, 24], [\"Leeds\", 7, 1, 16], [\"Sale\", 5, 1, 4], [\"Wasps\", 1, 0, -44]], \"expected\": [[\"Bath\", 8, 1, 24], [\"Leeds\", 7, 1, 16], [\"Sale\", 5, 1, 4], [\"Wasps\", 1, 0, -44]], \"passed\": true}, {\"check\": \"variant scenario 2\", \"actual\": [[\"Leeds\", 14, 3, 42], [\"Sale\", 4, 1, -13], [\"Bath\", 1, 0, -7], [\"Wasps\", 1, 0, -22]], \"expected\": [[\"Leeds\", 14, 3, 42], [\"Sale\", 4, 1, -13], [\"Bath\", 1, 0, -7], [\"Wasps\", 1, 0, -22]], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}