# Task: Legacy Directory Cleanup & Workspace Pruning (Phase 5B) - **Status:** PENDING / QUEUED - **Trigger:** Execute after runtime stability and smoke tests on `src/main.ts` have been verified in staging/production. - **Estimated Effort:** 10 minutes (Zero functional risk once `src/` is running standalone). --- ## 1. Context & Objectives The hypermedia architecture transition has rebuilt all features (`auth`, `admin`, `events`, `sessions`, `forward_auth`) into vertical slices inside `src/`. `src/` is 100% self-contained and has zero dependencies on legacy code. This task removes the legacy `server/` and `ui/` directories and prunes workspace entries from `deno.json`. --- ## 2. Step-by-Step Execution Plan ### Step 1: Remove Legacy Directories ```bash git rm -rf server/ ui/ ``` ### Step 2: Prune `deno.json` Workspace In root `deno.json`: - Remove `"./server"` and `"./ui"` from `"workspace"`. - Keep `"./sdk"` and `"./src"`. - In `"check"` task, update paths to: `deno check sdk/**/*.ts infra/**/*.ts src/**/*.ts src/**/*.tsx`. ### Step 3: Verify All Quality Gates ```bash deno fmt deno task lint deno task check deno test -A --no-check ``` ### Step 4: Commit & Ship ```bash git commit -m "chore(cleanup): remove legacy server/ and ui/ directories" git push origin ```