auth-yes/tasks/cleanup-legacy-directories.md

1.3 KiB

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

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

deno fmt
deno task lint
deno task check
deno test -A --no-check

Step 4: Commit & Ship

git commit -m "chore(cleanup): remove legacy server/ and ui/ directories"
git push origin <branch-name>