Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: archive DRY consolidation as complete

Adam Eivy08e915fc6a48
diff --git a/DONE.md b/DONE.md
index 9260bc7ccd..1dcecd80bb 100644
--- a/DONE.md
+++ b/DONE.md
@@ -16,6 +16,9 @@ Archive of completed work. For active roadmap, see [PLAN.md](./PLAN.md). For pro
- Resolved empty `.catch(() => {})` in client files — `request()` in api.js already shows `toast.error()` centrally; catches just prevent unhandled rejection warnings
- Resolved silent catches in runner.js — intentional best-effort writes during error handling
- Resolved Settings.jsx:366 catch — error toast already fires via centralized `request()` handler
+- DRY: Extended PATHS object with 15 new centralized path constants in fileUtils.js
+- DRY: Migrated 36 files from local `__dirname`/`process.cwd()` path definitions to centralized PATHS
+- DRY: Replaced 57 `mkdir({recursive:true})` calls across 26 files with `ensureDir()`/`ensureDirs()`
---
diff --git a/PLAN.md b/PLAN.md
index 72d900f608..0d354dcb01 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -13,7 +13,6 @@ For project goals, see [GOALS.md](./GOALS.md). For completed work, see [DONE.md]
## Backlog
- [ ] **God file decomposition** — Split cos.js, subAgentSpawner.js, digital-twin.js, routes/scaffold.js, routes/cos.js, client/api.js into focused modules; resolve circular dependency
-- [ ] **DRY consolidation** — Centralize ~84 duplicate DATA_DIR/path constants and ~100 `mkdir({recursive:true})` calls via `ensureDir()`
- [ ] **Test coverage** — Critical gaps: cos.js, cosRunnerClient.js, agentActionExecutor.js (~29% service, ~12% route coverage)
- [ ] **M50 P9**: CoS Automation & Rules — Automated email classification, rule-based pre-filtering, email-to-task pipeline
- [ ] **M50 P10**: Auto-Send with AI Review Gate — Per-account trust level, second LLM reviews drafts. See [Messages Security](./docs/features/messages-security.md)