{"abstract":"Only one mode is returned when frequencies tie.","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. Return every highest-frequency observation value in sorted order, or [] for empty input. Exact operational definition: sorted(v for v in set(values) if values.count(v)==max(map(values.count,values))) if values else []","contract_signature":"values","evaluation_group":"model-287ffc40958c8072","failed_approach":"All unique values are returned regardless of frequency.","family":"xn-all-modes-sorted","id":"FA-6201","implementations":{"attempt":{"sha256":"abddd1d28d08844cdab5b079d17a03712961df02d39972f1996e0bd3384c3475","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):\n    return sorted(set(values))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: ([3, 3, 1, 1, 2],)', solve(*([3, 3, 1, 1, 2],)), [1, 3])\ncheck('fixture 2: ([2, 1, 2],)', solve(*([2, 1, 2],)), [2])\ncheck('fixture 3: ([7],)', solve(*([7],)), [7])\ncheck('fixture 4: ([],)', solve(*([],)), [])\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":"cfc0a1399616809f2985e1e38c695258477d101f2828a898a6287f50ca99bb10","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):\n    return [statistics.mode(values)] if values else []\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: ([3, 3, 1, 1, 2],)', solve(*([3, 3, 1, 1, 2],)), [1, 3])\ncheck('fixture 2: ([2, 1, 2],)', solve(*([2, 1, 2],)), [2])\ncheck('fixture 3: ([7],)', solve(*([7],)), [7])\ncheck('fixture 4: ([],)', solve(*([],)), [])\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-all-modes-sorted","generated_at":"2026-09-29T14:37:58.704730+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":"Only one mode is returned when frequencies tie.","sha256":"74c485f3f4b3a7e0d030790e2d1aa00d35579ce3cd23192cf0c8e3266c54d62c","title":"All modes sorted · 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.531,"exit_code":1,"observations":[{"actual":[1,2,3],"check":"fixture 1: ([3, 3, 1, 1, 2],)","expected":[1,3],"passed":false},{"actual":[1,2],"check":"fixture 2: ([2, 1, 2],)","expected":[2],"passed":false},{"actual":[7],"check":"fixture 3: ([7],)","expected":[7],"passed":true},{"actual":[],"check":"fixture 4: ([],)","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: ([3, 3, 1, 1, 2],)\", \"actual\": [1, 2, 3], \"expected\": [1, 3], \"passed\": false}, {\"check\": \"fixture 2: ([2, 1, 2],)\", \"actual\": [1, 2], \"expected\": [2], \"passed\": false}, {\"check\": \"fixture 3: ([7],)\", \"actual\": [7], \"expected\": [7], \"passed\": true}, {\"check\": \"fixture 4: ([],)\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":50.289,"exit_code":1,"observations":[{"actual":[3],"check":"fixture 1: ([3, 3, 1, 1, 2],)","expected":[1,3],"passed":false},{"actual":[2],"check":"fixture 2: ([2, 1, 2],)","expected":[2],"passed":true},{"actual":[7],"check":"fixture 3: ([7],)","expected":[7],"passed":true},{"actual":[],"check":"fixture 4: ([],)","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: ([3, 3, 1, 1, 2],)\", \"actual\": [3], \"expected\": [1, 3], \"passed\": false}, {\"check\": \"fixture 2: ([2, 1, 2],)\", \"actual\": [2], \"expected\": [2], \"passed\": true}, {\"check\": \"fixture 3: ([7],)\", \"actual\": [7], \"expected\": [7], \"passed\": true}, {\"check\": \"fixture 4: ([],)\", \"actual\": [], \"expected\": [], \"passed\": true}], \"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."}}