FAILURE MAP
← Case archive

FA-6711 / HTTP caching / Open access

No store prevents insertion even when fresh · case 01

No store prevents insertion even when fresh.

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

ROOT CAUSE

The faulty implementation uses `fresh` for the no-store-prevents-insertion-even-when-fresh decision.

VERIFIED REPAIR

Apply the explicit no-store-prevents-insertion-even-when-fresh contract, including the tested boundary and negative cases.

Unsuccessful approach: The attempted repair uses `not no_store and fresh` and still violates a separate fixture.

Case contract

Bounded offline decision model: no store prevents insertion even when fresh. 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 no-store-prevents-insertion-even-when-fresh 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(no_store, fresh):
    return fresh
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, True), False)", "check('fixture 2', solve(False, False), True)", "check('fixture 3', solve(False, True), True)", "check('fixture 4', solve(True, False), False)"]
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 2FalseTrueFailed
fixture 3TrueTruePassed
fixture 4FalseFalsePassed
fixture 1TrueFalseFailed

SHA-256 / 3520a319556e01eb6accb570582d0faf6eb39bd2e89c89c65883f4fbfa6ea133

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(no_store, fresh):
    return not no_store and fresh
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, True), False)", "check('fixture 2', solve(False, False), True)", "check('fixture 3', solve(False, True), True)", "check('fixture 4', solve(True, False), False)"]
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 2FalseTrueFailed
fixture 3TrueTruePassed
fixture 4FalseFalsePassed
fixture 1FalseFalsePassed

SHA-256 / 3308261f7cd52bc4c78793cfa68c21956936f9e334a4aaf54509d902f652ff8b

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(no_store, fresh):
    return not no_store
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, True), False)", "check('fixture 2', solve(False, False), True)", "check('fixture 3', solve(False, True), True)", "check('fixture 4', solve(True, False), False)"]
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 2TrueTruePassed
fixture 3TrueTruePassed
fixture 4FalseFalsePassed
fixture 1FalseFalsePassed

SHA-256 / 7fbaa790e5682a5b16aac5f502b927ca7e1f201b4c0c04c5303f81f48cfedc97

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

Case digest / d28eba36d5ee47add661a49fd451a2a5d746c57bb1d376aaaaf53f69905e8ba3