{"abstract":"Two stones of different teams at the same distance give a point to team A.","category":"Sports scoring and tiebreakers","checks":9,"contract":"Curling end result. stones rows are [team, distance_mm] from the button to the stone centre; a stone counts only if it touches the house: distance <= 1830 + 145 (house radius plus stone radius). The team with the closest counting stone scores one point for each of its counting stones strictly closer than the opponent's closest counting stone (all its counting stones if the opponent has none). If no stone counts, or the two closest counting stones of different teams are at the same distance, the end is blank and the hammer stays. After a score the hammer goes to the team that did not score. Return [scoring team or None, points, hammer for next end].","contract_signature":"stones, hammer","evaluation_group":"w2-sports-scoring-curling-end-count","failed_approach":"Awarding the tie to the hammer team is not the stated rule.","family":"w2-sports-scoring-curling-end-count-measured-tie","id":"FA-84236","implementations":{"attempt":{"sha256":"cb807ffb76e1f3ecc475d41f353b4cdfa6548b6ec5868804601e9734b3c403cb","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(stones, hammer):\n    inside = sorted((d, t) for t, d in stones if d <= 1830 + 145)\n    tie = bool(inside) and any(d == inside[0][0] and t != inside[0][1] for d, t in inside)\n    if not inside:\n        return [None, 0, hammer]\n    if tie:\n        return [hammer, 1, 'B' if hammer == 'A' else 'A']\n    best_d, team = inside[0]\n    opp = [d for d, t in inside if t != team]\n    limit = min(opp) if opp else None\n    points = sum(1 for d, t in inside if t == team and (limit is None or d < limit))\n    nxt = 'B' if team == 'A' else 'A'\n    return [team, points, nxt]\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 single shot', ([['A', 100], ['B', 400]], 'A'), ['A', 1, 'B']),\n  ('boundary stone biting house edge', ([['B', 1975]], 'A'), ['B', 1, 'A']),\n  ('boundary stone just outside', ([['B', 1976]], 'A'), [None, 0, 'A']),\n  ('control steal of two', ([['B', 50], ['B', 300], ['A', 500]], 'A'), ['B', 2, 'A']),\n  ('boundary measured tie', ([['A', 200], ['B', 200]], 'B'), [None, 0, 'B']),\n  ('control empty house', ([], 'A'), [None, 0, 'A']),\n  ('regression: measured tie',\n   ([['A', 142],\n     ['B', 2076],\n     ['A', 231],\n     ['A', 503],\n     ['B', 1837],\n     ['B', 465],\n     ['A', 455],\n     ['B', 1715],\n     ['B', 142]],\n    'B'),\n   [None, 0, 'B']),\n  ('variant scenario 1',\n   ([['B', 1754], ['B', 1853], ['A', 292], ['B', 6], ['B', 880], ['A', 1806], ['B', 1151]], 'A'),\n   ['B', 1, 'A']),\n  ('variant scenario 2', ([['B', 2023], ['B', 1835]], 'A'), ['B', 1, 'A'])],\n [('control single shot', ([['A', 100], ['B', 400]], 'A'), ['A', 1, 'B']),\n  ('boundary stone biting house edge', ([['B', 1975]], 'A'), ['B', 1, 'A']),\n  ('boundary stone just outside', ([['B', 1976]], 'A'), [None, 0, 'A']),\n  ('control steal of two', ([['B', 50], ['B', 300], ['A', 500]], 'A'), ['B', 2, 'A']),\n  ('boundary measured tie', ([['A', 200], ['B', 200]], 'B'), [None, 0, 'B']),\n  ('control empty house', ([], 'A'), [None, 0, 'A']),\n  ('regression: measured tie', ([['A', 1717], ['B', 1872], ['B', 1717]], 'A'), [None, 0, 'A']),\n  ('variant scenario 1',\n   ([['A', 1814], ['B', 340], ['A', 651], ['B', 1838], ['A', 254]], 'A'),\n   ['A', 1, 'B']),\n  ('variant scenario 2',\n   ([['A', 1746], ['A', 2081], ['B', 341], ['A', 1926]], 'B'),\n   ['B', 1, 'A'])],\n [('control single shot', ([['A', 100], ['B', 400]], 'A'), ['A', 1, 'B']),\n  ('boundary stone biting house edge', ([['B', 1975]], 'A'), ['B', 1, 'A']),\n  ('boundary stone just outside', ([['B', 1976]], 'A'), [None, 0, 'A']),\n  ('control steal of two', ([['B', 50], ['B', 300], ['A', 500]], 'A'), ['B', 2, 'A']),\n  ('boundary measured tie', ([['A', 200], ['B', 200]], 'B'), [None, 0, 'B']),\n  ('control empty house', ([], 'A'), [None, 0, 'A']),\n  ('regression: measured tie', ([['A', 501], ['B', 501]], 'A'), [None, 0, 'A']),\n  ('variant scenario 1',\n   ([['A', 1600], ['B', 569], ['B', 1676], ['B', 101], ['B', 458], ['B', 1600]], 'A'),\n   ['B', 3, 'A']),\n  ('variant scenario 2', ([['B', 1700], ['A', 1676], ['B', 15]], 'B'), ['B', 1, 'A'])],\n [('control single shot', ([['A', 100], ['B', 400]], 'A'), ['A', 1, 'B']),\n  ('boundary stone biting house edge', ([['B', 1975]], 'A'), ['B', 1, 'A']),\n  ('boundary stone just outside', ([['B', 1976]], 'A'), [None, 0, 'A']),\n  ('control steal of two', ([['B', 50], ['B', 300], ['A', 500]], 'A'), ['B', 2, 'A']),\n  ('boundary measured tie', ([['A', 200], ['B', 200]], 'B'), [None, 0, 'B']),\n  ('control empty house', ([], 'A'), [None, 0, 'A']),\n  ('regression: measured tie', ([['A', 13], ['B', 13]], 'B'), [None, 0, 'B']),\n  ('variant scenario 1', ([['A', 627], ['A', 2084]], 'B'), ['A', 1, 'B']),\n  ('variant scenario 2', ([['A', 343], ['A', 1779], ['A', 2240]], 'B'), ['A', 2, 'B'])],\n [('control single shot', ([['A', 100], ['B', 400]], 'A'), ['A', 1, 'B']),\n  ('boundary stone biting house edge', ([['B', 1975]], 'A'), ['B', 1, 'A']),\n  ('boundary stone just outside', ([['B', 1976]], 'A'), [None, 0, 'A']),\n  ('control steal of two', ([['B', 50], ['B', 300], ['A', 500]], 'A'), ['B', 2, 'A']),\n  ('boundary measured tie', ([['A', 200], ['B', 200]], 'B'), [None, 0, 'B']),\n  ('control empty house', ([], 'A'), [None, 0, 'A']),\n  ('regression: measured tie', ([['B', 1805], ['A', 1805]], 'A'), [None, 0, 'A']),\n  ('variant scenario 1',\n   ([['B', 1763], ['A', 883], ['B', 131], ['A', 418], ['B', 1450]], 'A'),\n   ['B', 1, 'A']),\n  ('variant scenario 2', ([['A', 134], ['B', 1848], ['A', 20]], 'B'), ['A', 2, 'B'])]]\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":"dfee68a7bbc21316ddc6b43e1a7827df1a0e8e60cfe74bd45f3689a2715afabc","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(stones, hammer):\n    inside = sorted((d, t) for t, d in stones if d <= 1830 + 145)\n    tie = bool(inside) and any(d == inside[0][0] and t != inside[0][1] for d, t in inside)\n    if not inside:\n        return [None, 0, hammer]\n    best_d, team = inside[0]\n    opp = [d for d, t in inside if t != team]\n    limit = min(opp) if opp else None\n    points = sum(1 for d, t in inside if t == team and (limit is None or d < limit))\n    nxt = 'B' if team == 'A' else 'A'\n    return [team, points, nxt]\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 single shot', ([['A', 100], ['B', 400]], 'A'), ['A', 1, 'B']),\n  ('boundary stone biting house edge', ([['B', 1975]], 'A'), ['B', 1, 'A']),\n  ('boundary stone just outside', ([['B', 1976]], 'A'), [None, 0, 'A']),\n  ('control steal of two', ([['B', 50], ['B', 300], ['A', 500]], 'A'), ['B', 2, 'A']),\n  ('boundary measured tie', ([['A', 200], ['B', 200]], 'B'), [None, 0, 'B']),\n  ('control empty house', ([], 'A'), [None, 0, 'A']),\n  ('regression: measured tie',\n   ([['A', 142],\n     ['B', 2076],\n     ['A', 231],\n     ['A', 503],\n     ['B', 1837],\n     ['B', 465],\n     ['A', 455],\n     ['B', 1715],\n     ['B', 142]],\n    'B'),\n   [None, 0, 'B']),\n  ('variant scenario 1',\n   ([['B', 1754], ['B', 1853], ['A', 292], ['B', 6], ['B', 880], ['A', 1806], ['B', 1151]], 'A'),\n   ['B', 1, 'A']),\n  ('variant scenario 2', ([['B', 2023], ['B', 1835]], 'A'), ['B', 1, 'A'])],\n [('control single shot', ([['A', 100], ['B', 400]], 'A'), ['A', 1, 'B']),\n  ('boundary stone biting house edge', ([['B', 1975]], 'A'), ['B', 1, 'A']),\n  ('boundary stone just outside', ([['B', 1976]], 'A'), [None, 0, 'A']),\n  ('control steal of two', ([['B', 50], ['B', 300], ['A', 500]], 'A'), ['B', 2, 'A']),\n  ('boundary measured tie', ([['A', 200], ['B', 200]], 'B'), [None, 0, 'B']),\n  ('control empty house', ([], 'A'), [None, 0, 'A']),\n  ('regression: measured tie', ([['A', 1717], ['B', 1872], ['B', 1717]], 'A'), [None, 0, 'A']),\n  ('variant scenario 1',\n   ([['A', 1814], ['B', 340], ['A', 651], ['B', 1838], ['A', 254]], 'A'),\n   ['A', 1, 'B']),\n  ('variant scenario 2',\n   ([['A', 1746], ['A', 2081], ['B', 341], ['A', 1926]], 'B'),\n   ['B', 1, 'A'])],\n [('control single shot', ([['A', 100], ['B', 400]], 'A'), ['A', 1, 'B']),\n  ('boundary stone biting house edge', ([['B', 1975]], 'A'), ['B', 1, 'A']),\n  ('boundary stone just outside', ([['B', 1976]], 'A'), [None, 0, 'A']),\n  ('control steal of two', ([['B', 50], ['B', 300], ['A', 500]], 'A'), ['B', 2, 'A']),\n  ('boundary measured tie', ([['A', 200], ['B', 200]], 'B'), [None, 0, 'B']),\n  ('control empty house', ([], 'A'), [None, 0, 'A']),\n  ('regression: measured tie', ([['A', 501], ['B', 501]], 'A'), [None, 0, 'A']),\n  ('variant scenario 1',\n   ([['A', 1600], ['B', 569], ['B', 1676], ['B', 101], ['B', 458], ['B', 1600]], 'A'),\n   ['B', 3, 'A']),\n  ('variant scenario 2', ([['B', 1700], ['A', 1676], ['B', 15]], 'B'), ['B', 1, 'A'])],\n [('control single shot', ([['A', 100], ['B', 400]], 'A'), ['A', 1, 'B']),\n  ('boundary stone biting house edge', ([['B', 1975]], 'A'), ['B', 1, 'A']),\n  ('boundary stone just outside', ([['B', 1976]], 'A'), [None, 0, 'A']),\n  ('control steal of two', ([['B', 50], ['B', 300], ['A', 500]], 'A'), ['B', 2, 'A']),\n  ('boundary measured tie', ([['A', 200], ['B', 200]], 'B'), [None, 0, 'B']),\n  ('control empty house', ([], 'A'), [None, 0, 'A']),\n  ('regression: measured tie', ([['A', 13], ['B', 13]], 'B'), [None, 0, 'B']),\n  ('variant scenario 1', ([['A', 627], ['A', 2084]], 'B'), ['A', 1, 'B']),\n  ('variant scenario 2', ([['A', 343], ['A', 1779], ['A', 2240]], 'B'), ['A', 2, 'B'])],\n [('control single shot', ([['A', 100], ['B', 400]], 'A'), ['A', 1, 'B']),\n  ('boundary stone biting house edge', ([['B', 1975]], 'A'), ['B', 1, 'A']),\n  ('boundary stone just outside', ([['B', 1976]], 'A'), [None, 0, 'A']),\n  ('control steal of two', ([['B', 50], ['B', 300], ['A', 500]], 'A'), ['B', 2, 'A']),\n  ('boundary measured tie', ([['A', 200], ['B', 200]], 'B'), [None, 0, 'B']),\n  ('control empty house', ([], 'A'), [None, 0, 'A']),\n  ('regression: measured tie', ([['B', 1805], ['A', 1805]], 'A'), [None, 0, 'A']),\n  ('variant scenario 1',\n   ([['B', 1763], ['A', 883], ['B', 131], ['A', 418], ['B', 1450]], 'A'),\n   ['B', 1, 'A']),\n  ('variant scenario 2', ([['A', 134], ['B', 1848], ['A', 20]], 'B'), ['A', 2, 'B'])]]\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-curling-end-count-measured-tie","generated_at":"2026-09-29T14:50:29.092597+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Curling scoreboards compute end scores and hammer possession from measured stone positions.","root_cause":"There is no tie check; the sort order silently picks a winner.","sha256":"8b5bbcde57dee47cafaa4854046c6d85d33daaefed87b9fa9713384cd4b723f6","title":"Equidistant shot stones awarded to one team · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":39.972,"exit_code":1,"observations":[{"actual":["A",1,"B"],"check":"control single shot","expected":["A",1,"B"],"passed":true},{"actual":["B",1,"A"],"check":"boundary stone biting house edge","expected":["B",1,"A"],"passed":true},{"actual":[null,0,"A"],"check":"boundary stone just outside","expected":[null,0,"A"],"passed":true},{"actual":["B",2,"A"],"check":"control steal of two","expected":["B",2,"A"],"passed":true},{"actual":["B",1,"A"],"check":"boundary measured tie","expected":[null,0,"B"],"passed":false},{"actual":[null,0,"A"],"check":"control empty house","expected":[null,0,"A"],"passed":true},{"actual":["B",1,"A"],"check":"regression: measured tie","expected":[null,0,"B"],"passed":false},{"actual":["B",1,"A"],"check":"variant scenario 1","expected":["B",1,"A"],"passed":true},{"actual":["B",1,"A"],"check":"variant scenario 2","expected":["B",1,"A"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"control single shot\", \"actual\": [\"A\", 1, \"B\"], \"expected\": [\"A\", 1, \"B\"], \"passed\": true}, {\"check\": \"boundary stone biting house edge\", \"actual\": [\"B\", 1, \"A\"], \"expected\": [\"B\", 1, \"A\"], \"passed\": true}, {\"check\": \"boundary stone just outside\", \"actual\": [null, 0, \"A\"], \"expected\": [null, 0, \"A\"], \"passed\": true}, {\"check\": \"control steal of two\", \"actual\": [\"B\", 2, \"A\"], \"expected\": [\"B\", 2, \"A\"], \"passed\": true}, {\"check\": \"boundary measured tie\", \"actual\": [\"B\", 1, \"A\"], \"expected\": [null, 0, \"B\"], \"passed\": false}, {\"check\": \"control empty house\", \"actual\": [null, 0, \"A\"], \"expected\": [null, 0, \"A\"], \"passed\": true}, {\"check\": \"regression: measured tie\", \"actual\": [\"B\", 1, \"A\"], \"expected\": [null, 0, \"B\"], \"passed\": false}, {\"check\": \"variant scenario 1\", \"actual\": [\"B\", 1, \"A\"], \"expected\": [\"B\", 1, \"A\"], \"passed\": true}, {\"check\": \"variant scenario 2\", \"actual\": [\"B\", 1, \"A\"], \"expected\": [\"B\", 1, \"A\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.353,"exit_code":1,"observations":[{"actual":["A",1,"B"],"check":"control single shot","expected":["A",1,"B"],"passed":true},{"actual":["B",1,"A"],"check":"boundary stone biting house edge","expected":["B",1,"A"],"passed":true},{"actual":[null,0,"A"],"check":"boundary stone just outside","expected":[null,0,"A"],"passed":true},{"actual":["B",2,"A"],"check":"control steal of two","expected":["B",2,"A"],"passed":true},{"actual":["A",0,"B"],"check":"boundary measured tie","expected":[null,0,"B"],"passed":false},{"actual":[null,0,"A"],"check":"control empty house","expected":[null,0,"A"],"passed":true},{"actual":["A",0,"B"],"check":"regression: measured tie","expected":[null,0,"B"],"passed":false},{"actual":["B",1,"A"],"check":"variant scenario 1","expected":["B",1,"A"],"passed":true},{"actual":["B",1,"A"],"check":"variant scenario 2","expected":["B",1,"A"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"control single shot\", \"actual\": [\"A\", 1, \"B\"], \"expected\": [\"A\", 1, \"B\"], \"passed\": true}, {\"check\": \"boundary stone biting house edge\", \"actual\": [\"B\", 1, \"A\"], \"expected\": [\"B\", 1, \"A\"], \"passed\": true}, {\"check\": \"boundary stone just outside\", \"actual\": [null, 0, \"A\"], \"expected\": [null, 0, \"A\"], \"passed\": true}, {\"check\": \"control steal of two\", \"actual\": [\"B\", 2, \"A\"], \"expected\": [\"B\", 2, \"A\"], \"passed\": true}, {\"check\": \"boundary measured tie\", \"actual\": [\"A\", 0, \"B\"], \"expected\": [null, 0, \"B\"], \"passed\": false}, {\"check\": \"control empty house\", \"actual\": [null, 0, \"A\"], \"expected\": [null, 0, \"A\"], \"passed\": true}, {\"check\": \"regression: measured tie\", \"actual\": [\"A\", 0, \"B\"], \"expected\": [null, 0, \"B\"], \"passed\": false}, {\"check\": \"variant scenario 1\", \"actual\": [\"B\", 1, \"A\"], \"expected\": [\"B\", 1, \"A\"], \"passed\": true}, {\"check\": \"variant scenario 2\", \"actual\": [\"B\", 1, \"A\"], \"expected\": [\"B\", 1, \"A\"], \"passed\": true}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}