FA-6591 / HTTP semantics / Open access
Only a successful CONNECT response enters tunnel mode · case 01
Only a successful CONNECT response enters tunnel mode.
ROOT CAUSE
The faulty implementation uses `method == 'CONNECT'` for the connect-tunnel decision.
VERIFIED REPAIR
Apply the explicit connect-tunnel contract, including the tested boundary and negative cases.
Unsuccessful approach: The attempted repair uses `status == 200` and still violates a separate fixture.
Case contract
Only a successful CONNECT response enters tunnel mode: return the result specified by the explicit input/output boundary fixtures.
Why this case matters
This deterministic http semantics model isolates the connect-tunnel 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, status):
return method == 'CONNECT'
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('CONNECT', 201), True)", "check('fixture 2', solve('CONNECT', 403), False)", "check('fixture 3', solve('GET', 200), False)", "check('fixture 4', solve('POST', 500), 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 | False | Failed |
| fixture 3 | False | False | Passed |
| fixture 4 | False | False | Passed |
| fixture 1 | True | True | Passed |
SHA-256 / 857672bbf828f79acaf22fa0e014cf0d2c0e67b3bfb0b19ea4c8cb7b7c7af251
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, status):
return status == 200
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('CONNECT', 201), True)", "check('fixture 2', solve('CONNECT', 403), False)", "check('fixture 3', solve('GET', 200), False)", "check('fixture 4', solve('POST', 500), 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 | False | Passed |
| fixture 3 | True | False | Failed |
| fixture 4 | False | False | Passed |
| fixture 1 | False | True | Failed |
SHA-256 / b1d0b143bfcecfa83451627204237c22c58cfeda654e4c3e8c109ea8bffda3be
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, status):
return method == 'CONNECT' and 200 <= status < 300
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('CONNECT', 201), True)", "check('fixture 2', solve('CONNECT', 403), False)", "check('fixture 3', solve('GET', 200), False)", "check('fixture 4', solve('POST', 500), 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 | False | Passed |
| fixture 3 | False | False | Passed |
| fixture 4 | False | False | Passed |
| fixture 1 | True | True | Passed |
SHA-256 / c7504465369d90ebee92a32e4d11d9e135d29a4d972900ee534c7c078f4faf46
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.526009+00:00.
Case digest / d5e6b2ee197825c3f972299da71785f7b95d223520674d2bbdb83e0fd6ca8a11