{"abstract":"Route method filter is applied before priority.","category":"Network routing","checks":4,"contract":"Bounded offline decision model: route method filter is applied before priority. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.","contract_signature":"routes, method","evaluation_group":"xh-route-method-filter-is-applied-before-priority","failed_approach":"The attempted repair uses `next((r[0] for r in routes if method in r[1]),None)` and still violates a separate fixture.","family":"xh-route-method-filter-is-applied-before-priority","id":"FA-7111","implementations":{"attempt":{"sha256":"3ffe6ad1f03592b943accb4656a9e0019786b747f3dbebb4b78af235d49356e9","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(routes, method):\n    return next((r[0] for r in routes if method in r[1]),None)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve([('a', ['GET'], 1), ('b', ['POST'], 9)], 'GET'), 'a')\", \"check('fixture 2', solve([('a', ['GET'], 1), ('b', ['GET'], 9)], 'GET'), 'b')\", \"check('fixture 3', solve([], 'GET'), None)\", \"check('fixture 4', solve([('a', ['POST'], 1)], 'GET'), None)\"]\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":"938830de75fcfd121be8692196f9cfb17e77c21397f2ef2bce79139473163169","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(routes, method):\n    return max(routes,key=lambda r:r[2],default=(None,))[0]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve([('a', ['GET'], 1), ('b', ['POST'], 9)], 'GET'), 'a')\", \"check('fixture 2', solve([('a', ['GET'], 1), ('b', ['GET'], 9)], 'GET'), 'b')\", \"check('fixture 3', solve([], 'GET'), None)\", \"check('fixture 4', solve([('a', ['POST'], 1)], 'GET'), None)\"]\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-method-filter-is-applied-before-priority","generated_at":"2026-09-29T14:38:08.471389+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic network routing model isolates the route-method-filter-is-applied-before-priority policy at a network component boundary.","root_cause":"The faulty implementation uses `max(routes,key=lambda r:r[2],default=(None,))[0]` for the route-method-filter-is-applied-before-priority decision.","sha256":"5b45046c6011d67c6c0d95a7a7c085af10b21c6daa787f50fbb80e428dd2f57b","title":"Route method filter is applied before priority · 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":35.415,"exit_code":1,"observations":[{"actual":"a","check":"fixture 2","expected":"b","passed":false},{"actual":null,"check":"fixture 3","expected":null,"passed":true},{"actual":null,"check":"fixture 4","expected":null,"passed":true},{"actual":"a","check":"fixture 1","expected":"a","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"a\", \"expected\": \"b\", \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":35.642,"exit_code":1,"observations":[{"actual":"b","check":"fixture 2","expected":"b","passed":true},{"actual":null,"check":"fixture 3","expected":null,"passed":true},{"actual":"a","check":"fixture 4","expected":null,"passed":false},{"actual":"b","check":"fixture 1","expected":"a","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"b\", \"expected\": \"b\", \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"a\", \"expected\": null, \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": \"b\", \"expected\": \"a\", \"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."}}