{"abstract":"Multipart Content-Length includes headers and closing bytes.","category":"HTTP ranges","checks":6,"contract":"Inputs are ASCII strings, with each header already including its separator and each payload already including its trailing framing CRLF. Return total wire length.","contract_signature":"headers, payloads, closing","evaluation_group":"s3-http_ranges-multipart","failed_approach":"The partial repair uses return sum(map(len,headers))+sum(map(len,payloads)), which still violates the stated contract.","family":"s3-http_ranges-multipart-length-includes-framing","id":"FA-26466","implementations":{"attempt":{"sha256":"1dff714a91c72652674125d61b5b15945ef9752916efeeb35d02747830180556","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(headers, payloads, closing):\n    return sum(map(len,headers))+sum(map(len,payloads))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('multipart-length-includes-framing fixture 0', solve( [\"h\"*N],[\"p\"*N],\"end\"), 2*N+3)\ncheck('multipart-length-includes-framing fixture 1', solve([],[],\"end\"), 3)\ncheck('multipart-length-includes-framing fixture 2', solve([\"ab\",\"c\"],[\"de\",\"f\"],\"x\"), 7)\ncheck('multipart-length-includes-framing fixture 3', solve([\"\"],[\"\"],\"\"), 0)\ncheck('multipart-length-includes-framing fixture 4', solve([\"h\"],[\"\"],\"x\"), 2)\ncheck('multipart-length-includes-framing fixture 5', solve([\"\"],[\"pp\"],\"x\"), 3)\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":"a1cf46171fe5e648f9f5cef5e1347f5259af64dc0d6f75609d2a20683098a3a0","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(headers, payloads, closing):\n    return sum(map(len,payloads))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('multipart-length-includes-framing fixture 0', solve( [\"h\"*N],[\"p\"*N],\"end\"), 2*N+3)\ncheck('multipart-length-includes-framing fixture 1', solve([],[],\"end\"), 3)\ncheck('multipart-length-includes-framing fixture 2', solve([\"ab\",\"c\"],[\"de\",\"f\"],\"x\"), 7)\ncheck('multipart-length-includes-framing fixture 3', solve([\"\"],[\"\"],\"\"), 0)\ncheck('multipart-length-includes-framing fixture 4', solve([\"h\"],[\"\"],\"x\"), 2)\ncheck('multipart-length-includes-framing fixture 5', solve([\"\"],[\"pp\"],\"x\"), 3)\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-multipart-length-includes-framing","generated_at":"2026-09-29T14:41:16.287556+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.","root_cause":"The multipart-length-includes-framing decision uses return sum(map(len,payloads)).","sha256":"1d6cb2bee396fb5cf99392fae6b301a3a0af8b64ac371955ac9818df35f7aa16","title":"Multipart Content-Length includes headers and closing bytes · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":36.686,"exit_code":1,"observations":[{"actual":2,"check":"multipart-length-includes-framing fixture 0","expected":5,"passed":false},{"actual":0,"check":"multipart-length-includes-framing fixture 1","expected":3,"passed":false},{"actual":6,"check":"multipart-length-includes-framing fixture 2","expected":7,"passed":false},{"actual":0,"check":"multipart-length-includes-framing fixture 3","expected":0,"passed":true},{"actual":1,"check":"multipart-length-includes-framing fixture 4","expected":2,"passed":false},{"actual":2,"check":"multipart-length-includes-framing fixture 5","expected":3,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"multipart-length-includes-framing fixture 0\", \"actual\": 2, \"expected\": 5, \"passed\": false}, {\"check\": \"multipart-length-includes-framing fixture 1\", \"actual\": 0, \"expected\": 3, \"passed\": false}, {\"check\": \"multipart-length-includes-framing fixture 2\", \"actual\": 6, \"expected\": 7, \"passed\": false}, {\"check\": \"multipart-length-includes-framing fixture 3\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"multipart-length-includes-framing fixture 4\", \"actual\": 1, \"expected\": 2, \"passed\": false}, {\"check\": \"multipart-length-includes-framing fixture 5\", \"actual\": 2, \"expected\": 3, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.974,"exit_code":1,"observations":[{"actual":1,"check":"multipart-length-includes-framing fixture 0","expected":5,"passed":false},{"actual":0,"check":"multipart-length-includes-framing fixture 1","expected":3,"passed":false},{"actual":3,"check":"multipart-length-includes-framing fixture 2","expected":7,"passed":false},{"actual":0,"check":"multipart-length-includes-framing fixture 3","expected":0,"passed":true},{"actual":0,"check":"multipart-length-includes-framing fixture 4","expected":2,"passed":false},{"actual":2,"check":"multipart-length-includes-framing fixture 5","expected":3,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"multipart-length-includes-framing fixture 0\", \"actual\": 1, \"expected\": 5, \"passed\": false}, {\"check\": \"multipart-length-includes-framing fixture 1\", \"actual\": 0, \"expected\": 3, \"passed\": false}, {\"check\": \"multipart-length-includes-framing fixture 2\", \"actual\": 3, \"expected\": 7, \"passed\": false}, {\"check\": \"multipart-length-includes-framing fixture 3\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"multipart-length-includes-framing fixture 4\", \"actual\": 0, \"expected\": 2, \"passed\": false}, {\"check\": \"multipart-length-includes-framing fixture 5\", \"actual\": 2, \"expected\": 3, \"passed\": false}], \"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."}}