{"abstract":"Disabled routes are removed before preference selection.","category":"Network routing","checks":4,"contract":"Bounded offline decision model: disabled routes are removed before preference selection. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.","contract_signature":"routes","evaluation_group":"xh-disabled-routes-are-removed-before-preference-selection","failed_approach":"The attempted repair uses `min((r for r in routes if r[2]),key=lambda r:r[1],default=(None,))[0]` and still violates a separate fixture.","family":"xh-disabled-routes-are-removed-before-preference-selection","id":"FA-7091","implementations":{"attempt":{"sha256":"5a0bb42393f5276eae678ba35b4a7358e40f3ee12907b702e15e5c5dd3bbd249","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 min((r for r in routes if r[2]),key=lambda r:r[1],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([('bad', 9, False), ('a', 5, True)]), 'a')\", \"check('fixture 2', solve([('a', 5, True), ('b', 9, True)]), 'b')\", \"check('fixture 3', solve([]), None)\", \"check('fixture 4', solve([('bad', 9, False)]), 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":"c304bfef51da990efe9b0682c3d76ed59a3974b6017e04cc2f9e13a8f47677c9","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],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([('bad', 9, False), ('a', 5, True)]), 'a')\", \"check('fixture 2', solve([('a', 5, True), ('b', 9, True)]), 'b')\", \"check('fixture 3', solve([]), None)\", \"check('fixture 4', solve([('bad', 9, False)]), 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-disabled-routes-are-removed-before-preference-selection","generated_at":"2026-09-29T14:38:08.359073+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic network routing model isolates the disabled-routes-are-removed-before-preference-selection policy at a network component boundary.","root_cause":"The faulty implementation uses `max(routes,key=lambda r:r[1],default=(None,))[0]` for the disabled-routes-are-removed-before-preference-selection decision.","sha256":"a1c6e60321a13739cc774bebd4b235ba72384adbf773b80e9942070e11ad71f9","title":"Disabled routes are removed before preference selection · 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":129.578,"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":38.79,"exit_code":1,"observations":[{"actual":"b","check":"fixture 2","expected":"b","passed":true},{"actual":null,"check":"fixture 3","expected":null,"passed":true},{"actual":"bad","check":"fixture 4","expected":null,"passed":false},{"actual":"bad","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\": \"bad\", \"expected\": null, \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": \"bad\", \"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."}}