{"abstract":"The exact balanced odd radix encoding result violates the stated contract at zero digit representation.","category":"Numerics","checks":8,"contract":"Input [integer, odd radix>=3]; return least-significant-first balanced digits between -(base//2) and base//2, zero=[0]. Bounds: |integer|<=100 and radix<=9.","evaluation_group":"s3-numerics-balanced-odd-radix-encoding","failed_approach":"The partial repair [b] still violates the zero digit representation invariant.","family":"s3-numerics-balanced-odd-radix-encoding-zero-digit-representation","id":"FA-15016","implementations":{"attempt":{"sha256":"919584ebcdd898f6b56b577f0145506f96a8aecf5b10e606e3286ba9df18df64","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport itertools\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    n,b=x\n    if n==0:return [b]\n    out=[];half=b//2\n    for _ in range(60):\n     if n==0:break\n     r=n%b\n     if r>half:r-=b\n     out.append(r)\n     n=(n-r)//b\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([0, 3], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-100, 5], [0, 0, 1, -1]), ([-100, 7], [-2, 0, -2]), ([-100, 9], [-1, -2, -1]), ([-99, 3], [0, 0, 1, -1, -1]), ([-99, 5], [1, 0, 1, -1])], [([0, 5], [0]), ([0, 9], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-96, 5], [-1, 1, 1, -1]), ([-96, 7], [2, 0, -2]), ([-96, 9], [3, -2, -1]), ([-95, 3], [1, 1, 1, -1, -1])], [([0, 7], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-92, 7], [-1, 1, -2]), ([-92, 9], [-2, -1, -1]), ([-91, 3], [-1, 0, -1, 0, -1]), ([-91, 5], [-1, 2, 1, -1]), ([-91, 7], [0, 1, -2])], [([0, 9], [0]), ([0, 5], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-88, 9], [2, -1, -1]), ([-87, 3], [0, 1, -1, 0, -1]), ([-87, 5], [-2, -2, 2, -1]), ([-87, 7], [-3, 2, -2])], [([0, 3], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-83, 3], [1, -1, 0, 0, -1]), ([-83, 5], [2, -2, 2, -1]), ([-83, 7], [1, 2, -2]), ([-83, 9], [-2, 0, -1]), ([-82, 3], [-1, 0, 0, 0, -1])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"explicit oracle %d\" % i, 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":"566a8d865a812adcdc3558ca20f76ae13dfc82972daf68b28699216a2a75b04e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport itertools\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    n,b=x\n    if n==0:return []\n    out=[];half=b//2\n    for _ in range(60):\n     if n==0:break\n     r=n%b\n     if r>half:r-=b\n     out.append(r)\n     n=(n-r)//b\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([0, 3], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-100, 5], [0, 0, 1, -1]), ([-100, 7], [-2, 0, -2]), ([-100, 9], [-1, -2, -1]), ([-99, 3], [0, 0, 1, -1, -1]), ([-99, 5], [1, 0, 1, -1])], [([0, 5], [0]), ([0, 9], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-96, 5], [-1, 1, 1, -1]), ([-96, 7], [2, 0, -2]), ([-96, 9], [3, -2, -1]), ([-95, 3], [1, 1, 1, -1, -1])], [([0, 7], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-92, 7], [-1, 1, -2]), ([-92, 9], [-2, -1, -1]), ([-91, 3], [-1, 0, -1, 0, -1]), ([-91, 5], [-1, 2, 1, -1]), ([-91, 7], [0, 1, -2])], [([0, 9], [0]), ([0, 5], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-88, 9], [2, -1, -1]), ([-87, 3], [0, 1, -1, 0, -1]), ([-87, 5], [-2, -2, 2, -1]), ([-87, 7], [-3, 2, -2])], [([0, 3], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-83, 3], [1, -1, 0, 0, -1]), ([-83, 5], [2, -2, 2, -1]), ([-83, 7], [1, 2, -2]), ([-83, 9], [-2, 0, -1]), ([-82, 3], [-1, 0, 0, 0, -1])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"explicit oracle %d\" % i, 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":"58fcb87233389e8ce7fde9c1c370cbf13d0cafe67d0e7473962e2a124debad32","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport itertools\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    n,b=x\n    if n==0:return [0]\n    out=[];half=b//2\n    for _ in range(60):\n     if n==0:break\n     r=n%b\n     if r>half:r-=b\n     out.append(r)\n     n=(n-r)//b\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([0, 3], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-100, 5], [0, 0, 1, -1]), ([-100, 7], [-2, 0, -2]), ([-100, 9], [-1, -2, -1]), ([-99, 3], [0, 0, 1, -1, -1]), ([-99, 5], [1, 0, 1, -1])], [([0, 5], [0]), ([0, 9], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-96, 5], [-1, 1, 1, -1]), ([-96, 7], [2, 0, -2]), ([-96, 9], [3, -2, -1]), ([-95, 3], [1, 1, 1, -1, -1])], [([0, 7], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-92, 7], [-1, 1, -2]), ([-92, 9], [-2, -1, -1]), ([-91, 3], [-1, 0, -1, 0, -1]), ([-91, 5], [-1, 2, 1, -1]), ([-91, 7], [0, 1, -2])], [([0, 9], [0]), ([0, 5], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-88, 9], [2, -1, -1]), ([-87, 3], [0, 1, -1, 0, -1]), ([-87, 5], [-2, -2, 2, -1]), ([-87, 7], [-3, 2, -2])], [([0, 3], [0]), ([-100, 3], [-1, 0, 1, -1, -1]), ([100, 9], [1, 2, 1]), ([-83, 3], [1, -1, 0, 0, -1]), ([-83, 5], [2, -2, 2, -1]), ([-83, 7], [1, 2, -2]), ([-83, 9], [-2, 0, -1]), ([-82, 3], [-1, 0, 0, 0, -1])]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"explicit oracle %d\" % i, 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 bounded teaching model. Inputs are restricted to the explicit contract; this is not a production algebra library. 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":"s3-numerics-balanced-odd-radix-encoding-zero-digit-representation","generated_at":"2026-09-29T14:39:22.598024+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Exact discrete arithmetic with observable algorithmic state; no floating point approximation is used.","repair":"Use [0] at the zero digit representation step.","root_cause":"The zero digit representation step uses [] instead of [0].","sha256":"f4146ee188454e0c8f5633943e778c9ab55b2cc549e47e45769efaadf7c895bf","title":"Balanced odd radix encoding: zero digit representation · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":43.821,"exit_code":1,"observations":[{"actual":[3],"check":"explicit oracle 0","expected":[0],"passed":false},{"actual":[-1,0,1,-1,-1],"check":"explicit oracle 1","expected":[-1,0,1,-1,-1],"passed":true},{"actual":[1,2,1],"check":"explicit oracle 2","expected":[1,2,1],"passed":true},{"actual":[0,0,1,-1],"check":"explicit oracle 3","expected":[0,0,1,-1],"passed":true},{"actual":[-2,0,-2],"check":"explicit oracle 4","expected":[-2,0,-2],"passed":true},{"actual":[-1,-2,-1],"check":"explicit oracle 5","expected":[-1,-2,-1],"passed":true},{"actual":[0,0,1,-1,-1],"check":"explicit oracle 6","expected":[0,0,1,-1,-1],"passed":true},{"actual":[1,0,1,-1],"check":"explicit oracle 7","expected":[1,0,1,-1],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": [3], \"expected\": [0], \"passed\": false}, {\"check\": \"explicit oracle 1\", \"actual\": [-1, 0, 1, -1, -1], \"expected\": [-1, 0, 1, -1, -1], \"passed\": true}, {\"check\": \"explicit oracle 2\", \"actual\": [1, 2, 1], \"expected\": [1, 2, 1], \"passed\": true}, {\"check\": \"explicit oracle 3\", \"actual\": [0, 0, 1, -1], \"expected\": [0, 0, 1, -1], \"passed\": true}, {\"check\": \"explicit oracle 4\", \"actual\": [-2, 0, -2], \"expected\": [-2, 0, -2], \"passed\": true}, {\"check\": \"explicit oracle 5\", \"actual\": [-1, -2, -1], \"expected\": [-1, -2, -1], \"passed\": true}, {\"check\": \"explicit oracle 6\", \"actual\": [0, 0, 1, -1, -1], \"expected\": [0, 0, 1, -1, -1], \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": [1, 0, 1, -1], \"expected\": [1, 0, 1, -1], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.55,"exit_code":1,"observations":[{"actual":[],"check":"explicit oracle 0","expected":[0],"passed":false},{"actual":[-1,0,1,-1,-1],"check":"explicit oracle 1","expected":[-1,0,1,-1,-1],"passed":true},{"actual":[1,2,1],"check":"explicit oracle 2","expected":[1,2,1],"passed":true},{"actual":[0,0,1,-1],"check":"explicit oracle 3","expected":[0,0,1,-1],"passed":true},{"actual":[-2,0,-2],"check":"explicit oracle 4","expected":[-2,0,-2],"passed":true},{"actual":[-1,-2,-1],"check":"explicit oracle 5","expected":[-1,-2,-1],"passed":true},{"actual":[0,0,1,-1,-1],"check":"explicit oracle 6","expected":[0,0,1,-1,-1],"passed":true},{"actual":[1,0,1,-1],"check":"explicit oracle 7","expected":[1,0,1,-1],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": [], \"expected\": [0], \"passed\": false}, {\"check\": \"explicit oracle 1\", \"actual\": [-1, 0, 1, -1, -1], \"expected\": [-1, 0, 1, -1, -1], \"passed\": true}, {\"check\": \"explicit oracle 2\", \"actual\": [1, 2, 1], \"expected\": [1, 2, 1], \"passed\": true}, {\"check\": \"explicit oracle 3\", \"actual\": [0, 0, 1, -1], \"expected\": [0, 0, 1, -1], \"passed\": true}, {\"check\": \"explicit oracle 4\", \"actual\": [-2, 0, -2], \"expected\": [-2, 0, -2], \"passed\": true}, {\"check\": \"explicit oracle 5\", \"actual\": [-1, -2, -1], \"expected\": [-1, -2, -1], \"passed\": true}, {\"check\": \"explicit oracle 6\", \"actual\": [0, 0, 1, -1, -1], \"expected\": [0, 0, 1, -1, -1], \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": [1, 0, 1, -1], \"expected\": [1, 0, 1, -1], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.705,"exit_code":0,"observations":[{"actual":[0],"check":"explicit oracle 0","expected":[0],"passed":true},{"actual":[-1,0,1,-1,-1],"check":"explicit oracle 1","expected":[-1,0,1,-1,-1],"passed":true},{"actual":[1,2,1],"check":"explicit oracle 2","expected":[1,2,1],"passed":true},{"actual":[0,0,1,-1],"check":"explicit oracle 3","expected":[0,0,1,-1],"passed":true},{"actual":[-2,0,-2],"check":"explicit oracle 4","expected":[-2,0,-2],"passed":true},{"actual":[-1,-2,-1],"check":"explicit oracle 5","expected":[-1,-2,-1],"passed":true},{"actual":[0,0,1,-1,-1],"check":"explicit oracle 6","expected":[0,0,1,-1,-1],"passed":true},{"actual":[1,0,1,-1],"check":"explicit oracle 7","expected":[1,0,1,-1],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit oracle 0\", \"actual\": [0], \"expected\": [0], \"passed\": true}, {\"check\": \"explicit oracle 1\", \"actual\": [-1, 0, 1, -1, -1], \"expected\": [-1, 0, 1, -1, -1], \"passed\": true}, {\"check\": \"explicit oracle 2\", \"actual\": [1, 2, 1], \"expected\": [1, 2, 1], \"passed\": true}, {\"check\": \"explicit oracle 3\", \"actual\": [0, 0, 1, -1], \"expected\": [0, 0, 1, -1], \"passed\": true}, {\"check\": \"explicit oracle 4\", \"actual\": [-2, 0, -2], \"expected\": [-2, 0, -2], \"passed\": true}, {\"check\": \"explicit oracle 5\", \"actual\": [-1, -2, -1], \"expected\": [-1, -2, -1], \"passed\": true}, {\"check\": \"explicit oracle 6\", \"actual\": [0, 0, 1, -1, -1], \"expected\": [0, 0, 1, -1, -1], \"passed\": true}, {\"check\": \"explicit oracle 7\", \"actual\": [1, 0, 1, -1], \"expected\": [1, 0, 1, -1], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}