{"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":"Using only the query right edge extends bins beyond their support.","family":"s3-numerical-aggregation-histogram-interval-mass-right-query-cut","id":"FA-13036","implementations":{"attempt":{"sha256":"acce4e20f2ed14b870711c55d9629a6ed9e7cf16fe0d75a926160a8ea2d203bb","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((Fraction(m*max(0,b-max(l,a)),r-l) for l,r,m in bins),Fraction(0))) 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":"7d2d72e246057b7ca179a6f3dedc69bf3dee34bcd12e0b965df8451ddac79d83","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((Fraction(m*max(0,r-max(l,a)),r-l) for l,r,m in bins),Fraction(0))) 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-right-query-cut","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":"The query right edge is ignored when truncating bins.","sha256":"e84743a12cb706ae04ff9178e0d11eaea5269c3030031d3e35fbc7209f45dd3c","title":"Histogram interval mass: The query right edge is ignored when truncating bins. · 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":49.2,"exit_code":1,"observations":[{"actual":"23/2","check":"regression 1","expected":"11/2","passed":false},{"actual":"2","check":"regression 2","expected":"2","passed":true},{"actual":"16","check":"regression 3","expected":"8","passed":false},{"actual":"10","check":"regression 4","expected":"0","passed":false},{"actual":"4","check":"regression 5","expected":"0","passed":false},{"actual":"0","check":"regression 6","expected":"0","passed":true},{"actual":"0","check":"regression 7","expected":"0","passed":true},{"actual":"22","check":"regression 8","expected":"14","passed":false},{"actual":"2","check":"variable density mass","expected":"2","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 1\", \"actual\": \"23/2\", \"expected\": \"11/2\", \"passed\": false}, {\"check\": \"regression 2\", \"actual\": \"2\", \"expected\": \"2\", \"passed\": true}, {\"check\": \"regression 3\", \"actual\": \"16\", \"expected\": \"8\", \"passed\": false}, {\"check\": \"regression 4\", \"actual\": \"10\", \"expected\": \"0\", \"passed\": false}, {\"check\": \"regression 5\", \"actual\": \"4\", \"expected\": \"0\", \"passed\": false}, {\"check\": \"regression 6\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"regression 7\", \"actual\": \"0\", \"expected\": \"0\", \"passed\": true}, {\"check\": \"regression 8\", \"actual\": \"22\", \"expected\": \"14\", \"passed\": false}, {\"check\": \"variable density mass\", \"actual\": \"2\", \"expected\": \"2\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":46.796,"exit_code":1,"observations":[{"actual":"7","check":"regression 1","expected":"11/2","passed":false},{"actual":"6","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":"4","check":"variable density mass","expected":"2","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 1\", \"actual\": \"7\", \"expected\": \"11/2\", \"passed\": false}, {\"check\": \"regression 2\", \"actual\": \"6\", \"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\": \"4\", \"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."}}