{"abstract":"Trimming removes observations instead of replacing extreme values.","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. 0<=2*k<len(values); replace extremes by kth and (n-k-1)th sorted observations, preserving input order and length. Exact operational definition: [max(sorted(values)[k],min(sorted(values)[-k-1],v)) for v in values]","contract_signature":"values, k","evaluation_group":"model-1f6a82d8f1fc14f8","failed_approach":"Only the lower clipping bound is applied.","family":"xn-winsorized-sample","id":"FA-6231","implementations":{"attempt":{"sha256":"cccaf87d0de9e6f32b255f5b734b11534ef67d3c249b3766c0657ccffe99bd5c","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(values, k):\n    return [max(sorted(values)[k],v) for v in values]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: ([100, 1, 2, 3, 4], 1)', solve(*([100, 1, 2, 3, 4], 1)), [4, 2, 2, 3, 4])\ncheck('fixture 2: ([1, 2, 3], 0)', solve(*([1, 2, 3], 0)), [1, 2, 3])\ncheck('fixture 3: ([5, 5, 5], 1)', solve(*([5, 5, 5], 1)), [5, 5, 5])\ncheck('fixture 4: ([0, 10, 20, 30, 40], 1)', solve(*([0, 10, 20, 30, 40], 1)), [10, 10, 20, 30, 30])\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":"76833e0a10142b557ddbbbe0e45d30157a430fa901e0775b091b1808e60170ee","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(values, k):\n    return sorted(values)[k:len(values)-k]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: ([100, 1, 2, 3, 4], 1)', solve(*([100, 1, 2, 3, 4], 1)), [4, 2, 2, 3, 4])\ncheck('fixture 2: ([1, 2, 3], 0)', solve(*([1, 2, 3], 0)), [1, 2, 3])\ncheck('fixture 3: ([5, 5, 5], 1)', solve(*([5, 5, 5], 1)), [5, 5, 5])\ncheck('fixture 4: ([0, 10, 20, 30, 40], 1)', solve(*([0, 10, 20, 30, 40], 1)), [10, 10, 20, 30, 30])\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-winsorized-sample","generated_at":"2026-09-29T14:37:59.065713+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.","root_cause":"Trimming removes observations instead of replacing extreme values.","sha256":"b9208d7a9388a2c043c81af07639e8450d1eb9a0d162963fb35dd140c746bc2a","title":"Winsorized sample · 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":47.535,"exit_code":1,"observations":[{"actual":[100,2,2,3,4],"check":"fixture 1: ([100, 1, 2, 3, 4], 1)","expected":[4,2,2,3,4],"passed":false},{"actual":[1,2,3],"check":"fixture 2: ([1, 2, 3], 0)","expected":[1,2,3],"passed":true},{"actual":[5,5,5],"check":"fixture 3: ([5, 5, 5], 1)","expected":[5,5,5],"passed":true},{"actual":[10,10,20,30,40],"check":"fixture 4: ([0, 10, 20, 30, 40], 1)","expected":[10,10,20,30,30],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: ([100, 1, 2, 3, 4], 1)\", \"actual\": [100, 2, 2, 3, 4], \"expected\": [4, 2, 2, 3, 4], \"passed\": false}, {\"check\": \"fixture 2: ([1, 2, 3], 0)\", \"actual\": [1, 2, 3], \"expected\": [1, 2, 3], \"passed\": true}, {\"check\": \"fixture 3: ([5, 5, 5], 1)\", \"actual\": [5, 5, 5], \"expected\": [5, 5, 5], \"passed\": true}, {\"check\": \"fixture 4: ([0, 10, 20, 30, 40], 1)\", \"actual\": [10, 10, 20, 30, 40], \"expected\": [10, 10, 20, 30, 30], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.126,"exit_code":1,"observations":[{"actual":[2,3,4],"check":"fixture 1: ([100, 1, 2, 3, 4], 1)","expected":[4,2,2,3,4],"passed":false},{"actual":[1,2,3],"check":"fixture 2: ([1, 2, 3], 0)","expected":[1,2,3],"passed":true},{"actual":[5],"check":"fixture 3: ([5, 5, 5], 1)","expected":[5,5,5],"passed":false},{"actual":[10,20,30],"check":"fixture 4: ([0, 10, 20, 30, 40], 1)","expected":[10,10,20,30,30],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: ([100, 1, 2, 3, 4], 1)\", \"actual\": [2, 3, 4], \"expected\": [4, 2, 2, 3, 4], \"passed\": false}, {\"check\": \"fixture 2: ([1, 2, 3], 0)\", \"actual\": [1, 2, 3], \"expected\": [1, 2, 3], \"passed\": true}, {\"check\": \"fixture 3: ([5, 5, 5], 1)\", \"actual\": [5], \"expected\": [5, 5, 5], \"passed\": false}, {\"check\": \"fixture 4: ([0, 10, 20, 30, 40], 1)\", \"actual\": [10, 20, 30], \"expected\": [10, 10, 20, 30, 30], \"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."}}