{"abstract":"Connection attempt timeout is separate from read timeout.","category":"Connection lifecycle","checks":4,"contract":"Given phase, connect_timeout, read_timeout, remaining, connection attempt timeout is separate from read timeout. Return the protocol decision or transformed value; fields are validated and fixtures state boundary outcomes.","evaluation_group":"xh-connection-attempt-timeout-is-separate-from-read-timeout","failed_approach":"The attempted repair uses `connect_timeout if phase == \"connect\" else read_timeout` and still violates a separate fixture.","family":"xh-connection-attempt-timeout-is-separate-from-read-timeout","id":"FA-7766","implementations":{"attempt":{"sha256":"003914fdb4123d9c199e7a71cf9022a58caecc1b3427e6f1f38f4a7f35c4222f","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(phase, connect_timeout, read_timeout, remaining):\n    return connect_timeout if phase == \"connect\" else read_timeout\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('connect', 2, 30, 100), 2)\", \"check('fixture 2', solve('read', 2, 30, 5), 5)\", \"check('fixture 3', solve('connect', 2, 30, 0), 0)\", \"check('fixture 4', solve('read', 2, 30, 100), 30)\"]\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":"4ac0fcd6d9ec625fcde9b2c527826abedd78cd2ba69ab1aa51a58ee87844834d","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(phase, connect_timeout, read_timeout, remaining):\n    return min(remaining,read_timeout)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('connect', 2, 30, 100), 2)\", \"check('fixture 2', solve('read', 2, 30, 5), 5)\", \"check('fixture 3', solve('connect', 2, 30, 0), 0)\", \"check('fixture 4', solve('read', 2, 30, 100), 30)\"]\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":"51db1225738aeec0af8ad641c8b61b1c4c54fe0f99536b300344a193c1bf722a","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(phase, connect_timeout, read_timeout, remaining):\n    return min(remaining,connect_timeout if phase == \"connect\" else read_timeout)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('connect', 2, 30, 100), 2)\", \"check('fixture 2', solve('read', 2, 30, 5), 5)\", \"check('fixture 3', solve('connect', 2, 30, 0), 0)\", \"check('fixture 4', solve('read', 2, 30, 100), 30)\"]\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-connection-attempt-timeout-is-separate-from-read-timeout","generated_at":"2026-09-29T14:38:15.100119+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic connection lifecycle model isolates the connection-attempt-timeout-is-separate-from-read-timeout policy at a network component boundary.","repair":"Apply the explicit connection-attempt-timeout-is-separate-from-read-timeout contract, including the tested boundary and negative cases.","root_cause":"The faulty implementation uses `min(remaining,read_timeout)` for the connection-attempt-timeout-is-separate-from-read-timeout decision.","sha256":"380db4c5f0fe3b4e6595d6e338d7c9f5ca718cc0ebe6e7d9038545c813fed11b","title":"Connection attempt timeout is separate from read timeout · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":39.802,"exit_code":1,"observations":[{"actual":30,"check":"fixture 2","expected":5,"passed":false},{"actual":2,"check":"fixture 3","expected":0,"passed":false},{"actual":30,"check":"fixture 4","expected":30,"passed":true},{"actual":2,"check":"fixture 1","expected":2,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": 30, \"expected\": 5, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": 2, \"expected\": 0, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": 30, \"expected\": 30, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": 2, \"expected\": 2, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.312,"exit_code":1,"observations":[{"actual":5,"check":"fixture 2","expected":5,"passed":true},{"actual":0,"check":"fixture 3","expected":0,"passed":true},{"actual":30,"check":"fixture 4","expected":30,"passed":true},{"actual":30,"check":"fixture 1","expected":2,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": 5, \"expected\": 5, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 30, \"expected\": 30, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": 30, \"expected\": 2, \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.799,"exit_code":0,"observations":[{"actual":5,"check":"fixture 2","expected":5,"passed":true},{"actual":0,"check":"fixture 3","expected":0,"passed":true},{"actual":30,"check":"fixture 4","expected":30,"passed":true},{"actual":2,"check":"fixture 1","expected":2,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": 5, \"expected\": 5, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 30, \"expected\": 30, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": 2, \"expected\": 2, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}