Skip to content

feat(transcripts): stage corrected .cleaned.txt over raw ASR#26

Merged
just3ws merged 1 commit into
masterfrom
transcripts/stager-prefer-cleaned
Jul 8, 2026
Merged

feat(transcripts): stage corrected .cleaned.txt over raw ASR#26
just3ws merged 1 commit into
masterfrom
transcripts/stager-prefer-cleaned

Conversation

@just3ws

@just3ws just3ws commented Jul 7, 2026

Copy link
Copy Markdown
Owner

What

bin/stage_completed_transcripts.rb now prefers the learning-loop-corrected <id>.cleaned.txt over the raw ASR <id>.txt when both exist in the retention root, falling back .cleaned.txt.stitched.txt → shortest plain .txt.

Why

The /transcriptions learning loop (known-terms → triage → distill) emits corrected .cleaned.txt. The stager was ignoring it and copying raw ASR into _data staging, discarding the corrections.

Tests

spec/bin/stage_completed_transcripts_spec.rb — 4 examples (cleaned-preference, stitched fallback, plain-only, one-per-id). All pass.

🤖 Generated with Claude Code

stage_completed_transcripts.rb now prefers the known-terms-corrected
<id>.cleaned.txt (the /transcriptions triage/learn-loop output) over raw
<id>.txt / <id>.stitched.txt when staging pipeline transcripts for the
site, so operator corrections reach _data/transcripts instead of raw ASR.
Groups files by video id via new preferred_transcript_files(); guards
main under __FILE__==$PROGRAM_NAME so the added spec can require it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@just3ws
just3ws force-pushed the transcripts/stager-prefer-cleaned branch from 44aca42 to 1dd05f3 Compare July 8, 2026 17:19
@just3ws
just3ws merged commit 82ce030 into master Jul 8, 2026
2 checks passed
@just3ws
just3ws deleted the transcripts/stager-prefer-cleaned branch July 8, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant