FAILURE MAP
← Case archive

FA-49066 / PCM sample encoding / Open access

Pcm byte lane shuffle: lane permutation · case 01

A hardware byte-lane map is sorted instead of honored.

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

ROOT CAUSE

A hardware byte-lane map is sorted instead of honored.

VERIFIED REPAIR

Use the stated conversion contract at lane permutation.

Unsuccessful approach: Reversing the map still emits different physical lanes than requested.

Case contract

Repack each fixed-size sample container using an explicit byte-lane map, retain duplicate selections and validate only declared zero-pad lanes.

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(packets, lanes, ignored):
    out=[]
    for packet in packets:
        selected=[packet[i] for i in sorted(lanes)]
        ignored_values=[packet[i] for i in ignored]
        good=all(value==0 for value in ignored_values)
        out.append([selected,good,len(selected)])
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('oracle 1', solve(*([[1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3])), [[[2, 1], True, 2], [[4, 3], False, 2]])
check('oracle 2', solve(*([[8, 9]], [1, 0, 1], [])), [[[9, 8, 9], True, 3]])
check('oracle 3', solve(*([], [], [])), [])
check('oracle 4', solve(*([[0, 1, 0]], [1], [0, 2])), [[[1], True, 1]])
check('oracle 5', solve(*([[0, 0]], [], [0, 1])), [[[], True, 0]])
check('oracle 6', solve(*([[4, 3, 2, 1]], [3, 1, 0], [2])), [[[1, 3, 4], False, 3]])
check('oracle 7', solve(*([[1]], [0], [])), [[[1], True, 1]])
if N == 1: check('variant packet 1', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 2: check('variant packet 2', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 3: check('variant packet 3', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 4: check('variant packet 4', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 5: check('variant packet 5', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 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[[[1, 2], True, 2], [[3, 4], False, 2]][[[2, 1], True, 2], [[4, 3], False, 2]]Failed
oracle 2[[[8, 9, 9], True, 3]][[[9, 8, 9], True, 3]]Failed
oracle 3[][]Passed
oracle 4[[[1], True, 1]][[[1], True, 1]]Passed
oracle 5[[[], True, 0]][[[], True, 0]]Passed
oracle 6[[[4, 3, 1], False, 3]][[[1, 3, 4], False, 3]]Failed
oracle 7[[[1], True, 1]][[[1], True, 1]]Passed
variant packet 1[[[1, 2], True, 2], [[3, 4], False, 2], [[1, 2], True, 2], [[3, 4], False, 2]][[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]]Failed

SHA-256 / 2062bce14eb460c0a46636f467e1d1688d7a5142843919acb984ad1c34cdfc1f

2 / The unsuccessful fix

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

N = 1
observations = []
def solve(packets, lanes, ignored):
    out=[]
    for packet in packets:
        selected=[packet[i] for i in reversed(lanes)]
        ignored_values=[packet[i] for i in ignored]
        good=all(value==0 for value in ignored_values)
        out.append([selected,good,len(selected)])
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('oracle 1', solve(*([[1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3])), [[[2, 1], True, 2], [[4, 3], False, 2]])
check('oracle 2', solve(*([[8, 9]], [1, 0, 1], [])), [[[9, 8, 9], True, 3]])
check('oracle 3', solve(*([], [], [])), [])
check('oracle 4', solve(*([[0, 1, 0]], [1], [0, 2])), [[[1], True, 1]])
check('oracle 5', solve(*([[0, 0]], [], [0, 1])), [[[], True, 0]])
check('oracle 6', solve(*([[4, 3, 2, 1]], [3, 1, 0], [2])), [[[1, 3, 4], False, 3]])
check('oracle 7', solve(*([[1]], [0], [])), [[[1], True, 1]])
if N == 1: check('variant packet 1', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 2: check('variant packet 2', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 3: check('variant packet 3', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 4: check('variant packet 4', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 5: check('variant packet 5', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 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[[[1, 2], True, 2], [[3, 4], False, 2]][[[2, 1], True, 2], [[4, 3], False, 2]]Failed
oracle 2[[[9, 8, 9], True, 3]][[[9, 8, 9], True, 3]]Passed
oracle 3[][]Passed
oracle 4[[[1], True, 1]][[[1], True, 1]]Passed
oracle 5[[[], True, 0]][[[], True, 0]]Passed
oracle 6[[[4, 3, 1], False, 3]][[[1, 3, 4], False, 3]]Failed
oracle 7[[[1], True, 1]][[[1], True, 1]]Passed
variant packet 1[[[1, 2], True, 2], [[3, 4], False, 2], [[1, 2], True, 2], [[3, 4], False, 2]][[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]]Failed

SHA-256 / 4dddb3d2690387dafb3152b331263d1638c2d28a5a40f983ed06da819abe4d7f

3 / The verified repair

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

N = 1
observations = []
def solve(packets, lanes, ignored):
    out=[]
    for packet in packets:
        selected=[packet[i] for i in lanes]
        ignored_values=[packet[i] for i in ignored]
        good=all(value==0 for value in ignored_values)
        out.append([selected,good,len(selected)])
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('oracle 1', solve(*([[1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3])), [[[2, 1], True, 2], [[4, 3], False, 2]])
check('oracle 2', solve(*([[8, 9]], [1, 0, 1], [])), [[[9, 8, 9], True, 3]])
check('oracle 3', solve(*([], [], [])), [])
check('oracle 4', solve(*([[0, 1, 0]], [1], [0, 2])), [[[1], True, 1]])
check('oracle 5', solve(*([[0, 0]], [], [0, 1])), [[[], True, 0]])
check('oracle 6', solve(*([[4, 3, 2, 1]], [3, 1, 0], [2])), [[[1, 3, 4], False, 3]])
check('oracle 7', solve(*([[1]], [0], [])), [[[1], True, 1]])
if N == 1: check('variant packet 1', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 2: check('variant packet 2', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 3: check('variant packet 3', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 4: check('variant packet 4', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]])
if N == 5: check('variant packet 5', solve(*[[[1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5], [1, 0, 2, 0], [3, 0, 4, 5]], [2, 0], [1, 3]]), [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 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[[[2, 1], True, 2], [[4, 3], False, 2]][[[2, 1], True, 2], [[4, 3], False, 2]]Passed
oracle 2[[[9, 8, 9], True, 3]][[[9, 8, 9], True, 3]]Passed
oracle 3[][]Passed
oracle 4[[[1], True, 1]][[[1], True, 1]]Passed
oracle 5[[[], True, 0]][[[], True, 0]]Passed
oracle 6[[[1, 3, 4], False, 3]][[[1, 3, 4], False, 3]]Passed
oracle 7[[[1], True, 1]][[[1], True, 1]]Passed
variant packet 1[[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]][[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]]Passed

SHA-256 / 9645ffb7d97e201b5c6308039e238f8c182d3af6ec2dc4aa9ee67632414e1743

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

Case digest / e042c769b4b6148da9c8a9035ea33cf2fa9f4cf811b53a30bb1bee9cadf41adb