FAILURE MAP
← Case archive

FA-71856 / Error-correcting codes / Open access

Shortened Hamming wraps an out-of-range syndrome · case 01

Double errors in a shortened code are silently "corrected" at a wrong bit.

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

ROOT CAUSE

A syndrome beyond the shortened length is reduced modulo n instead of flagged.

THE FAILURE

A syndrome beyond the shortened length is reduced modulo n instead of flagged.

Unsuccessful approach: Flagging syndromes >= n also rejects a legitimate single error in the last bit.

Case contract

Single-error-correcting Hamming decoder for a full or shortened code of length n >= 3 (bits 0/1, else None). Positions are 1-based; parity bits sit at powers of two. The syndrome is the XOR of the positions holding a 1. A syndrome above n points outside the shortened code and is "uncorrectable" (data None); otherwise the bit at the syndrome position is flipped. Return [status, data bits from non-power-of-two positions, syndrome].

Why this case matters

Memory and link controllers use (shortened) Hamming codes to repair single-bit upsets.

1 / The failure

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

N = 1
observations = []
def solve(r):
    n = len(r)
    if n < 3 or any(b not in (0, 1) for b in r):
        return None
    s = 0
    for pos in range(1, n + 1):
        if r[pos - 1]:
            s ^= pos
    c = list(r)
    if s:
        c[(s - 1) % n] ^= 1
    data = [c[pos - 1] for pos in range(1, n + 1) if pos & (pos - 1)]
    return ['corrected' if s else 'clean', data, s]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['regression [[0, 0, 1, 1, 1, 0, 1, 0, 1, 0]]', [[0, 0, 1, 1, 1, 0, 1, 0, 1, 0]], ['uncorrectable', None, 12]], ['regression [[0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1]]', [[0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1]], ['uncorrectable', None, 15]], ['partial-repair [[0, 1, 0, 1, 0, 1, 1]]', [[0, 1, 0, 1, 0, 1, 1]], ['corrected', [0, 0, 1, 0], 7]], ['partial-repair [[1, 0, 0, 0, 0, 1, 0]]', [[1, 0, 0, 0, 0, 1, 0]], ['corrected', [0, 0, 1, 1], 7]], ['control [[0, 1, 1, 0, 1, 1, 1]]', [[0, 1, 1, 0, 1, 1, 1]], ['corrected', [1, 0, 1, 1], 5]], ['control [[0, 1, 1, 0, 0, 1, 1]]', [[0, 1, 1, 0, 0, 1, 1]], ['clean', [1, 0, 1, 1], 0]], ['control [[0, 1, 0, 1, 0, 1, 0]]', [[0, 1, 0, 1, 0, 1, 0]], ['clean', [0, 0, 1, 0], 0]], ['control [[1, 1, 0, 1, 0, 1, 0]]', [[1, 1, 0, 1, 0, 1, 0]], ['corrected', [0, 0, 1, 0], 1]]], [['regression [[1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]]', [[1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]], ['uncorrectable', None, 14]], ['regression [[1, 1, 1, 1, 1, 0, 1, 1, 1, 1]]', [[1, 1, 1, 1, 1, 0, 1, 1, 1, 1]], ['uncorrectable', None, 13]], ['partial-repair [[1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1]]', [[1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1]], ['corrected', [0, 1, 0, 0, 1, 1, 1, 0], 12]], ['partial-repair [[1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0]]', [[1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0]], ['corrected', [0, 0, 0, 0, 0, 1, 1, 1], 12]], ['control [[0, 1, 1, 1, 0, 1, 0]]', [[0, 1, 1, 1, 0, 1, 0]], ['corrected', [0, 0, 1, 0], 3]], ['control [[1, 0, 0, 0, 0, 1, 1]]', [[1, 0, 0, 0, 0, 1, 1]], ['clean', [0, 0, 1, 1], 0]], ['control [[1, 0, 0, 0, 1, 1, 1]]', [[1, 0, 0, 0, 1, 1, 1]], ['corrected', [0, 0, 1, 1], 5]], ['control [[0, 1, 0, 0, 0, 1, 1]]', [[0, 1, 0, 0, 0, 1, 1]], ['corrected', [1, 0, 1, 1], 3]]], [['regression [[1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0]]', [[1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0]], ['uncorrectable', None, 14]], ['regression [[1, 1, 1, 0, 1, 0, 0, 0, 1]]', [[1, 1, 1, 0, 1, 0, 0, 0, 1]], ['uncorrectable', None, 12]], ['partial-repair [[0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1]]', [[0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1]], ['corrected', [1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0], 15]], ['partial-repair [[0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]]', [[0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]], ['corrected', [0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1], 15]], ['control [[1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0]]', [[1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0]], ['corrected', [0, 1, 1, 0, 1, 1, 1, 0], 4]], ['control [[1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0]]', [[1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0]], ['clean', [0, 1, 0, 0, 1, 1, 1, 0], 0]], ['control [[1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0]]', [[1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0]], ['corrected', [0, 1, 0, 0, 1, 1, 1, 0], 8]], ['control [[0, 0, 1, 1, 0, 0, 1, 0, 0, 0]]', [[0, 0, 1, 1, 0, 0, 1, 0, 0, 0]], ['clean', [1, 0, 0, 1, 0, 0], 0]]], [['regression [[0, 0, 1, 1, 1, 0, 1, 0, 1, 0]]', [[0, 0, 1, 1, 1, 0, 1, 0, 1, 0]], ['uncorrectable', None, 12]], ['regression [[0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1]]', [[0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1]], ['uncorrectable', None, 15]], ['partial-repair [[0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1]]', [[0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1]], ['corrected', [1, 0, 1, 1, 0, 1, 0, 1, 0], 13]], ['partial-repair [[0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1]]', [[0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1]], ['corrected', [0, 0, 1, 0, 1, 0, 1, 0], 12]], ['control [[0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]]', [[0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]], ['clean', [1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0], 0]], ['control [[0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]]', [[0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]], ['corrected', [1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0], 5]], ['control [[0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1]]', [[0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1]], ['corrected', [1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1], 13]], ['control [[0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1]]', [[0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1]], ['clean', [0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1], 0]]], [['regression [[1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]]', [[1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]], ['uncorrectable', None, 14]], ['regression [[1, 1, 1, 1, 1, 0, 1, 1, 1, 1]]', [[1, 1, 1, 1, 1, 0, 1, 1, 1, 1]], ['uncorrectable', None, 13]], ['partial-repair [[0, 1, 0, 1, 0, 1, 1]]', [[0, 1, 0, 1, 0, 1, 1]], ['corrected', [0, 0, 1, 0], 7]], ['partial-repair [[1, 0, 0, 0, 0, 1, 0]]', [[1, 0, 0, 0, 0, 1, 0]], ['corrected', [0, 0, 1, 1], 7]], ['control [[1, 0, 0, 0, 0, 0, 0, 1, 1]]', [[1, 0, 0, 0, 0, 0, 0, 1, 1]], ['clean', [0, 0, 0, 0, 1], 0]], ['control [[1, 0, 0, 0, 1, 0, 0, 1, 1]]', [[1, 0, 0, 0, 1, 0, 0, 1, 1]], ['corrected', [0, 0, 0, 0, 1], 5]], ['control [[0, 0, 0, 1, 0, 0, 0, 1, 1]]', [[0, 0, 0, 1, 0, 0, 0, 1, 1]], ['corrected', [0, 1, 0, 0, 1], 5]], ['control [[0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0]]', [[0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0]], ['clean', [1, 0, 1, 1, 0, 1, 0, 1, 0], 0]]]]
