chore(scripts): add segmented-transcript backfill script#121
Closed
ssarunic wants to merge 2 commits into
Closed
Conversation
All episodes now carry segmented transcripts, so the "Legacy blended" alternate-rendering tab and the never-populated "Shadow" debug tab no longer earn their place in the transcript panel. - Remove the sub-tab toggle, the TranscriptSubTab type, SubTabButton, and the ShadowTranscript type / shadow response field. - TranscriptViewer stays as the fallback renderer for raw / mid-pipeline / loading episodes (the backend `content` field still feeds it); only the user-facing legacy/shadow *tabs* are removed. tsc + frontend transcript tests green.
The prerequisite for dropping the legacy-blended tab: 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. Used to backfill the 5 stragglers that predated the segmented pipeline; idempotent and re-runnable (skips episodes that already have a sidecar unless --force). Dry-run by default; --apply to write; --episode-id to target specific rows.
Owner
Author
|
Superseded by a cleaner single-file branch off current main (this branch's merge-base predated #120's squash-merge, so its diff showed 4 unrelated no-op frontend files). Reopening as a fresh PR containing only the backfill script. |
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.