# Blueprint-Driven UI Rebuild Pattern

When the user provides a comprehensive Markdown blueprint (like `unspooled_ultimate_hermes_tv_ui_blueprint_v2.md`), execute it phase-by-phase:

1. **Audit first** — grep all source files for banned patterns (moveFocus, local isFocused, TvLazy*, competing sidebars). Produce count + file list.
2. **Build foundation** — FocusZone, FocusRegistry, FocusLinks, FocusVelocityTracker, FocusUtils, DpadKeyHandler. Verify build after this phase.
3. **Build chrome** — UnifiedSidebar + UnifiedChromeScaffold. Wire focus properties per item.
4. **Build content** — Home screen with FocusRegistry per card, FocusLinks directional exits, HeroSection.
5. **Build cards** — PremiumContentCard with halo, expansion, metadata tiers. CardSpec, CardEdge, AdaptiveFocusHalo.
6. **Build settings** — Two-pane SettingsHubScreen with per-category focus memory.
7. **Polish** — Gradient masks, badge dots, settled focus integration.

**Key rule**: Build compiles after EVERY phase, not just at the end. Each file write → check build. This catches import errors, API mismatches, and overload conflicts immediately.

**Copy strategy**: Copy freely from all three reference apps (FudgeTV, NuvioTV, Lumera). Adapt naming to Unspooled conventions. Do not waste time reimplementing from scratch.
