{"abstract":"Ace-high hands are scored as strong lows and beat seven-lows or king-lows.","category":"Poker hand evaluation","checks":8,"contract":"Input: [hand_a, hand_b] five distinct cards each. Deuce-to-seven lowball: aces are always high, A-2-3-4-5 is not a straight, straights and flushes count against the hand, and the standard high-hand ordering is inverted so the weaker high hand wins. Return 1 if hand_a wins, -1 if hand_b wins, 0 for a tie.","evaluation_group":"w2-poker_hand_evaluation-deuce-to-seven-lowball","failed_approach":"Sorting ascending keeps the ace high but compares hands from their lowest card and disables straights.","family":"w2-poker_hand_evaluation-deuce-to-seven-lowball-ace-always-high","id":"FA-82091","implementations":{"attempt":{"sha256":"ab0780e54d52c74ccd17eec39be01368a3d26368c223603df374ba7254055bf4","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport collections\nN = 1\nobservations = []\ndef solve(x):\n    R='23456789TJQKA'\n    def key(h):\n        vals=sorted((R.index(c[0])+2 for c in h))\n        cnt=collections.Counter(vals)\n        order=sorted(cnt, key=lambda v:(cnt[v],v), reverse=True)\n        shape=sorted(cnt.values(), reverse=True)\n        straight=len(cnt)==5 and vals[0]-vals[4]==4\n        flush=len({c[1] for c in h})==1\n        if straight and flush: return (8,vals)\n        if shape==[4,1]: return (7,order)\n        if shape==[3,2]: return (6,order)\n        if flush: return (5,vals)\n        if straight: return (4,vals)\n        if shape==[3,1,1]: return (3,order)\n        if shape==[2,2,1]: return (2,order)\n        if shape==[2,1,1,1]: return (1,order)\n        return (0,vals)\n    ka,kb=key(x[0]),key(x[1])\n    if ka==kb: return 0\n    return 1 if ka<kb else -1\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('number one vs wheel', [['7h', '5d', '4c', '3s', '2h'], ['Ah', '2d', '3c', '4s', '5h']], 1),\n  ('wheel is ace high', [['Ah', '2d', '3c', '4s', '5h'], ['Kh', 'Qd', 'Jc', '9s', '8h']], -1),\n  ('seven low vs eight low', [['8h', '6d', '4c', '3s', '2h'], ['7c', '6h', '4d', '3c', '2d']], -1),\n  ('flush counts against', [['2h', '4h', '5h', '6h', '8h'], ['9c', '6d', '4d', '3c', '2d']], -1),\n  ('straight counts against', [['3h', '4d', '5c', '6s', '7h'], ['Kh', 'Qd', 'Jc', '9s', '7c']], -1),\n  ('pair loses to king high', [['2h', '2d', '4c', '5s', '7h'], ['Kh', '8d', '6c', '4s', '3h']], -1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1)],\n [('straight counts against', [['3h', '4d', '5c', '6s', '7h'], ['Kh', 'Qd', 'Jc', '9s', '7c']], -1),\n  ('pair loses to king high', [['2h', '2d', '4c', '5s', '7h'], ['Kh', '8d', '6c', '4s', '3h']], -1),\n  ('ace-king gap hand', [['Ah', 'Kd', '7c', '4s', '2h'], ['Qh', 'Jd', 'Tc', '8s', '6h']], -1),\n  ('tie', [['7h', '5d', '4c', '3s', '2h'], ['7c', '5h', '4d', '3c', '2d']], 0),\n  ('ace high vs pair', [['Ah', 'Qd', '9c', '7s', '5h'], ['3h', '3d', '6c', '5s', '4h']], 1),\n  ('both pairs lower pair wins', [['4h', '4d', 'Kc', 'Qs', 'Jh'], ['5h', '5d', '2c', '3s', '7h']],\n   1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1)],\n [('wheel is ace high', [['Ah', '2d', '3c', '4s', '5h'], ['Kh', 'Qd', 'Jc', '9s', '8h']], -1),\n  ('ace-king gap hand', [['Ah', 'Kd', '7c', '4s', '2h'], ['Qh', 'Jd', 'Tc', '8s', '6h']], -1),\n  ('straight flush vs flush', [['2c', '3c', '4c', '5c', '6c'], ['9d', '7d', '5d', '3d', '2d']], -1),\n  ('both pairs lower pair wins', [['4h', '4d', 'Kc', 'Qs', 'Jh'], ['5h', '5d', '2c', '3s', '7h']],\n   1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace-deuce span vs pair', [['Ah', 'Jd', '8c', '6s', '2h'], ['4h', '4d', '6d', '8d', '9s']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1),\n  ('second tie', [['Kh', 'Jd', '9c', '6s', '3h'], ['Kc', 'Jh', '9d', '6c', '3d']], 0)],\n [('number one vs wheel', [['7h', '5d', '4c', '3s', '2h'], ['Ah', '2d', '3c', '4s', '5h']], 1),\n  ('wheel is ace high', [['Ah', '2d', '3c', '4s', '5h'], ['Kh', 'Qd', 'Jc', '9s', '8h']], -1),\n  ('straight counts against', [['3h', '4d', '5c', '6s', '7h'], ['Kh', 'Qd', 'Jc', '9s', '7c']], -1),\n  ('ace-king gap hand', [['Ah', 'Kd', '7c', '4s', '2h'], ['Qh', 'Jd', 'Tc', '8s', '6h']], -1),\n  ('straight flush vs flush', [['2c', '3c', '4c', '5c', '6c'], ['9d', '7d', '5d', '3d', '2d']], -1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1),\n  ('nine vs ten', [['9h', '7d', '5c', '3s', '2h'], ['Th', '4d', '3c', '6s', '2c']], 1)],\n [('number one vs wheel', [['7h', '5d', '4c', '3s', '2h'], ['Ah', '2d', '3c', '4s', '5h']], 1),\n  ('seven low vs eight low', [['8h', '6d', '4c', '3s', '2h'], ['7c', '6h', '4d', '3c', '2d']], -1),\n  ('flush counts against', [['2h', '4h', '5h', '6h', '8h'], ['9c', '6d', '4d', '3c', '2d']], -1),\n  ('pair loses to king high', [['2h', '2d', '4c', '5s', '7h'], ['Kh', '8d', '6c', '4s', '3h']], -1),\n  ('straight flush vs flush', [['2c', '3c', '4c', '5c', '6c'], ['9d', '7d', '5d', '3d', '2d']], -1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1),\n  ('nine vs ten', [['9h', '7d', '5c', '3s', '2h'], ['Th', '4d', '3c', '6s', '2c']], 1)]]\nfor label, args, expected in fixtures[N-1]:\n    try:\n        actual = solve(args)\n    except Exception as exc:\n        actual = 'error:' + type(exc).__name__\n    check(label, actual, 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":"3e48f128b8a9af16dde6c54e2fc5d66e3374ecbe232faa2d9d7f9300bff5c20a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport collections\nN = 1\nobservations = []\ndef solve(x):\n    R='23456789TJQKA'\n    def key(h):\n        vals=sorted((1 if c[0]=='A' else R.index(c[0])+2 for c in h), reverse=True)\n        cnt=collections.Counter(vals)\n        order=sorted(cnt, key=lambda v:(cnt[v],v), reverse=True)\n        shape=sorted(cnt.values(), reverse=True)\n        straight=len(cnt)==5 and vals[0]-vals[4]==4\n        flush=len({c[1] for c in h})==1\n        if straight and flush: return (8,vals)\n        if shape==[4,1]: return (7,order)\n        if shape==[3,2]: return (6,order)\n        if flush: return (5,vals)\n        if straight: return (4,vals)\n        if shape==[3,1,1]: return (3,order)\n        if shape==[2,2,1]: return (2,order)\n        if shape==[2,1,1,1]: return (1,order)\n        return (0,vals)\n    ka,kb=key(x[0]),key(x[1])\n    if ka==kb: return 0\n    return 1 if ka<kb else -1\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('number one vs wheel', [['7h', '5d', '4c', '3s', '2h'], ['Ah', '2d', '3c', '4s', '5h']], 1),\n  ('wheel is ace high', [['Ah', '2d', '3c', '4s', '5h'], ['Kh', 'Qd', 'Jc', '9s', '8h']], -1),\n  ('seven low vs eight low', [['8h', '6d', '4c', '3s', '2h'], ['7c', '6h', '4d', '3c', '2d']], -1),\n  ('flush counts against', [['2h', '4h', '5h', '6h', '8h'], ['9c', '6d', '4d', '3c', '2d']], -1),\n  ('straight counts against', [['3h', '4d', '5c', '6s', '7h'], ['Kh', 'Qd', 'Jc', '9s', '7c']], -1),\n  ('pair loses to king high', [['2h', '2d', '4c', '5s', '7h'], ['Kh', '8d', '6c', '4s', '3h']], -1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1)],\n [('straight counts against', [['3h', '4d', '5c', '6s', '7h'], ['Kh', 'Qd', 'Jc', '9s', '7c']], -1),\n  ('pair loses to king high', [['2h', '2d', '4c', '5s', '7h'], ['Kh', '8d', '6c', '4s', '3h']], -1),\n  ('ace-king gap hand', [['Ah', 'Kd', '7c', '4s', '2h'], ['Qh', 'Jd', 'Tc', '8s', '6h']], -1),\n  ('tie', [['7h', '5d', '4c', '3s', '2h'], ['7c', '5h', '4d', '3c', '2d']], 0),\n  ('ace high vs pair', [['Ah', 'Qd', '9c', '7s', '5h'], ['3h', '3d', '6c', '5s', '4h']], 1),\n  ('both pairs lower pair wins', [['4h', '4d', 'Kc', 'Qs', 'Jh'], ['5h', '5d', '2c', '3s', '7h']],\n   1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1)],\n [('wheel is ace high', [['Ah', '2d', '3c', '4s', '5h'], ['Kh', 'Qd', 'Jc', '9s', '8h']], -1),\n  ('ace-king gap hand', [['Ah', 'Kd', '7c', '4s', '2h'], ['Qh', 'Jd', 'Tc', '8s', '6h']], -1),\n  ('straight flush vs flush', [['2c', '3c', '4c', '5c', '6c'], ['9d', '7d', '5d', '3d', '2d']], -1),\n  ('both pairs lower pair wins', [['4h', '4d', 'Kc', 'Qs', 'Jh'], ['5h', '5d', '2c', '3s', '7h']],\n   1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace-deuce span vs pair', [['Ah', 'Jd', '8c', '6s', '2h'], ['4h', '4d', '6d', '8d', '9s']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1),\n  ('second tie', [['Kh', 'Jd', '9c', '6s', '3h'], ['Kc', 'Jh', '9d', '6c', '3d']], 0)],\n [('number one vs wheel', [['7h', '5d', '4c', '3s', '2h'], ['Ah', '2d', '3c', '4s', '5h']], 1),\n  ('wheel is ace high', [['Ah', '2d', '3c', '4s', '5h'], ['Kh', 'Qd', 'Jc', '9s', '8h']], -1),\n  ('straight counts against', [['3h', '4d', '5c', '6s', '7h'], ['Kh', 'Qd', 'Jc', '9s', '7c']], -1),\n  ('ace-king gap hand', [['Ah', 'Kd', '7c', '4s', '2h'], ['Qh', 'Jd', 'Tc', '8s', '6h']], -1),\n  ('straight flush vs flush', [['2c', '3c', '4c', '5c', '6c'], ['9d', '7d', '5d', '3d', '2d']], -1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1),\n  ('nine vs ten', [['9h', '7d', '5c', '3s', '2h'], ['Th', '4d', '3c', '6s', '2c']], 1)],\n [('number one vs wheel', [['7h', '5d', '4c', '3s', '2h'], ['Ah', '2d', '3c', '4s', '5h']], 1),\n  ('seven low vs eight low', [['8h', '6d', '4c', '3s', '2h'], ['7c', '6h', '4d', '3c', '2d']], -1),\n  ('flush counts against', [['2h', '4h', '5h', '6h', '8h'], ['9c', '6d', '4d', '3c', '2d']], -1),\n  ('pair loses to king high', [['2h', '2d', '4c', '5s', '7h'], ['Kh', '8d', '6c', '4s', '3h']], -1),\n  ('straight flush vs flush', [['2c', '3c', '4c', '5c', '6c'], ['9d', '7d', '5d', '3d', '2d']], -1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1),\n  ('nine vs ten', [['9h', '7d', '5c', '3s', '2h'], ['Th', '4d', '3c', '6s', '2c']], 1)]]\nfor label, args, expected in fixtures[N-1]:\n    try:\n        actual = solve(args)\n    except Exception as exc:\n        actual = 'error:' + type(exc).__name__\n    check(label, actual, 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":"65320d5553373dc0ce49affaa6df452aad9161b66555ce619e192f4d4d89c726","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport collections\nN = 1\nobservations = []\ndef solve(x):\n    R='23456789TJQKA'\n    def key(h):\n        vals=sorted((R.index(c[0])+2 for c in h), reverse=True)\n        cnt=collections.Counter(vals)\n        order=sorted(cnt, key=lambda v:(cnt[v],v), reverse=True)\n        shape=sorted(cnt.values(), reverse=True)\n        straight=len(cnt)==5 and vals[0]-vals[4]==4\n        flush=len({c[1] for c in h})==1\n        if straight and flush: return (8,vals)\n        if shape==[4,1]: return (7,order)\n        if shape==[3,2]: return (6,order)\n        if flush: return (5,vals)\n        if straight: return (4,vals)\n        if shape==[3,1,1]: return (3,order)\n        if shape==[2,2,1]: return (2,order)\n        if shape==[2,1,1,1]: return (1,order)\n        return (0,vals)\n    ka,kb=key(x[0]),key(x[1])\n    if ka==kb: return 0\n    return 1 if ka<kb else -1\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('number one vs wheel', [['7h', '5d', '4c', '3s', '2h'], ['Ah', '2d', '3c', '4s', '5h']], 1),\n  ('wheel is ace high', [['Ah', '2d', '3c', '4s', '5h'], ['Kh', 'Qd', 'Jc', '9s', '8h']], -1),\n  ('seven low vs eight low', [['8h', '6d', '4c', '3s', '2h'], ['7c', '6h', '4d', '3c', '2d']], -1),\n  ('flush counts against', [['2h', '4h', '5h', '6h', '8h'], ['9c', '6d', '4d', '3c', '2d']], -1),\n  ('straight counts against', [['3h', '4d', '5c', '6s', '7h'], ['Kh', 'Qd', 'Jc', '9s', '7c']], -1),\n  ('pair loses to king high', [['2h', '2d', '4c', '5s', '7h'], ['Kh', '8d', '6c', '4s', '3h']], -1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1)],\n [('straight counts against', [['3h', '4d', '5c', '6s', '7h'], ['Kh', 'Qd', 'Jc', '9s', '7c']], -1),\n  ('pair loses to king high', [['2h', '2d', '4c', '5s', '7h'], ['Kh', '8d', '6c', '4s', '3h']], -1),\n  ('ace-king gap hand', [['Ah', 'Kd', '7c', '4s', '2h'], ['Qh', 'Jd', 'Tc', '8s', '6h']], -1),\n  ('tie', [['7h', '5d', '4c', '3s', '2h'], ['7c', '5h', '4d', '3c', '2d']], 0),\n  ('ace high vs pair', [['Ah', 'Qd', '9c', '7s', '5h'], ['3h', '3d', '6c', '5s', '4h']], 1),\n  ('both pairs lower pair wins', [['4h', '4d', 'Kc', 'Qs', 'Jh'], ['5h', '5d', '2c', '3s', '7h']],\n   1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1)],\n [('wheel is ace high', [['Ah', '2d', '3c', '4s', '5h'], ['Kh', 'Qd', 'Jc', '9s', '8h']], -1),\n  ('ace-king gap hand', [['Ah', 'Kd', '7c', '4s', '2h'], ['Qh', 'Jd', 'Tc', '8s', '6h']], -1),\n  ('straight flush vs flush', [['2c', '3c', '4c', '5c', '6c'], ['9d', '7d', '5d', '3d', '2d']], -1),\n  ('both pairs lower pair wins', [['4h', '4d', 'Kc', 'Qs', 'Jh'], ['5h', '5d', '2c', '3s', '7h']],\n   1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace-deuce span vs pair', [['Ah', 'Jd', '8c', '6s', '2h'], ['4h', '4d', '6d', '8d', '9s']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1),\n  ('second tie', [['Kh', 'Jd', '9c', '6s', '3h'], ['Kc', 'Jh', '9d', '6c', '3d']], 0)],\n [('number one vs wheel', [['7h', '5d', '4c', '3s', '2h'], ['Ah', '2d', '3c', '4s', '5h']], 1),\n  ('wheel is ace high', [['Ah', '2d', '3c', '4s', '5h'], ['Kh', 'Qd', 'Jc', '9s', '8h']], -1),\n  ('straight counts against', [['3h', '4d', '5c', '6s', '7h'], ['Kh', 'Qd', 'Jc', '9s', '7c']], -1),\n  ('ace-king gap hand', [['Ah', 'Kd', '7c', '4s', '2h'], ['Qh', 'Jd', 'Tc', '8s', '6h']], -1),\n  ('straight flush vs flush', [['2c', '3c', '4c', '5c', '6c'], ['9d', '7d', '5d', '3d', '2d']], -1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1),\n  ('nine vs ten', [['9h', '7d', '5c', '3s', '2h'], ['Th', '4d', '3c', '6s', '2c']], 1)],\n [('number one vs wheel', [['7h', '5d', '4c', '3s', '2h'], ['Ah', '2d', '3c', '4s', '5h']], 1),\n  ('seven low vs eight low', [['8h', '6d', '4c', '3s', '2h'], ['7c', '6h', '4d', '3c', '2d']], -1),\n  ('flush counts against', [['2h', '4h', '5h', '6h', '8h'], ['9c', '6d', '4d', '3c', '2d']], -1),\n  ('pair loses to king high', [['2h', '2d', '4c', '5s', '7h'], ['Kh', '8d', '6c', '4s', '3h']], -1),\n  ('straight flush vs flush', [['2c', '3c', '4c', '5c', '6c'], ['9d', '7d', '5d', '3d', '2d']], -1),\n  ('wheel vs pair', [['Ah', '2d', '3c', '4s', '5h'], ['3h', '3d', '6c', '8s', '9h']], 1),\n  ('ace high vs king high', [['Ah', '9d', '7c', '4s', '2h'], ['Kh', 'Qd', 'Jc', '9s', '8c']], -1),\n  ('nine vs ten', [['9h', '7d', '5c', '3s', '2h'], ['Th', '4d', '3c', '6s', '2c']], 1)]]\nfor label, args, expected in fixtures[N-1]:\n    try:\n        actual = solve(args)\n    except Exception as exc:\n        actual = 'error:' + type(exc).__name__\n    check(label, actual, 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 model with an explicitly stated contract; card strings are rank+suit (for example \"As\", \"Td\"); no claim of conformance to any casino or tournament rulebook. 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-poker_hand_evaluation-deuce-to-seven-lowball-ace-always-high","generated_at":"2026-09-29T14:50:08.881022+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Lowball variants reuse high-hand evaluators with inverted outcomes, a common source of subtle bugs.","repair":"Value the ace at 14 and sort ranks descending.","root_cause":"The ace is valued 1 as in ace-to-five, but deuce-to-seven treats it as the highest card.","sha256":"feff116b9f1f876b65599930e58215c435cb9424bcfbc5e27dbcc70335f63a88","title":"Ace played low in deuce-to-seven · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.14,"exit_code":1,"observations":[{"actual":1,"check":"number one vs wheel","expected":1,"passed":true},{"actual":1,"check":"wheel is ace high","expected":-1,"passed":false},{"actual":-1,"check":"seven low vs eight low","expected":-1,"passed":true},{"actual":-1,"check":"flush counts against","expected":-1,"passed":true},{"actual":1,"check":"straight counts against","expected":-1,"passed":false},{"actual":-1,"check":"pair loses to king high","expected":-1,"passed":true},{"actual":1,"check":"wheel vs pair","expected":1,"passed":true},{"actual":1,"check":"ace high vs king high","expected":-1,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"number one vs wheel\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"wheel is ace high\", \"actual\": 1, \"expected\": -1, \"passed\": false}, {\"check\": \"seven low vs eight low\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"flush counts against\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"straight counts against\", \"actual\": 1, \"expected\": -1, \"passed\": false}, {\"check\": \"pair loses to king high\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"wheel vs pair\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"ace high vs king high\", \"actual\": 1, \"expected\": -1, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.527,"exit_code":1,"observations":[{"actual":1,"check":"number one vs wheel","expected":1,"passed":true},{"actual":-1,"check":"wheel is ace high","expected":-1,"passed":true},{"actual":-1,"check":"seven low vs eight low","expected":-1,"passed":true},{"actual":-1,"check":"flush counts against","expected":-1,"passed":true},{"actual":-1,"check":"straight counts against","expected":-1,"passed":true},{"actual":-1,"check":"pair loses to king high","expected":-1,"passed":true},{"actual":-1,"check":"wheel vs pair","expected":1,"passed":false},{"actual":1,"check":"ace high vs king high","expected":-1,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"number one vs wheel\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"wheel is ace high\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"seven low vs eight low\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"flush counts against\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"straight counts against\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"pair loses to king high\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"wheel vs pair\", \"actual\": -1, \"expected\": 1, \"passed\": false}, {\"check\": \"ace high vs king high\", \"actual\": 1, \"expected\": -1, \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.465,"exit_code":0,"observations":[{"actual":1,"check":"number one vs wheel","expected":1,"passed":true},{"actual":-1,"check":"wheel is ace high","expected":-1,"passed":true},{"actual":-1,"check":"seven low vs eight low","expected":-1,"passed":true},{"actual":-1,"check":"flush counts against","expected":-1,"passed":true},{"actual":-1,"check":"straight counts against","expected":-1,"passed":true},{"actual":-1,"check":"pair loses to king high","expected":-1,"passed":true},{"actual":1,"check":"wheel vs pair","expected":1,"passed":true},{"actual":-1,"check":"ace high vs king high","expected":-1,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"number one vs wheel\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"wheel is ace high\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"seven low vs eight low\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"flush counts against\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"straight counts against\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"pair loses to king high\", \"actual\": -1, \"expected\": -1, \"passed\": true}, {\"check\": \"wheel vs pair\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"ace high vs king high\", \"actual\": -1, \"expected\": -1, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}