{"abstract":"The reduction disagrees with its explicit aggregation oracle.","category":"Numerical aggregation","checks":6,"contract":"For lo<=hi, clip each integer contribution into [lo,hi], then sum. Empty is zero.","contract_signature":"xs, lo, hi","evaluation_group":"s3-na-clipped-contribution-sum","failed_approach":"Multiplying global bounds by count still permits cancellation across outliers.","family":"s3-numerical-aggregation-clipped-contribution-sum-clip-total","id":"FA-12891","implementations":{"attempt":{"sha256":"0690c61ba5e895409e840868264416b5c3211d6978a0e4438d4875ef9472f497","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(xs, lo, hi):\n    return min(hi*len(xs),max(lo*len(xs),sum(xs)))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('regression 1', solve(*([-9, 2, 8], 0, 5)), 7)\ncheck('regression 2', solve(*([], 1, 3)), 0)\ncheck('regression 3', solve(*([1, 2, 3], 0, 5)), 6)\ncheck('regression 4', solve(*([-4, -2], -3, -1)), -5)\ncheck('regression 5', solve(*([0, 0, 9], 2, 4)), 8)\ncheck(\"variable cap\", solve([0,N,N*4],1,N+1),2*N+2)\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":"dd6d6cacf3ba5dfc2b8f01412f323a8b871ab9ffda3f51f7e967bf7a63e548a0","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(xs, lo, hi):\n    return min(hi,max(lo,sum(xs))) if xs else 0\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('regression 1', solve(*([-9, 2, 8], 0, 5)), 7)\ncheck('regression 2', solve(*([], 1, 3)), 0)\ncheck('regression 3', solve(*([1, 2, 3], 0, 5)), 6)\ncheck('regression 4', solve(*([-4, -2], -3, -1)), -5)\ncheck('regression 5', solve(*([0, 0, 9], 2, 4)), 8)\ncheck(\"variable cap\", solve([0,N,N*4],1,N+1),2*N+2)\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-clipped-contribution-sum-clip-total","generated_at":"2026-09-29T14:39:01.597851+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":"Clipping happens after aggregation rather than before each contribution.","sha256":"e157c15a11702e65e700fc33f666ce6ed2b85c4ec33d0651caeff74f8ac26b9d","title":"Clipped contribution sum: Clipping happens after aggregation rather than before each contribution. · 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":46.281,"exit_code":1,"observations":[{"actual":1,"check":"regression 1","expected":7,"passed":false},{"actual":0,"check":"regression 2","expected":0,"passed":true},{"actual":6,"check":"regression 3","expected":6,"passed":true},{"actual":-6,"check":"regression 4","expected":-5,"passed":false},{"actual":9,"check":"regression 5","expected":8,"passed":false},{"actual":5,"check":"variable cap","expected":4,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 1\", \"actual\": 1, \"expected\": 7, \"passed\": false}, {\"check\": \"regression 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"regression 3\", \"actual\": 6, \"expected\": 6, \"passed\": true}, {\"check\": \"regression 4\", \"actual\": -6, \"expected\": -5, \"passed\": false}, {\"check\": \"regression 5\", \"actual\": 9, \"expected\": 8, \"passed\": false}, {\"check\": \"variable cap\", \"actual\": 5, \"expected\": 4, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":45.525,"exit_code":1,"observations":[{"actual":1,"check":"regression 1","expected":7,"passed":false},{"actual":0,"check":"regression 2","expected":0,"passed":true},{"actual":5,"check":"regression 3","expected":6,"passed":false},{"actual":-3,"check":"regression 4","expected":-5,"passed":false},{"actual":4,"check":"regression 5","expected":8,"passed":false},{"actual":2,"check":"variable cap","expected":4,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 1\", \"actual\": 1, \"expected\": 7, \"passed\": false}, {\"check\": \"regression 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"regression 3\", \"actual\": 5, \"expected\": 6, \"passed\": false}, {\"check\": \"regression 4\", \"actual\": -3, \"expected\": -5, \"passed\": false}, {\"check\": \"regression 5\", \"actual\": 4, \"expected\": 8, \"passed\": false}, {\"check\": \"variable cap\", \"actual\": 2, \"expected\": 4, \"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."}}