{"abstract":"Padding inserts scalar zero where downstream code expects a complete frame.","category":"Audio frame buffers","checks":4,"contract":"Pad a frame-major buffer to at least size frames with signed-PCM zero frames of channels width; never truncate.","contract_signature":"frames, size, channels","evaluation_group":"xaud-frame-padding-preserves-shape","failed_approach":"A padding operation also trims an already-long buffer.","family":"xaud-frame-padding-preserves-shape","id":"FA-10866","implementations":{"attempt":{"sha256":"9ee6e51a9152efb78c0714a3b5b07ba6291437d4943c0a3eb7a78b3b3a63f688","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(frames, size, channels):\n    return [list(f) for f in frames[:size]]+[[0]*channels for i in range(max(0,size-len(frames)))]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*([[1, 2]], 3, 2)),[[1, 2], [0, 0], [0, 0]])\ncheck('fixture 2',solve(*([], 1, 3)),[[0, 0, 0]])\ncheck('fixture 3',solve(*([[1], [2]], 1, 1)),[[1], [2]])\ncheck('fixture 4',solve(*([], 0, 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":"ac796b11ee37169f5a1afb48847e544350c39671bfeb8a0235a63028f8932e3c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(frames, size, channels):\n    return [list(f) for f in frames]+[0]*max(0,size-len(frames))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*([[1, 2]], 3, 2)),[[1, 2], [0, 0], [0, 0]])\ncheck('fixture 2',solve(*([], 1, 3)),[[0, 0, 0]])\ncheck('fixture 3',solve(*([[1], [2]], 1, 1)),[[1], [2]])\ncheck('fixture 4',solve(*([], 0, 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-frame-padding-preserves-shape","generated_at":"2026-09-29T14:38:42.944428+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":"Padding inserts scalar zero where downstream code expects a complete frame.","sha256":"d2335c13dfb2a6c454ab1017267fbb473fd9062e4a075faf71c052fc05e29c8b","title":"Frame padding preserves shape · 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":36.9,"exit_code":1,"observations":[{"actual":[[1,2],[0,0],[0,0]],"check":"fixture 1","expected":[[1,2],[0,0],[0,0]],"passed":true},{"actual":[[0,0,0]],"check":"fixture 2","expected":[[0,0,0]],"passed":true},{"actual":[[1]],"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], [0, 0], [0, 0]], \"expected\": [[1, 2], [0, 0], [0, 0]], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [[0, 0, 0]], \"expected\": [[0, 0, 0]], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[1]], \"expected\": [[1], [2]], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.147,"exit_code":1,"observations":[{"actual":[[1,2],0,0],"check":"fixture 1","expected":[[1,2],[0,0],[0,0]],"passed":false},{"actual":[0],"check":"fixture 2","expected":[[0,0,0]],"passed":false},{"actual":[[1],[2]],"check":"fixture 3","expected":[[1],[2]],"passed":true},{"actual":[],"check":"fixture 4","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [[1, 2], 0, 0], \"expected\": [[1, 2], [0, 0], [0, 0]], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [0], \"expected\": [[0, 0, 0]], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [[1], [2]], \"expected\": [[1], [2]], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [], \"expected\": [], \"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."}}