{"abstract":"Weighted route selection uses cumulative half open buckets.","category":"Network routing","checks":4,"contract":"Bounded offline decision model: weighted route selection uses cumulative half open buckets. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.","evaluation_group":"xh-weighted-route-selection-uses-cumulative-half-open-buckets","failed_approach":"The attempted repair uses `next((i for i,w in enumerate(weights) if draw < w),None)` and still violates a separate fixture.","family":"xh-weighted-route-selection-uses-cumulative-half-open-buckets","id":"FA-7126","implementations":{"attempt":{"sha256":"9578ce16c0a0382c6ab642c73c98056b6fa14f50998a26e202388310ec8547aa","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(weights, draw):\n    return next((i for i,w in enumerate(weights) if draw < w),None)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve([2, 3], 2), 1)\", \"check('fixture 2', solve([2, 3], 4), 1)\", \"check('fixture 3', solve([0, 2], 0), 1)\", \"check('fixture 4', solve([], 0), 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":"8b62b7d2916e3117277810ca68a5e7b67e694f08996887cea6e7bd7921465fc5","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(weights, draw):\n    return next((i for i in range(len(weights)) if draw <= sum(weights[:i+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([2, 3], 2), 1)\", \"check('fixture 2', solve([2, 3], 4), 1)\", \"check('fixture 3', solve([0, 2], 0), 1)\", \"check('fixture 4', solve([], 0), 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"},"fixed":{"sha256":"3a079f8f3bd07c46a0a76246751ffbb34b71af0c8aaa9d466e611f67674e6dd8","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(weights, draw):\n    return next((i for i in range(len(weights)) if draw < sum(weights[:i+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([2, 3], 2), 1)\", \"check('fixture 2', solve([2, 3], 4), 1)\", \"check('fixture 3', solve([0, 2], 0), 1)\", \"check('fixture 4', solve([], 0), 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-weighted-route-selection-uses-cumulative-half-open-buckets","generated_at":"2026-09-29T14:38:08.543656+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic network routing model isolates the weighted-route-selection-uses-cumulative-half-open-buckets policy at a network component boundary.","repair":"Apply the explicit weighted-route-selection-uses-cumulative-half-open-buckets contract, including the tested boundary and negative cases.","root_cause":"The faulty implementation uses `next((i for i in range(len(weights)) if draw <= sum(weights[:i+1])),None)` for the weighted-route-selection-uses-cumulative-half-open-buckets decision.","sha256":"df339bd628da82e1e9fdc0634510cdeaecaf432b5d3138c2bc9c6429095aad5e","title":"Weighted route selection uses cumulative half open buckets · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":35.255,"exit_code":1,"observations":[{"actual":null,"check":"fixture 2","expected":1,"passed":false},{"actual":1,"check":"fixture 3","expected":1,"passed":true},{"actual":null,"check":"fixture 4","expected":null,"passed":true},{"actual":1,"check":"fixture 1","expected":1,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": null, \"expected\": 1, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":36.416,"exit_code":1,"observations":[{"actual":1,"check":"fixture 2","expected":1,"passed":true},{"actual":0,"check":"fixture 3","expected":1,"passed":false},{"actual":null,"check":"fixture 4","expected":null,"passed":true},{"actual":0,"check":"fixture 1","expected":1,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 0, \"expected\": 1, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": 0, \"expected\": 1, \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":32.671,"exit_code":0,"observations":[{"actual":1,"check":"fixture 2","expected":1,"passed":true},{"actual":1,"check":"fixture 3","expected":1,"passed":true},{"actual":null,"check":"fixture 4","expected":null,"passed":true},{"actual":1,"check":"fixture 1","expected":1,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}