# M019: Foundations — Auth, Consent & LightRAG

## Vision
Stand up the two foundational systems for Phase 2: creator authentication with consent infrastructure (Pipeline A) and LightRAG graph-enhanced retrieval running in parallel with existing search (Pipeline B).

## Slice Overview
| ID | Slice | Risk | Depends | Done | After this |
|----|-------|------|---------|------|------------|
| S01 | [B] LightRAG Deployment + Docker Integration | high | — | ✅ | LightRAG service running in Docker, connected to Qdrant, entity extraction prompts producing music production entities from test input |
| S02 | [A] Creator Authentication + Dashboard Shell | high | — | ✅ | Creator registers with invite code, logs in, sees dashboard shell with nav and profile settings |
| S03 | [A] Consent Data Model + API Endpoints | medium | — | ✅ | API accepts per-video consent toggles with versioned audit trail |
| S04 | [B] Reindex Existing Corpus Through LightRAG | medium | S01 | ✅ | All existing content indexed in LightRAG with entity/relationship graph alongside current search |
| S05 | [A] Sprint 0 Refactoring Tasks | low | S02 | ✅ | Any structural refactoring from M018 audit is complete |
| S06 | Forgejo KB Update — Auth, Consent, LightRAG | low | S01, S02, S03, S04 | ✅ | Forgejo wiki updated with auth, consent, and LightRAG docs |
