FA-49086 / PCM sample encoding / Open access
Pcm byte lane shuffle: output width · case 01
Converted sample width is reported as input container width.
ROOT CAUSE
Converted sample width is reported as input container width.
VERIFIED REPAIR
Use the stated conversion contract at output width.
Unsuccessful approach: Reporting padding width does not describe emitted payload size.
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 lanes]
ignored_values=[packet[i] for i in ignored]
good=all(value==0 for value in ignored_values)
out.append([selected,good,len(packet)])
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| oracle 1 | [[[2, 1], True, 4], [[4, 3], False, 4]] | [[[2, 1], True, 2], [[4, 3], False, 2]] | Failed |
| oracle 2 | [[[9, 8, 9], True, 2]] | [[[9, 8, 9], True, 3]] | Failed |
| oracle 3 | [] | [] | Passed |
| oracle 4 | [[[1], True, 3]] | [[[1], True, 1]] | Failed |
| oracle 5 | [[[], True, 2]] | [[[], True, 0]] | Failed |
| oracle 6 | [[[1, 3, 4], False, 4]] | [[[1, 3, 4], False, 3]] | Failed |
| oracle 7 | [[[1], True, 1]] | [[[1], True, 1]] | Passed |
| variant packet 1 | [[[2, 1], True, 4], [[4, 3], False, 4], [[2, 1], True, 4], [[4, 3], False, 4]] | [[[2, 1], True, 2], [[4, 3], False, 2], [[2, 1], True, 2], [[4, 3], False, 2]] | Failed |
SHA-256 / 442cba3658b9bd8fe6ef61fdaff1828b2bc839da420c12e38cbefedb41fd81c5
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 lanes]
ignored_values=[packet[i] for i in ignored]
good=all(value==0 for value in ignored_values)
out.append([selected,good,len(ignored)])
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| 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, 0]] | [[[9, 8, 9], True, 3]] | Failed |
| oracle 3 | [] | [] | Passed |
| oracle 4 | [[[1], True, 2]] | [[[1], True, 1]] | Failed |
| oracle 5 | [[[], True, 2]] | [[[], True, 0]] | Failed |
| oracle 6 | [[[1, 3, 4], False, 1]] | [[[1, 3, 4], False, 3]] | Failed |
| oracle 7 | [[[1], True, 0]] | [[[1], True, 1]] | Failed |
| 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 / dc028731104fcc036e41ed957cf621be4343c57359e370bba40f5d352d087efc
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| 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.612156+00:00.
Case digest / c8e7a7ee3b2c0700d04db82661f56560c10da4f9e1b117cb928bb289c44c6f9a