FA-7026 / Proxy forwarding / Open access
Early final response stops request body forwarding · case 01
Early final response stops request body forwarding.
ROOT CAUSE
The faulty implementation uses `sent+queued` for the early-final-response-stops-request-body-forwarding decision.
VERIFIED REPAIR
Apply the explicit early-final-response-stops-request-body-forwarding contract, including the tested boundary and negative cases.
Unsuccessful approach: The attempted repair uses `0 if final else sent+queued` and still violates a separate fixture.
Case contract
Bounded offline decision model: early final response stops request body forwarding. 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 early-final-response-stops-request-body-forwarding 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(final, queued, sent):
return sent+queued
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, 10, 3), 3)", "check('fixture 2', solve(False, 10, 3), 13)", "check('fixture 3', solve(True, 0, 0), 0)", "check('fixture 4', solve(False, 0, 2), 2)"]
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 | 13 | 13 | Passed |
| fixture 3 | 0 | 0 | Passed |
| fixture 4 | 2 | 2 | Passed |
| fixture 1 | 13 | 3 | Failed |
SHA-256 / cf2127027c5a6b7b7cd057b63358d1ab105a0a0a30075f86515ab998f2f5a672
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(final, queued, sent):
return 0 if final else sent+queued
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, 10, 3), 3)", "check('fixture 2', solve(False, 10, 3), 13)", "check('fixture 3', solve(True, 0, 0), 0)", "check('fixture 4', solve(False, 0, 2), 2)"]
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 | 13 | 13 | Passed |
| fixture 3 | 0 | 0 | Passed |
| fixture 4 | 2 | 2 | Passed |
| fixture 1 | 0 | 3 | Failed |
SHA-256 / fccc7a4b2cf381e9ee96d8ea2c7c9e62ce49c44b64fff1ab9cc1be3cfcf257f6
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(final, queued, sent):
return sent if final else sent+queued
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, 10, 3), 3)", "check('fixture 2', solve(False, 10, 3), 13)", "check('fixture 3', solve(True, 0, 0), 0)", "check('fixture 4', solve(False, 0, 2), 2)"]
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 | 13 | 13 | Passed |
| fixture 3 | 0 | 0 | Passed |
| fixture 4 | 2 | 2 | Passed |
| fixture 1 | 3 | 3 | Passed |
SHA-256 / 4b2366b1f26fd2869b7c17a23473693959bb3dd8f44bab1b3ecf13adfb90777d
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.765422+00:00.
Case digest / 02370cbad8925477a6d744d2e9b58d71465de0c4c9e232dbdb96ec009dae8bed