FA-6716 / HTTP caching / Open access
No cache requires validation without preventing storage · case 01
No cache requires validation without preventing storage.
ROOT CAUSE
The faulty implementation uses `True` for the no-cache-requires-validation-without-preventing-storage decision.
VERIFIED REPAIR
Apply the explicit no-cache-requires-validation-without-preventing-storage contract, including the tested boundary and negative cases.
Unsuccessful approach: The attempted repair uses `not no_cache` and still violates a separate fixture.
Case contract
Bounded offline decision model: no cache requires validation without preventing storage. 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-cache-requires-validation-without-preventing-storage 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_cache, validated):
return True
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, False), False)", "check('fixture 2', solve(True, True), True)", "check('fixture 3', solve(False, False), True)", "check('fixture 4', solve(False, True), 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 | True | Passed |
| fixture 4 | True | True | Passed |
| fixture 1 | True | False | Failed |
SHA-256 / 1a8ae5fdbd38deb70f7b77cde12dd02cbe9897d66cc0219e9a620e60bfd6f324
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_cache, validated):
return not no_cache
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, False), False)", "check('fixture 2', solve(True, True), True)", "check('fixture 3', solve(False, False), True)", "check('fixture 4', solve(False, True), 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 | False | True | Failed |
| fixture 3 | True | True | Passed |
| fixture 4 | True | True | Passed |
| fixture 1 | False | False | Passed |
SHA-256 / 9db94c45b9c1230f94a6816af8bb5d0036cd36cc8584d99719ec359b4d8eb287
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_cache, validated):
return not no_cache or validated
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, False), False)", "check('fixture 2', solve(True, True), True)", "check('fixture 3', solve(False, False), True)", "check('fixture 4', solve(False, True), 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 | True | Passed |
| fixture 4 | True | True | Passed |
| fixture 1 | False | False | Passed |
SHA-256 / 9e083959e802717ffdc7d497ea33f7e03e567574b10cf6f4cc4aafffdbdd5300
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.528069+00:00.
Case digest / 290e1c61b286cc3991330a037ec7aaa09b7257413277f673a5e5e6b63bff7796