{"abstract":"Negative seeks remain before the stream beginning.","category":"Audio playback scheduling","checks":5,"contract":"Clamp an integer seek cursor to [0,total frame length], allowing the terminal end-of-stream cursor.","contract_signature":"requested, length","evaluation_group":"xaud-seek-clamps-to-frame-duration","failed_approach":"Clamping to the last sample excludes the valid end cursor and breaks empty streams.","family":"xaud-seek-clamps-to-frame-duration","id":"FA-10966","implementations":{"attempt":{"sha256":"0d11636bb256c465fb0b474f1464de64751617844135730f9922ec40748f4c26","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(requested, length):\n    return max(0,min(length-1,requested))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(-2, 10)),0)\ncheck('fixture 2',solve(*(10, 10)),10)\ncheck('fixture 3',solve(*(20, 10)),10)\ncheck('fixture 4',solve(*(0, 0)),0)\ncheck('fixture 5',solve(*(3, 10)),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":"5b4cfac3147cf8d85155dd37f8e137473e68ea1ee981ab9b78dc56829d1efc63","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(requested, length):\n    return min(length,requested)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1',solve(*(-2, 10)),0)\ncheck('fixture 2',solve(*(10, 10)),10)\ncheck('fixture 3',solve(*(20, 10)),10)\ncheck('fixture 4',solve(*(0, 0)),0)\ncheck('fixture 5',solve(*(3, 10)),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-seek-clamps-to-frame-duration","generated_at":"2026-09-29T14:38:43.758968+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":"Negative seeks remain before the stream beginning.","sha256":"b1b1dee41ecd3fc97c416e4beb15a057d5f96a5f7eec6d819f7ea4b3ce04f672","title":"Seek clamps to frame duration · 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":38.938,"exit_code":1,"observations":[{"actual":0,"check":"fixture 1","expected":0,"passed":true},{"actual":9,"check":"fixture 2","expected":10,"passed":false},{"actual":9,"check":"fixture 3","expected":10,"passed":false},{"actual":0,"check":"fixture 4","expected":0,"passed":true},{"actual":3,"check":"fixture 5","expected":3,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": 9, \"expected\": 10, \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": 9, \"expected\": 10, \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": 3, \"expected\": 3, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.144,"exit_code":1,"observations":[{"actual":-2,"check":"fixture 1","expected":0,"passed":false},{"actual":10,"check":"fixture 2","expected":10,"passed":true},{"actual":10,"check":"fixture 3","expected":10,"passed":true},{"actual":0,"check":"fixture 4","expected":0,"passed":true},{"actual":3,"check":"fixture 5","expected":3,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": -2, \"expected\": 0, \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": 10, \"expected\": 10, \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": 10, \"expected\": 10, \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 5\", \"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."}}