{"abstract":"Pool lease release removes one lease not every socket.","category":"Connection lifecycle","checks":4,"contract":"Given counts, socket, pool lease release removes one lease not every socket. Return the protocol decision or transformed value; fields are validated and fixtures state boundary outcomes.","evaluation_group":"xh-pool-lease-release-removes-one-lease-not-every-socket","failed_approach":"The attempted repair uses `{k:v for k,v in counts.items() if k != socket}` and still violates a separate fixture.","family":"xh-pool-lease-release-removes-one-lease-not-every-socket","id":"FA-7741","implementations":{"attempt":{"sha256":"478b8a562f86e92bf790a30f6daac33e95290616878177b93131a2bb6f1c076e","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(counts, socket):\n    return {k:v for k,v in counts.items() if k != socket}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve({'a': 2, 'b': 1}, 'a'), {'a': 1, 'b': 1})\", \"check('fixture 2', solve({}, 'a'), {})\", \"check('fixture 3', solve({'a': 0}, 'a'), {'a': 0})\", \"check('fixture 4', solve({'b': 1}, 'a'), {'b': 1})\"]\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":"039bd5ba77c38f25550ccc082af96de9c2ce5afaca1aa5c423913d949393d3ad","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(counts, socket):\n    return {}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve({'a': 2, 'b': 1}, 'a'), {'a': 1, 'b': 1})\", \"check('fixture 2', solve({}, 'a'), {})\", \"check('fixture 3', solve({'a': 0}, 'a'), {'a': 0})\", \"check('fixture 4', solve({'b': 1}, 'a'), {'b': 1})\"]\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":"cf964ffdc1eb9ae9599927b5dcdfef84c2ae0fe88a67c9536aca03bbbfc296fe","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(counts, socket):\n    return {k:(max(0,v-1) if k == socket else v) for k,v in counts.items()}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\n_fixtures = [\"check('fixture 1', solve({'a': 2, 'b': 1}, 'a'), {'a': 1, 'b': 1})\", \"check('fixture 2', solve({}, 'a'), {})\", \"check('fixture 3', solve({'a': 0}, 'a'), {'a': 0})\", \"check('fixture 4', solve({'b': 1}, 'a'), {'b': 1})\"]\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-lease-release-removes-one-lease-not-every-socket","generated_at":"2026-09-29T14:38:14.843450+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic connection lifecycle model isolates the pool-lease-release-removes-one-lease-not-every-socket policy at a network component boundary.","repair":"Apply the explicit pool-lease-release-removes-one-lease-not-every-socket contract, including the tested boundary and negative cases.","root_cause":"The faulty implementation uses `{}` for the pool-lease-release-removes-one-lease-not-every-socket decision.","sha256":"bf69748850d2b3e33edd8e4c2bb0dee01a7bd31727873dc2c981e1095511a856","title":"Pool lease release removes one lease not every socket · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.02,"exit_code":1,"observations":[{"actual":{},"check":"fixture 2","expected":{},"passed":true},{"actual":{},"check":"fixture 3","expected":{"a":0},"passed":false},{"actual":{"b":1},"check":"fixture 4","expected":{"b":1},"passed":true},{"actual":{"b":1},"check":"fixture 1","expected":{"a":1,"b":1},"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": {}, \"expected\": {}, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": {}, \"expected\": {\"a\": 0}, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": {\"b\": 1}, \"expected\": {\"b\": 1}, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": {\"b\": 1}, \"expected\": {\"a\": 1, \"b\": 1}, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.916,"exit_code":1,"observations":[{"actual":{},"check":"fixture 2","expected":{},"passed":true},{"actual":{},"check":"fixture 3","expected":{"a":0},"passed":false},{"actual":{},"check":"fixture 4","expected":{"b":1},"passed":false},{"actual":{},"check":"fixture 1","expected":{"a":1,"b":1},"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": {}, \"expected\": {}, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": {}, \"expected\": {\"a\": 0}, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": {}, \"expected\": {\"b\": 1}, \"passed\": false}, {\"check\": \"fixture 1\", \"actual\": {}, \"expected\": {\"a\": 1, \"b\": 1}, \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.241,"exit_code":0,"observations":[{"actual":{},"check":"fixture 2","expected":{},"passed":true},{"actual":{"a":0},"check":"fixture 3","expected":{"a":0},"passed":true},{"actual":{"b":1},"check":"fixture 4","expected":{"b":1},"passed":true},{"actual":{"a":1,"b":1},"check":"fixture 1","expected":{"a":1,"b":1},"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 2\", \"actual\": {}, \"expected\": {}, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": {\"a\": 0}, \"expected\": {\"a\": 0}, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": {\"b\": 1}, \"expected\": {\"b\": 1}, \"passed\": true}, {\"check\": \"fixture 1\", \"actual\": {\"a\": 1, \"b\": 1}, \"expected\": {\"a\": 1, \"b\": 1}, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}