{"abstract":"A partial dequeue discards the rest of the queued audio.","category":"Audio playback scheduling","checks":4,"contract":"Remove up to nonnegative count mono samples, returning [consumed,remaining] with every unconsumed sample retained.","evaluation_group":"xaud-dequeue-audio-preserves-tail","failed_approach":"Advancing the remainder by an extra sample loses one sample per callback.","family":"xaud-dequeue-audio-preserves-tail","id":"FA-10981","implementations":{"attempt":{"sha256":"ab2f4c568f5e02c34058693843b63c3301e827fb49f2f33cb1d0a27d4a3dedaf","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(queue, count):\n    return [queue[:count],queue[count+1:]]\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], 3)),[[1], []])\ncheck('fixture 3',solve(*([1, 2], 0)),[[], [1, 2]])\ncheck('fixture 4',solve(*([], 0)),[[], []])\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":"43c135f1045d07cfb66426f7ac84fda3f0282c6ec6443bc536fb3200e2475352","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(queue, count):\n    return [queue[:count],[]]\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], 3)),[[1], []])\ncheck('fixture 3',solve(*([1, 2], 0)),[[], [1, 2]])\ncheck('fixture 4',solve(*([], 0)),[[], []])\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":"23d6c6a2d466b8e8941d9b0d4f88964b508aef669a1f418ccb12bb49e1ddf010","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(queue, count):\n    return [queue[:count],queue[count:]]\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], 3)),[[1], []])\ncheck('fixture 3',solve(*([1, 2], 0)),[[], [1, 2]])\ncheck('fixture 4',solve(*([], 0)),[[], []])\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-dequeue-audio-preserves-tail","generated_at":"2026-09-29T14:38:43.850085+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: Remove up to nonnegative count mono samples, returning [consumed,remaining] with every unconsumed sample retained.","root_cause":"A partial dequeue discards the rest of the queued audio.","sha256":"61fc73834f3394031083cf4c8ae8aafb9ccf541b6afddd04722670c754b2fe1e","title":"Dequeue audio preserves tail · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.287,"exit_code":1,"observations":[{"actual":[[1,2],[4]],"check":"fixture 1","expected":[[1,2],[3,4]],"passed":false},{"actual":[[1],[]],"check":"fixture 2","expected":[[1],[]],"passed":true},{"actual":[[],[2]],"check":"fixture 3","expected":[[],[1,2]],"passed":false},{"actual":[[],[]],"check":"fixture 4","expected":[[],[]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[1, 2], [4]], \"expected\": [[1, 2], [3, 4]], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [[1], []], \"expected\": [[1], []], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[], [2]], \"expected\": [[], [1, 2]], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [[], []], \"expected\": [[], []], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.23,"exit_code":1,"observations":[{"actual":[[1,2],[]],"check":"fixture 1","expected":[[1,2],[3,4]],"passed":false},{"actual":[[1],[]],"check":"fixture 2","expected":[[1],[]],"passed":true},{"actual":[[],[]],"check":"fixture 3","expected":[[],[1,2]],"passed":false},{"actual":[[],[]],"check":"fixture 4","expected":[[],[]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[1, 2], []], \"expected\": [[1, 2], [3, 4]], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [[1], []], \"expected\": [[1], []], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[], []], \"expected\": [[], [1, 2]], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [[], []], \"expected\": [[], []], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":37.635,"exit_code":0,"observations":[{"actual":[[1,2],[3,4]],"check":"fixture 1","expected":[[1,2],[3,4]],"passed":true},{"actual":[[1],[]],"check":"fixture 2","expected":[[1],[]],"passed":true},{"actual":[[],[1,2]],"check":"fixture 3","expected":[[],[1,2]],"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], []], \"expected\": [[1], []], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[], [1, 2]], \"expected\": [[], [1, 2]], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [[], []], \"expected\": [[], []], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}