{"abstract":"Unconditional wrap ignores stop and repeat-one policies.","category":"Media playlist state","checks":4,"contract":"On natural completion of a valid current entry in a nonempty playlist, repeat-one stays current, repeat-all wraps, and off stops at the end.","evaluation_group":"xmed-repeat-policy-next-entry","failed_approach":"Honoring repeat-one while omitting repeat-all stops a looping playlist.","family":"xmed-repeat-policy-next-entry","id":"FA-11066","implementations":{"attempt":{"sha256":"9a6d164ed407b4ed400adb5d85b77429154284c76bda15be46d66ceb2ab60a64","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(current, length, repeat):\n    return current if repeat==\"one\" else (current+1 if current+1<length else None)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(1, 3, 'one')),1)\ncheck('fixture 2',solve(*(2, 3, 'all')),0)\ncheck('fixture 3',solve(*(2, 3, 'off')),None)\ncheck('fixture 4',solve(*(0, 3, 'off')),1)\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":"9f94c9c9c3b63e20e9161ffcd047aa38cb44b7de5e39c5cba2766850886473b0","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(current, length, repeat):\n    return (current+1)%length\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(1, 3, 'one')),1)\ncheck('fixture 2',solve(*(2, 3, 'all')),0)\ncheck('fixture 3',solve(*(2, 3, 'off')),None)\ncheck('fixture 4',solve(*(0, 3, 'off')),1)\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":"517cbb45e2eee24354697678afe63eb3ac0b3e79956ca2d7fdd5a176c44bba57","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(current, length, repeat):\n    return current if repeat==\"one\" else (current+1 if current+1<length else (0 if repeat==\"all\" else None))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(1, 3, 'one')),1)\ncheck('fixture 2',solve(*(2, 3, 'all')),0)\ncheck('fixture 3',solve(*(2, 3, 'off')),None)\ncheck('fixture 4',solve(*(0, 3, 'off')),1)\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-repeat-policy-next-entry","generated_at":"2026-09-29T14:38:44.714356+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: On natural completion of a valid current entry in a nonempty playlist, repeat-one stays current, repeat-all wraps, and off stops at the end.","root_cause":"Unconditional wrap ignores stop and repeat-one policies.","sha256":"df53f9d0d6705ff5ccdfd9d87dc65751ddc088f3ea53f9a72616cc469e7a0586","title":"Repeat policy next entry · 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":38.431,"exit_code":1,"observations":[{"actual":1,"check":"fixture 1","expected":1,"passed":true},{"actual":null,"check":"fixture 2","expected":0,"passed":false},{"actual":null,"check":"fixture 3","expected":null,"passed":true},{"actual":1,"check":"fixture 4","expected":1,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": null, \"expected\": 0, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.931,"exit_code":1,"observations":[{"actual":2,"check":"fixture 1","expected":1,"passed":false},{"actual":0,"check":"fixture 2","expected":0,"passed":true},{"actual":0,"check":"fixture 3","expected":null,"passed":false},{"actual":1,"check":"fixture 4","expected":1,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 2, \"expected\": 1, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 0, \"expected\": null, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.026,"exit_code":0,"observations":[{"actual":1,"check":"fixture 1","expected":1,"passed":true},{"actual":0,"check":"fixture 2","expected":0,"passed":true},{"actual":null,"check":"fixture 3","expected":null,"passed":true},{"actual":1,"check":"fixture 4","expected":1,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}