{ "title": "Cover _transcribe_diarize.py before splitting it", "objective": "_transcribe_diarize.py is 356 lines against a 250-line cap and was completely untested - the largest untested Python file left in the repo. This commit raises it to 100% line and branch coverage first, so the following split can be verified against tests that predate the seam. numpy is real here rather than mocked, because the file's core is clustering maths and a mocked numpy would make those assertions vacuous.", "acceptance_criteria": [ "_transcribe_diarize.py reaches 100% line and branch coverage, from 0%", "_transcribe_diarize.py is byte-identical to HEAD - this commit adds tests only", "The tests run without torch, speechbrain, soundfile or ffmpeg present", "The clustering tests assert real separation properties, not that a mock was called", "No suppression of any kind", "Every new test file is under the 250-line cap" ], "out_of_scope": [ "The split of _transcribe_diarize.py itself, which is the next commit", "Any behaviour change", "Moving these files under python_pkg/" ], "verifier": "pytest linux_configuration/tests/test_transcribe_diarize_*.py --cov=_transcribe_diarize --cov-branch --cov-report=term-missing for the coverage claim and the test count; pre-commit run --files for lint; bash ~/utils/scripts/check_file_length.sh --all to confirm no new over-cap file." }