{"abstract":"Only outer optional whitespace is accepted around range unit tokens.","category":"HTTP ranges","checks":6,"contract":"Trim spaces and tabs around unit; return bytes only for exact case-insensitive bytes token afterward, otherwise None. Interior whitespace is invalid.","contract_signature":"unit","evaluation_group":"s3-http_ranges-request-fields","failed_approach":"The partial repair uses return \"bytes\" if unit.lower()==\"bytes\" else None, which still violates the stated contract.","family":"s3-http_ranges-range-unit-whitespace","id":"FA-26666","implementations":{"attempt":{"sha256":"e257aae12dd68b137c976675fc61a26156ffc37e4f112d0c75c50d69140bd4aa","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(unit):\n    return \"bytes\" if unit.lower()==\"bytes\" else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('range-unit-whitespace fixture 0', solve(\"by tes\"), None)\ncheck('range-unit-whitespace fixture 1', solve(\" \\tBYTES \\t\"), \"bytes\")\ncheck('range-unit-whitespace fixture 2', solve(\"bytes\"), \"bytes\")\ncheck('range-unit-whitespace fixture 3', solve(\"items\"), None)\ncheck('range-unit-whitespace fixture 4', solve(\"bytes\"+\" \"*N), \"bytes\")\ncheck('range-unit-whitespace fixture 5', solve(\"byte\\ns\"), None)\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":"0b1870a1ddbd785767eb91610647abdc2f0ea873ee06911f4c89a1a25be193e5","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(unit):\n    return \"bytes\" if \"\".join(unit.split()).lower()==\"bytes\" else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('range-unit-whitespace fixture 0', solve(\"by tes\"), None)\ncheck('range-unit-whitespace fixture 1', solve(\" \\tBYTES \\t\"), \"bytes\")\ncheck('range-unit-whitespace fixture 2', solve(\"bytes\"), \"bytes\")\ncheck('range-unit-whitespace fixture 3', solve(\"items\"), None)\ncheck('range-unit-whitespace fixture 4', solve(\"bytes\"+\" \"*N), \"bytes\")\ncheck('range-unit-whitespace fixture 5', solve(\"byte\\ns\"), None)\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-range-unit-whitespace","generated_at":"2026-09-29T14:41:18.114762+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 range-unit-whitespace decision uses return \"bytes\" if \"\".join(unit.split()).lower()==\"bytes\" else None.","sha256":"ac0554e1c91bd1c46049fea785d9811c14c02d6f79170ca02a84dfdabaae53fa","title":"Only outer optional whitespace is accepted around range unit tokens · 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":40.669,"exit_code":1,"observations":[{"actual":null,"check":"range-unit-whitespace fixture 0","expected":null,"passed":true},{"actual":null,"check":"range-unit-whitespace fixture 1","expected":"bytes","passed":false},{"actual":"bytes","check":"range-unit-whitespace fixture 2","expected":"bytes","passed":true},{"actual":null,"check":"range-unit-whitespace fixture 3","expected":null,"passed":true},{"actual":null,"check":"range-unit-whitespace fixture 4","expected":"bytes","passed":false},{"actual":null,"check":"range-unit-whitespace fixture 5","expected":null,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"range-unit-whitespace fixture 0\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"range-unit-whitespace fixture 1\", \"actual\": null, \"expected\": \"bytes\", \"passed\": false}, {\"check\": \"range-unit-whitespace fixture 2\", \"actual\": \"bytes\", \"expected\": \"bytes\", \"passed\": true}, {\"check\": \"range-unit-whitespace fixture 3\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"range-unit-whitespace fixture 4\", \"actual\": null, \"expected\": \"bytes\", \"passed\": false}, {\"check\": \"range-unit-whitespace fixture 5\", \"actual\": null, \"expected\": null, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.023,"exit_code":1,"observations":[{"actual":"bytes","check":"range-unit-whitespace fixture 0","expected":null,"passed":false},{"actual":"bytes","check":"range-unit-whitespace fixture 1","expected":"bytes","passed":true},{"actual":"bytes","check":"range-unit-whitespace fixture 2","expected":"bytes","passed":true},{"actual":null,"check":"range-unit-whitespace fixture 3","expected":null,"passed":true},{"actual":"bytes","check":"range-unit-whitespace fixture 4","expected":"bytes","passed":true},{"actual":"bytes","check":"range-unit-whitespace fixture 5","expected":null,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"range-unit-whitespace fixture 0\", \"actual\": \"bytes\", \"expected\": null, \"passed\": false}, {\"check\": \"range-unit-whitespace fixture 1\", \"actual\": \"bytes\", \"expected\": \"bytes\", \"passed\": true}, {\"check\": \"range-unit-whitespace fixture 2\", \"actual\": \"bytes\", \"expected\": \"bytes\", \"passed\": true}, {\"check\": \"range-unit-whitespace fixture 3\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"range-unit-whitespace fixture 4\", \"actual\": \"bytes\", \"expected\": \"bytes\", \"passed\": true}, {\"check\": \"range-unit-whitespace fixture 5\", \"actual\": \"bytes\", \"expected\": null, \"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."}}