fix: keep chunk details out of speaker headers
Render transcript-wide speaker numbers instead of exposing upload chunks in reader-facing headers. Reconcile adjacent requests using at least two unambiguous word-and-time matches in their shared audio, including when provider speaker IDs change between requests. Reject conflicting mappings and never treat matching numeric provider IDs as identity evidence. Assign fresh IDs where continuity cannot be established and report that uncertainty on stderr. Number only speakers retained after overlap trimming. Document that overlap matching cannot identify a returning speaker who was absent from the overlap, and add the reader-facing boundary to AGENTS.md. Test Plan: - python3 -B -m unittest -v: all 46 tests passed, including swapped IDs, ambiguous evidence, continuity across three requests, and plain headers. - git diff --cached --check: passed. - Tests use synthetic speaker labels; live diarization accuracy was not verified because provider credentials are unavailable in this environment.
This commit is contained in:
1 parent
6e94379a25
commit
5dd1b5811b
7 files changed
+129
-32
No files matched your search
@@ -27,6 +27,8 @@
|
||||
- `test_*.py` and `tests/fake_provider.py`: local regression tests without real
|
||||
credentials or provider requests.
|
||||
|
||||
Keep the CLI and its three Python helpers together. Preserve transcript order,
|
||||
scope speaker IDs to their request, and emit stdout only after all chunks and
|
||||
output conversion succeed. Progress and errors belong on stderr.
|
||||
Keep the CLI and its three Python helpers together. Preserve transcript order
|
||||
and emit stdout only after all chunks and output conversion succeed. Provider
|
||||
speaker IDs are request-local; reuse transcript IDs across requests only with
|
||||
supporting overlap evidence. Keep chunk details out of the final transcript.
|
||||
Progress, processing details, and errors belong on stderr.
|
||||
Reference in new issue
Block a user