{"abstract":"Chunk processing discards the previous incomplete frame and current trailing samples.","category":"Audio frame buffers","checks":4,"contract":"Prepend prior partial-frame samples, emit all complete frames, and retain trailing samples as carry; channel count is positive.","evaluation_group":"xaud-retain-partial-frame-carry","failed_approach":"Emitting all samples sends incomplete frames to the downstream consumer.","family":"xaud-retain-partial-frame-carry","id":"FA-10841","implementations":{"attempt":{"sha256":"7dae65ae2a3f08bd5e799bf4a260844c25fe5c6e443ead9bafe72114d695a3ec","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(carry, chunk, channels):\n    return [list(carry)+list(chunk),[]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*([1], [2, 3, 4], 2)),[[1, 2, 3, 4], []])\ncheck('fixture 2',solve(*([], [1, 2, 3], 2)),[[1, 2], [3]])\ncheck('fixture 3',solve(*([1], [], 2)),[[], [1]])\ncheck('fixture 4',solve(*([], [], 2)),[[], []])\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":"0b382b9fca4489a43e10ce3bbe3bd4f7e946f71690c29c975934ab03c0d267bb","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(carry, chunk, channels):\n    return [list(chunk[:(len(chunk)//channels)*channels]),[]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*([1], [2, 3, 4], 2)),[[1, 2, 3, 4], []])\ncheck('fixture 2',solve(*([], [1, 2, 3], 2)),[[1, 2], [3]])\ncheck('fixture 3',solve(*([1], [], 2)),[[], [1]])\ncheck('fixture 4',solve(*([], [], 2)),[[], []])\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"},"fixed":{"sha256":"afcc5e0efa3335cc166016c37f32f9a4c268bfd877c28b3eef869b8f505b6052","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(carry, chunk, channels):\n    return [(list(carry)+list(chunk))[:((len(carry)+len(chunk))//channels)*channels],(list(carry)+list(chunk))[((len(carry)+len(chunk))//channels)*channels:]]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*([1], [2, 3, 4], 2)),[[1, 2, 3, 4], []])\ncheck('fixture 2',solve(*([], [1, 2, 3], 2)),[[1, 2], [3]])\ncheck('fixture 3',solve(*([1], [], 2)),[[], [1]])\ncheck('fixture 4',solve(*([], [], 2)),[[], []])\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":" 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":"xaud-retain-partial-frame-carry","generated_at":"2026-09-29T14:38:42.619135+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A pure Python local audio pipeline stage with explicit sample formats and frame conventions; no real-time device or signal-spectrum claims.","repair":"Apply the explicit PCM/playback contract: Prepend prior partial-frame samples, emit all complete frames, and retain trailing samples as carry; channel count is positive.","root_cause":"Chunk processing discards the previous incomplete frame and current trailing samples.","sha256":"16b6cfa49680f2d95b77f4ac7e1684a37232529afdf9e93f849a1fd11d899d91","title":"Retain partial frame carry · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":39.558,"exit_code":1,"observations":[{"actual":[[1,2,3,4],[]],"check":"fixture 1","expected":[[1,2,3,4],[]],"passed":true},{"actual":[[1,2,3],[]],"check":"fixture 2","expected":[[1,2],[3]],"passed":false},{"actual":[[1],[]],"check":"fixture 3","expected":[[],[1]],"passed":false},{"actual":[[],[]],"check":"fixture 4","expected":[[],[]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[1, 2, 3, 4], []], \"expected\": [[1, 2, 3, 4], []], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [[1, 2, 3], []], \"expected\": [[1, 2], [3]], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [[1], []], \"expected\": [[], [1]], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [[], []], \"expected\": [[], []], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.243,"exit_code":1,"observations":[{"actual":[[2,3],[]],"check":"fixture 1","expected":[[1,2,3,4],[]],"passed":false},{"actual":[[1,2],[]],"check":"fixture 2","expected":[[1,2],[3]],"passed":false},{"actual":[[],[]],"check":"fixture 3","expected":[[],[1]],"passed":false},{"actual":[[],[]],"check":"fixture 4","expected":[[],[]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[2, 3], []], \"expected\": [[1, 2, 3, 4], []], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [[1, 2], []], \"expected\": [[1, 2], [3]], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [[], []], \"expected\": [[], [1]], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [[], []], \"expected\": [[], []], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":40.043,"exit_code":0,"observations":[{"actual":[[1,2,3,4],[]],"check":"fixture 1","expected":[[1,2,3,4],[]],"passed":true},{"actual":[[1,2],[3]],"check":"fixture 2","expected":[[1,2],[3]],"passed":true},{"actual":[[],[1]],"check":"fixture 3","expected":[[],[1]],"passed":true},{"actual":[[],[]],"check":"fixture 4","expected":[[],[]],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[1, 2, 3, 4], []], \"expected\": [[1, 2, 3, 4], []], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [[1, 2], [3]], \"expected\": [[1, 2], [3]], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[], [1]], \"expected\": [[], [1]], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [[], []], \"expected\": [[], []], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}