{"abstract":"Advancing one index may select an unavailable media item.","category":"Media playlist state","checks":4,"contract":"Entries are [ID,playable]. Return first playable index strictly after current, without wrapping or replaying earlier entries.","evaluation_group":"xmed-skip-unavailable-selects-next-playable","failed_approach":"Searching from the beginning replays history rather than finding a successor.","family":"xmed-skip-unavailable-selects-next-playable","id":"FA-11076","implementations":{"attempt":{"sha256":"83142783eeb28605b59b73221df14d82708694f9e881a153212d60bb594354ec","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(entries, current):\n    return next((i for i,x in enumerate(entries) if x[1]),None)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*([['a', True], ['b', False], ['c', True]], 0)),2)\ncheck('fixture 2',solve(*([['a', True], ['b', False]], 0)),None)\ncheck('fixture 3',solve(*([['a', True], ['b', True]], 0)),1)\ncheck('fixture 4',solve(*([['a', True]], 0)),None)\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":"5459f9e3a7b9a2e38dd155a7bfc6f501c6fa15bb21bed608c3a21e44139e812b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(entries, current):\n    return current+1 if current+1<len(entries) else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*([['a', True], ['b', False], ['c', True]], 0)),2)\ncheck('fixture 2',solve(*([['a', True], ['b', False]], 0)),None)\ncheck('fixture 3',solve(*([['a', True], ['b', True]], 0)),1)\ncheck('fixture 4',solve(*([['a', True]], 0)),None)\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":"6615f6ef139de8c0e29d428af05a8c0defce15497c61b5846e9b47350e5ab87a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(entries, current):\n    return next((i for i in range(current+1,len(entries)) if entries[i][1]),None)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*([['a', True], ['b', False], ['c', True]], 0)),2)\ncheck('fixture 2',solve(*([['a', True], ['b', False]], 0)),None)\ncheck('fixture 3',solve(*([['a', True], ['b', True]], 0)),1)\ncheck('fixture 4',solve(*([['a', True]], 0)),None)\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-skip-unavailable-selects-next-playable","generated_at":"2026-09-29T14:38:44.791122+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: Entries are [ID,playable]. Return first playable index strictly after current, without wrapping or replaying earlier entries.","root_cause":"Advancing one index may select an unavailable media item.","sha256":"29c54fdc4a5da6df5362ba9989a7b9b385a8db263499914c44a442cf0489f501","title":"Skip unavailable selects next playable · 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.155,"exit_code":1,"observations":[{"actual":0,"check":"fixture 1","expected":2,"passed":false},{"actual":0,"check":"fixture 2","expected":null,"passed":false},{"actual":0,"check":"fixture 3","expected":1,"passed":false},{"actual":0,"check":"fixture 4","expected":null,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 0, \"expected\": 2, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": 0, \"expected\": null, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": 0, \"expected\": 1, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": 0, \"expected\": null, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.467,"exit_code":1,"observations":[{"actual":1,"check":"fixture 1","expected":2,"passed":false},{"actual":1,"check":"fixture 2","expected":null,"passed":false},{"actual":1,"check":"fixture 3","expected":1,"passed":true},{"actual":null,"check":"fixture 4","expected":null,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 1, \"expected\": 2, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": 1, \"expected\": null, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": null, \"expected\": null, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":36.4,"exit_code":0,"observations":[{"actual":2,"check":"fixture 1","expected":2,"passed":true},{"actual":null,"check":"fixture 2","expected":null,"passed":true},{"actual":1,"check":"fixture 3","expected":1,"passed":true},{"actual":null,"check":"fixture 4","expected":null,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": null, \"expected\": null, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}