{"abstract":"Route rewrite adds exactly one path separator.","category":"Network routing","checks":4,"contract":"Bounded offline decision model: route rewrite adds exactly one path separator. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.","evaluation_group":"xh-route-rewrite-adds-exactly-one-path-separator","failed_approach":"The attempted repair uses `base+\"/\"+tail` and still violates a separate fixture.","family":"xh-route-rewrite-adds-exactly-one-path-separator","id":"FA-7161","implementations":{"attempt":{"sha256":"9fac127e44e7312d17923562d7d62eb18961d49ecc050fc18b271375e2a95aac","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(base, tail):\n    return base+\"/\"+tail\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('/v1/', '/x'), '/v1/x')\", \"check('fixture 2', solve('/v1', 'x'), '/v1/x')\", \"check('fixture 3', solve('/', '/'), '/')\", \"check('fixture 4', solve('/v1/', ''), '/v1/')\"]\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":"63c7a1db645b2b6ea34aaa17fd8cdb9b7890dc77fd6edb20b84563ab730bbd0f","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(base, tail):\n    return base+tail\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('/v1/', '/x'), '/v1/x')\", \"check('fixture 2', solve('/v1', 'x'), '/v1/x')\", \"check('fixture 3', solve('/', '/'), '/')\", \"check('fixture 4', solve('/v1/', ''), '/v1/')\"]\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":"ac25b2e5bf5d365736f95a7e7325e2fd8eb8973a2e71267cf193d5be218e07f6","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(base, tail):\n    return base.rstrip(\"/\")+\"/\"+tail.lstrip(\"/\")\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('/v1/', '/x'), '/v1/x')\", \"check('fixture 2', solve('/v1', 'x'), '/v1/x')\", \"check('fixture 3', solve('/', '/'), '/')\", \"check('fixture 4', solve('/v1/', ''), '/v1/')\"]\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-route-rewrite-adds-exactly-one-path-separator","generated_at":"2026-09-29T14:38:08.973918+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic network routing model isolates the route-rewrite-adds-exactly-one-path-separator policy at a network component boundary.","repair":"Apply the explicit route-rewrite-adds-exactly-one-path-separator contract, including the tested boundary and negative cases.","root_cause":"The faulty implementation uses `base+tail` for the route-rewrite-adds-exactly-one-path-separator decision.","sha256":"103a204d0ce7d0dceb79e6aa5ade13f9c38b26e620717180e66d3db5889f8813","title":"Route rewrite adds exactly one path separator · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":38.358,"exit_code":1,"observations":[{"actual":"/v1/x","check":"fixture 2","expected":"/v1/x","passed":true},{"actual":"///","check":"fixture 3","expected":"/","passed":false},{"actual":"/v1//","check":"fixture 4","expected":"/v1/","passed":false},{"actual":"/v1///x","check":"fixture 1","expected":"/v1/x","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"/v1/x\", \"expected\": \"/v1/x\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"///\", \"expected\": \"/\", \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": \"/v1//\", \"expected\": \"/v1/\", \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": \"/v1///x\", \"expected\": \"/v1/x\", \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":45.756,"exit_code":1,"observations":[{"actual":"/v1x","check":"fixture 2","expected":"/v1/x","passed":false},{"actual":"//","check":"fixture 3","expected":"/","passed":false},{"actual":"/v1/","check":"fixture 4","expected":"/v1/","passed":true},{"actual":"/v1//x","check":"fixture 1","expected":"/v1/x","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"/v1x\", \"expected\": \"/v1/x\", \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": \"//\", \"expected\": \"/\", \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": \"/v1/\", \"expected\": \"/v1/\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"/v1//x\", \"expected\": \"/v1/x\", \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":44.346,"exit_code":0,"observations":[{"actual":"/v1/x","check":"fixture 2","expected":"/v1/x","passed":true},{"actual":"/","check":"fixture 3","expected":"/","passed":true},{"actual":"/v1/","check":"fixture 4","expected":"/v1/","passed":true},{"actual":"/v1/x","check":"fixture 1","expected":"/v1/x","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"/v1/x\", \"expected\": \"/v1/x\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": \"/\", \"expected\": \"/\", \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"/v1/\", \"expected\": \"/v1/\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"/v1/x\", \"expected\": \"/v1/x\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}