for label, args, expected in fixtures[N - 1]:
    check(label, solve(*args), expected)
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
regression [[0, 0, 1, 1, 1, 0, 1, 0, 1, 0]]['corrected', [1, 1, 0, 1, 1, 0], 12]['uncorrectable', None, 12]Failed
regression [[0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1]]['corrected', [0, 0, 1, 0, 1, 0, 1, 1], 15]['uncorrectable', None, 15]Failed
partial-repair [[0, 1, 0, 1, 0, 1, 1]]['corrected', [0, 0, 1, 0], 7]['corrected', [0, 0, 1, 0], 7]Passed
partial-repair [[1, 0, 0, 0, 0, 1, 0]]['corrected', [0, 0, 1, 1], 7]['corrected', [0, 0, 1, 1], 7]Passed
control [[0, 1, 1, 0, 1, 1, 1]]['corrected', [1, 0, 1, 1], 5]['corrected', [1, 0, 1, 1], 5]Passed
control [[0, 1, 1, 0, 0, 1, 1]]['clean', [1, 0, 1, 1], 0]['clean', [1, 0, 1, 1], 0]Passed
control [[0, 1, 0, 1, 0, 1, 0]]['clean', [0, 0, 1, 0], 0]['clean', [0, 0, 1, 0], 0]Passed
control [[1, 1, 0, 1, 0, 1, 0]]['corrected', [0, 0, 1, 0], 1]['corrected', [0, 0, 1, 0], 1]Passed

