FA-7721 / Connection lifecycle / Open access
Pool absolute lifetime is not reset by recent activity · case 01
Pool absolute lifetime is not reset by recent activity.
ROOT CAUSE
The faulty implementation uses `True` for the pool-absolute-lifetime-is-not-reset-by-recent-activity decision.
VERIFIED REPAIR
Apply the explicit pool-absolute-lifetime-is-not-reset-by-recent-activity contract, including the tested boundary and negative cases.
Unsuccessful approach: The attempted repair uses `now-created <= lifetime` and still violates a separate fixture.
Case contract
Bounded offline decision model: pool absolute lifetime is not reset by recent activity. 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-absolute-lifetime-is-not-reset-by-recent-activity 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, lifetime):
return True
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(100, 0, 100), False)", "check('fixture 2', solve(99, 0, 100), True)", "check('fixture 3', solve(0, 0, 0), False)", "check('fixture 4', solve(10, 5, 20), True)"]
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 2 | True | True | Passed |
| fixture 3 | True | False | Failed |
| fixture 4 | True | True | Passed |
| fixture 1 | True | False | Failed |
SHA-256 / bde5337070b1186d9dbb879f59b9dd8a5ec1b78488c8508aaa4b7b3e915e6a1f
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, lifetime):
return now-created <= lifetime
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(100, 0, 100), False)", "check('fixture 2', solve(99, 0, 100), True)", "check('fixture 3', solve(0, 0, 0), False)", "check('fixture 4', solve(10, 5, 20), True)"]
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 2 | True | True | Passed |
| fixture 3 | True | False | Failed |
| fixture 4 | True | True | Passed |
| fixture 1 | True | False | Failed |
SHA-256 / 5d8b8bd4e5bb6fbba3668bf8abf81790bef5f3274eb994f94af047527dea0e3d
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, lifetime):
return now-created < lifetime
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(100, 0, 100), False)", "check('fixture 2', solve(99, 0, 100), True)", "check('fixture 3', solve(0, 0, 0), False)", "check('fixture 4', solve(10, 5, 20), True)"]
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 2 | True | True | Passed |
| fixture 3 | False | False | Passed |
| fixture 4 | True | True | Passed |
| fixture 1 | False | False | Passed |
SHA-256 / bb0085cfc50f02100817e5a28eb6fb1134c78418aefe10fa77ea72f6b7747fff
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.688058+00:00.
Case digest / 47ae7b0b8e3aaf15bed5a02ac198e1f91e086d7a0b0f121ee65487ddcf6f0824