{"abstract":"Recall denominator replaces predicted-positive count.","category":"Statistics","checks":4,"contract":"Integer finite observations and equal lengths for paired samples. Counts and weights are nonnegative. Rational results use reduced Fraction strings. Empty or undefined statistics return None where shown. tp,fp,fn are nonnegative counts; undefined zero-denominator precision returns None. Exact operational definition: str(Fraction(tp,tp+fp)) if tp+fp else None","evaluation_group":"model-bec346f027d54cd4","failed_approach":"Inverting the ratio permits precision above one.","family":"xn-binary-precision-rational","id":"FA-6271","implementations":{"attempt":{"sha256":"7034f6fbf1a1ca3c5352619e0611f4fc674e3f7621f7128f2e3fb7373e2198c0","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport calendar\nimport statistics\nimport itertools\nfrom fractions import Fraction\nfrom datetime import date, datetime, timedelta, timezone\nfrom decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR\n\nN = 1\nobservations = []\ndef solve(tp, fp, fn):\n    return str(Fraction(tp+fp,tp)) if tp else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: (3, 1, 2)', solve(*(3, 1, 2)), '3/4')\ncheck('fixture 2: (0, 2, 1)', solve(*(0, 2, 1)), '0')\ncheck('fixture 3: (0, 0, 2)', solve(*(0, 0, 2)), None)\ncheck('fixture 4: (5, 0, 1)', solve(*(5, 0, 1)), '1')\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":"d7fcdfd886f5ddb76c5cda717b7fde26ae94f96a2d7c4ebf154bc7a8375e2f8a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport calendar\nimport statistics\nimport itertools\nfrom fractions import Fraction\nfrom datetime import date, datetime, timedelta, timezone\nfrom decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR\n\nN = 1\nobservations = []\ndef solve(tp, fp, fn):\n    return str(Fraction(tp,tp+fn)) if tp+fn else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: (3, 1, 2)', solve(*(3, 1, 2)), '3/4')\ncheck('fixture 2: (0, 2, 1)', solve(*(0, 2, 1)), '0')\ncheck('fixture 3: (0, 0, 2)', solve(*(0, 0, 2)), None)\ncheck('fixture 4: (5, 0, 1)', solve(*(5, 0, 1)), '1')\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":"db7a82282b4231f4a91847ebb6d58cfc1f5474563e23a111d860b363c7463f03","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport calendar\nimport statistics\nimport itertools\nfrom fractions import Fraction\nfrom datetime import date, datetime, timedelta, timezone\nfrom decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR\n\nN = 1\nobservations = []\ndef solve(tp, fp, fn):\n    return str(Fraction(tp,tp+fp)) if tp+fp else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: (3, 1, 2)', solve(*(3, 1, 2)), '3/4')\ncheck('fixture 2: (0, 2, 1)', solve(*(0, 2, 1)), '0')\ncheck('fixture 3: (0, 0, 2)', solve(*(0, 0, 2)), None)\ncheck('fixture 4: (5, 0, 1)', solve(*(5, 0, 1)), '1')\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":" 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":"xn-binary-precision-rational","generated_at":"2026-09-29T14:37:59.558543+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Statistical estimators results depend on the stated convention.","repair":"Apply the specified mathematical contract directly, preserving all terms and boundary cases: return str(Fraction(tp,tp+fp)) if tp+fp else None","root_cause":"Recall denominator replaces predicted-positive count.","sha256":"b42a0eb8243299a6276a69d755a2d0521868d7deb58b88945fee183dc32b879c","title":"Binary precision rational · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":47.547,"exit_code":1,"observations":[{"actual":"4/3","check":"fixture 1: (3, 1, 2)","expected":"3/4","passed":false},{"actual":null,"check":"fixture 2: (0, 2, 1)","expected":"0","passed":false},{"actual":null,"check":"fixture 3: (0, 0, 2)","expected":null,"passed":true},{"actual":"1","check":"fixture 4: (5, 0, 1)","expected":"1","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: (3, 1, 2)\", \"actual\": \"4/3\", \"expected\": \"3/4\", \"passed\": false}, {\"check\": \"fixture 2: (0, 2, 1)\", \"actual\": null, \"expected\": \"0\", \"passed\": false}, {\"check\": \"fixture 3: (0, 0, 2)\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 4: (5, 0, 1)\", \"actual\": \"1\", \"expected\": \"1\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":44.732,"exit_code":1,"observations":[{"actual":"3/5","check":"fixture 1: (3, 1, 2)","expected":"3/4","passed":false},{"actual":"0","check":"fixture 2: (0, 2, 1)","expected":"0","passed":true},{"actual":"0","check":"fixture 3: (0, 0, 2)","expected":null,"passed":false},{"actual":"5/6","check":"fixture 4: (5, 0, 1)","expected":"1","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: (3, 1, 2)\", \"actual\": \"3/5\", \"expected\": \"3/4\", \"passed\": false}, {\"check\": \"fixture 2: (0, 2, 1)\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"fixture 3: (0, 0, 2)\", \"actual\": \"0\", \"expected\": null, \"passed\": false}, {\"check\": \"fixture 4: (5, 0, 1)\", \"actual\": \"5/6\", \"expected\": \"1\", \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":44.239,"exit_code":0,"observations":[{"actual":"3/4","check":"fixture 1: (3, 1, 2)","expected":"3/4","passed":true},{"actual":"0","check":"fixture 2: (0, 2, 1)","expected":"0","passed":true},{"actual":null,"check":"fixture 3: (0, 0, 2)","expected":null,"passed":true},{"actual":"1","check":"fixture 4: (5, 0, 1)","expected":"1","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: (3, 1, 2)\", \"actual\": \"3/4\", \"expected\": \"3/4\", \"passed\": true}, {\"check\": \"fixture 2: (0, 2, 1)\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"fixture 3: (0, 0, 2)\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 4: (5, 0, 1)\", \"actual\": \"1\", \"expected\": \"1\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}