{"abstract":"A failed refresh resets terminal state from incomplete metadata.","category":"Streaming segment lifecycle","checks":4,"contract":"For a local replaceable-manifest cache, a complete response replaces terminal state; a partial/failed response leaves prior terminal state unchanged. Streams may be explicitly restarted.","contract_signature":"previous_ended, response_ended, response_complete","evaluation_group":"xmed-manifest-refresh-retains-terminal-flag","failed_approach":"Making terminal state permanently sticky prevents a complete restarted manifest from reopening the stream.","family":"xmed-manifest-refresh-retains-terminal-flag","id":"FA-11196","implementations":{"attempt":{"sha256":"87687faa6fbd5889f08714c66f22b69a7022339e5917ae0422f2a50b1cf81436","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(previous_ended, response_ended, response_complete):\n    return previous_ended or response_ended\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(True, False, False)),True)\ncheck('fixture 2',solve(*(False, True, True)),True)\ncheck('fixture 3',solve(*(True, False, True)),False)\ncheck('fixture 4',solve(*(False, False, False)),False)\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":"975b3e0156fd4a4b5483743113f8db0064e1566cf577361ecd0cc29b9239e107","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(previous_ended, response_ended, response_complete):\n    return response_ended\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(True, False, False)),True)\ncheck('fixture 2',solve(*(False, True, True)),True)\ncheck('fixture 3',solve(*(True, False, True)),False)\ncheck('fixture 4',solve(*(False, False, False)),False)\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-manifest-refresh-retains-terminal-flag","generated_at":"2026-09-29T14:38:45.813174+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 failed refresh resets terminal state from incomplete metadata.","sha256":"70c63876e424089721b50e495aad4aab450734c8387a8bc7d875d458c9e924e9","title":"Manifest refresh retains terminal flag · 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.763,"exit_code":1,"observations":[{"actual":true,"check":"fixture 1","expected":true,"passed":true},{"actual":true,"check":"fixture 2","expected":true,"passed":true},{"actual":true,"check":"fixture 3","expected":false,"passed":false},{"actual":false,"check":"fixture 4","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.355,"exit_code":1,"observations":[{"actual":false,"check":"fixture 1","expected":true,"passed":false},{"actual":true,"check":"fixture 2","expected":true,"passed":true},{"actual":false,"check":"fixture 3","expected":false,"passed":true},{"actual":false,"check":"fixture 4","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": false, \"expected\": false, \"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."}}