{"abstract":"The reduction disagrees with its explicit aggregation oracle.","category":"Numerical aggregation","checks":6,"contract":"Return sum(abs(x-anchor)); empty input returns zero. Anchor is supplied, not estimated.","contract_signature":"xs, anchor","evaluation_group":"s3-na-absolute-deviation-about-anchor","failed_approach":"Replacing the mean by the first observation still ignores the supplied anchor.","family":"s3-numerical-aggregation-absolute-deviation-about-anchor-reestimated-center","id":"FA-12881","implementations":{"attempt":{"sha256":"32aa33d28b54d8e4f3a338dbae1741bd4b038ddc018e3827553f2b39817b2f01","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, anchor):\n    return sum(abs(x-xs[0]) for x in 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(*([1, 5, 9], 5)), 8)\ncheck('regression 2', solve(*([], 4)), 0)\ncheck('regression 3', solve(*([4, 4], 4)), 0)\ncheck('regression 4', solve(*([-3, -1], 2)), 8)\ncheck('regression 5', solve(*([0, 0, 6], 1)), 7)\ncheck(\"variable anchor\", solve([N-3,N+2,N+2],N),7)\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":"e22ec899a2f42bdae3d8d580ae637a287c8faf2b127ee7848bf851291c649f99","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, anchor):\n    return str(sum(abs(Fraction(x)-Fraction(sum(xs),len(xs))) for x in 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(*([1, 5, 9], 5)), 8)\ncheck('regression 2', solve(*([], 4)), 0)\ncheck('regression 3', solve(*([4, 4], 4)), 0)\ncheck('regression 4', solve(*([-3, -1], 2)), 8)\ncheck('regression 5', solve(*([0, 0, 6], 1)), 7)\ncheck(\"variable anchor\", solve([N-3,N+2,N+2],N),7)\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-absolute-deviation-about-anchor-reestimated-center","generated_at":"2026-09-29T14:39:01.250375+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 supplied anchor is replaced by the sample mean.","sha256":"65ab501cf88f205477575abc6058249d517b12cebd5efff618dfe1581f1c41cd","title":"Absolute deviation about anchor: The supplied anchor is replaced by the sample mean. · 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":48.254,"exit_code":1,"observations":[{"actual":12,"check":"regression 1","expected":8,"passed":false},{"actual":0,"check":"regression 2","expected":0,"passed":true},{"actual":0,"check":"regression 3","expected":0,"passed":true},{"actual":2,"check":"regression 4","expected":8,"passed":false},{"actual":6,"check":"regression 5","expected":7,"passed":false},{"actual":10,"check":"variable anchor","expected":7,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 1\", \"actual\": 12, \"expected\": 8, \"passed\": false}, {\"check\": \"regression 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"regression 3\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"regression 4\", \"actual\": 2, \"expected\": 8, \"passed\": false}, {\"check\": \"regression 5\", \"actual\": 6, \"expected\": 7, \"passed\": false}, {\"check\": \"variable anchor\", \"actual\": 10, \"expected\": 7, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":46.017,"exit_code":1,"observations":[{"actual":"8","check":"regression 1","expected":8,"passed":false},{"actual":0,"check":"regression 2","expected":0,"passed":true},{"actual":"0","check":"regression 3","expected":0,"passed":false},{"actual":"2","check":"regression 4","expected":8,"passed":false},{"actual":"8","check":"regression 5","expected":7,"passed":false},{"actual":"20/3","check":"variable anchor","expected":7,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression 1\", \"actual\": \"8\", \"expected\": 8, \"passed\": false}, {\"check\": \"regression 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"regression 3\", \"actual\": \"0\", \"expected\": 0, \"passed\": false}, {\"check\": \"regression 4\", \"actual\": \"2\", \"expected\": 8, \"passed\": false}, {\"check\": \"regression 5\", \"actual\": \"8\", \"expected\": 7, \"passed\": false}, {\"check\": \"variable anchor\", \"actual\": \"20/3\", \"expected\": 7, \"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."}}