{"abstract":"An upload status endpoint reports committed byte coverage: negative offsets cannot appear in acknowledged ranges.","category":"HTTP ranges","checks":9,"contract":"x has a nonnegative complete length and committed byte offsets, which may repeat or arrive unordered. Reject offsets outside the representation. Return [complete|partial,acknowledged-range-field-or-null,next-missing-prefix-offset]. The local acknowledged field uses bytes= followed by comma-separated inclusive runs. Empty coverage has null header; an empty representation is complete. next-missing is the end of the committed contiguous prefix, not the highest written offset.","evaluation_group":"s3-http_ranges-upload-coverage-probe","failed_approach":"The partial repair uses positions=sorted(set(x['committed']))\nif any(p<-1 or p>=x['total'] for p in positions): return None\nruns=[]\nfor p in positions:\n    if runs and p==runs[-1][1]+1:\n        runs[-1][1]=p\n    else:\n        runs.append([p,p])\nfield='bytes='+','.join(str(a)+'-'+str(b) for a,b in runs) if runs else None\nprefix=0\nfor p in positions:\n    if p!=prefix: break\n    prefix+=1\nstate='complete' if len(positions)==x['total'] else 'partial'\nreturn [state,field,prefix], which still violates the stated contract.","family":"s3-http_ranges-upload-coverage-probe-negative-offset","id":"FA-27406","implementations":{"attempt":{"sha256":"b8660efce1f3e1c7df6804901161aee72e876727e6a9c19d55fd8476314fe914","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    positions=sorted(set(x['committed']))\n    if any(p<-1 or p>=x['total'] for p in positions): return None\n    runs=[]\n    for p in positions:\n        if runs and p==runs[-1][1]+1:\n            runs[-1][1]=p\n        else:\n            runs.append([p,p])\n    field='bytes='+','.join(str(a)+'-'+str(b) for a,b in runs) if runs else None\n    prefix=0\n    for p in positions:\n        if p!=prefix: break\n        prefix+=1\n    state='complete' if len(positions)==x['total'] else 'partial'\n    return [state,field,prefix]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('negative-offset fixture 0', json.loads(json.dumps(solve({'total':7,'committed':[4,0,1,5,1]}))), json.loads(json.dumps(['partial','bytes=0-1,4-5',2])))\ncheck('negative-offset fixture 1', json.loads(json.dumps(solve({'total':3,'committed':[2,0,1]}))), json.loads(json.dumps(['complete','bytes=0-2',3])))\ncheck('negative-offset fixture 2', json.loads(json.dumps(solve({'total':0,'committed':[]}))), json.loads(json.dumps(['complete',None,0])))\ncheck('negative-offset fixture 3', json.loads(json.dumps(solve({'total':4,'committed':[2,3]}))), json.loads(json.dumps(['partial','bytes=2-3',0])))\ncheck('negative-offset fixture 4', json.loads(json.dumps(solve({'total':4,'committed':[0,2]}))), json.loads(json.dumps(['partial','bytes=0-0,2-2',1])))\ncheck('negative-offset fixture 5', json.loads(json.dumps(solve({'total':N+1,'committed':list(range(N))}))), json.loads(json.dumps(['partial',\"bytes=0-\"+str(N-1),N])))\ncheck('negative-offset fixture 6', json.loads(json.dumps(solve({'total':3,'committed':[3]}))), json.loads(json.dumps(None)))\ncheck('negative-offset fixture 7', json.loads(json.dumps(solve({'total':3,'committed':[-1]}))), json.loads(json.dumps(None)))\ncheck('negative-offset fixture 8', json.loads(json.dumps(solve({'total':3,'committed':[]}))), json.loads(json.dumps(['partial',None,0])))\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":"84df39a8fcbf8ba7d34c0ec1237237b373abc08f836b5ee6e3790ca8b54aa321","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    positions=sorted(set(x['committed']))\n    if any(p>=x['total'] for p in positions): return None\n    runs=[]\n    for p in positions:\n        if runs and p==runs[-1][1]+1:\n            runs[-1][1]=p\n        else:\n            runs.append([p,p])\n    field='bytes='+','.join(str(a)+'-'+str(b) for a,b in runs) if runs else None\n    prefix=0\n    for p in positions:\n        if p!=prefix: break\n        prefix+=1\n    state='complete' if len(positions)==x['total'] else 'partial'\n    return [state,field,prefix]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('negative-offset fixture 0', json.loads(json.dumps(solve({'total':7,'committed':[4,0,1,5,1]}))), json.loads(json.dumps(['partial','bytes=0-1,4-5',2])))\ncheck('negative-offset fixture 1', json.loads(json.dumps(solve({'total':3,'committed':[2,0,1]}))), json.loads(json.dumps(['complete','bytes=0-2',3])))\ncheck('negative-offset fixture 2', json.loads(json.dumps(solve({'total':0,'committed':[]}))), json.loads(json.dumps(['complete',None,0])))\ncheck('negative-offset fixture 3', json.loads(json.dumps(solve({'total':4,'committed':[2,3]}))), json.loads(json.dumps(['partial','bytes=2-3',0])))\ncheck('negative-offset fixture 4', json.loads(json.dumps(solve({'total':4,'committed':[0,2]}))), json.loads(json.dumps(['partial','bytes=0-0,2-2',1])))\ncheck('negative-offset fixture 5', json.loads(json.dumps(solve({'total':N+1,'committed':list(range(N))}))), json.loads(json.dumps(['partial',\"bytes=0-\"+str(N-1),N])))\ncheck('negative-offset fixture 6', json.loads(json.dumps(solve({'total':3,'committed':[3]}))), json.loads(json.dumps(None)))\ncheck('negative-offset fixture 7', json.loads(json.dumps(solve({'total':3,'committed':[-1]}))), json.loads(json.dumps(None)))\ncheck('negative-offset fixture 8', json.loads(json.dumps(solve({'total':3,'committed':[]}))), json.loads(json.dumps(['partial',None,0])))\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":"79f737ec2003c3f41eefa682a19e459527d8e93ba9ffc4b86a3b5c497ba53f32","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    positions=sorted(set(x['committed']))\n    if any(p<0 or p>=x['total'] for p in positions): return None\n    runs=[]\n    for p in positions:\n        if runs and p==runs[-1][1]+1:\n            runs[-1][1]=p\n        else:\n            runs.append([p,p])\n    field='bytes='+','.join(str(a)+'-'+str(b) for a,b in runs) if runs else None\n    prefix=0\n    for p in positions:\n        if p!=prefix: break\n        prefix+=1\n    state='complete' if len(positions)==x['total'] else 'partial'\n    return [state,field,prefix]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('negative-offset fixture 0', json.loads(json.dumps(solve({'total':7,'committed':[4,0,1,5,1]}))), json.loads(json.dumps(['partial','bytes=0-1,4-5',2])))\ncheck('negative-offset fixture 1', json.loads(json.dumps(solve({'total':3,'committed':[2,0,1]}))), json.loads(json.dumps(['complete','bytes=0-2',3])))\ncheck('negative-offset fixture 2', json.loads(json.dumps(solve({'total':0,'committed':[]}))), json.loads(json.dumps(['complete',None,0])))\ncheck('negative-offset fixture 3', json.loads(json.dumps(solve({'total':4,'committed':[2,3]}))), json.loads(json.dumps(['partial','bytes=2-3',0])))\ncheck('negative-offset fixture 4', json.loads(json.dumps(solve({'total':4,'committed':[0,2]}))), json.loads(json.dumps(['partial','bytes=0-0,2-2',1])))\ncheck('negative-offset fixture 5', json.loads(json.dumps(solve({'total':N+1,'committed':list(range(N))}))), json.loads(json.dumps(['partial',\"bytes=0-\"+str(N-1),N])))\ncheck('negative-offset fixture 6', json.loads(json.dumps(solve({'total':3,'committed':[3]}))), json.loads(json.dumps(None)))\ncheck('negative-offset fixture 7', json.loads(json.dumps(solve({'total':3,'committed':[-1]}))), json.loads(json.dumps(None)))\ncheck('negative-offset fixture 8', json.loads(json.dumps(solve({'total':3,'committed':[]}))), json.loads(json.dumps(['partial',None,0])))\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":"Deterministic simplified range service, with stipulated local policies and already parsed trusted inputs; not a complete HTTP implementation. 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":"s3-http_ranges-upload-coverage-probe-negative-offset","generated_at":"2026-09-29T14:41:24.728965+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Range responses combine representation identity, conditional requests, framing, and partial-object state.","repair":"Apply the bounded decision exactly: positions=sorted(set(x['committed']))\nif any(p<0 or p>=x['total'] for p in positions): return None\nruns=[]\nfor p in positions:\n    if runs and p==runs[-1][1]+1:\n        runs[-1][1]=p\n    else:\n        runs.append([p,p])\nfield='bytes='+','.join(str(a)+'-'+str(b) for a,b in runs) if runs else None\nprefix=0\nfor p in positions:\n    if p!=prefix: break\n    prefix+=1\nstate='complete' if len(positions)==x['total'] else 'partial'\nreturn [state,field,prefix]","root_cause":"The upload-coverage-probe-negative-offset decision uses positions=sorted(set(x['committed']))\nif any(p>=x['total'] for p in positions): return None\nruns=[]\nfor p in positions:\n    if runs and p==runs[-1][1]+1:\n        runs[-1][1]=p\n    else:\n        runs.append([p,p])\nfield='bytes='+','.join(str(a)+'-'+str(b) for a,b in runs) if runs else None\nprefix=0\nfor p in positions:\n    if p!=prefix: break\n    prefix+=1\nstate='complete' if len(positions)==x['total'] else 'partial'\nreturn [state,field,prefix].","sha256":"a623d0815a2eb152129f31206273eeaf623d7cfaff4f4271588adb40a6ae3cf1","title":"An upload status endpoint reports committed byte coverage: negative offsets cannot appear in acknowledged ranges · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":37.892,"exit_code":1,"observations":[{"actual":["partial","bytes=0-1,4-5",2],"check":"negative-offset fixture 0","expected":["partial","bytes=0-1,4-5",2],"passed":true},{"actual":["complete","bytes=0-2",3],"check":"negative-offset fixture 1","expected":["complete","bytes=0-2",3],"passed":true},{"actual":["complete",null,0],"check":"negative-offset fixture 2","expected":["complete",null,0],"passed":true},{"actual":["partial","bytes=2-3",0],"check":"negative-offset fixture 3","expected":["partial","bytes=2-3",0],"passed":true},{"actual":["partial","bytes=0-0,2-2",1],"check":"negative-offset fixture 4","expected":["partial","bytes=0-0,2-2",1],"passed":true},{"actual":["partial","bytes=0-0",1],"check":"negative-offset fixture 5","expected":["partial","bytes=0-0",1],"passed":true},{"actual":null,"check":"negative-offset fixture 6","expected":null,"passed":true},{"actual":["partial","bytes=-1--1",0],"check":"negative-offset fixture 7","expected":null,"passed":false},{"actual":["partial",null,0],"check":"negative-offset fixture 8","expected":["partial",null,0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"negative-offset fixture 0\", \"actual\": [\"partial\", \"bytes=0-1,4-5\", 2], \"expected\": [\"partial\", \"bytes=0-1,4-5\", 2], \"passed\": true}, {\"check\": \"negative-offset fixture 1\", \"actual\": [\"complete\", \"bytes=0-2\", 3], \"expected\": [\"complete\", \"bytes=0-2\", 3], \"passed\": true}, {\"check\": \"negative-offset fixture 2\", \"actual\": [\"complete\", null, 0], \"expected\": [\"complete\", null, 0], \"passed\": true}, {\"check\": \"negative-offset fixture 3\", \"actual\": [\"partial\", \"bytes=2-3\", 0], \"expected\": [\"partial\", \"bytes=2-3\", 0], \"passed\": true}, {\"check\": \"negative-offset fixture 4\", \"actual\": [\"partial\", \"bytes=0-0,2-2\", 1], \"expected\": [\"partial\", \"bytes=0-0,2-2\", 1], \"passed\": true}, {\"check\": \"negative-offset fixture 5\", \"actual\": [\"partial\", \"bytes=0-0\", 1], \"expected\": [\"partial\", \"bytes=0-0\", 1], \"passed\": true}, {\"check\": \"negative-offset fixture 6\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"negative-offset fixture 7\", \"actual\": [\"partial\", \"bytes=-1--1\", 0], \"expected\": null, \"passed\": false}, {\"check\": \"negative-offset fixture 8\", \"actual\": [\"partial\", null, 0], \"expected\": [\"partial\", null, 0], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.076,"exit_code":1,"observations":[{"actual":["partial","bytes=0-1,4-5",2],"check":"negative-offset fixture 0","expected":["partial","bytes=0-1,4-5",2],"passed":true},{"actual":["complete","bytes=0-2",3],"check":"negative-offset fixture 1","expected":["complete","bytes=0-2",3],"passed":true},{"actual":["complete",null,0],"check":"negative-offset fixture 2","expected":["complete",null,0],"passed":true},{"actual":["partial","bytes=2-3",0],"check":"negative-offset fixture 3","expected":["partial","bytes=2-3",0],"passed":true},{"actual":["partial","bytes=0-0,2-2",1],"check":"negative-offset fixture 4","expected":["partial","bytes=0-0,2-2",1],"passed":true},{"actual":["partial","bytes=0-0",1],"check":"negative-offset fixture 5","expected":["partial","bytes=0-0",1],"passed":true},{"actual":null,"check":"negative-offset fixture 6","expected":null,"passed":true},{"actual":["partial","bytes=-1--1",0],"check":"negative-offset fixture 7","expected":null,"passed":false},{"actual":["partial",null,0],"check":"negative-offset fixture 8","expected":["partial",null,0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"negative-offset fixture 0\", \"actual\": [\"partial\", \"bytes=0-1,4-5\", 2], \"expected\": [\"partial\", \"bytes=0-1,4-5\", 2], \"passed\": true}, {\"check\": \"negative-offset fixture 1\", \"actual\": [\"complete\", \"bytes=0-2\", 3], \"expected\": [\"complete\", \"bytes=0-2\", 3], \"passed\": true}, {\"check\": \"negative-offset fixture 2\", \"actual\": [\"complete\", null, 0], \"expected\": [\"complete\", null, 0], \"passed\": true}, {\"check\": \"negative-offset fixture 3\", \"actual\": [\"partial\", \"bytes=2-3\", 0], \"expected\": [\"partial\", \"bytes=2-3\", 0], \"passed\": true}, {\"check\": \"negative-offset fixture 4\", \"actual\": [\"partial\", \"bytes=0-0,2-2\", 1], \"expected\": [\"partial\", \"bytes=0-0,2-2\", 1], \"passed\": true}, {\"check\": \"negative-offset fixture 5\", \"actual\": [\"partial\", \"bytes=0-0\", 1], \"expected\": [\"partial\", \"bytes=0-0\", 1], \"passed\": true}, {\"check\": \"negative-offset fixture 6\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"negative-offset fixture 7\", \"actual\": [\"partial\", \"bytes=-1--1\", 0], \"expected\": null, \"passed\": false}, {\"check\": \"negative-offset fixture 8\", \"actual\": [\"partial\", null, 0], \"expected\": [\"partial\", null, 0], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.386,"exit_code":0,"observations":[{"actual":["partial","bytes=0-1,4-5",2],"check":"negative-offset fixture 0","expected":["partial","bytes=0-1,4-5",2],"passed":true},{"actual":["complete","bytes=0-2",3],"check":"negative-offset fixture 1","expected":["complete","bytes=0-2",3],"passed":true},{"actual":["complete",null,0],"check":"negative-offset fixture 2","expected":["complete",null,0],"passed":true},{"actual":["partial","bytes=2-3",0],"check":"negative-offset fixture 3","expected":["partial","bytes=2-3",0],"passed":true},{"actual":["partial","bytes=0-0,2-2",1],"check":"negative-offset fixture 4","expected":["partial","bytes=0-0,2-2",1],"passed":true},{"actual":["partial","bytes=0-0",1],"check":"negative-offset fixture 5","expected":["partial","bytes=0-0",1],"passed":true},{"actual":null,"check":"negative-offset fixture 6","expected":null,"passed":true},{"actual":null,"check":"negative-offset fixture 7","expected":null,"passed":true},{"actual":["partial",null,0],"check":"negative-offset fixture 8","expected":["partial",null,0],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"negative-offset fixture 0\", \"actual\": [\"partial\", \"bytes=0-1,4-5\", 2], \"expected\": [\"partial\", \"bytes=0-1,4-5\", 2], \"passed\": true}, {\"check\": \"negative-offset fixture 1\", \"actual\": [\"complete\", \"bytes=0-2\", 3], \"expected\": [\"complete\", \"bytes=0-2\", 3], \"passed\": true}, {\"check\": \"negative-offset fixture 2\", \"actual\": [\"complete\", null, 0], \"expected\": [\"complete\", null, 0], \"passed\": true}, {\"check\": \"negative-offset fixture 3\", \"actual\": [\"partial\", \"bytes=2-3\", 0], \"expected\": [\"partial\", \"bytes=2-3\", 0], \"passed\": true}, {\"check\": \"negative-offset fixture 4\", \"actual\": [\"partial\", \"bytes=0-0,2-2\", 1], \"expected\": [\"partial\", \"bytes=0-0,2-2\", 1], \"passed\": true}, {\"check\": \"negative-offset fixture 5\", \"actual\": [\"partial\", \"bytes=0-0\", 1], \"expected\": [\"partial\", \"bytes=0-0\", 1], \"passed\": true}, {\"check\": \"negative-offset fixture 6\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"negative-offset fixture 7\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"negative-offset fixture 8\", \"actual\": [\"partial\", null, 0], \"expected\": [\"partial\", null, 0], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}