{"abstract":"Range on encoded response addresses coded representation.","category":"Content negotiation","checks":4,"contract":"Given encoded, coded, plain, start, end, range on encoded response addresses coded representation. Return the protocol decision or transformed value; fields are validated and fixtures state boundary outcomes.","evaluation_group":"xh-range-on-encoded-response-addresses-coded-representation","failed_approach":"The attempted repair uses `(coded if encoded else plain)[start:end]` and still violates a separate fixture.","family":"xh-range-on-encoded-response-addresses-coded-representation","id":"FA-6921","implementations":{"attempt":{"sha256":"5f0a417ebb262a65357d3ffb62c2c626e5e1937b5a93f826cb60fcfe83aecef8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport ipaddress\nimport re\nfrom urllib.parse import urlsplit, urljoin\nN = 1\nobservations = []\ndef solve(encoded, coded, plain, start, end):\n    return (coded if encoded else plain)[start:end]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve(True, 'abcd', '0123456789', 1, 2), 'bc')\", \"check('fixture 2', solve(False, 'abcd', '0123456789', 1, 2), '12')\", \"check('fixture 3', solve(True, 'abc', 'x', 0, 0), 'a')\", \"check('fixture 4', solve(False, 'a', 'xyz', 1, 9), 'yz')\"]\nfor _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:\n    exec(_line)\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":"1352aeb370c09957f674594b7a282662efa1c69004e58ccc4aec5b53583bd3e2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport ipaddress\nimport re\nfrom urllib.parse import urlsplit, urljoin\nN = 1\nobservations = []\ndef solve(encoded, coded, plain, start, end):\n    return plain[start:end+1]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve(True, 'abcd', '0123456789', 1, 2), 'bc')\", \"check('fixture 2', solve(False, 'abcd', '0123456789', 1, 2), '12')\", \"check('fixture 3', solve(True, 'abc', 'x', 0, 0), 'a')\", \"check('fixture 4', solve(False, 'a', 'xyz', 1, 9), 'yz')\"]\nfor _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:\n    exec(_line)\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":"849e54e063319b1484b31fb069cfd04bfe43000e6f505f38ded4aa93a022f800","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport ipaddress\nimport re\nfrom urllib.parse import urlsplit, urljoin\nN = 1\nobservations = []\ndef solve(encoded, coded, plain, start, end):\n    return (coded if encoded else plain)[start:end+1]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve(True, 'abcd', '0123456789', 1, 2), 'bc')\", \"check('fixture 2', solve(False, 'abcd', '0123456789', 1, 2), '12')\", \"check('fixture 3', solve(True, 'abc', 'x', 0, 0), 'a')\", \"check('fixture 4', solve(False, 'a', 'xyz', 1, 9), 'yz')\"]\nfor _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:\n    exec(_line)\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":"Bounded deterministic policy model over validated inputs; not a complete protocol stack or an interoperability claim. The five variants rotate the same explicit fixture set. 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":"xh-range-on-encoded-response-addresses-coded-representation","generated_at":"2026-09-29T14:38:06.516116+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic content negotiation model isolates the range-on-encoded-response-addresses-coded-representation policy at a network component boundary.","repair":"Apply the explicit range-on-encoded-response-addresses-coded-representation contract, including the tested boundary and negative cases.","root_cause":"The faulty implementation uses `plain[start:end+1]` for the range-on-encoded-response-addresses-coded-representation decision.","sha256":"cc1f7de087ee0b1b2cc5711d6263203499f6b62cd844de15c12974a6d403d358","title":"Range on encoded response addresses coded representation · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":37.033,"exit_code":1,"observations":[{"actual":"1","check":"fixture 2","expected":"12","passed":false},{"actual":"","check":"fixture 3","expected":"a","passed":false},{"actual":"yz","check":"fixture 4","expected":"yz","passed":true},{"actual":"b","check":"fixture 1","expected":"bc","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"1\", \"expected\": \"12\", \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": \"\", \"expected\": \"a\", \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": \"yz\", \"expected\": \"yz\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"b\", \"expected\": \"bc\", \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.615,"exit_code":1,"observations":[{"actual":"12","check":"fixture 2","expected":"12","passed":true},{"actual":"x","check":"fixture 3","expected":"a","passed":false},{"actual":"yz","check":"fixture 4","expected":"yz","passed":true},{"actual":"12","check":"fixture 1","expected":"bc","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"12\", \"expected\": \"12\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"x\", \"expected\": \"a\", \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": \"yz\", \"expected\": \"yz\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"12\", \"expected\": \"bc\", \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":36.38,"exit_code":0,"observations":[{"actual":"12","check":"fixture 2","expected":"12","passed":true},{"actual":"a","check":"fixture 3","expected":"a","passed":true},{"actual":"yz","check":"fixture 4","expected":"yz","passed":true},{"actual":"bc","check":"fixture 1","expected":"bc","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"12\", \"expected\": \"12\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"yz\", \"expected\": \"yz\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"bc\", \"expected\": \"bc\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}