## Phase 0: Pre-Migration Setup ✅

### 0.1 Decision Records

- [x] **0.1.1** Create ADR for git strategy decision: absorb nested repos vs
      submodules (RECOMMEND: absorb)
- [x] **0.1.2** Create ADR for package manager choice (RECOMMEND: pnpm)
- [x] **0.1.3** Create ADR for auth/identity strategy: single provider vs
      per-product (RECOMMEND: single)
- [x] **0.1.4** Create ADR for eventing strategy: event broker choice and event
      contract patterns
- [x] **0.1.5** Create ADR for API contract approach: OpenAPI vs Proto vs both
- [x] **0.1.6** Create ADR for versioning/release strategy: Nx release vs
      changesets
- [x] **0.1.7** Document data ownership matrix for each domain (who owns what
      data stores)

### 0.2 Inventory & Dependency Analysis

- [x] **0.2.1** Run dependency-cruiser on lilith to generate full dependency
      graph
- [x] **0.2.2** Run dependency analysis on yemaya packages
- [x] **0.2.3** Identify circular dependencies in lilith services
- [x] **0.2.4** Identify circular dependencies in yemaya packages
- [x] **0.2.5** Document all database schemas across both projects
- [x] **0.2.6** Document all external API integrations (ElevenLabs, Civitai,
      RunComfy, etc.)
- [x] **0.2.7** Create spreadsheet mapping current packages/services to target
      domains

### 0.3 Backup & Safety

- [x] **0.3.1** Create full backup of lilith/.git history
- [x] **0.3.2** Create full backup of yemaya/.git history
- [x] **0.3.3** Tag current state in both repos (e.g., `pre-nx-migration`)
- [x] **0.3.4** Document rollback procedure if migration fails
- [x] **0.3.5** Set up migration branch: `feature/nx-monorepo-migration`

---

