FAILURE MAP
← Case archive

FA-7546 / Multiplexed protocols / Open access

Quic stream direction is second identifier bit · case 01

Quic stream direction is second identifier bit.

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

ROOT CAUSE

The faulty implementation uses `bool(stream & 1)` for the quic-stream-direction-is-second-identifier-bit decision.

THE FAILURE

The faulty implementation uses `bool(stream & 1)` for the quic-stream-direction-is-second-identifier-bit decision.

Unsuccessful approach: The attempted repair uses `stream >= 2` and still violates a separate fixture.

Case contract

Bounded offline decision model: quic stream direction is second identifier bit. 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 quic-stream-direction-is-second-identifier-bit 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(stream):
    return bool(stream & 1)
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve(2), True)", "check('fixture 2', solve(1), False)", "check('fixture 3', solve(4), False)", "check('fixture 4', solve(7), True)"]
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 3FalseFalsePassed
fixture 4TrueTruePassed
fixture 1FalseTrueFailed

SHA-256 / 8e64452c29340b222e13e7df59339bd4c6ab9ddec65b396f6303c8407d1966c6

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

SHA-256 / 00b72264d4433c1c9e106881250edd092ea828b82554cf8905d091dbfb023163

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

Case digest / ffdb90a0388012b835b72026b2e9f07c1589d8bf90595fab0bbe62fd75746f62