{"abstract":"A short socket write preserves the unsent byte suffix.","category":"HTTP ranges","checks":6,"contract":"accepted is a valid integer count in [0,len(pending)]. Return remaining ASCII bytes after only that count was accepted.","evaluation_group":"s3-http_ranges-stream-transfer","failed_approach":"The partial repair uses return pending[accepted:] if accepted else \"\", which still violates the stated contract.","family":"s3-http_ranges-stream-short-write-resume","id":"FA-26541","implementations":{"attempt":{"sha256":"0ffbb15fa5decfa725df4625dfda456573706d080929989de4f2f2d6e358a286","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(pending, accepted):\n    return pending[accepted:] if accepted else \"\"\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('stream-short-write-resume fixture 0', solve(\"abc\"*N,N), (\"abc\"*N)[N:])\ncheck('stream-short-write-resume fixture 1', solve(\"abc\",0), \"abc\")\ncheck('stream-short-write-resume fixture 2', solve(\"abc\",3), \"\")\ncheck('stream-short-write-resume fixture 3', solve(\"\",0), \"\")\ncheck('stream-short-write-resume fixture 4', solve(\"x\",1), \"\")\ncheck('stream-short-write-resume fixture 5', solve(\"abcd\",2), \"cd\")\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":"ac514114da33c57d75bbcc39cb766855c161633fb347374642b2f9d6f31b55d4","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(pending, accepted):\n    return \"\"\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('stream-short-write-resume fixture 0', solve(\"abc\"*N,N), (\"abc\"*N)[N:])\ncheck('stream-short-write-resume fixture 1', solve(\"abc\",0), \"abc\")\ncheck('stream-short-write-resume fixture 2', solve(\"abc\",3), \"\")\ncheck('stream-short-write-resume fixture 3', solve(\"\",0), \"\")\ncheck('stream-short-write-resume fixture 4', solve(\"x\",1), \"\")\ncheck('stream-short-write-resume fixture 5', solve(\"abcd\",2), \"cd\")\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":"42ec9089dbdbbeed4054a6707c507e83a0923e608d31aaeb4fc1f19146e2fced","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(pending, accepted):\n    return pending[accepted:]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('stream-short-write-resume fixture 0', solve(\"abc\"*N,N), (\"abc\"*N)[N:])\ncheck('stream-short-write-resume fixture 1', solve(\"abc\",0), \"abc\")\ncheck('stream-short-write-resume fixture 2', solve(\"abc\",3), \"\")\ncheck('stream-short-write-resume fixture 3', solve(\"\",0), \"\")\ncheck('stream-short-write-resume fixture 4', solve(\"x\",1), \"\")\ncheck('stream-short-write-resume fixture 5', solve(\"abcd\",2), \"cd\")\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-stream-short-write-resume","generated_at":"2026-09-29T14:41:16.906514+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: return pending[accepted:]","root_cause":"The stream-short-write-resume decision uses return \"\".","sha256":"0b90ec7cf24c4f3309f96c453b19fc5aba14ad858a9a6a95fc616d799f205387","title":"A short socket write preserves the unsent byte suffix · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":38.758,"exit_code":1,"observations":[{"actual":"bc","check":"stream-short-write-resume fixture 0","expected":"bc","passed":true},{"actual":"","check":"stream-short-write-resume fixture 1","expected":"abc","passed":false},{"actual":"","check":"stream-short-write-resume fixture 2","expected":"","passed":true},{"actual":"","check":"stream-short-write-resume fixture 3","expected":"","passed":true},{"actual":"","check":"stream-short-write-resume fixture 4","expected":"","passed":true},{"actual":"cd","check":"stream-short-write-resume fixture 5","expected":"cd","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"stream-short-write-resume fixture 0\", \"actual\": \"bc\", \"expected\": \"bc\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 1\", \"actual\": \"\", \"expected\": \"abc\", \"passed\": false}, {\"check\": \"stream-short-write-resume fixture 2\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 3\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 4\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 5\", \"actual\": \"cd\", \"expected\": \"cd\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.708,"exit_code":1,"observations":[{"actual":"","check":"stream-short-write-resume fixture 0","expected":"bc","passed":false},{"actual":"","check":"stream-short-write-resume fixture 1","expected":"abc","passed":false},{"actual":"","check":"stream-short-write-resume fixture 2","expected":"","passed":true},{"actual":"","check":"stream-short-write-resume fixture 3","expected":"","passed":true},{"actual":"","check":"stream-short-write-resume fixture 4","expected":"","passed":true},{"actual":"","check":"stream-short-write-resume fixture 5","expected":"cd","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"stream-short-write-resume fixture 0\", \"actual\": \"\", \"expected\": \"bc\", \"passed\": false}, {\"check\": \"stream-short-write-resume fixture 1\", \"actual\": \"\", \"expected\": \"abc\", \"passed\": false}, {\"check\": \"stream-short-write-resume fixture 2\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 3\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 4\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 5\", \"actual\": \"\", \"expected\": \"cd\", \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.254,"exit_code":0,"observations":[{"actual":"bc","check":"stream-short-write-resume fixture 0","expected":"bc","passed":true},{"actual":"abc","check":"stream-short-write-resume fixture 1","expected":"abc","passed":true},{"actual":"","check":"stream-short-write-resume fixture 2","expected":"","passed":true},{"actual":"","check":"stream-short-write-resume fixture 3","expected":"","passed":true},{"actual":"","check":"stream-short-write-resume fixture 4","expected":"","passed":true},{"actual":"cd","check":"stream-short-write-resume fixture 5","expected":"cd","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"stream-short-write-resume fixture 0\", \"actual\": \"bc\", \"expected\": \"bc\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 1\", \"actual\": \"abc\", \"expected\": \"abc\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 2\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 3\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 4\", \"actual\": \"\", \"expected\": \"\", \"passed\": true}, {\"check\": \"stream-short-write-resume fixture 5\", \"actual\": \"cd\", \"expected\": \"cd\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}