{"abstract":"The reduction disagrees with its explicit aggregation oracle.","category":"Numerical aggregation","checks":9,"contract":"Bins [left,right,mass] have positive widths and nonnegative integer masses. Treat each bin as uniform density. Return exact mass in query [a,b] as a Fraction string; reversed/empty queries have zero mass.","contract_signature":"bins, a, b","evaluation_group":"s3-na-histogram-interval-mass","failed_approach":"Requiring full containment instead drops partially overlapping bins.","family":"s3-numerical-aggregation-histogram-interval-mass-whole-bin-selection","id":"FA-13016","implementations":{"attempt":{"sha256":"ced5f95e4b6cb1f8745c0334bb4ca963ded659de281c13dd1c9997a62c099f2f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom fractions import Fraction\nfrom collections import Counter, defaultdict\nimport math\nimport itertools\nN = 1\nobservations = []\ndef solve(bins, a, b):\n    return str(sum(m for l,r,m in bins if a<=l and r<=b)) if a<b else \"0\"\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('regression 1', solve(*([[0, 4, 8], [4, 10, 3]], 2, 7)), '11/2')\ncheck('regression 2', solve(*([[0, 4, 8]], 1, 2)), '2')\ncheck('regression 3', solve(*([[0, 4, 8]], -3, 8)), '8')\ncheck('regression 4', solve(*([[0, 4, 8]], 4, 9)), '0')\ncheck('regression 5', solve(*([[0, 4, 8]], 7, 9)), '0')\ncheck('regression 6', solve(*([], 0, 1)), '0')\ncheck('regression 7', solve(*([[0, 4, 8]], 3, 1)), '0')\ncheck('regression 8', solve(*([[2, 7, 10], [10, 12, 8]], 0, 11)), '14')\ncheck(\"variable density mass\",solve([[0,N+2,2*(N+2)]],1,N+1),str(2*N))\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":"40a467e08a6dee1a78f3cf032588f7c48645507ea9bba43f1f7f7ff83322af47","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom fractions import Fraction\nfrom collections import Counter, defaultdict\nimport math\nimport itertools\nN = 1\nobservations = []\ndef solve(bins, a, b):\n    return str(sum(m for l,r,m in bins if l<b and r>a)) if a<b else \"0\"\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('regression 1', solve(*([[0, 4, 8], [4, 10, 3]], 2, 7)), '11/2')\ncheck('regression 2', solve(*([[0, 4, 8]], 1, 2)), '2')\ncheck('regression 3', solve(*([[0, 4, 8]], -3, 8)), '8')\ncheck('regression 4', solve(*([[0, 4, 8]], 4, 9)), '0')\ncheck('regression 5', solve(*([[0, 4, 8]], 7, 9)), '0')\ncheck('regression 6', solve(*([], 0, 1)), '0')\ncheck('regression 7', solve(*([[0, 4, 8]], 3, 1)), '0')\ncheck('regression 8', solve(*([[2, 7, 10], [10, 12, 8]], 0, 11)), '14')\ncheck(\"variable density mass\",solve([[0,N+2,2*(N+2)]],1,N+1),str(2*N))\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":"Small offline integer/rational inputs only; no performance, statistical inference, or production-library conformance claim. 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-numerical-aggregation-histogram-interval-mass-whole-bin-selection","generated_at":"2026-09-29T14:39:03.075051+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Exact bounded examples isolate a reduction defect without floating-point or external-service effects.","root_cause":"An intersecting bin contributes all of its mass.","sha256":"fe33e9bf7bf49b39505478f0da95e37a7bcf13f3dfce0a5a99fb327e98cdce79","title":"Histogram interval mass: An intersecting bin contributes all of its mass. · 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":44.591,"exit_code":1,"observations":[{"actual":"0","check":"regression 1","expected":"11/2","passed":false},{"actual":"0","check":"regression 2","expected":"2","passed":false},{"actual":"8","check":"regression 3","expected":"8","passed":true},{"actual":"0","check":"regression 4","expected":"0","passed":true},{"actual":"0","check":"regression 5","expected":"0","passed":true},{"actual":"0","check":"regression 6","expected":"0","passed":true},{"actual":"0","check":"regression 7","expected":"0","passed":true},{"actual":"10","check":"regression 8","expected":"14","passed":false},{"actual":"0","check":"variable density mass","expected":"2","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 1\", \"actual\": \"0\", \"expected\": \"11/2\", \"passed\": false}, {\"check\": \"regression 2\", \"actual\": \"0\", \"expected\": \"2\", \"passed\": false}, {\"check\": \"regression 3\", \"actual\": \"8\", \"expected\": \"8\", \"passed\": true}, {\"check\": \"regression 4\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"regression 5\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"regression 6\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"regression 7\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"regression 8\", \"actual\": \"10\", \"expected\": \"14\", \"passed\": false}, {\"check\": \"variable density mass\", \"actual\": \"0\", \"expected\": \"2\", \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":46.065,"exit_code":1,"observations":[{"actual":"11","check":"regression 1","expected":"11/2","passed":false},{"actual":"8","check":"regression 2","expected":"2","passed":false},{"actual":"8","check":"regression 3","expected":"8","passed":true},{"actual":"0","check":"regression 4","expected":"0","passed":true},{"actual":"0","check":"regression 5","expected":"0","passed":true},{"actual":"0","check":"regression 6","expected":"0","passed":true},{"actual":"0","check":"regression 7","expected":"0","passed":true},{"actual":"18","check":"regression 8","expected":"14","passed":false},{"actual":"6","check":"variable density mass","expected":"2","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 1\", \"actual\": \"11\", \"expected\": \"11/2\", \"passed\": false}, {\"check\": \"regression 2\", \"actual\": \"8\", \"expected\": \"2\", \"passed\": false}, {\"check\": \"regression 3\", \"actual\": \"8\", \"expected\": \"8\", \"passed\": true}, {\"check\": \"regression 4\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"regression 5\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"regression 6\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"regression 7\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"regression 8\", \"actual\": \"18\", \"expected\": \"14\", \"passed\": false}, {\"check\": \"variable density mass\", \"actual\": \"6\", \"expected\": \"2\", \"passed\": false}], \"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."}}