{"abstract":"Happy eyeballs winner cancels only other attempts.","category":"Connection lifecycle","checks":4,"contract":"Given attempts, winner, happy eyeballs winner cancels only other attempts. Return the protocol decision or transformed value; fields are validated and fixtures state boundary outcomes.","contract_signature":"attempts, winner","evaluation_group":"xh-happy-eyeballs-winner-cancels-only-other-attempts","failed_approach":"The attempted repair uses `[a for a,state in attempts if state == \"pending\"]` and still violates a separate fixture.","family":"xh-happy-eyeballs-winner-cancels-only-other-attempts","id":"FA-7761","implementations":{"attempt":{"sha256":"7f30ba75b101d0d2a2269a894bafc47d4fdf662a7dd311ea1a53b1c986a9624c","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(attempts, winner):\n    return [a for a,state in attempts if state == \"pending\"]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve([('v6', 'pending'), ('v4', 'pending'), ('old', 'failed')], 'v4'), ['v6'])\", \"check('fixture 2', solve([], 'v4'), [])\", \"check('fixture 3', solve([('v4', 'pending')], 'v4'), [])\", \"check('fixture 4', solve([('v6', 'failed')], 'v4'), [])\"]\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":"9498e3a3c34b8a0f0a7e40a9edf2fbff2de46568fe82b5f297c0a5fdb7140291","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(attempts, winner):\n    return [a for a,state in attempts if a != winner]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve([('v6', 'pending'), ('v4', 'pending'), ('old', 'failed')], 'v4'), ['v6'])\", \"check('fixture 2', solve([], 'v4'), [])\", \"check('fixture 3', solve([('v4', 'pending')], 'v4'), [])\", \"check('fixture 4', solve([('v6', 'failed')], 'v4'), [])\"]\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-happy-eyeballs-winner-cancels-only-other-attempts","generated_at":"2026-09-29T14:38:14.952534+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic connection lifecycle model isolates the happy-eyeballs-winner-cancels-only-other-attempts policy at a network component boundary.","root_cause":"The faulty implementation uses `[a for a,state in attempts if a != winner]` for the happy-eyeballs-winner-cancels-only-other-attempts decision.","sha256":"9a979d406d8d374fcff17454345b6f3144a0874bd3efd7ff1be2e09beeff9eab","title":"Happy eyeballs winner cancels only other attempts · 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":40.087,"exit_code":1,"observations":[{"actual":[],"check":"fixture 2","expected":[],"passed":true},{"actual":["v4"],"check":"fixture 3","expected":[],"passed":false},{"actual":[],"check":"fixture 4","expected":[],"passed":true},{"actual":["v6","v4"],"check":"fixture 1","expected":["v6"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"v4\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": [\"v6\", \"v4\"], \"expected\": [\"v6\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.812,"exit_code":1,"observations":[{"actual":[],"check":"fixture 2","expected":[],"passed":true},{"actual":[],"check":"fixture 3","expected":[],"passed":true},{"actual":["v6"],"check":"fixture 4","expected":[],"passed":false},{"actual":["v6","old"],"check":"fixture 1","expected":["v6"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"v6\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": [\"v6\", \"old\"], \"expected\": [\"v6\"], \"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."}}