FAILURE MAP
← Case archive

FA-7716 / Connection lifecycle / Open access

Pool idle expiry measures time since last use · case 01

Pool idle expiry measures time since last use.

Verified by executionVariant 1 · 4 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The faulty implementation uses `now-created` for the pool-idle-expiry-measures-time-since-last-use decision.

VERIFIED REPAIR

Apply the explicit pool-idle-expiry-measures-time-since-last-use contract, including the tested boundary and negative cases.

Unsuccessful approach: The attempted repair uses `last_used-created` and still violates a separate fixture.

Case contract

Bounded offline decision model: pool idle expiry measures time since last use. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.

Why this case matters

This deterministic connection lifecycle model isolates the pool-idle-expiry-measures-time-since-last-use policy at a network component boundary.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import ipaddress
import re
from urllib.parse import urlsplit, urljoin
N = 1
observations = []
def solve(now, created, last_used):
    return now-created
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(100, 0, 90), 10)", "check('fixture 2', solve(100, 90, 90), 10)", "check('fixture 3', solve(10, 0, 10), 0)", "check('fixture 4', solve(10, 0, 0), 10)"]
for _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:
    exec(_line)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
fixture 21010Passed
fixture 3100Failed
fixture 41010Passed
fixture 110010Failed

SHA-256 / 3c660fba718dd729115d0685ccaf1d8c8621c1c726549ef1b39bd8b79b4c687b

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
import ipaddress
import re
from urllib.parse import urlsplit, urljoin
N = 1
observations = []
def solve(now, created, last_used):
    return last_used-created
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(100, 0, 90), 10)", "check('fixture 2', solve(100, 90, 90), 10)", "check('fixture 3', solve(10, 0, 10), 0)", "check('fixture 4', solve(10, 0, 0), 10)"]
for _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:
    exec(_line)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
fixture 2010Failed
fixture 3100Failed
fixture 4010Failed
fixture 19010Failed

SHA-256 / 35c6edc5863251424bfc81f56eab2cf87327427e1a236ba95f130a01c2570aa8

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json
import ipaddress
import re
from urllib.parse import urlsplit, urljoin
N = 1
observations = []
def solve(now, created, last_used):
    return now-last_used
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(100, 0, 90), 10)", "check('fixture 2', solve(100, 90, 90), 10)", "check('fixture 3', solve(10, 0, 10), 0)", "check('fixture 4', solve(10, 0, 0), 10)"]
for _line in _fixtures[N % len(_fixtures):] + _fixtures[:N % len(_fixtures)]:
    exec(_line)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
fixture 21010Passed
fixture 300Passed
fixture 41010Passed
fixture 11010Passed

SHA-256 / 654e5899c4ebdbde9f3578c7c1f044c460c35fdf9d303c24bf2c1381452c53bb

Verification & scope

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.

Observations recorded using Python 3.12.14 at 2026-09-29T14:38:14.644612+00:00.

Case digest / dca53de3bb5da2884926bd36d219efbe8920e20854061c21629f066d15e40a17