FAILURE MAP
← Case archive

FA-7311 / Transport flow control / Open access

Datagram truncation is reported separately from copied length · case 01

Datagram truncation is reported separately from copied length.

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

ROOT CAUSE

The faulty implementation uses `(payload[:capacity],False)` for the datagram-truncation-is-reported-separately-from-copied-length decision.

THE FAILURE

The faulty implementation uses `(payload[:capacity],False)` for the datagram-truncation-is-reported-separately-from-copied-length decision.

Unsuccessful approach: The attempted repair uses `(payload[:capacity],len(payload)>=capacity)` and still violates a separate fixture.

Case contract

Bounded offline decision model: datagram truncation is reported separately from copied length. Inputs are already validated protocol fields; the explicit fixtures define the supported policy, not a complete protocol implementation.

Why this case matters

This deterministic transport flow control model isolates the datagram-truncation-is-reported-separately-from-copied-length 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(payload, capacity):
    return (payload[:capacity],False)
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('abcdef', 3), ('abc', True))", "check('fixture 2', solve('abc', 3), ('abc', False))", "check('fixture 3', solve('', 0), ('', False))", "check('fixture 4', solve('a', 0), ('', 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 2['abc', False]['abc', False]Passed
fixture 3['', False]['', False]Passed
fixture 4['', False]['', True]Failed
fixture 1['abc', False]['abc', True]Failed

SHA-256 / e720029fe4b8142760ed2707f3d39594fb7ef6bc81059b2d30dad71a8ad45bcd

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(payload, capacity):
    return (payload[:capacity],len(payload)>=capacity)
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
_fixtures = ["check('fixture 1', solve('abcdef', 3), ('abc', True))", "check('fixture 2', solve('abc', 3), ('abc', False))", "check('fixture 3', solve('', 0), ('', False))", "check('fixture 4', solve('a', 0), ('', 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 2['abc', True]['abc', False]Failed
fixture 3['', True]['', False]Failed
fixture 4['', True]['', True]Passed
fixture 1['abc', True]['abc', True]Passed

SHA-256 / 994a64838edee833f4fc503c2653a4aa194b7a45139bb7ca132552bf1b2105ed

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

Case digest / 7f09f6ef70e5db34edfa35d87b446e2a816e2c35c804bd21dd80fc2a2cd0b599