FA-6871 / Content negotiation / Open access
Compression skips already coded representations · case 01
Compression skips already coded representations.
ROOT CAUSE
The faulty implementation uses `acceptable` for the compression-skips-already-coded-representations decision.
VERIFIED REPAIR
Apply the explicit compression-skips-already-coded-representations contract, including the tested boundary and negative cases.
Unsuccessful approach: The attempted repair uses `not existing` and still violates a separate fixture.
Case contract
Bounded offline decision model: compression skips already coded representations. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.
Why this case matters
This deterministic content negotiation model isolates the compression-skips-already-coded-representations 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(existing, acceptable):
return acceptable
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), False)", "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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 2 | False | False | Passed |
| fixture 3 | True | True | Passed |
| fixture 4 | False | False | Passed |
| fixture 1 | True | False | Failed |
SHA-256 / c5627a72ee93c9d5d088bd654575d60e5abcecbe02878b682e2f3740e6846577
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(existing, acceptable):
return not existing
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), False)", "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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 2 | True | False | Failed |
| fixture 3 | True | True | Passed |
| fixture 4 | False | False | Passed |
| fixture 1 | False | False | Passed |
SHA-256 / bf3a05dd5754429ce9b3f29e4b8b9f4fe6f67b5111a4ad2d55eb5622c24bb338
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(existing, acceptable):
return not existing and acceptable
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), False)", "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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 2 | False | False | Passed |
| fixture 3 | True | True | Passed |
| fixture 4 | False | False | Passed |
| fixture 1 | False | False | Passed |
SHA-256 / 7872f4080c4d1160f7515db9251e883e711fcdc1c8025bf0bf4125ef4aca3083
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:06.047798+00:00.
Case digest / cc20ed8c25d1f5f7e3c26d7dc293b5a4ebd2ee37ef5b9e399a9f6df52f606d24