{"abstract":"Connection pool key includes scheme host and port.","category":"Connection lifecycle","checks":4,"contract":"Bounded offline decision model: connection pool key includes scheme host and port. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.","evaluation_group":"xh-connection-pool-key-includes-scheme-host-and-port","failed_approach":"The attempted repair uses `(host.lower(),port)` and still violates a separate fixture.","family":"xh-connection-pool-key-includes-scheme-host-and-port","id":"FA-7711","implementations":{"attempt":{"sha256":"8b8069ea52a0a334030a68d40a014cbe9b57f79c72ff984efe0547b7d61932b1","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(scheme, host, port):\n    return (host.lower(),port)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('https', 'EXAMPLE', 443), ('https', 'example', 443))\", \"check('fixture 2', solve('http', 'example', 443), ('http', 'example', 443))\", \"check('fixture 3', solve('https', 'example', 8443), ('https', 'example', 8443))\", \"check('fixture 4', solve('http', 'x', 80), ('http', 'x', 80))\"]\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":"755f50a2adcab94b1cce3133ddc18a7376325e6d36151b0955b90e291f3595ad","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(scheme, host, port):\n    return host.lower()\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('https', 'EXAMPLE', 443), ('https', 'example', 443))\", \"check('fixture 2', solve('http', 'example', 443), ('http', 'example', 443))\", \"check('fixture 3', solve('https', 'example', 8443), ('https', 'example', 8443))\", \"check('fixture 4', solve('http', 'x', 80), ('http', 'x', 80))\"]\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":"055a1f2908eacd8e658615038f53418a12c4b1b70113c4d84ea8ca6b5e8299d6","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(scheme, host, port):\n    return (scheme,host.lower(),port)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve('https', 'EXAMPLE', 443), ('https', 'example', 443))\", \"check('fixture 2', solve('http', 'example', 443), ('http', 'example', 443))\", \"check('fixture 3', solve('https', 'example', 8443), ('https', 'example', 8443))\", \"check('fixture 4', solve('http', 'x', 80), ('http', 'x', 80))\"]\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-pool-key-includes-scheme-host-and-port","generated_at":"2026-09-29T14:38:14.587646+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic connection lifecycle model isolates the connection-pool-key-includes-scheme-host-and-port policy at a network component boundary.","repair":"Apply the explicit connection-pool-key-includes-scheme-host-and-port contract, including the tested boundary and negative cases.","root_cause":"The faulty implementation uses `host.lower()` for the connection-pool-key-includes-scheme-host-and-port decision.","sha256":"574d29dc5b586574edf10b85aeb9949cac11f52b97d7274db9483800028a8de0","title":"Connection pool key includes scheme host and port · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":67.383,"exit_code":1,"observations":[{"actual":["example",443],"check":"fixture 2","expected":["http","example",443],"passed":false},{"actual":["example",8443],"check":"fixture 3","expected":["https","example",8443],"passed":false},{"actual":["x",80],"check":"fixture 4","expected":["http","x",80],"passed":false},{"actual":["example",443],"check":"fixture 1","expected":["https","example",443],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": [\"example\", 443], \"expected\": [\"http\", \"example\", 443], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"example\", 8443], \"expected\": [\"https\", \"example\", 8443], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [\"x\", 80], \"expected\": [\"http\", \"x\", 80], \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": [\"example\", 443], \"expected\": [\"https\", \"example\", 443], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":43.991,"exit_code":1,"observations":[{"actual":"example","check":"fixture 2","expected":["http","example",443],"passed":false},{"actual":"example","check":"fixture 3","expected":["https","example",8443],"passed":false},{"actual":"x","check":"fixture 4","expected":["http","x",80],"passed":false},{"actual":"example","check":"fixture 1","expected":["https","example",443],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": \"example\", \"expected\": [\"http\", \"example\", 443], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": \"example\", \"expected\": [\"https\", \"example\", 8443], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": \"x\", \"expected\": [\"http\", \"x\", 80], \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": \"example\", \"expected\": [\"https\", \"example\", 443], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":49.484,"exit_code":0,"observations":[{"actual":["http","example",443],"check":"fixture 2","expected":["http","example",443],"passed":true},{"actual":["https","example",8443],"check":"fixture 3","expected":["https","example",8443],"passed":true},{"actual":["http","x",80],"check":"fixture 4","expected":["http","x",80],"passed":true},{"actual":["https","example",443],"check":"fixture 1","expected":["https","example",443],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": [\"http\", \"example\", 443], \"expected\": [\"http\", \"example\", 443], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"https\", \"example\", 8443], \"expected\": [\"https\", \"example\", 8443], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"http\", \"x\", 80], \"expected\": [\"http\", \"x\", 80], \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": [\"https\", \"example\", 443], \"expected\": [\"https\", \"example\", 443], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}