chore(scripts): add segmented-transcript backfill script#122
Merged
Conversation
Re-runs the spec #18 segmented cleanup (TranscriptCleaningProcessor) on episodes that have a cleaned Markdown transcript but no AnnotatedTranscript JSON sidecar, so every episode gets a segmented view. This backfilled the 5 stragglers that predated the segmented pipeline (coverage now 866/866), which was the prerequisite for dropping the legacy-blended tab in #120. Idempotent: skips episodes that already have a sidecar unless --force. Dry-run by default; --apply to write; --episode-id to target specific rows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #120 (which dropped the legacy-blended/shadow transcript tabs). That PR merged the frontend change but not the script that made it possible — this PR adds it.
What
scripts/backfill_segmented_transcripts.py— a one-off, idempotent repair that re-runs the spec #18 segmented cleanup (TranscriptCleaningProcessor) on episodes that have a cleaned Markdown transcript but noAnnotatedTranscriptJSON sidecar. This is what backfilled the 5 stragglers that predated the segmented pipeline, bringing coverage to 866/866 so the legacy tab could be removed.--applyto write;--episode-idto target specific rows;--forceto re-clean episodes that already have a sidecar.--force, so re-running is safe and won't re-spend LLM tokens.Note
Uses
print()for CLI output, consistent with the siblingscripts/backfill_feed_holes.py.scripts/is one-off operational tooling, not application code.