{"abstract":"Ordinary residual replaces PCM amplitude rather than updating it.","category":"PCM sample encoding","checks":8,"contract":"Decode a stipulated PCM residual stream with an escape token followed by an absolute sample anchor; report a dangling escape without losing valid prefix state.","contract_signature":"tokens, initial, escape","evaluation_group":"s3-pcm-pcm-escaped-residuals","failed_approach":"Adding each residual to seed loses cumulative reconstruction.","family":"s3-pcm-pcm-escaped-residuals-residual-update","id":"FA-50131","implementations":{"attempt":{"sha256":"9f69dcd3c01e1232e5be0cb99d0afb6f74f758fc471943699b9c4f0431418eff","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(tokens, initial, escape):\n    out=[]\n    previous=initial\n    cursor=0\n    while cursor<len(tokens):\n        token=tokens[cursor]\n        cursor+=1\n        if token==escape:\n            if cursor==len(tokens):\n                return [out,previous,'truncated']\n            previous=tokens[cursor]\n            cursor+=1\n        else:\n            previous=initial+token\n        out.append(previous)\n    return [out,previous,'ok']\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('oracle 1', solve(*([1, 99, 20, -2], 10, 99)), [[11, 20, 18], 18, 'ok'])\ncheck('oracle 2', solve(*([99, -5, 2], 1, 99)), [[-5, -3], -3, 'ok'])\ncheck('oracle 3', solve(*([1, 99], 3, 99)), [[4], 4, 'truncated'])\ncheck('oracle 4', solve(*([], 4, 99)), [[], 4, 'ok'])\ncheck('oracle 5', solve(*([0, 1, 0], 2, 99)), [[2, 3, 3], 3, 'ok'])\ncheck('oracle 6', solve(*([8, 9, 0], 1, 7)), [[9, 18, 18], 18, 'ok'])\ncheck('oracle 7', solve(*([7, 3, 7, 8], 0, 7)), [[3, 8], 8, 'ok'])\nif N == 1: check('variant packet 1', solve(*[[1, 99, 20, -2, 1, 99, 20, -2], 10, 99]), [[11, 20, 18, 19, 20, 18], 18, 'ok'])\nif N == 2: check('variant packet 2', solve(*[[1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2], 10, 99]), [[11, 20, 18, 19, 20, 18, 19, 20, 18], 18, 'ok'])\nif N == 3: check('variant packet 3', solve(*[[1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2], 10, 99]), [[11, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18], 18, 'ok'])\nif N == 4: check('variant packet 4', solve(*[[1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2], 10, 99]), [[11, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18], 18, 'ok'])\nif N == 5: check('variant packet 5', solve(*[[1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2], 10, 99]), [[11, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18], 18, 'ok'])\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":"610d94f906c6f1a65c064078f72f43aa2d3a6d134e843f8129171cea98a23432","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(tokens, initial, escape):\n    out=[]\n    previous=initial\n    cursor=0\n    while cursor<len(tokens):\n        token=tokens[cursor]\n        cursor+=1\n        if token==escape:\n            if cursor==len(tokens):\n                return [out,previous,'truncated']\n            previous=tokens[cursor]\n            cursor+=1\n        else:\n            previous=token\n        out.append(previous)\n    return [out,previous,'ok']\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('oracle 1', solve(*([1, 99, 20, -2], 10, 99)), [[11, 20, 18], 18, 'ok'])\ncheck('oracle 2', solve(*([99, -5, 2], 1, 99)), [[-5, -3], -3, 'ok'])\ncheck('oracle 3', solve(*([1, 99], 3, 99)), [[4], 4, 'truncated'])\ncheck('oracle 4', solve(*([], 4, 99)), [[], 4, 'ok'])\ncheck('oracle 5', solve(*([0, 1, 0], 2, 99)), [[2, 3, 3], 3, 'ok'])\ncheck('oracle 6', solve(*([8, 9, 0], 1, 7)), [[9, 18, 18], 18, 'ok'])\ncheck('oracle 7', solve(*([7, 3, 7, 8], 0, 7)), [[3, 8], 8, 'ok'])\nif N == 1: check('variant packet 1', solve(*[[1, 99, 20, -2, 1, 99, 20, -2], 10, 99]), [[11, 20, 18, 19, 20, 18], 18, 'ok'])\nif N == 2: check('variant packet 2', solve(*[[1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2], 10, 99]), [[11, 20, 18, 19, 20, 18, 19, 20, 18], 18, 'ok'])\nif N == 3: check('variant packet 3', solve(*[[1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2], 10, 99]), [[11, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18], 18, 'ok'])\nif N == 4: check('variant packet 4', solve(*[[1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2], 10, 99]), [[11, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18], 18, 'ok'])\nif N == 5: check('variant packet 5', solve(*[[1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2, 1, 99, 20, -2], 10, 99]), [[11, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18, 19, 20, 18], 18, 'ok'])\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-escaped-residuals-residual-update","generated_at":"2026-09-29T14:45:06.281104+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":"Ordinary residual replaces PCM amplitude rather than updating it.","sha256":"9381f27044b65b767f809637f11c9e5802378b1c871e4a0cac7aef23dd066acf","title":"Pcm escaped residuals: residual update · 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":40.28,"exit_code":1,"observations":[{"actual":[[11,20,8],8,"ok"],"check":"oracle 1","expected":[[11,20,18],18,"ok"],"passed":false},{"actual":[[-5,3],3,"ok"],"check":"oracle 2","expected":[[-5,-3],-3,"ok"],"passed":false},{"actual":[[4],4,"truncated"],"check":"oracle 3","expected":[[4],4,"truncated"],"passed":true},{"actual":[[],4,"ok"],"check":"oracle 4","expected":[[],4,"ok"],"passed":true},{"actual":[[2,3,2],2,"ok"],"check":"oracle 5","expected":[[2,3,3],3,"ok"],"passed":false},{"actual":[[9,10,1],1,"ok"],"check":"oracle 6","expected":[[9,18,18],18,"ok"],"passed":false},{"actual":[[3,8],8,"ok"],"check":"oracle 7","expected":[[3,8],8,"ok"],"passed":true},{"actual":[[11,20,8,11,20,8],8,"ok"],"check":"variant packet 1","expected":[[11,20,18,19,20,18],18,"ok"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 1\", \"actual\": [[11, 20, 8], 8, \"ok\"], \"expected\": [[11, 20, 18], 18, \"ok\"], \"passed\": false}, {\"check\": \"oracle 2\", \"actual\": [[-5, 3], 3, \"ok\"], \"expected\": [[-5, -3], -3, \"ok\"], \"passed\": false}, {\"check\": \"oracle 3\", \"actual\": [[4], 4, \"truncated\"], \"expected\": [[4], 4, \"truncated\"], \"passed\": true}, {\"check\": \"oracle 4\", \"actual\": [[], 4, \"ok\"], \"expected\": [[], 4, \"ok\"], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [[2, 3, 2], 2, \"ok\"], \"expected\": [[2, 3, 3], 3, \"ok\"], \"passed\": false}, {\"check\": \"oracle 6\", \"actual\": [[9, 10, 1], 1, \"ok\"], \"expected\": [[9, 18, 18], 18, \"ok\"], \"passed\": false}, {\"check\": \"oracle 7\", \"actual\": [[3, 8], 8, \"ok\"], \"expected\": [[3, 8], 8, \"ok\"], \"passed\": true}, {\"check\": \"variant packet 1\", \"actual\": [[11, 20, 8, 11, 20, 8], 8, \"ok\"], \"expected\": [[11, 20, 18, 19, 20, 18], 18, \"ok\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.734,"exit_code":1,"observations":[{"actual":[[1,20,-2],-2,"ok"],"check":"oracle 1","expected":[[11,20,18],18,"ok"],"passed":false},{"actual":[[-5,2],2,"ok"],"check":"oracle 2","expected":[[-5,-3],-3,"ok"],"passed":false},{"actual":[[1],1,"truncated"],"check":"oracle 3","expected":[[4],4,"truncated"],"passed":false},{"actual":[[],4,"ok"],"check":"oracle 4","expected":[[],4,"ok"],"passed":true},{"actual":[[0,1,0],0,"ok"],"check":"oracle 5","expected":[[2,3,3],3,"ok"],"passed":false},{"actual":[[8,9,0],0,"ok"],"check":"oracle 6","expected":[[9,18,18],18,"ok"],"passed":false},{"actual":[[3,8],8,"ok"],"check":"oracle 7","expected":[[3,8],8,"ok"],"passed":true},{"actual":[[1,20,-2,1,20,-2],-2,"ok"],"check":"variant packet 1","expected":[[11,20,18,19,20,18],18,"ok"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 1\", \"actual\": [[1, 20, -2], -2, \"ok\"], \"expected\": [[11, 20, 18], 18, \"ok\"], \"passed\": false}, {\"check\": \"oracle 2\", \"actual\": [[-5, 2], 2, \"ok\"], \"expected\": [[-5, -3], -3, \"ok\"], \"passed\": false}, {\"check\": \"oracle 3\", \"actual\": [[1], 1, \"truncated\"], \"expected\": [[4], 4, \"truncated\"], \"passed\": false}, {\"check\": \"oracle 4\", \"actual\": [[], 4, \"ok\"], \"expected\": [[], 4, \"ok\"], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [[0, 1, 0], 0, \"ok\"], \"expected\": [[2, 3, 3], 3, \"ok\"], \"passed\": false}, {\"check\": \"oracle 6\", \"actual\": [[8, 9, 0], 0, \"ok\"], \"expected\": [[9, 18, 18], 18, \"ok\"], \"passed\": false}, {\"check\": \"oracle 7\", \"actual\": [[3, 8], 8, \"ok\"], \"expected\": [[3, 8], 8, \"ok\"], \"passed\": true}, {\"check\": \"variant packet 1\", \"actual\": [[1, 20, -2, 1, 20, -2], -2, \"ok\"], \"expected\": [[11, 20, 18, 19, 20, 18], 18, \"ok\"], \"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."}}