{"abstract":"Route priority is secondary to match specificity.","category":"Network routing","checks":4,"contract":"Bounded offline decision model: route priority is secondary to match specificity. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.","evaluation_group":"xh-route-priority-is-secondary-to-match-specificity","failed_approach":"The attempted repair uses `max(routes,key=lambda r:r[1])[0] if routes else None` and still violates a separate fixture.","family":"xh-route-priority-is-secondary-to-match-specificity","id":"FA-7166","implementations":{"attempt":{"sha256":"5f8277bddfc734d08115316c60a5466dbf68015d50a6615d940c351622a05889","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):\n    return max(routes,key=lambda r:r[1])[0] if routes else 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', 3, 1), ('b', 2, 9)]), 'a')\", \"check('fixture 2', solve([('a', 3, 1), ('b', 3, 9)]), 'b')\", \"check('fixture 3', solve([]), None)\", \"check('fixture 4', solve([('a', 1, 1)]), 'a')\"]\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":"945592ae660cbfef578ed61cc202ac18b836456e544e92ac9343b8212abc5a12","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):\n    return max(routes,key=lambda r:r[2])[0] if routes else 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', 3, 1), ('b', 2, 9)]), 'a')\", \"check('fixture 2', solve([('a', 3, 1), ('b', 3, 9)]), 'b')\", \"check('fixture 3', solve([]), None)\", \"check('fixture 4', solve([('a', 1, 1)]), 'a')\"]\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":"a85cb29802c54747ed5f5465a536ca93cb717094a4281d77b66872b92e44b474","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):\n    return max(routes,key=lambda r:(r[1],r[2]))[0] if routes else 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', 3, 1), ('b', 2, 9)]), 'a')\", \"check('fixture 2', solve([('a', 3, 1), ('b', 3, 9)]), 'b')\", \"check('fixture 3', solve([]), None)\", \"check('fixture 4', solve([('a', 1, 1)]), 'a')\"]\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-priority-is-secondary-to-match-specificity","generated_at":"2026-09-29T14:38:09.063472+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic network routing model isolates the route-priority-is-secondary-to-match-specificity policy at a network component boundary.","repair":"Apply the explicit route-priority-is-secondary-to-match-specificity contract, including the tested boundary and negative cases.","root_cause":"The faulty implementation uses `max(routes,key=lambda r:r[2])[0] if routes else None` for the route-priority-is-secondary-to-match-specificity decision.","sha256":"c2de74c1846c487c13a0cc3d7d13c149029ecdb3024c32c96a4d776f922cf03f","title":"Route priority is secondary to match specificity · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":53.044,"exit_code":1,"observations":[{"actual":"a","check":"fixture 2","expected":"b","passed":false},{"actual":null,"check":"fixture 3","expected":null,"passed":true},{"actual":"a","check":"fixture 4","expected":"a","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\": \"a\", \"expected\": \"a\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.863,"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":"a","passed":true},{"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\": \"a\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"b\", \"expected\": \"a\", \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":43.219,"exit_code":0,"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":"a","passed":true},{"actual":"a","check":"fixture 1","expected":"a","passed":true}],"passed":true,"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\": \"a\", \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": \"a\", \"expected\": \"a\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}