Skip to content

Latest commit

 

History

History

README.md

Bug Analysis Index

Last Updated: 2026-02-15

This directory contains systematic root-cause analyses and deep-fix documentation for bugs discovered during content-machine development.


Bug Documentation Format

Each bug document follows this structure:

  1. Problem Statement - What the user saw
  2. Root Cause Analysis - Multi-layer investigation
  3. Fix Implementation - Code changes with examples
  4. Test Coverage - Unit tests added
  5. Verification - Before/after comparison
  6. Lessons Learned - Patterns for future prevention

Bug Index

ID Title Status Severity Related Commits
BUG-001 TTS Markers in Video Captions FIXED High 96eedc2, 1462eae
BUG-002 Hook Text Duplication in Audio FIXED Medium 7020b15
BUG-003 ASR Artifacts as Caption Words FIXED Medium 1462eae

Common Patterns

Multi-Layer Defense

All caption-related bugs were fixed with a defense-in-depth approach:

┌─────────────────┐
│  ASR Layer      │  ← isWhisperArtifact() filters during transcription
├─────────────────┤
│  Caption Layer  │  ← sanitizeTimedWords() filters before paging
├─────────────────┤
│  Render Layer   │  ← buildRenderProps() final safety filter
└─────────────────┘

Content-Aware Processing

Script assembly bugs (hook duplication) were fixed by:

  • Detecting content overlap between sections
  • Case-insensitive text matching
  • Conditional section inclusion

Confidence-Based Filtering

ASR artifacts were addressed by:

  • Using Whisper confidence scores
  • Empirically tuned thresholds (0.15 for ASR, 0.10 for captions)
  • Preserving words without confidence scores

Prevention Guidelines

  1. Always filter ASR output - Never trust raw transcription
  2. Use confidence scores - Low confidence = likely artifact
  3. Test with real TTS audio - Synthetic audio has unique artifacts
  4. Defense in depth - Multiple filtering layers catch different issues
  5. Pattern evolution - Keep regex patterns updated for new TTS engines

Related Documentation