FA-7471 / Multiplexed protocols / Open access
Http2 end stream closes only sending half · case 01
Http2 end stream closes only sending half.
ROOT CAUSE
The faulty implementation uses `'closed' if local_end or remote_end else 'open'` for the http2-end-stream-closes-only-sending-half decision.
VERIFIED REPAIR
Apply the explicit http2-end-stream-closes-only-sending-half contract, including the tested boundary and negative cases.
Unsuccessful approach: The attempted repair uses `'half-local' if local_end else 'open'` and still violates a separate fixture.
Case contract
Bounded offline decision model: http2 end stream closes only sending half. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.
Why this case matters
This deterministic multiplexed protocols model isolates the http2-end-stream-closes-only-sending-half 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(local_end, remote_end):
return 'closed' if local_end or remote_end else 'open'
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, False), 'half-local')", "check('fixture 2', solve(False, True), 'half-remote')", "check('fixture 3', solve(True, True), 'closed')", "check('fixture 4', solve(False, False), 'open')"]
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 | closed | half-remote | Failed |
| fixture 3 | closed | closed | Passed |
| fixture 4 | open | open | Passed |
| fixture 1 | closed | half-local | Failed |
SHA-256 / 9ae151f2235861b6a3acd667564ef0b7a2c88bdc769e08576d5714e8c57795c6
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(local_end, remote_end):
return 'half-local' if local_end else 'open'
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, False), 'half-local')", "check('fixture 2', solve(False, True), 'half-remote')", "check('fixture 3', solve(True, True), 'closed')", "check('fixture 4', solve(False, False), 'open')"]
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 | open | half-remote | Failed |
| fixture 3 | half-local | closed | Failed |
| fixture 4 | open | open | Passed |
| fixture 1 | half-local | half-local | Passed |
SHA-256 / 315096a161758f0c90fab36bee9401222ed6dc8d9ad49e183565dc1f9c043b56
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(local_end, remote_end):
return 'closed' if local_end and remote_end else ('half-local' if local_end else ('half-remote' if remote_end else 'open'))
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(True, False), 'half-local')", "check('fixture 2', solve(False, True), 'half-remote')", "check('fixture 3', solve(True, True), 'closed')", "check('fixture 4', solve(False, False), 'open')"]
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 | half-remote | half-remote | Passed |
| fixture 3 | closed | closed | Passed |
| fixture 4 | open | open | Passed |
| fixture 1 | half-local | half-local | Passed |
SHA-256 / 497f729caf9dc60bae395519245ba21dec1bc0c2eabf238258b318b1b993e108
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:12.346717+00:00.
Case digest / 32db368b2bcf18f3e3dfec975c6572eb6e8ad6bc97e4c3f4ded20c1fde98d125