{"abstract":"Submitted position is exposed as audible position before queued audio plays.","category":"Audio playback scheduling","checks":4,"contract":"Estimate audible frame position as submitted frames minus frames still queued to the device, clamped at zero.","evaluation_group":"xaud-latency-position-subtracts-queued","failed_approach":"Adding queued latency moves the estimated audible clock further into the future.","family":"xaud-latency-position-subtracts-queued","id":"FA-10976","implementations":{"attempt":{"sha256":"a03ffd7f6771da90f6d233afd559ddbfe29f13d70d6c11cf925d22c41f9207ab","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(submitted, queued):\n    return submitted+queued\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(100, 20)),80)\ncheck('fixture 2',solve(*(0, 0)),0)\ncheck('fixture 3',solve(*(10, 20)),0)\ncheck('fixture 4',solve(*(10, 0)),10)\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":"6950a40025eac70af1766a75beb9534a05820ecd8a2b5453cc6a2309c9c55d3e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(submitted, queued):\n    return submitted\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(100, 20)),80)\ncheck('fixture 2',solve(*(0, 0)),0)\ncheck('fixture 3',solve(*(10, 20)),0)\ncheck('fixture 4',solve(*(10, 0)),10)\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":"37560752baf68caf487221ea415023854f56a0674195ebe3ddf012ef458e897d","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(submitted, queued):\n    return max(0,submitted-queued)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(100, 20)),80)\ncheck('fixture 2',solve(*(0, 0)),0)\ncheck('fixture 3',solve(*(10, 20)),0)\ncheck('fixture 4',solve(*(10, 0)),10)\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-latency-position-subtracts-queued","generated_at":"2026-09-29T14:38:43.840219+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: Estimate audible frame position as submitted frames minus frames still queued to the device, clamped at zero.","root_cause":"Submitted position is exposed as audible position before queued audio plays.","sha256":"5ceebc70aad4fcd121fc1d186f0f28d0ada688db458b64d8fa7973c73acb390f","title":"Latency position subtracts queued · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.746,"exit_code":1,"observations":[{"actual":120,"check":"fixture 1","expected":80,"passed":false},{"actual":0,"check":"fixture 2","expected":0,"passed":true},{"actual":30,"check":"fixture 3","expected":0,"passed":false},{"actual":10,"check":"fixture 4","expected":10,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 120, \"expected\": 80, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 30, \"expected\": 0, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": 10, \"expected\": 10, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.896,"exit_code":1,"observations":[{"actual":100,"check":"fixture 1","expected":80,"passed":false},{"actual":0,"check":"fixture 2","expected":0,"passed":true},{"actual":10,"check":"fixture 3","expected":0,"passed":false},{"actual":10,"check":"fixture 4","expected":10,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 100, \"expected\": 80, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 10, \"expected\": 0, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": 10, \"expected\": 10, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":35.96,"exit_code":0,"observations":[{"actual":80,"check":"fixture 1","expected":80,"passed":true},{"actual":0,"check":"fixture 2","expected":0,"passed":true},{"actual":0,"check":"fixture 3","expected":0,"passed":true},{"actual":10,"check":"fixture 4","expected":10,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 80, \"expected\": 80, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 10, \"expected\": 10, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}