FAILURE MAP
← Case archive

FA-6901 / Content negotiation / Open access

Charset name comparison is case insensitive · case 01

Charset name comparison is case insensitive.

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

ROOT CAUSE

The faulty implementation uses `requested in supported` for the charset-name-comparison-is-case-insensitive decision.

THE FAILURE

The faulty implementation uses `requested in supported` for the charset-name-comparison-is-case-insensitive decision.

Unsuccessful approach: The attempted repair uses `requested.lower() in supported` and still violates a separate fixture.

Case contract

Bounded offline decision model: charset name comparison is case insensitive. 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 charset-name-comparison-is-case-insensitive 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(requested, supported):
    return requested in supported
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('UTF-8', ['utf-8']), True)", "check('fixture 2', solve('utf-8', ['UTF-8']), True)", "check('fixture 3', solve('ascii', ['utf-8']), False)", "check('fixture 4', solve('ascii', []), 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 3FalseFalsePassed
fixture 4FalseFalsePassed
fixture 1FalseTrueFailed

SHA-256 / 04cc9558243e98c181e1a42c1a2c7cfb3ef7acacd96977e29724ede755bc272d

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(requested, supported):
    return requested.lower() in supported
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('UTF-8', ['utf-8']), True)", "check('fixture 2', solve('utf-8', ['UTF-8']), True)", "check('fixture 3', solve('ascii', ['utf-8']), False)", "check('fixture 4', solve('ascii', []), 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 3FalseFalsePassed
fixture 4FalseFalsePassed
fixture 1TrueTruePassed

SHA-256 / 7464bf89c38bd19591218f38f1d2f55fc706d636b91842ef010b6de1a54b9df8

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

Case digest / 9f0afb67b8c8ae3339e0f87dd3aadefda3a4c3a2507843be5efd8067b77cc678