{"abstract":"Removing an earlier entry leaves the current index one position too large.","category":"Media playlist state","checks":4,"contract":"Remove a valid entry other than current from a list of at least two entries, preserving selection of the same playing entry.","contract_signature":"entries, current, removed","evaluation_group":"xmed-remove-before-adjusts-selection","failed_approach":"Decrementing on later removals switches to the previous entry.","family":"xmed-remove-before-adjusts-selection","id":"FA-11036","implementations":{"attempt":{"sha256":"4a12790c090e30cca79bb76888eff0855dcd1d473ab772542bcb27a5e60379ca","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(entries, current, removed):\n    return [[x for i,x in enumerate(entries) if i!=removed],max(0,current-1)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(['a', 'b', 'c'], 2, 0)),[['b', 'c'], 1])\ncheck('fixture 2',solve(*(['a', 'b', 'c'], 0, 2)),[['a', 'b'], 0])\ncheck('fixture 3',solve(*(['a', 'b', 'c', 'd'], 1, 3)),[['a', 'b', 'c'], 1])\ncheck('fixture 4',solve(*(['a', 'b'], 1, 0)),[['b'], 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":"5f3e63d60cb5609f9f6bcd7b6caea1e4e0fc8d1af4b4a533cbacb15667c9a972","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(entries, current, removed):\n    return [[x for i,x in enumerate(entries) if i!=removed],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'], 2, 0)),[['b', 'c'], 1])\ncheck('fixture 2',solve(*(['a', 'b', 'c'], 0, 2)),[['a', 'b'], 0])\ncheck('fixture 3',solve(*(['a', 'b', 'c', 'd'], 1, 3)),[['a', 'b', 'c'], 1])\ncheck('fixture 4',solve(*(['a', 'b'], 1, 0)),[['b'], 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-remove-before-adjusts-selection","generated_at":"2026-09-29T14:38:44.383790+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":"Removing an earlier entry leaves the current index one position too large.","sha256":"5d7044774ce86b9c237373923451bc40177291f071e2eb5091f91d5a78972c82","title":"Remove before adjusts selection · 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":39.469,"exit_code":1,"observations":[{"actual":[["b","c"],1],"check":"fixture 1","expected":[["b","c"],1],"passed":true},{"actual":[["a","b"],0],"check":"fixture 2","expected":[["a","b"],0],"passed":true},{"actual":[["a","b","c"],0],"check":"fixture 3","expected":[["a","b","c"],1],"passed":false},{"actual":[["b"],0],"check":"fixture 4","expected":[["b"],0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[\"b\", \"c\"], 1], \"expected\": [[\"b\", \"c\"], 1], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [[\"a\", \"b\"], 0], \"expected\": [[\"a\", \"b\"], 0], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[\"a\", \"b\", \"c\"], 0], \"expected\": [[\"a\", \"b\", \"c\"], 1], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [[\"b\"], 0], \"expected\": [[\"b\"], 0], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.622,"exit_code":1,"observations":[{"actual":[["b","c"],2],"check":"fixture 1","expected":[["b","c"],1],"passed":false},{"actual":[["a","b"],0],"check":"fixture 2","expected":[["a","b"],0],"passed":true},{"actual":[["a","b","c"],1],"check":"fixture 3","expected":[["a","b","c"],1],"passed":true},{"actual":[["b"],1],"check":"fixture 4","expected":[["b"],0],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[\"b\", \"c\"], 2], \"expected\": [[\"b\", \"c\"], 1], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [[\"a\", \"b\"], 0], \"expected\": [[\"a\", \"b\"], 0], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[\"a\", \"b\", \"c\"], 1], \"expected\": [[\"a\", \"b\", \"c\"], 1], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [[\"b\"], 1], \"expected\": [[\"b\"], 0], \"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."}}