FAILURE MAP
← Case archive

FA-26651 / HTTP ranges / Open access

Byte-range numbers reject non-ASCII decimal lookalikes · case 01

Byte-range numbers reject non-ASCII decimal lookalikes.

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

ROOT CAUSE

The range-decimal-ascii-only decision uses return int(digits) if digits and digits.isdecimal() else None.

THE FAILURE

The range-decimal-ascii-only decision uses return int(digits) if digits and digits.isdecimal() else None.

Unsuccessful approach: The partial repair uses return int(digits) if digits and all(c.isdigit() for c in digits) and all(c not in "²³¹" for c in digits) else None, which still violates the stated contract.

Case contract

Return integer for nonempty ASCII decimal digits only; otherwise None. This field parser does not accept signs or Unicode digit characters.

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(digits):
    return int(digits) if digits and digits.isdecimal() else None
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('range-decimal-ascii-only fixture 0', solve("١"*N), None)
check('range-decimal-ascii-only fixture 1', solve("1"), None)
check('range-decimal-ascii-only fixture 2', solve(str(N)), N)
check('range-decimal-ascii-only fixture 3', solve("000"), 0)
check('range-decimal-ascii-only fixture 4', solve(""), None)
check('range-decimal-ascii-only fixture 5', solve("-1"), 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-decimal-ascii-only fixture 01NoneFailed
range-decimal-ascii-only fixture 11NoneFailed
range-decimal-ascii-only fixture 211Passed
range-decimal-ascii-only fixture 300Passed
range-decimal-ascii-only fixture 4NoneNonePassed
range-decimal-ascii-only fixture 5NoneNonePassed

SHA-256 / f0a37fd4532257a52bb205f007f89c274b14947f9628f5bc8171b233c9c587e4

2 / The unsuccessful fix

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

N = 1
observations = []
def solve(digits):
    return int(digits) if digits and all(c.isdigit() for c in digits) and all(c not in "²³¹" for c in digits) else None
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('range-decimal-ascii-only fixture 0', solve("١"*N), None)
check('range-decimal-ascii-only fixture 1', solve("1"), None)
check('range-decimal-ascii-only fixture 2', solve(str(N)), N)
check('range-decimal-ascii-only fixture 3', solve("000"), 0)
check('range-decimal-ascii-only fixture 4', solve(""), None)
check('range-decimal-ascii-only fixture 5', solve("-1"), 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-decimal-ascii-only fixture 01NoneFailed
range-decimal-ascii-only fixture 11NoneFailed
range-decimal-ascii-only fixture 211Passed
range-decimal-ascii-only fixture 300Passed
range-decimal-ascii-only fixture 4NoneNonePassed
range-decimal-ascii-only fixture 5NoneNonePassed

SHA-256 / a0d6c8b457b23a360a91ec555948624c4e9677fb9d6324d238dd9d33e367279a

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

Case digest / 7aafb53386031c8dbe5f61542e52ab407efb98b658d2e6d362e2165360b17a89