{"abstract":"A reorder preserves the old numeric selection rather than the selected entry.","category":"Media playlist state","checks":4,"contract":"Order is a permutation of all original indices; update playlist order and selection so the same entry keeps playing.","contract_signature":"entries, current, order","evaluation_group":"xmed-reorder-preserves-entry-identity","failed_approach":"Resetting to the first entry changes playback when current is elsewhere.","family":"xmed-reorder-preserves-entry-identity","id":"FA-11046","implementations":{"attempt":{"sha256":"2bf30d802780c06446cda1a8370efc499e02a82a05433809d3aa1ab82dc58e0a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(entries, current, order):\n    return [[entries[i] for i in order],0]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(['a', 'b', 'c'], 0, [2, 0, 1])),[['c', 'a', 'b'], 1])\ncheck('fixture 2',solve(*(['a', 'b', 'c'], 2, [2, 0, 1])),[['c', 'a', 'b'], 0])\ncheck('fixture 3',solve(*(['a', 'b'], 1, [0, 1])),[['a', 'b'], 1])\ncheck('fixture 4',solve(*(['a'], 0, [0])),[['a'], 0])\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":"a6506c86b740a23a62975c83613738f72b8345b0026b032aee51e1a4a5c07ef1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(entries, current, order):\n    return [[entries[i] for i in order],current]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(['a', 'b', 'c'], 0, [2, 0, 1])),[['c', 'a', 'b'], 1])\ncheck('fixture 2',solve(*(['a', 'b', 'c'], 2, [2, 0, 1])),[['c', 'a', 'b'], 0])\ncheck('fixture 3',solve(*(['a', 'b'], 1, [0, 1])),[['a', 'b'], 1])\ncheck('fixture 4',solve(*(['a'], 0, [0])),[['a'], 0])\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":"xmed-reorder-preserves-entry-identity","generated_at":"2026-09-29T14:38:44.424200+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic local media controller stage; metadata and downloaded data are supplied explicitly. No external player, service or codec is required.","root_cause":"A reorder preserves the old numeric selection rather than the selected entry.","sha256":"1d1b94ebf4a5fd4cfd93e8c2a72f44682046be10e66a4fd322626cba50cc7140","title":"Reorder preserves entry identity · case 01","variant":1,"variant_policy":"The five numbered cases rerun the same authored boundary fixtures; they are reproducibility runs, not independent input variants.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":41.072,"exit_code":1,"observations":[{"actual":[["c","a","b"],0],"check":"fixture 1","expected":[["c","a","b"],1],"passed":false},{"actual":[["c","a","b"],0],"check":"fixture 2","expected":[["c","a","b"],0],"passed":true},{"actual":[["a","b"],0],"check":"fixture 3","expected":[["a","b"],1],"passed":false},{"actual":[["a"],0],"check":"fixture 4","expected":[["a"],0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[\"c\", \"a\", \"b\"], 0], \"expected\": [[\"c\", \"a\", \"b\"], 1], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [[\"c\", \"a\", \"b\"], 0], \"expected\": [[\"c\", \"a\", \"b\"], 0], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[\"a\", \"b\"], 0], \"expected\": [[\"a\", \"b\"], 1], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [[\"a\"], 0], \"expected\": [[\"a\"], 0], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.462,"exit_code":1,"observations":[{"actual":[["c","a","b"],0],"check":"fixture 1","expected":[["c","a","b"],1],"passed":false},{"actual":[["c","a","b"],2],"check":"fixture 2","expected":[["c","a","b"],0],"passed":false},{"actual":[["a","b"],1],"check":"fixture 3","expected":[["a","b"],1],"passed":true},{"actual":[["a"],0],"check":"fixture 4","expected":[["a"],0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[\"c\", \"a\", \"b\"], 0], \"expected\": [[\"c\", \"a\", \"b\"], 1], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [[\"c\", \"a\", \"b\"], 2], \"expected\": [[\"c\", \"a\", \"b\"], 0], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [[\"a\", \"b\"], 1], \"expected\": [[\"a\", \"b\"], 1], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [[\"a\"], 0], \"expected\": [[\"a\"], 0], \"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."}}