FAILURE MAP
← Case archive

FA-26731 / HTTP ranges / Open access

A response digest describes the transferred slice instead of the whole object · case 01

A response digest describes the transferred slice instead of the whole object.

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

ROOT CAUSE

The range-response-digest-selected-body decision uses return full_digest.

THE FAILURE

The range-response-digest-selected-body decision uses return full_digest.

Unsuccessful approach: The partial repair uses return (part_digest or full_digest) if partial else full_digest, which still violates the stated contract.

Case contract

Select part_digest for partial responses; no fallback to full digest when part digest unavailable (None).

Why this case matters

Range responses combine representation identity, conditional requests, framing, and partial-object state.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(full_digest, part_digest, partial):
    return full_digest
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('range-response-digest-selected-body fixture 0', solve("full"+str(N),"part"+str(N),True), "part"+str(N))
check('range-response-digest-selected-body fixture 1', solve("full",None,True), None)
check('range-response-digest-selected-body fixture 2', solve("full","part",False), "full")
check('range-response-digest-selected-body fixture 3', solve(None,"part",False), None)
check('range-response-digest-selected-body fixture 4', solve("full","",True), "")
check('range-response-digest-selected-body fixture 5', solve(None,None,True), None)
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
range-response-digest-selected-body fixture 0full1part1Failed
range-response-digest-selected-body fixture 1fullNoneFailed
range-response-digest-selected-body fixture 2fullfullPassed
range-response-digest-selected-body fixture 3NoneNonePassed
range-response-digest-selected-body fixture 4fullFailed
range-response-digest-selected-body fixture 5NoneNonePassed

SHA-256 / c2349ac48569280e5f6e876fe07d2758e40c1d03f5f7bc5ad62881dc1283cfa1

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(full_digest, part_digest, partial):
    return (part_digest or full_digest) if partial else full_digest
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('range-response-digest-selected-body fixture 0', solve("full"+str(N),"part"+str(N),True), "part"+str(N))
check('range-response-digest-selected-body fixture 1', solve("full",None,True), None)
check('range-response-digest-selected-body fixture 2', solve("full","part",False), "full")
check('range-response-digest-selected-body fixture 3', solve(None,"part",False), None)
check('range-response-digest-selected-body fixture 4', solve("full","",True), "")
check('range-response-digest-selected-body fixture 5', solve(None,None,True), None)
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
range-response-digest-selected-body fixture 0part1part1Passed
range-response-digest-selected-body fixture 1fullNoneFailed
range-response-digest-selected-body fixture 2fullfullPassed
range-response-digest-selected-body fixture 3NoneNonePassed
range-response-digest-selected-body fixture 4fullFailed
range-response-digest-selected-body fixture 5NoneNonePassed

SHA-256 / 49e90c7ff541360d6d8031528fc2bd85e3f414ba33c055291db8f0bc861bfff0

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 6 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

Deterministic simplified range service, with stipulated local policies and already parsed trusted inputs; not a complete HTTP implementation. 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:41:18.695349+00:00.

Case digest / f6cb94a232fdf0277b6778d6fca7184c8e9a46da301c276f29ba83d3dda056f0