DOCS/CORE ARCHITECTURE/Pipeline & Architecture

Pipeline & Architecture

High-level overview of the 10-stage pipeline, parallel branches, and quality gates.

Shotrunner executes 10 discrete stages with dual parallel branches to maximize throughput while preventing wasted compute.

Parallel Execution Model

After Stage 02 completes and writes final.md, execution forks into two independent parallel branches:

  • •Audio Branch (03 → 04): Synthesizes neural voiceover (audio.wav) and computes frame-accurate Whisper subtitle timings (subtitles.srt).
  • •Visual Branch (05 → 06 → 07): Computes scene demand (needs.md), downloads imagery with OCR watermark rejection, and sorts frames into the series library (images/).

Both branches read only immutable inputs (final.md and config.yaml). When both report completion, Stage 08 renders the final video.

10-Stage Pipeline Matrix

STAGEPHASEOUTPUTVALIDATION / GATE
00. Series ScaffoldSequentialseries/<name>/ & config.yamlshorts series --name <name>
01. Live ResearchSequentialresearch/*.md & raw.mdshorts verify-raw (≥2 domains)
02. Script TransformSequentialfinal.md + phonemesshorts verify-script (100–130w)
03. TTS NarrationAudio Branchaudio.wavshorts tts (fish | openai | elevenlabs | google | azure | polly)
04. Whisper SubtitlesAudio Branchsubtitles.srt & words.jsonshorts subtitles (frame-sync)
05. Shot PlanningVisual Branchneeds.mdshorts verify-demand
06. Image ScrapingVisual Branchraw-images/*shorts download (OCR filter)
07. Vision SortingVisual Branchimages/*shorts verify-sort (shot tags)
08. Render & QCConvergenceshort.mp4shorts lint → render → qc (−14 LUFS)
09. YouTube UploadPublishingLive YouTube ShortUser-Permission Gated

Quality Gates & State Ledger

Every stage records a PASS token to series/<series>/logs/<slug>.log. If any gate fails, execution halts immediately with actionable diagnostics. On resume, completed stages are skipped automatically.

Was this "Pipeline & Architecture" page helpful?
© 2026 SHOTRUNNERLOCAL-FIRST · AGENT-DRIVEN