{"abstract":"Decimation windows advance by a bit instead of output block width.","category":"PCM sample encoding","checks":8,"contract":"Bounded one-bit-density to PCM adapter using nonoverlapping box windows; zero/one map to -1/+1 and incomplete input bits carry across packets.","contract_signature":"bits, factor, carry","evaluation_group":"s3-pcm-pcm-pdm-box-decimation","failed_approach":"Reusing the first window repeats the initial PCM value.","family":"s3-pcm-pcm-pdm-box-decimation-window-stride","id":"FA-50021","implementations":{"attempt":{"sha256":"e89c9fd9d06f941f1df1be19023750badffb77f1b26bacf243933c5347f571fe","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(bits, factor, carry):\n    combined=list(carry)+list(bits)\n    complete=len(combined)//factor\n    samples=[]\n    for group in range(complete):\n        window=combined[0:factor]\n        amplitude=2*sum(window)-factor\n        samples.append(amplitude)\n    return [samples,combined[complete*factor:]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('oracle 1', solve(*([1, 0, 1, 1, 0, 0], 3, [])), [[1, -1], []])\ncheck('oracle 2', solve(*([1, 0, 0], 4, [1, 1])), [[2], [0]])\ncheck('oracle 3', solve(*([1, 1, 1, 1], 2, [])), [[2, 2], []])\ncheck('oracle 4', solve(*([], 4, [1])), [[], [1]])\ncheck('oracle 5', solve(*([0, 0, 0, 0], 4, [])), [[-4], []])\ncheck('oracle 6', solve(*([1], 1, [])), [[1], []])\ncheck('oracle 7', solve(*([0, 1, 0, 1, 1], 3, [0])), [[-1, 1], []])\nif N == 1: check('variant packet 1', solve(*[[1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 3, []]), [[1, -1, 1, -1], []])\nif N == 2: check('variant packet 2', solve(*[[1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 3, []]), [[1, -1, 1, -1, 1, -1], []])\nif N == 3: check('variant packet 3', solve(*[[1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 3, []]), [[1, -1, 1, -1, 1, -1, 1, -1], []])\nif N == 4: check('variant packet 4', solve(*[[1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 3, []]), [[1, -1, 1, -1, 1, -1, 1, -1, 1, -1], []])\nif N == 5: check('variant packet 5', solve(*[[1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 3, []]), [[1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -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":"cd0c20ac785a2a97393c7ecd771c3a64f2b1708b1d9c1b87e74da16005fbbf92","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(bits, factor, carry):\n    combined=list(carry)+list(bits)\n    complete=len(combined)//factor\n    samples=[]\n    for group in range(complete):\n        window=combined[group:group+factor]\n        amplitude=2*sum(window)-factor\n        samples.append(amplitude)\n    return [samples,combined[complete*factor:]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('oracle 1', solve(*([1, 0, 1, 1, 0, 0], 3, [])), [[1, -1], []])\ncheck('oracle 2', solve(*([1, 0, 0], 4, [1, 1])), [[2], [0]])\ncheck('oracle 3', solve(*([1, 1, 1, 1], 2, [])), [[2, 2], []])\ncheck('oracle 4', solve(*([], 4, [1])), [[], [1]])\ncheck('oracle 5', solve(*([0, 0, 0, 0], 4, [])), [[-4], []])\ncheck('oracle 6', solve(*([1], 1, [])), [[1], []])\ncheck('oracle 7', solve(*([0, 1, 0, 1, 1], 3, [0])), [[-1, 1], []])\nif N == 1: check('variant packet 1', solve(*[[1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 3, []]), [[1, -1, 1, -1], []])\nif N == 2: check('variant packet 2', solve(*[[1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 3, []]), [[1, -1, 1, -1, 1, -1], []])\nif N == 3: check('variant packet 3', solve(*[[1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 3, []]), [[1, -1, 1, -1, 1, -1, 1, -1], []])\nif N == 4: check('variant packet 4', solve(*[[1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 3, []]), [[1, -1, 1, -1, 1, -1, 1, -1, 1, -1], []])\nif N == 5: check('variant packet 5', solve(*[[1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0], 3, []]), [[1, -1, 1, -1, 1, -1, 1, -1, 1, -1, 1, -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-pdm-box-decimation-window-stride","generated_at":"2026-09-29T14:45:05.461064+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":"Decimation windows advance by a bit instead of output block width.","sha256":"b1da2b5702e02c55df428499181f268180edcb8ce0682681769eb7ffccb9e879","title":"Pcm pdm box decimation: window stride · 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":39.567,"exit_code":1,"observations":[{"actual":[[1,1],[]],"check":"oracle 1","expected":[[1,-1],[]],"passed":false},{"actual":[[2],[0]],"check":"oracle 2","expected":[[2],[0]],"passed":true},{"actual":[[2,2],[]],"check":"oracle 3","expected":[[2,2],[]],"passed":true},{"actual":[[],[1]],"check":"oracle 4","expected":[[],[1]],"passed":true},{"actual":[[-4],[]],"check":"oracle 5","expected":[[-4],[]],"passed":true},{"actual":[[1],[]],"check":"oracle 6","expected":[[1],[]],"passed":true},{"actual":[[-1,-1],[]],"check":"oracle 7","expected":[[-1,1],[]],"passed":false},{"actual":[[1,1,1,1],[]],"check":"variant packet 1","expected":[[1,-1,1,-1],[]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 1\", \"actual\": [[1, 1], []], \"expected\": [[1, -1], []], \"passed\": false}, {\"check\": \"oracle 2\", \"actual\": [[2], [0]], \"expected\": [[2], [0]], \"passed\": true}, {\"check\": \"oracle 3\", \"actual\": [[2, 2], []], \"expected\": [[2, 2], []], \"passed\": true}, {\"check\": \"oracle 4\", \"actual\": [[], [1]], \"expected\": [[], [1]], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [[-4], []], \"expected\": [[-4], []], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [[1], []], \"expected\": [[1], []], \"passed\": true}, {\"check\": \"oracle 7\", \"actual\": [[-1, -1], []], \"expected\": [[-1, 1], []], \"passed\": false}, {\"check\": \"variant packet 1\", \"actual\": [[1, 1, 1, 1], []], \"expected\": [[1, -1, 1, -1], []], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.89,"exit_code":1,"observations":[{"actual":[[1,1],[]],"check":"oracle 1","expected":[[1,-1],[]],"passed":false},{"actual":[[2],[0]],"check":"oracle 2","expected":[[2],[0]],"passed":true},{"actual":[[2,2],[]],"check":"oracle 3","expected":[[2,2],[]],"passed":true},{"actual":[[],[1]],"check":"oracle 4","expected":[[],[1]],"passed":true},{"actual":[[-4],[]],"check":"oracle 5","expected":[[-4],[]],"passed":true},{"actual":[[1],[]],"check":"oracle 6","expected":[[1],[]],"passed":true},{"actual":[[-1,-1],[]],"check":"oracle 7","expected":[[-1,1],[]],"passed":false},{"actual":[[1,1,1,-1],[]],"check":"variant packet 1","expected":[[1,-1,1,-1],[]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 1\", \"actual\": [[1, 1], []], \"expected\": [[1, -1], []], \"passed\": false}, {\"check\": \"oracle 2\", \"actual\": [[2], [0]], \"expected\": [[2], [0]], \"passed\": true}, {\"check\": \"oracle 3\", \"actual\": [[2, 2], []], \"expected\": [[2, 2], []], \"passed\": true}, {\"check\": \"oracle 4\", \"actual\": [[], [1]], \"expected\": [[], [1]], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [[-4], []], \"expected\": [[-4], []], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [[1], []], \"expected\": [[1], []], \"passed\": true}, {\"check\": \"oracle 7\", \"actual\": [[-1, -1], []], \"expected\": [[-1, 1], []], \"passed\": false}, {\"check\": \"variant packet 1\", \"actual\": [[1, 1, 1, -1], []], \"expected\": [[1, -1, 1, -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."}}