{"abstract":"An exclusive slice ending at current also removes the playing entry.","category":"Media playlist state","checks":4,"contract":"Clear only entries after a valid current index; retain playback history and the current entry.","evaluation_group":"xmed-clear-upcoming-keeps-history","failed_approach":"Retaining only current destroys already-played history.","family":"xmed-clear-upcoming-keeps-history","id":"FA-11061","implementations":{"attempt":{"sha256":"c68c4bc2629205da64ec65a4919523df0ab64f677523915eaba17d37aaf6e57f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(entries, current):\n    return [entries[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'], 1)),['a', 'b'])\ncheck('fixture 2',solve(*(['a', 'b'], 0)),['a'])\ncheck('fixture 3',solve(*(['a'], 0)),['a'])\ncheck('fixture 4',solve(*(['a', 'b'], 1)),['a', 'b'])\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":"2f9007a7ff45fcd0e64ea5245dc984ddad5ef2e8428b1d18e0289d8087e16f3a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(entries, current):\n    return entries[: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'], 1)),['a', 'b'])\ncheck('fixture 2',solve(*(['a', 'b'], 0)),['a'])\ncheck('fixture 3',solve(*(['a'], 0)),['a'])\ncheck('fixture 4',solve(*(['a', 'b'], 1)),['a', 'b'])\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"},"fixed":{"sha256":"caf2832abd57912891494dcf4f6f8b5f7528723ed00fdf0fe78802c97d848733","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(entries, current):\n    return entries[: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'], 1)),['a', 'b'])\ncheck('fixture 2',solve(*(['a', 'b'], 0)),['a'])\ncheck('fixture 3',solve(*(['a'], 0)),['a'])\ncheck('fixture 4',solve(*(['a', 'b'], 1)),['a', 'b'])\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-clear-upcoming-keeps-history","generated_at":"2026-09-29T14:38:44.624481+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.","repair":"Preserve the media contract: Clear only entries after a valid current index; retain playback history and the current entry.","root_cause":"An exclusive slice ending at current also removes the playing entry.","sha256":"fc27ac5d6e850ac9e2e529f610c9083fd4365852bd187e5f2eb5c6d25d70117d","title":"Clear upcoming keeps history · case 01","variant":1,"variant_policy":"The five numbered cases rerun the same authored boundary fixtures; they are reproducibility runs, not independent input variants.","verification":{"attempt":{"elapsed_ms":36.183,"exit_code":1,"observations":[{"actual":["b"],"check":"fixture 1","expected":["a","b"],"passed":false},{"actual":["a"],"check":"fixture 2","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 3","expected":["a"],"passed":true},{"actual":["b"],"check":"fixture 4","expected":["a","b"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"b\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"b\"], \"expected\": [\"a\", \"b\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.183,"exit_code":1,"observations":[{"actual":["a"],"check":"fixture 1","expected":["a","b"],"passed":false},{"actual":[],"check":"fixture 2","expected":["a"],"passed":false},{"actual":[],"check":"fixture 3","expected":["a"],"passed":false},{"actual":["a"],"check":"fixture 4","expected":["a","b"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\"], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":36.678,"exit_code":0,"observations":[{"actual":["a","b"],"check":"fixture 1","expected":["a","b"],"passed":true},{"actual":["a"],"check":"fixture 2","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 3","expected":["a"],"passed":true},{"actual":["a","b"],"check":"fixture 4","expected":["a","b"],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}