{"abstract":"Sample count is reported as frame count in multichannel audio.","category":"Audio frame buffers","checks":4,"contract":"Return complete frame count for a flat sample sequence and positive channel count; partial trailing frame is not counted.","contract_signature":"samples, channels","evaluation_group":"xaud-sample-count-to-frame-count","failed_approach":"Rounding upward counts an incomplete trailing frame.","family":"xaud-sample-count-to-frame-count","id":"FA-10831","implementations":{"attempt":{"sha256":"c63053a0073d1c2d949ee0f8901c7a5940b2a152d80cc66a00c3934242862772","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(samples, channels):\n    return math.ceil(len(samples)/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)),2)\ncheck('fixture 2',solve(*([1, 2, 3], 2)),1)\ncheck('fixture 3',solve(*([], 2)),0)\ncheck('fixture 4',solve(*([1, 2, 3], 1)),3)\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":"1080c237d24dd6e9f3b7ce5ae9fb4c5703ff04a24470df00d6f0efd183510ce4","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(samples, channels):\n    return len(samples)\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)),2)\ncheck('fixture 2',solve(*([1, 2, 3], 2)),1)\ncheck('fixture 3',solve(*([], 2)),0)\ncheck('fixture 4',solve(*([1, 2, 3], 1)),3)\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-sample-count-to-frame-count","generated_at":"2026-09-29T14:38:42.534534+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.","root_cause":"Sample count is reported as frame count in multichannel audio.","sha256":"e08f8ef720920c9f94264f202d326e2fc44aa6340dc0eefc4dc62adb59639d41","title":"Sample count to frame count · 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":43.589,"exit_code":1,"observations":[{"actual":2,"check":"fixture 1","expected":2,"passed":true},{"actual":2,"check":"fixture 2","expected":1,"passed":false},{"actual":0,"check":"fixture 3","expected":0,"passed":true},{"actual":3,"check":"fixture 4","expected":3,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 2, \"expected\": 2, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": 2, \"expected\": 1, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 3, \"expected\": 3, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.337,"exit_code":1,"observations":[{"actual":4,"check":"fixture 1","expected":2,"passed":false},{"actual":3,"check":"fixture 2","expected":1,"passed":false},{"actual":0,"check":"fixture 3","expected":0,"passed":true},{"actual":3,"check":"fixture 4","expected":3,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 4, \"expected\": 2, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": 3, \"expected\": 1, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 3, \"expected\": 3, \"passed\": true}], \"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."}}