{"abstract":"Append completion is treated as success even when the decoder rejected the segment.","category":"Streaming segment lifecycle","checks":4,"contract":"An inflight segment becomes committed only after successful append; failure retains its ID for recovery and leaves committed order unchanged.","evaluation_group":"xmed-append-failure-keeps-uncommitted-segment","failed_approach":"Clearing inflight state without recording successes or retaining failures loses lifecycle state.","family":"xmed-append-failure-keeps-uncommitted-segment","id":"FA-11171","implementations":{"attempt":{"sha256":"fcd307aac4d17e55992ee165ddd03bf46ebb7d3f53678946a092817b7d0681af","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(committed, inflight, success):\n    return [list(committed),None]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(['a'], 'b', False)),[['a'], 'b'])\ncheck('fixture 2',solve(*(['a'], 'b', True)),[['a', 'b'], None])\ncheck('fixture 3',solve(*([], 'a', True)),[['a'], None])\ncheck('fixture 4',solve(*([], 'a', False)),[[], 'a'])\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":"510eee2d7ef321fbd3ac4657d7591914ca879c23439ddf8aaad247c834aaecd8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(committed, inflight, success):\n    return [list(committed)+[inflight],None]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(['a'], 'b', False)),[['a'], 'b'])\ncheck('fixture 2',solve(*(['a'], 'b', True)),[['a', 'b'], None])\ncheck('fixture 3',solve(*([], 'a', True)),[['a'], None])\ncheck('fixture 4',solve(*([], 'a', False)),[[], 'a'])\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":"b5e55ff534e6618dafa50c6c3595a5a1b33eda0ff7dc2920c04456699c02ef9f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(committed, inflight, success):\n    return [list(committed)+([inflight] if success else []),None if success else inflight]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(['a'], 'b', False)),[['a'], 'b'])\ncheck('fixture 2',solve(*(['a'], 'b', True)),[['a', 'b'], None])\ncheck('fixture 3',solve(*([], 'a', True)),[['a'], None])\ncheck('fixture 4',solve(*([], 'a', False)),[[], 'a'])\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-append-failure-keeps-uncommitted-segment","generated_at":"2026-09-29T14:38:45.603171+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: An inflight segment becomes committed only after successful append; failure retains its ID for recovery and leaves committed order unchanged.","root_cause":"Append completion is treated as success even when the decoder rejected the segment.","sha256":"d0d212d7b4f0232ef3476828e9b5aaf22f2ffaca6b9368d7f1806d22f0c91374","title":"Append failure keeps uncommitted segment · 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.73,"exit_code":1,"observations":[{"actual":[["a"],null],"check":"fixture 1","expected":[["a"],"b"],"passed":false},{"actual":[["a"],null],"check":"fixture 2","expected":[["a","b"],null],"passed":false},{"actual":[[],null],"check":"fixture 3","expected":[["a"],null],"passed":false},{"actual":[[],null],"check":"fixture 4","expected":[[],"a"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[\"a\"], null], \"expected\": [[\"a\"], \"b\"], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [[\"a\"], null], \"expected\": [[\"a\", \"b\"], null], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [[], null], \"expected\": [[\"a\"], null], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [[], null], \"expected\": [[], \"a\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.665,"exit_code":1,"observations":[{"actual":[["a","b"],null],"check":"fixture 1","expected":[["a"],"b"],"passed":false},{"actual":[["a","b"],null],"check":"fixture 2","expected":[["a","b"],null],"passed":true},{"actual":[["a"],null],"check":"fixture 3","expected":[["a"],null],"passed":true},{"actual":[["a"],null],"check":"fixture 4","expected":[[],"a"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[\"a\", \"b\"], null], \"expected\": [[\"a\"], \"b\"], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [[\"a\", \"b\"], null], \"expected\": [[\"a\", \"b\"], null], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[\"a\"], null], \"expected\": [[\"a\"], null], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [[\"a\"], null], \"expected\": [[], \"a\"], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":37.313,"exit_code":0,"observations":[{"actual":[["a"],"b"],"check":"fixture 1","expected":[["a"],"b"],"passed":true},{"actual":[["a","b"],null],"check":"fixture 2","expected":[["a","b"],null],"passed":true},{"actual":[["a"],null],"check":"fixture 3","expected":[["a"],null],"passed":true},{"actual":[[],"a"],"check":"fixture 4","expected":[[],"a"],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[\"a\"], \"b\"], \"expected\": [[\"a\"], \"b\"], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [[\"a\", \"b\"], null], \"expected\": [[\"a\", \"b\"], null], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[\"a\"], null], \"expected\": [[\"a\"], null], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [[], \"a\"], \"expected\": [[], \"a\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}