FAILURE MAP
← Case archive

FA-6611 / HTTP semantics / Open access

Method token matching preserves case sensitivity · case 01

Method token matching preserves case sensitivity.

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

ROOT CAUSE

The faulty implementation uses `method.upper() == 'GET'` for the method-case decision.

VERIFIED REPAIR

Apply the explicit method-case contract, including the tested boundary and negative cases.

Unsuccessful approach: The attempted repair uses `method.lower() == 'get'` and still violates a separate fixture.

Case contract

Method token matching preserves case sensitivity: return the result specified by the explicit input/output boundary fixtures.

Why this case matters

This deterministic http semantics model isolates the method-case 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(method):
    return method.upper() == 'GET'
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('GET'), True)", "check('fixture 2', solve('get'), False)", "check('fixture 3', solve('Get'), False)", "check('fixture 4', solve('POST'), 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 2TrueFalseFailed
fixture 3TrueFalseFailed
fixture 4FalseFalsePassed
fixture 1TrueTruePassed

SHA-256 / e6fe36d16424a70188704f6103dfb2e33a613e0f87768d9645ed3b99a27228a4

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(method):
    return method.lower() == 'get'
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('GET'), True)", "check('fixture 2', solve('get'), False)", "check('fixture 3', solve('Get'), False)", "check('fixture 4', solve('POST'), 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 2TrueFalseFailed
fixture 3TrueFalseFailed
fixture 4FalseFalsePassed
fixture 1TrueTruePassed

SHA-256 / 48d7d4a25444ad8354e1cd3cd464c67e0b22dcfcc1a3eb7fb450575fab4de718

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

SHA-256 / 71e828f7e65baec9c59f18930faedcdb47827857b74e6403744b46cf9b6b668a

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

Case digest / 51612a19e640dad737f9f2680410bf1a45af2653aed896694dd4eb28c1f736f2