# URGENT: C: Drive Space Recovery PRD

## Mission
Move maximum safe folders from C: to E: drive to prevent system crash.

## Pre-Mortem Analysis
### What Could Fail?
1. Symlinks not working across NTFS/WSL boundary
2. Applications expecting original paths break
3. Permission issues on moved folders

### Mitigation
- Use Windows-native symlinks via cmd.exe
- Only move cache/data folders, not program folders
- Test each symlink after creation

---

## Target Folders (Estimated ~12GB recoverable)

| Folder | Size | Action |
|--------|------|--------|
| AppData/Local/Temp | 2.4G | CLEAR |
| .cache | 2.0G | MOVE+SYMLINK |
| AppData/Local/pip | 1.5G | CLEAR (already redirected) |
| .gemini | 1.3G | MOVE+SYMLINK |
| AppData/Local/Ollama | 1.2G | MOVE+SYMLINK |
| .lmstudio | 926M | MOVE+SYMLINK |
| .antigravity | 915M | MOVE+SYMLINK |
| ms-playwright | 644M | CLEAR |
| .codeium | 604M | MOVE+SYMLINK |
| lm-studio-updater | 546M | CLEAR |
| uv cache | 378M | CLEAR |

---

### US-001: Clear Temp and Cache Folders
**Goal:** Clear safe-to-delete temp/cache folders
**Acceptance Criteria:**
- GIVEN C: drive needs space urgently
- WHEN clearing temp folders that can be regenerated
- THEN free up ~5GB immediately
**Commands:**
```bash
rm -rf /mnt/c/Users/P3/AppData/Local/Temp/*
rm -rf /mnt/c/Users/P3/AppData/Local/pip/cache/*
rm -rf /mnt/c/Users/P3/AppData/Local/ms-playwright/*
rm -rf /mnt/c/Users/P3/AppData/Local/lm-studio-updater/*
rm -rf /mnt/c/Users/P3/AppData/Local/uv/cache/*
```
**Dependencies:** None

---

### US-002: Create E: Drive Cache Directory
**Goal:** Create directory structure on E: for moved folders
**Acceptance Criteria:**
- GIVEN folders need new home on E:
- WHEN creating target directories
- THEN structure ready for moves
**Commands:**
```bash
mkdir -p /mnt/e/genesis-system/.cache-redirect/{cache,gemini,ollama,lmstudio,antigravity,codeium}
```
**Dependencies:** None

---

### US-003: Move .cache Folder
**Goal:** Move 2GB .cache to E: and create symlink
**Acceptance Criteria:**
- GIVEN .cache is 2GB
- WHEN moved to E: with symlink back
- THEN applications still work
**Commands:**
```bash
mv /mnt/c/Users/P3/.cache/* /mnt/e/genesis-system/.cache-redirect/cache/
rmdir /mnt/c/Users/P3/.cache
cmd.exe /c "mklink /D C:\\Users\\P3\\.cache E:\\genesis-system\\.cache-redirect\\cache"
```
**Dependencies:** US-002

---

### US-004: Move .gemini Folder
**Goal:** Move 1.3GB .gemini to E: and create symlink
**Acceptance Criteria:**
- GIVEN .gemini is 1.3GB
- WHEN moved to E: with symlink back
- THEN Gemini CLI still works
**Commands:**
```bash
mv /mnt/c/Users/P3/.gemini/* /mnt/e/genesis-system/.cache-redirect/gemini/
rmdir /mnt/c/Users/P3/.gemini
cmd.exe /c "mklink /D C:\\Users\\P3\\.gemini E:\\genesis-system\\.cache-redirect\\gemini"
```
**Dependencies:** US-002

---

### US-005: Move Ollama Models
**Goal:** Move 1.2GB Ollama data to E:
**Acceptance Criteria:**
- GIVEN Ollama models taking 1.2GB
- WHEN moved to E: with symlink
- THEN Ollama still works
**Commands:**
```bash
mv /mnt/c/Users/P3/AppData/Local/Ollama/* /mnt/e/genesis-system/.cache-redirect/ollama/
rmdir /mnt/c/Users/P3/AppData/Local/Ollama
cmd.exe /c "mklink /D C:\\Users\\P3\\AppData\\Local\\Ollama E:\\genesis-system\\.cache-redirect\\ollama"
```
**Dependencies:** US-002

---

### US-006: Move .lmstudio Folder
**Goal:** Move 926MB .lmstudio to E:
**Acceptance Criteria:**
- GIVEN .lmstudio is 926MB
- WHEN moved to E: with symlink
- THEN LM Studio still works
**Commands:**
```bash
mv /mnt/c/Users/P3/.lmstudio/* /mnt/e/genesis-system/.cache-redirect/lmstudio/
rmdir /mnt/c/Users/P3/.lmstudio
cmd.exe /c "mklink /D C:\\Users\\P3\\.lmstudio E:\\genesis-system\\.cache-redirect\\lmstudio"
```
**Dependencies:** US-002

---

### US-007: Move .antigravity Folder
**Goal:** Move 915MB .antigravity to E:
**Acceptance Criteria:**
- GIVEN .antigravity is 915MB
- WHEN moved to E: with symlink
- THEN application still works
**Commands:**
```bash
mv /mnt/c/Users/P3/.antigravity/* /mnt/e/genesis-system/.cache-redirect/antigravity/
rmdir /mnt/c/Users/P3/.antigravity
cmd.exe /c "mklink /D C:\\Users\\P3\\.antigravity E:\\genesis-system\\.cache-redirect\\antigravity"
```
**Dependencies:** US-002

---

### US-008: Move .codeium Folder
**Goal:** Move 604MB .codeium to E:
**Acceptance Criteria:**
- GIVEN .codeium is 604MB
- WHEN moved to E: with symlink
- THEN Codeium extension still works
**Commands:**
```bash
mv /mnt/c/Users/P3/.codeium/* /mnt/e/genesis-system/.cache-redirect/codeium/
rmdir /mnt/c/Users/P3/.codeium
cmd.exe /c "mklink /D C:\\Users\\P3\\.codeium E:\\genesis-system\\.cache-redirect\\codeium"
```
**Dependencies:** US-002

---

### US-009: Verify All Symlinks
**Goal:** Verify all symlinks working correctly
**Acceptance Criteria:**
- GIVEN all folders moved
- WHEN checking symlinks
- THEN all point to E: and are accessible
**Commands:**
```bash
ls -la /mnt/c/Users/P3/.cache
ls -la /mnt/c/Users/P3/.gemini
ls -la /mnt/c/Users/P3/AppData/Local/Ollama
ls -la /mnt/c/Users/P3/.lmstudio
ls -la /mnt/c/Users/P3/.antigravity
ls -la /mnt/c/Users/P3/.codeium
```
**Dependencies:** US-003 through US-008

---

### US-010: Report Space Recovered
**Goal:** Report final disk space status
**Acceptance Criteria:**
- GIVEN all operations complete
- WHEN checking disk space
- THEN show space recovered
**Commands:**
```bash
df -h /mnt/c /mnt/e
du -sh /mnt/e/genesis-system/.cache-redirect/*
```
**Dependencies:** US-009

---

## Success Criteria
- Recover minimum 8GB on C: drive
- All symlinks functional
- No application breakage
