{"abstract":"Adding full byte length fetches one byte from the following range.","category":"Streaming segment lifecycle","checks":4,"contract":"Convert nonnegative byte offset/length metadata to an inclusive request range; zero length produces no request.","evaluation_group":"xmed-segment-byte-range-inclusive-header","failed_approach":"The ending byte is computed without adding the resource offset.","family":"xmed-segment-byte-range-inclusive-header","id":"FA-11126","implementations":{"attempt":{"sha256":"afec4ac76867c6685806a1331f46fb82da91dc2c585a8be6760db6dd33917899","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(offset, length):\n    return [offset,length-1] if length else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(10, 5)),[10, 14])\ncheck('fixture 2',solve(*(0, 1)),[0, 0])\ncheck('fixture 3',solve(*(7, 0)),None)\ncheck('fixture 4',solve(*(100, 2)),[100, 101])\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":"516505456a346737b116c17ea4be69395a9e3c41508ab61edfa766f2ea0663a7","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(offset, length):\n    return [offset,offset+length]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(10, 5)),[10, 14])\ncheck('fixture 2',solve(*(0, 1)),[0, 0])\ncheck('fixture 3',solve(*(7, 0)),None)\ncheck('fixture 4',solve(*(100, 2)),[100, 101])\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":"09989de559ac9cc7c422e2da1a113d1e2982759ec7f3e0b28c01dcb25f510a63","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(offset, length):\n    return [offset,offset+length-1] if length else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(10, 5)),[10, 14])\ncheck('fixture 2',solve(*(0, 1)),[0, 0])\ncheck('fixture 3',solve(*(7, 0)),None)\ncheck('fixture 4',solve(*(100, 2)),[100, 101])\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-segment-byte-range-inclusive-header","generated_at":"2026-09-29T14:38:45.194033+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: Convert nonnegative byte offset/length metadata to an inclusive request range; zero length produces no request.","root_cause":"Adding full byte length fetches one byte from the following range.","sha256":"816bacd041f6cd05d74711284ef3b9537e8f677e7e51ada592c1e61d6cbb97a2","title":"Segment byte range inclusive header · 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":37.84,"exit_code":1,"observations":[{"actual":[10,4],"check":"fixture 1","expected":[10,14],"passed":false},{"actual":[0,0],"check":"fixture 2","expected":[0,0],"passed":true},{"actual":null,"check":"fixture 3","expected":null,"passed":true},{"actual":[100,1],"check":"fixture 4","expected":[100,101],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [10, 4], \"expected\": [10, 14], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [100, 1], \"expected\": [100, 101], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.342,"exit_code":1,"observations":[{"actual":[10,15],"check":"fixture 1","expected":[10,14],"passed":false},{"actual":[0,1],"check":"fixture 2","expected":[0,0],"passed":false},{"actual":[7,7],"check":"fixture 3","expected":null,"passed":false},{"actual":[100,102],"check":"fixture 4","expected":[100,101],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [10, 15], \"expected\": [10, 14], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [0, 1], \"expected\": [0, 0], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [7, 7], \"expected\": null, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [100, 102], \"expected\": [100, 101], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.868,"exit_code":0,"observations":[{"actual":[10,14],"check":"fixture 1","expected":[10,14],"passed":true},{"actual":[0,0],"check":"fixture 2","expected":[0,0],"passed":true},{"actual":null,"check":"fixture 3","expected":null,"passed":true},{"actual":[100,101],"check":"fixture 4","expected":[100,101],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [10, 14], \"expected\": [10, 14], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [100, 101], \"expected\": [100, 101], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}