# M014: 

## Vision
Restructure technique pages to be broader (per-creator+category across videos), deeper (H2/H3 nesting with TOC), multi-source (compose new video content into existing pages), with inline citations linking prose claims to source moments, admin multi-source management, and section-level search with deep linking.

## Slice Overview
| ID | Slice | Risk | Depends | Done | After this |
|----|-------|------|---------|------|------------|
| S01 | Synthesis Prompt v5 — Nested Sections + Citations | high | — | ✅ | Run test harness with new prompt → output has list-of-objects body_sections with H2/H3 nesting, citation markers on key claims, broader page scope. |
| S02 | Composition Prompt + Test Harness Compose Mode | high | S01 | ✅ | Run test harness --compose mode with existing page + new moments → merged output with deduplication, new sections, updated citations. |
| S03 | Data Model + Migration | low | — | ✅ | Alembic migration runs clean. API response includes body_sections_format and source_videos fields. |
| S04 | Pipeline Compose-or-Create Logic | high | S01, S02, S03 | ✅ | Process two COPYCATT videos. Second video's moments composed into existing page. technique_page_videos has both video IDs. |
| S05 | Frontend — Nested Rendering, TOC, Citations | medium | S03 | ✅ | Format-2 page renders with TOC, nested sections, clickable citations. Format-1 pages unchanged. |
| S06 | Admin UI — Multi-Source Pipeline Management | medium | S03, S04 | ✅ | Admin view for multi-source page shows source dropdown, composition history, per-video chunking inspection. |
| S07 | Search — Per-Section Embeddings + Deep Linking | medium | S04, S05 | ✅ | Search 'LFO grain position' → section-level result → click → navigates to page#section and scrolls. |
