FAILURE MAP
← Case archive

FA-50311 / PCM sample encoding / Open access

Pcm channel lifting chain: empty channel frame · case 01

An empty channel frame invents a silence channel.

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

ROOT CAUSE

An empty channel frame invents a silence channel.

VERIFIED REPAIR

Use the stated conversion contract at empty channel frame.

Unsuccessful approach: An empty valid frame is conflated with a failed decode.

Case contract

Losslessly represent each PCM frame as a first-channel anchor followed by differences from immediately preceding original channels; preserve empty and mono frames.

Why this case matters

Offline PCM interchange uses these exact bounded packet and sample representation decisions.

1 / The failure

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

N = 1
observations = []
def solve(frames):
    out=[]
    for frame in frames:
        if not frame:
            out.append([0])
            continue
        transformed=[frame[0]]
        previous=frame[0]
        for sample in frame[1:]:
            transformed.append(sample-previous)
            previous=sample
        out.append(transformed)
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('oracle 1', solve(*([[3, 5, 8], [1, 2, 4]],)), [[3, 2, 3], [1, 1, 2]])
check('oracle 2', solve(*([[7]],)), [[7]])
check('oracle 3', solve(*([[]],)), [[]])
check('oracle 4', solve(*([],)), [])
check('oracle 5', solve(*([[-2, 3, -1, 4]],)), [[-2, 5, -4, 5]])
check('oracle 6', solve(*([[0, 0, 0], [4, 4, 4]],)), [[0, 0, 0], [4, 0, 0]])
check('oracle 7', solve(*([[1, 3, 2, 6]],)), [[1, 2, -1, 4]])
if N == 1: check('variant packet 1', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 2: check('variant packet 2', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 3: check('variant packet 3', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 4: check('variant packet 4', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 5: check('variant packet 5', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
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
oracle 1[[3, 2, 3], [1, 1, 2]][[3, 2, 3], [1, 1, 2]]Passed
oracle 2[[7]][[7]]Passed
oracle 3[[0]][[]]Failed
oracle 4[][]Passed
oracle 5[[-2, 5, -4, 5]][[-2, 5, -4, 5]]Passed
oracle 6[[0, 0, 0], [4, 0, 0]][[0, 0, 0], [4, 0, 0]]Passed
oracle 7[[1, 2, -1, 4]][[1, 2, -1, 4]]Passed
variant packet 1[[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]][[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]]Passed

SHA-256 / bc1a80eeba4b465358c07bb02f76e7375e1c618257cd18c986b8940868a1ec32

2 / The unsuccessful fix

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

N = 1
observations = []
def solve(frames):
    out=[]
    for frame in frames:
        if not frame:
            out.append(None)
            continue
        transformed=[frame[0]]
        previous=frame[0]
        for sample in frame[1:]:
            transformed.append(sample-previous)
            previous=sample
        out.append(transformed)
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('oracle 1', solve(*([[3, 5, 8], [1, 2, 4]],)), [[3, 2, 3], [1, 1, 2]])
check('oracle 2', solve(*([[7]],)), [[7]])
check('oracle 3', solve(*([[]],)), [[]])
check('oracle 4', solve(*([],)), [])
check('oracle 5', solve(*([[-2, 3, -1, 4]],)), [[-2, 5, -4, 5]])
check('oracle 6', solve(*([[0, 0, 0], [4, 4, 4]],)), [[0, 0, 0], [4, 0, 0]])
check('oracle 7', solve(*([[1, 3, 2, 6]],)), [[1, 2, -1, 4]])
if N == 1: check('variant packet 1', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 2: check('variant packet 2', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 3: check('variant packet 3', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 4: check('variant packet 4', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 5: check('variant packet 5', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
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
oracle 1[[3, 2, 3], [1, 1, 2]][[3, 2, 3], [1, 1, 2]]Passed
oracle 2[[7]][[7]]Passed
oracle 3[None][[]]Failed
oracle 4[][]Passed
oracle 5[[-2, 5, -4, 5]][[-2, 5, -4, 5]]Passed
oracle 6[[0, 0, 0], [4, 0, 0]][[0, 0, 0], [4, 0, 0]]Passed
oracle 7[[1, 2, -1, 4]][[1, 2, -1, 4]]Passed
variant packet 1[[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]][[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]]Passed

SHA-256 / 496a7482eceb24bcd394f2d24f40a6c47b3034ee2220e9bb1fa75a7674b5cfda

3 / The verified repair

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

N = 1
observations = []
def solve(frames):
    out=[]
    for frame in frames:
        if not frame:
            out.append([])
            continue
        transformed=[frame[0]]
        previous=frame[0]
        for sample in frame[1:]:
            transformed.append(sample-previous)
            previous=sample
        out.append(transformed)
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('oracle 1', solve(*([[3, 5, 8], [1, 2, 4]],)), [[3, 2, 3], [1, 1, 2]])
check('oracle 2', solve(*([[7]],)), [[7]])
check('oracle 3', solve(*([[]],)), [[]])
check('oracle 4', solve(*([],)), [])
check('oracle 5', solve(*([[-2, 3, -1, 4]],)), [[-2, 5, -4, 5]])
check('oracle 6', solve(*([[0, 0, 0], [4, 4, 4]],)), [[0, 0, 0], [4, 0, 0]])
check('oracle 7', solve(*([[1, 3, 2, 6]],)), [[1, 2, -1, 4]])
if N == 1: check('variant packet 1', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 2: check('variant packet 2', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 3: check('variant packet 3', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 4: check('variant packet 4', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
if N == 5: check('variant packet 5', solve(*[[[3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4], [3, 5, 8], [1, 2, 4]]]), [[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]])
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
oracle 1[[3, 2, 3], [1, 1, 2]][[3, 2, 3], [1, 1, 2]]Passed
oracle 2[[7]][[7]]Passed
oracle 3[[]][[]]Passed
oracle 4[][]Passed
oracle 5[[-2, 5, -4, 5]][[-2, 5, -4, 5]]Passed
oracle 6[[0, 0, 0], [4, 0, 0]][[0, 0, 0], [4, 0, 0]]Passed
oracle 7[[1, 2, -1, 4]][[1, 2, -1, 4]]Passed
variant packet 1[[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]][[3, 2, 3], [1, 1, 2], [3, 2, 3], [1, 1, 2]]Passed

SHA-256 / 26fd14af573ca2a19bba5ac989e4bf14157d913c7eb51f640848db2afe1de033

Verification & scope

Stipulated finite model; no claim of hardware timing or full file-format conformance. 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:45:07.952167+00:00.

Case digest / c09f82a3615d3091bee6f94cf1fa1528a2c31ee2d97cda55f10184213ecc4b26