{"abstract":"Pool cap includes in progress connection attempts.","category":"Connection lifecycle","checks":4,"contract":"Given host_counts, host, host_cap, global_cap, pool cap includes in progress connection attempts. Return the protocol decision or transformed value; fields are validated and fixtures state boundary outcomes.","contract_signature":"host_counts, host, host_cap, global_cap","evaluation_group":"xh-pool-cap-includes-in-progress-connection-attempts","failed_approach":"The attempted repair uses `sum(o+c for o,c in host_counts.values()) <= global_cap and sum(host_counts.get(host,(0,0))) <= host_cap` and still violates a separate fixture.","family":"xh-pool-cap-includes-in-progress-connection-attempts","id":"FA-7726","implementations":{"attempt":{"sha256":"743435ba3dad6eeee94726ae67a6daa70bc94da6546163056444c4a6956ddc72","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(host_counts, host, host_cap, global_cap):\n    return sum(o+c for o,c in host_counts.values()) <= global_cap and sum(host_counts.get(host,(0,0))) <= host_cap\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve({'a': (1, 1)}, 'a', 2, 10), False)\", \"check('fixture 2', solve({'a': (1, 0), 'b': (2, 1)}, 'a', 3, 4), False)\", \"check('fixture 3', solve({}, 'a', 1, 1), True)\", \"check('fixture 4', solve({'a': (1, 0)}, 'a', 2, 3), True)\"]\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":"283c5a3f3ccc6322dbcf55ff8e5c89d3c0efd7427c50e21e1f9c83ae846071aa","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(host_counts, host, host_cap, global_cap):\n    return sum(o for o,c in host_counts.values()) < global_cap and host_counts.get(host,(0,0))[0] < host_cap\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve({'a': (1, 1)}, 'a', 2, 10), False)\", \"check('fixture 2', solve({'a': (1, 0), 'b': (2, 1)}, 'a', 3, 4), False)\", \"check('fixture 3', solve({}, 'a', 1, 1), True)\", \"check('fixture 4', solve({'a': (1, 0)}, 'a', 2, 3), True)\"]\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-pool-cap-includes-in-progress-connection-attempts","generated_at":"2026-09-29T14:38:14.805046+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic connection lifecycle model isolates the pool-cap-includes-in-progress-connection-attempts policy at a network component boundary.","root_cause":"The faulty implementation uses `sum(o for o,c in host_counts.values()) < global_cap and host_counts.get(host,(0,0))[0] < host_cap` for the pool-cap-includes-in-progress-connection-attempts decision.","sha256":"0b6eeda2f27eb8b066fff7223e4c282960e6212562fd44ed4ea75e0c80cbb619","title":"Pool cap includes in progress connection 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":43.082,"exit_code":1,"observations":[{"actual":true,"check":"fixture 2","expected":false,"passed":false},{"actual":true,"check":"fixture 3","expected":true,"passed":true},{"actual":true,"check":"fixture 4","expected":true,"passed":true},{"actual":true,"check":"fixture 1","expected":false,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": true, \"expected\": false, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.523,"exit_code":1,"observations":[{"actual":true,"check":"fixture 2","expected":false,"passed":false},{"actual":true,"check":"fixture 3","expected":true,"passed":true},{"actual":true,"check":"fixture 4","expected":true,"passed":true},{"actual":true,"check":"fixture 1","expected":false,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": true, \"expected\": false, \"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."}}