SHA-256 / 375b9b0393b8133ce0bc87aad3ff3be61e735d9728df121c70acbb5a80bec073

2 / The unsuccessful fix

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

N = 1
observations = []
def solve(r):
    n = len(r)
    if n < 3 or any(b not in (0, 1) for b in r):
        return None
    s = 0
    for pos in range(1, n + 1):
        if r[pos - 1]:
            s ^= pos
    if s >= n:
        return ['uncorrectable', None, s]
    c = list(r)
    if s:
        c[s - 1] ^= 1
    data = [c[pos - 1] for pos in range(1, n + 1) if pos & (pos - 1)]
    return ['corrected' if s else 'clean', data, s]
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[['regression [[0, 0, 1, 1, 1, 0, 1, 0, 1, 0]]', [[0, 0, 1, 1, 1, 0, 1, 0, 1, 0]], ['uncorrectable', None, 12]], ['regression [[0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1]]', [[0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1]], ['uncorrectable', None, 15]], ['partial-repair [[0, 1, 0, 1, 0, 1, 1]]', [[0, 1, 0, 1, 0, 1, 1]], ['corrected', [0, 0, 1, 0], 7]], ['partial-repair [[1, 0, 0, 0, 0, 1, 0]]', [[1, 0, 0, 0, 0, 1, 0]], ['corrected', [0, 0, 1, 1], 7]], ['control [[0, 1, 1, 0, 1, 1, 1]]', [[0, 1, 1, 0, 1, 1, 1]], ['corrected', [1, 0, 1, 1], 5]], ['control [[0, 1, 1, 0, 0, 1, 1]]', [[0, 1, 1, 0, 0, 1, 1]], ['clean', [1, 0, 1, 1], 0]], ['control [[0, 1, 0, 1, 0, 1, 0]]', [[0, 1, 0, 1, 0, 1, 0]], ['clean', [0, 0, 1, 0], 0]], ['control [[1, 1, 0, 1, 0, 1, 0]]', [[1, 1, 0, 1, 0, 1, 0]], ['corrected', [0, 0, 1, 0], 1]]], [['regression [[1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]]', [[1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]], ['uncorrectable', None, 14]], ['regression [[1, 1, 1, 1, 1, 0, 1, 1, 1, 1]]', [[1, 1, 1, 1, 1, 0, 1, 1, 1, 1]], ['uncorrectable', None, 13]], ['partial-repair [[1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1]]', [[1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1]], ['corrected', [0, 1, 0, 0, 1, 1, 1, 0], 12]], ['partial-repair [[1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0]]', [[1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0]], ['corrected', [0, 0, 0, 0, 0, 1, 1, 1], 12]], ['control [[0, 1, 1, 1, 0, 1, 0]]', [[0, 1, 1, 1, 0, 1, 0]], ['corrected', [0, 0, 1, 0], 3]], ['control [[1, 0, 0, 0, 0, 1, 1]]', [[1, 0, 0, 0, 0, 1, 1]], ['clean', [0, 0, 1, 1], 0]], ['control [[1, 0, 0, 0, 1, 1, 1]]', [[1, 0, 0, 0, 1, 1, 1]], ['corrected', [0, 0, 1, 1], 5]], ['control [[0, 1, 0, 0, 0, 1, 1]]', [[0, 1, 0, 0, 0, 1, 1]], ['corrected', [1, 0, 1, 1], 3]]], [['regression [[1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0]]', [[1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0]], ['uncorrectable', None, 14]], ['regression [[1, 1, 1, 0, 1, 0, 0, 0, 1]]', [[1, 1, 1, 0, 1, 0, 0, 0, 1]], ['uncorrectable', None, 12]], ['partial-repair [[0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1]]', [[0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1]], ['corrected', [1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0], 15]], ['partial-repair [[0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]]', [[0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]], ['corrected', [0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1], 15]], ['control [[1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0]]', [[1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0]], ['corrected', [0, 1, 1, 0, 1, 1, 1, 0], 4]], ['control [[1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0]]', [[1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0]], ['clean', [0, 1, 0, 0, 1, 1, 1, 0], 0]], ['control [[1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0]]', [[1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0]], ['corrected', [0, 1, 0, 0, 1, 1, 1, 0], 8]], ['control [[0, 0, 1, 1, 0, 0, 1, 0, 0, 0]]', [[0, 0, 1, 1, 0, 0, 1, 0, 0, 0]], ['clean', [1, 0, 0, 1, 0, 0], 0]]], [['regression [[0, 0, 1, 1, 1, 0, 1, 0, 1, 0]]', [[0, 0, 1, 1, 1, 0, 1, 0, 1, 0]], ['uncorrectable', None, 12]], ['regression [[0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1]]', [[0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1]], ['uncorrectable', None, 15]], ['partial-repair [[0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1]]', [[0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1]], ['corrected', [1, 0, 1, 1, 0, 1, 0, 1, 0], 13]], ['partial-repair [[0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1]]', [[0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1]], ['corrected', [0, 0, 1, 0, 1, 0, 1, 0], 12]], ['control [[0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]]', [[0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]], ['clean', [1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0], 0]], ['control [[0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]]', [[0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]], ['corrected', [1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0], 5]], ['control [[0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1]]', [[0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1]], ['corrected', [1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1], 13]], ['control [[0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1]]', [[0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1]], ['clean', [0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1], 0]]], [['regression [[1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]]', [[1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0]], ['uncorrectable', None, 14]], ['regression [[1, 1, 1, 1, 1, 0, 1, 1, 1, 1]]', [[1, 1, 1, 1, 1, 0, 1, 1, 1, 1]], ['uncorrectable', None, 13]], ['partial-repair [[0, 1, 0, 1, 0, 1, 1]]', [[0, 1, 0, 1, 0, 1, 1]], ['corrected', [0, 0, 1, 0], 7]], ['partial-repair [[1, 0, 0, 0, 0, 1, 0]]', [[1, 0, 0, 0, 0, 1, 0]], ['corrected', [0, 0, 1, 1], 7]], ['control [[1, 0, 0, 0, 0, 0, 0, 1, 1]]', [[1, 0, 0, 0, 0, 0, 0, 1, 1]], ['clean', [0, 0, 0, 0, 1], 0]], ['control [[1, 0, 0, 0, 1, 0, 0, 1, 1]]', [[1, 0, 0, 0, 1, 0, 0, 1, 1]], ['corrected', [0, 0, 0, 0, 1], 5]], ['control [[0, 0, 0, 1, 0, 0, 0, 1, 1]]', [[0, 0, 0, 1, 0, 0, 0, 1, 1]], ['corrected', [0, 1, 0, 0, 1], 5]], ['control [[0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0]]', [[0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0]], ['clean', [1, 0, 1, 1, 0, 1, 0, 1, 0], 0]]]]
for label, args, expected in fixtures[N - 1]:
    check(label, solve(*args), expected)
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
regression [[0, 0, 1, 1, 1, 0, 1, 0, 1, 0]]['uncorrectable', None, 12]['uncorrectable', None, 12]Passed
regression [[0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1]]['uncorrectable', None, 15]['uncorrectable', None, 15]Passed
partial-repair [[0, 1, 0, 1, 0, 1, 1]]['uncorrectable', None, 7]['corrected', [0, 0, 1, 0], 7]Failed
partial-repair [[1, 0, 0, 0, 0, 1, 0]]['uncorrectable', None, 7]['corrected', [0, 0, 1, 1], 7]Failed
control [[0, 1, 1, 0, 1, 1, 1]]['corrected', [1, 0, 1, 1], 5]['corrected', [1, 0, 1, 1], 5]Passed
control [[0, 1, 1, 0, 0, 1, 1]]['clean', [1, 0, 1, 1], 0]['clean', [1, 0, 1, 1], 0]Passed
control [[0, 1, 0, 1, 0, 1, 0]]['clean', [0, 0, 1, 0], 0]['clean', [0, 0, 1, 0], 0]Passed
control [[1, 1, 0, 1, 0, 1, 0]]['corrected', [0, 0, 1, 0], 1]['corrected', [0, 0, 1, 0], 1]Passed

SHA-256 / 8cd290a1aef795dcbb75e75ebea891adee6743be8a7be778cd012302bae7f656

HELD IN THE MEMBER ARCHIVE

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

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

A deterministic, bounded teaching model of the named code under the stated contract; not a production codec. 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:48:33.412645+00:00.

Case digest / c5617626d265af6f8cbd5043b16616eb0da19754709c4e6f4e5066df65488888