FAILURE MAP
← Case archive

FA-7036 / Proxy forwarding / Open access

Response trailers exclude forbidden routing fields · case 01

Response trailers exclude forbidden routing fields.

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

ROOT CAUSE

The faulty implementation uses `trailers` for the response-trailers-exclude-forbidden-routing-fields decision.

THE FAILURE

The faulty implementation uses `trailers` for the response-trailers-exclude-forbidden-routing-fields decision.

Unsuccessful approach: The attempted repair uses `{k:v for k,v in trailers.items() if k not in {"host","content-length","transfer-encoding"}}` and still violates a separate fixture.

Case contract

Bounded offline decision model: response trailers exclude forbidden routing fields. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.

Why this case matters

This deterministic proxy forwarding model isolates the response-trailers-exclude-forbidden-routing-fields 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(trailers):
    return trailers
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve({'Host': 'x', 'Digest': 'd'}), {'Digest': 'd'})", "check('fixture 2', solve({'content-length': '2'}), {})", "check('fixture 3', solve({}), {})", "check('fixture 4', solve({'checksum': 'a'}), {'checksum': 'a'})"]
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 2{'content-length': '2'}{}Failed
fixture 3{}{}Passed
fixture 4{'checksum': 'a'}{'checksum': 'a'}Passed
fixture 1{'Digest': 'd', 'Host': 'x'}{'Digest': 'd'}Failed

SHA-256 / ef47043380dbbbc6eeaf0069af181b7fcb98e69eabec8d12e2eed78abf65828b

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(trailers):
    return {k:v for k,v in trailers.items() if k not in {"host","content-length","transfer-encoding"}}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve({'Host': 'x', 'Digest': 'd'}), {'Digest': 'd'})", "check('fixture 2', solve({'content-length': '2'}), {})", "check('fixture 3', solve({}), {})", "check('fixture 4', solve({'checksum': 'a'}), {'checksum': 'a'})"]
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 2{}{}Passed
fixture 3{}{}Passed
fixture 4{'checksum': 'a'}{'checksum': 'a'}Passed
fixture 1{'Digest': 'd', 'Host': 'x'}{'Digest': 'd'}Failed

SHA-256 / 87784d99c61f77ebc8cde0695bcaa0f17d2fbff30ff2e636267390799ca586bc

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

Case digest / 4449ae584bbf3cd844686659ac0fe3a22a2a569fd6d7fa12438beb4c72072426