FA-6846 / Content negotiation / Open access
Media subtype wildcard does not cross top level types · case 01
Media subtype wildcard does not cross top level types.
ROOT CAUSE
The faulty implementation uses `range_.endswith('/*') or range_ == media` for the media-subtype-wildcard-does-not-cross-top-level-types decision.
THE FAILURE
The faulty implementation uses `range_.endswith('/*') or range_ == media` for the media-subtype-wildcard-does-not-cross-top-level-types decision.
Unsuccessful approach: The attempted repair uses `range_ == media` and still violates a separate fixture.
Case contract
Bounded offline decision model: media subtype wildcard does not cross top level types. 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 media-subtype-wildcard-does-not-cross-top-level-types 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(range_, media):
return range_.endswith('/*') or range_ == media
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('text/*', 'image/png'), False)", "check('fixture 2', solve('text/*', 'text/html'), True)", "check('fixture 3', solve('*/*', 'image/png'), True)", "check('fixture 4', solve('text/plain', 'text/html'), 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 | True | Passed |
| fixture 3 | True | True | Passed |
| fixture 4 | False | False | Passed |
| fixture 1 | True | False | Failed |
SHA-256 / 1eaf0e77dfc9875b5e4cc7dd98c65ea6215e6012ec02d1194c8acc289aad6d88
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(range_, media):
return range_ == media
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('text/*', 'image/png'), False)", "check('fixture 2', solve('text/*', 'text/html'), True)", "check('fixture 3', solve('*/*', 'image/png'), True)", "check('fixture 4', solve('text/plain', 'text/html'), 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 | True | Failed |
| fixture 3 | False | True | Failed |
| fixture 4 | False | False | Passed |
| fixture 1 | False | False | Passed |
SHA-256 / b6f850b8f9d1d2b50720ead07771d68f2029277148f8cce3f5270b9d74f97594
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:05.632049+00:00.
Case digest / 0c93685e336044564406855b4abbea05b8298dd6c17586d4da81d3c22617fff0