{"abstract":"An escaped absolute PCM anchor is added as a residual.","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 the block seed still fails to replace predictor with the literal amplitude.","family":"s3-pcm-pcm-escaped-residuals-escape-literal","id":"FA-50116","implementations":{"attempt":{"sha256":"78fb2327611eec395aea2854c1c26503879a992a6f11cc124ee61b8fc047f3d3","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=initial+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"},"broken":{"sha256":"2945425e1b300bee36fb54ed27e3a78c2fbd575fcd0d338e3ebab864289daa0d","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-escape-literal","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":"An escaped absolute PCM anchor is added as a residual.","sha256":"54cea8a40ad533be97d7207b53175e9030dce6270100900a6a547c362be5d2d1","title":"Pcm escaped residuals: escape literal · 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":41.228,"exit_code":1,"observations":[{"actual":[[11,30,28],28,"ok"],"check":"oracle 1","expected":[[11,20,18],18,"ok"],"passed":false},{"actual":[[-4,-2],-2,"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,3],3,"ok"],"check":"oracle 5","expected":[[2,3,3],3,"ok"],"passed":true},{"actual":[[9,18,18],18,"ok"],"check":"oracle 6","expected":[[9,18,18],18,"ok"],"passed":true},{"actual":[[3,8],8,"ok"],"check":"oracle 7","expected":[[3,8],8,"ok"],"passed":true},{"actual":[[11,30,28,29,30,28],28,"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, 30, 28], 28, \"ok\"], \"expected\": [[11, 20, 18], 18, \"ok\"], \"passed\": false}, {\"check\": \"oracle 2\", \"actual\": [[-4, -2], -2, \"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, 3], 3, \"ok\"], \"expected\": [[2, 3, 3], 3, \"ok\"], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [[9, 18, 18], 18, \"ok\"], \"expected\": [[9, 18, 18], 18, \"ok\"], \"passed\": true}, {\"check\": \"oracle 7\", \"actual\": [[3, 8], 8, \"ok\"], \"expected\": [[3, 8], 8, \"ok\"], \"passed\": true}, {\"check\": \"variant packet 1\", \"actual\": [[11, 30, 28, 29, 30, 28], 28, \"ok\"], \"expected\": [[11, 20, 18, 19, 20, 18], 18, \"ok\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.33,"exit_code":1,"observations":[{"actual":[[11,31,29],29,"ok"],"check":"oracle 1","expected":[[11,20,18],18,"ok"],"passed":false},{"actual":[[-4,-2],-2,"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,3],3,"ok"],"check":"oracle 5","expected":[[2,3,3],3,"ok"],"passed":true},{"actual":[[9,18,18],18,"ok"],"check":"oracle 6","expected":[[9,18,18],18,"ok"],"passed":true},{"actual":[[3,11],11,"ok"],"check":"oracle 7","expected":[[3,8],8,"ok"],"passed":false},{"actual":[[11,31,29,30,50,48],48,"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, 31, 29], 29, \"ok\"], \"expected\": [[11, 20, 18], 18, \"ok\"], \"passed\": false}, {\"check\": \"oracle 2\", \"actual\": [[-4, -2], -2, \"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, 3], 3, \"ok\"], \"expected\": [[2, 3, 3], 3, \"ok\"], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [[9, 18, 18], 18, \"ok\"], \"expected\": [[9, 18, 18], 18, \"ok\"], \"passed\": true}, {\"check\": \"oracle 7\", \"actual\": [[3, 11], 11, \"ok\"], \"expected\": [[3, 8], 8, \"ok\"], \"passed\": false}, {\"check\": \"variant packet 1\", \"actual\": [[11, 31, 29, 30, 50, 48], 48, \"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."}}