{"abstract":"Lossless PCM midpoint and side fields are swapped.","category":"PCM sample encoding","checks":8,"contract":"Encode stereo integer PCM through reversible floor lifting: side=L-R, mid=R+floor(side/2), with an explicit odd-side parity sideband.","contract_signature":"pairs","evaluation_group":"s3-pcm-pcm-mid-side-lifting","failed_approach":"Moving parity between amplitudes breaks the stipulated packet field order.","family":"s3-pcm-pcm-mid-side-lifting-wire-order","id":"FA-49286","implementations":{"attempt":{"sha256":"de186172eeb4e8ec3c0c0ecbdca15c9f348bb4718e6edc250cdfd2d30f6fcbd0","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(pairs):\n    out=[]\n    for left,right in pairs:\n        side=left-right\n        half=side//2\n        mid=right+half\n        parity=side&1\n        out.append([mid,parity,side])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('oracle 1', solve(*([[5, 2], [2, 5]],)), [[3, 3, 1], [3, -3, 1]])\ncheck('oracle 2', solve(*([[0, 0], [1, 1]],)), [[0, 0, 0], [1, 0, 0]])\ncheck('oracle 3', solve(*([[-3, 2], [4, -1]],)), [[-1, -5, 1], [1, 5, 1]])\ncheck('oracle 4', solve(*([],)), [])\ncheck('oracle 5', solve(*([[1, 0], [0, 1]],)), [[0, 1, 1], [0, -1, 1]])\ncheck('oracle 6', solve(*([[7, 7], [-7, -7]],)), [[7, 0, 0], [-7, 0, 0]])\ncheck('oracle 7', solve(*([[3, 1], [-3, -1]],)), [[2, 2, 0], [-2, -2, 0]])\nif N == 1: check('variant packet 1', solve(*[[[5, 2], [2, 5], [5, 2], [2, 5]]]), [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]])\nif N == 2: check('variant packet 2', solve(*[[[5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5]]]), [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]])\nif N == 3: check('variant packet 3', solve(*[[[5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5]]]), [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]])\nif N == 4: check('variant packet 4', solve(*[[[5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5]]]), [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]])\nif N == 5: check('variant packet 5', solve(*[[[5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5]]]), [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]])\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"154f57aa349c794d2d2f39d19848b3f38e7307e8dd1f0bb22c8c9785dee2cae3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(pairs):\n    out=[]\n    for left,right in pairs:\n        side=left-right\n        half=side//2\n        mid=right+half\n        parity=side&1\n        out.append([side,mid,parity])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('oracle 1', solve(*([[5, 2], [2, 5]],)), [[3, 3, 1], [3, -3, 1]])\ncheck('oracle 2', solve(*([[0, 0], [1, 1]],)), [[0, 0, 0], [1, 0, 0]])\ncheck('oracle 3', solve(*([[-3, 2], [4, -1]],)), [[-1, -5, 1], [1, 5, 1]])\ncheck('oracle 4', solve(*([],)), [])\ncheck('oracle 5', solve(*([[1, 0], [0, 1]],)), [[0, 1, 1], [0, -1, 1]])\ncheck('oracle 6', solve(*([[7, 7], [-7, -7]],)), [[7, 0, 0], [-7, 0, 0]])\ncheck('oracle 7', solve(*([[3, 1], [-3, -1]],)), [[2, 2, 0], [-2, -2, 0]])\nif N == 1: check('variant packet 1', solve(*[[[5, 2], [2, 5], [5, 2], [2, 5]]]), [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]])\nif N == 2: check('variant packet 2', solve(*[[[5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5]]]), [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]])\nif N == 3: check('variant packet 3', solve(*[[[5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5]]]), [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]])\nif N == 4: check('variant packet 4', solve(*[[[5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5]]]), [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]])\nif N == 5: check('variant packet 5', solve(*[[[5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5], [5, 2], [2, 5]]]), [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]])\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"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.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"s3-pcm-pcm-mid-side-lifting-wire-order","generated_at":"2026-09-29T14:44:58.588278+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Offline PCM interchange uses these exact bounded packet and sample representation decisions.","root_cause":"Lossless PCM midpoint and side fields are swapped.","sha256":"f92157683939192f8e3912e5345984be69407dd85c50871c0926bada6cc68e8c","title":"Pcm mid side lifting: wire order · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":45.771,"exit_code":1,"observations":[{"actual":[[3,1,3],[3,1,-3]],"check":"oracle 1","expected":[[3,3,1],[3,-3,1]],"passed":false},{"actual":[[0,0,0],[1,0,0]],"check":"oracle 2","expected":[[0,0,0],[1,0,0]],"passed":true},{"actual":[[-1,1,-5],[1,1,5]],"check":"oracle 3","expected":[[-1,-5,1],[1,5,1]],"passed":false},{"actual":[],"check":"oracle 4","expected":[],"passed":true},{"actual":[[0,1,1],[0,1,-1]],"check":"oracle 5","expected":[[0,1,1],[0,-1,1]],"passed":false},{"actual":[[7,0,0],[-7,0,0]],"check":"oracle 6","expected":[[7,0,0],[-7,0,0]],"passed":true},{"actual":[[2,0,2],[-2,0,-2]],"check":"oracle 7","expected":[[2,2,0],[-2,-2,0]],"passed":false},{"actual":[[3,1,3],[3,1,-3],[3,1,3],[3,1,-3]],"check":"variant packet 1","expected":[[3,3,1],[3,-3,1],[3,3,1],[3,-3,1]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 1\", \"actual\": [[3, 1, 3], [3, 1, -3]], \"expected\": [[3, 3, 1], [3, -3, 1]], \"passed\": false}, {\"check\": \"oracle 2\", \"actual\": [[0, 0, 0], [1, 0, 0]], \"expected\": [[0, 0, 0], [1, 0, 0]], \"passed\": true}, {\"check\": \"oracle 3\", \"actual\": [[-1, 1, -5], [1, 1, 5]], \"expected\": [[-1, -5, 1], [1, 5, 1]], \"passed\": false}, {\"check\": \"oracle 4\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [[0, 1, 1], [0, 1, -1]], \"expected\": [[0, 1, 1], [0, -1, 1]], \"passed\": false}, {\"check\": \"oracle 6\", \"actual\": [[7, 0, 0], [-7, 0, 0]], \"expected\": [[7, 0, 0], [-7, 0, 0]], \"passed\": true}, {\"check\": \"oracle 7\", \"actual\": [[2, 0, 2], [-2, 0, -2]], \"expected\": [[2, 2, 0], [-2, -2, 0]], \"passed\": false}, {\"check\": \"variant packet 1\", \"actual\": [[3, 1, 3], [3, 1, -3], [3, 1, 3], [3, 1, -3]], \"expected\": [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.23,"exit_code":1,"observations":[{"actual":[[3,3,1],[-3,3,1]],"check":"oracle 1","expected":[[3,3,1],[3,-3,1]],"passed":false},{"actual":[[0,0,0],[0,1,0]],"check":"oracle 2","expected":[[0,0,0],[1,0,0]],"passed":false},{"actual":[[-5,-1,1],[5,1,1]],"check":"oracle 3","expected":[[-1,-5,1],[1,5,1]],"passed":false},{"actual":[],"check":"oracle 4","expected":[],"passed":true},{"actual":[[1,0,1],[-1,0,1]],"check":"oracle 5","expected":[[0,1,1],[0,-1,1]],"passed":false},{"actual":[[0,7,0],[0,-7,0]],"check":"oracle 6","expected":[[7,0,0],[-7,0,0]],"passed":false},{"actual":[[2,2,0],[-2,-2,0]],"check":"oracle 7","expected":[[2,2,0],[-2,-2,0]],"passed":true},{"actual":[[3,3,1],[-3,3,1],[3,3,1],[-3,3,1]],"check":"variant packet 1","expected":[[3,3,1],[3,-3,1],[3,3,1],[3,-3,1]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 1\", \"actual\": [[3, 3, 1], [-3, 3, 1]], \"expected\": [[3, 3, 1], [3, -3, 1]], \"passed\": false}, {\"check\": \"oracle 2\", \"actual\": [[0, 0, 0], [0, 1, 0]], \"expected\": [[0, 0, 0], [1, 0, 0]], \"passed\": false}, {\"check\": \"oracle 3\", \"actual\": [[-5, -1, 1], [5, 1, 1]], \"expected\": [[-1, -5, 1], [1, 5, 1]], \"passed\": false}, {\"check\": \"oracle 4\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [[1, 0, 1], [-1, 0, 1]], \"expected\": [[0, 1, 1], [0, -1, 1]], \"passed\": false}, {\"check\": \"oracle 6\", \"actual\": [[0, 7, 0], [0, -7, 0]], \"expected\": [[7, 0, 0], [-7, 0, 0]], \"passed\": false}, {\"check\": \"oracle 7\", \"actual\": [[2, 2, 0], [-2, -2, 0]], \"expected\": [[2, 2, 0], [-2, -2, 0]], \"passed\": true}, {\"check\": \"variant packet 1\", \"actual\": [[3, 3, 1], [-3, 3, 1], [3, 3, 1], [-3, 3, 1]], \"expected\": [[3, 3, 1], [3, -3, 1], [3, 3, 1], [3, -3, 1]], \"passed\": false}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}