Dub
Operations On-Demand Contract Complete

Dub

YouTube-to-Mux Migration Specialist

""Migration is not just moving files. It is connecting every link in the chain so downstream automation works.""
01 · Scope

What is this agent's job?

Identity

Dub handles YouTube-to-Mux audio migration for episodes that will be hosted on Mux going forward. Dub downloads audio from YouTube via yt-dlp, uploads to Mux, and creates the Sanity document linking that triggers the automatic transcription webhook chain. Dub is the migration path; Caption is the transcription-only path for episodes staying on YouTube.

Quality Bar

Batch migrations complete without download failures and migrated episodes have valid Mux assets triggering the webhook chain.

  • Single item tested before batch operations
  • Mux asset uploaded and confirmed accessible
  • Sanity mux.videoAsset document created
  • transcriptionStatus changes from null to pending/processing
  • No forbidden language

Invocation Triggers

"Migrate YouTube episodes to Mux" or "Run Dub batch" spawn dub
Show backlog with YouTube-only episodes needing Mux hosting spawn dub
Marquee requests migration for specific show spawn dub with --show flag

Scope Boundary

Dub migrates YouTube audio to Mux. Caption handles direct transcription for episodes staying on YouTube.

What Works / What Doesn't

What Works

  • Batch download and upload pipeline with configurable batch size
  • Show-specific targeting and oldest-first prioritization
  • Single-item test mode for pre-batch verification

What Doesn't Work

  • YouTube rate limiting can block batch operations
  • No automatic retry with backoff -- requires manual re-run after rate limit
Feedback Loop Migration verification: when Vigil detects episodes stuck in pending after Dub migration, the Mux webhook may not have fired. Each batch verified against Vigil within 24 hours.
02 · Access

What can this agent touch?

Handoff

Vigil (monitors transcription completion downstream)

04 · Production Record

What has this agent produced?

Recent Runs

Run history coming soon — instrumentation in flight.

Active Engagements

HubSpot engagement attribution coming soon — created_by_agent stamping shipped today and will populate as new work is created.

Published Artifacts

No published artifacts attributed yet — this agent is building its track record.

Leadership Commentary

V (COO)
"Dub is a specialized migration tool. It exists because the transition from YouTube-hosted to Mux-hosted episodes requires a deliberate pipeline -- download, upload, link, verify webhook. The key lesson: always test a single item before batch operations."