FAILURE MAP
← Case archive

FA-6731 / HTTP caching / Open access

Resident time advances cache age · case 01

Resident time advances cache age.

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

ROOT CAUSE

The faulty implementation uses `initial` for the resident-time-advances-cache-age decision.

THE FAILURE

The faulty implementation uses `initial` for the resident-time-advances-cache-age decision.

Unsuccessful approach: The attempted repair uses `max(initial,now-received)` and still violates a separate fixture.

Case contract

Bounded offline decision model: resident time advances cache age. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.

Why this case matters

This deterministic http caching model isolates the resident-time-advances-cache-age 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(initial, now, received):
    return initial
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(5, 20, 10), 15)", "check('fixture 2', solve(5, 8, 10), 5)", "check('fixture 3', solve(0, 10, 10), 0)", "check('fixture 4', solve(2, 12, 10), 4)"]
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 255Passed
fixture 300Passed
fixture 424Failed
fixture 1515Failed

SHA-256 / 005d7cca8b36c312d6218c55ba4c8152e7e2a960b0031c4c3d51680279aca91f

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(initial, now, received):
    return max(initial,now-received)
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(5, 20, 10), 15)", "check('fixture 2', solve(5, 8, 10), 5)", "check('fixture 3', solve(0, 10, 10), 0)", "check('fixture 4', solve(2, 12, 10), 4)"]
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 255Passed
fixture 300Passed
fixture 424Failed
fixture 11015Failed

SHA-256 / 7aea7da381eaa439d6c533da8c4125fdc016b6e3f11d17b031c96aade99b0d27

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 4 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.

Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.

Member access is invitation-based. Sign in with your invited account to inspect the repair.

Sign in to the archive ↗

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:04.705513+00:00.

Case digest / edc8ad63de2ceaf332304f998a360d3b06d1342e67ffdec05b236a7daec0a187