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: split CoS operational guidance out of GOALS.md into OPERATIONAL.md; drop drifted [codex5-operating-loop-dashboard]

[._.]/ Adam Eivy365515a190b8
diff --git a/GOALS.md b/GOALS.md
index c46370b530..f8752bede1 100644
--- a/GOALS.md
+++ b/GOALS.md
@@ -103,62 +103,6 @@ See [PLAN.md](./PLAN.md) for detailed milestone tracking and roadmap.
| Personal Productivity & Life Management | Ongoing | Calendar (agenda/day/week/month/lifetime/review), Messages inbox + drafts, voice agent, Telegram bot, OpenClaw operator chat all shipped. Proactive CoS speech triggers and voice-tool coverage expanding. |
| Cognitive Training & Lifelong Learning | Ongoing | POST (math/wordplay/memory/verbal/imagination), Morse, Rapid Reader, Wiki shipped. Adding more training domains and integrating cross-domain insights (e.g. genome-informed cognitive load patterns). |
-## Operational Goals
-
-The CoS autonomous agent system reads these goals to guide its behavior and task generation.
-
-### Goal 1: Codebase Quality
-- Run security audits weekly
-- Check for mobile responsiveness issues
-- Find and fix DRY violations
-- Remove dead code and unused imports
-- Improve test coverage
-- Fix console errors and warnings
-
-### Goal 2: Self-Improvement
-- Add new capabilities to the CoS system
-- Improve the self-improvement task prompts
-- Add new analysis types (a11y, i18n, SEO)
-- Better error recovery and retry logic
-- Smarter task prioritization
-- Learn from completed tasks
-
-### Goal 3: Documentation
-- Keep PLAN.md up to date with completed milestones
-- Document new features in /docs
-- Generate daily/weekly summary reports
-- Track metrics and improvements over time
-- Maintain clear task descriptions
-
-### Goal 4: User Engagement
-- Prompt user for feedback on completed tasks
-- Suggest new features based on usage patterns
-- Help user define and track their goals
-- Provide status updates and progress reports
-- Ask clarifying questions when tasks are ambiguous
-
-### Goal 5: System Health
-- Monitor PM2 processes continuously
-- Check for memory leaks and performance issues
-- Verify all services are running correctly
-- Alert on critical errors immediately
-- Auto-fix common issues when safe
-
-### Task Generation Priorities
-
-When idle, generate tasks in this priority order:
-
-1. **Critical Fixes**: Security vulnerabilities, crashes, data loss risks
-2. **User Tasks**: Any pending tasks from TASKS.md
-3. **Health Issues**: PM2 errors, failed processes, high memory
-4. **Self-Improvement**: UI bugs, mobile issues, code quality
-5. **Documentation**: Update docs, generate reports
-6. **Feature Ideas**: New capabilities, enhancements
-
-### Core Principles
-
-1. **Proactive Over Reactive**: Don't wait for problems - find and fix them before they become issues
-2. **Continuous Improvement**: Always look for ways to make things better
-3. **User Partnership**: Prompt the user to help curate tasks and provide feedback
-4. **Documentation First**: Maintain rich documentation, plans, and task tracking
-5. **Quality Over Speed**: Use the heavy model (Opus) for important work - quality matters
+## Operational Guidance
+
+CoS task-generation rules, runtime priorities, and per-domain operational goals are tracked in [OPERATIONAL.md](./OPERATIONAL.md) — separate from the strategic goals above so this file stays focused on mission and direction.
diff --git a/OPERATIONAL.md b/OPERATIONAL.md
new file mode 100644
index 0000000000..04b52a40c3
--- /dev/null
+++ b/OPERATIONAL.md
@@ -0,0 +1,67 @@
+# PortOS — Operational Goals
+
+Runtime guidance for the Chief of Staff (CoS) autonomous agent system. CoS reads this file to decide what work to generate when idle, how to prioritize incoming tasks, and which operating principles to apply.
+
+This file is **operational config**, not strategic intent. For the project's mission and strategic goals, see [GOALS.md](./GOALS.md). For the active development backlog, see [PLAN.md](./PLAN.md).
+
+The `server/services/goalProgress.js` parser walks the `## Operational Goals` section below and maps each `### Goal N: <name>` heading to a category in `GOAL_MAPPINGS` for the Goal Progress dashboard.
+
+## Operational Goals
+
+The CoS autonomous agent system reads these goals to guide its behavior and task generation.
+
+### Goal 1: Codebase Quality
+- Run security audits weekly
+- Check for mobile responsiveness issues
+- Find and fix DRY violations
+- Remove dead code and unused imports
+- Improve test coverage
+- Fix console errors and warnings
+
+### Goal 2: Self-Improvement
+- Add new capabilities to the CoS system
+- Improve the self-improvement task prompts
+- Add new analysis types (a11y, i18n, SEO)
+- Better error recovery and retry logic
+- Smarter task prioritization
+- Learn from completed tasks
+
+### Goal 3: Documentation
+- Keep PLAN.md up to date with completed milestones
+- Document new features in /docs
+- Generate daily/weekly summary reports
+- Track metrics and improvements over time
+- Maintain clear task descriptions
+
+### Goal 4: User Engagement
+- Prompt user for feedback on completed tasks
+- Suggest new features based on usage patterns
+- Help user define and track their goals
+- Provide status updates and progress reports
+- Ask clarifying questions when tasks are ambiguous
+
+### Goal 5: System Health
+- Monitor PM2 processes continuously
+- Check for memory leaks and performance issues
+- Verify all services are running correctly
+- Alert on critical errors immediately
+- Auto-fix common issues when safe
+
+### Task Generation Priorities
+
+When idle, generate tasks in this priority order:
+
+1. **Critical Fixes**: Security vulnerabilities, crashes, data loss risks
+2. **User Tasks**: Any pending tasks from TASKS.md
+3. **Health Issues**: PM2 errors, failed processes, high memory
+4. **Self-Improvement**: UI bugs, mobile issues, code quality
+5. **Documentation**: Update docs, generate reports
+6. **Feature Ideas**: New capabilities, enhancements
+
+### Core Principles
+
+1. **Proactive Over Reactive**: Don't wait for problems - find and fix them before they become issues
+2. **Continuous Improvement**: Always look for ways to make things better
+3. **User Partnership**: Prompt the user to help curate tasks and provide feedback
+4. **Documentation First**: Maintain rich documentation, plans, and task tracking
+5. **Quality Over Speed**: Use the heavy model (Opus) for important work - quality matters
diff --git a/PLAN.md b/PLAN.md
index a5a7ea257f..6be1a707f1 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -75,10 +75,8 @@ Items here need a research / design pass, an explicit decision, or a preconditio
- [ ] [codex5-health-provenance-chips] **[P1][HEALTH][TRUST]** Extend Ask's source-chip pattern to MeatSpace / genome / death clock / longevity views. Each insight tags itself as `data-backed | inferred | experimental | speculative` with a "what would change this?" explainer and a clinician-export view for blood + lifestyle data. Pairs with `[codex5-decision-provenance-everywhere]`.
- [ ] [codex5-autonomy-guardrails] **[P1][AUTONOMY]** Per-domain autonomy levels + dry-run + budgets + while-away briefing. Today CoS has a single global autonomy posture. Split into per-domain knobs (Brain auto-classify, Memory auto-extract, CoS auto-run, Messages auto-send) each with `off | dry-run | execute`. Add spending / time / token budgets per domain. Add a "what did agents do while I was away?" digest pulling from the existing CoS / agent run logs into a daily briefing card.
- [ ] [codex5-mobile-task-flows] **[P2][MOBILE]** Five phone-native flows: (1) system health + one-tap restart of an app, (2) one-tap voice/text Brain capture, (3) "what should I do now?" Ask, (4) approve / reject a CoS result from a notification, (5) log a health/lifestyle event in ≤10 seconds. Each should be reachable in ≤2 taps from a Tailscale-launched mobile session.
-- [ ] [codex5-operating-loop-dashboard] **[P0][PRODUCT]** Top-level daily command center / operating loop. Replace the homepage-equivalent dashboard with 3–5 prioritized cards: Critical System Issues, Today's Calendar Commitments, Active Agent Work, Goal Next Action, Health/Recovery Signal. Each card gets one primary action + one drill-down. Add an explicit day-mode selector (`Focus | Ops | Health | Review | Autonomous`) that re-ranks the cards. Pulls signals from Digital Twin, chronotype, calendar, goals, and CoS. Treat as a multi-PR design spike — investigation + mockups first.
- > ⚠️ DRIFT: A naive "replace dashboard" execution would silently drop the **Network Exposure** widget (`bc716743` feat([codex5-network-exposure-ui])) and regress per-widget lazy-loading + stale-chunk recovery (`eaab7857` feat([codex5-bundle-lazy-routes])). Reword to "evolve the dashboard composition layer" so the widget registry + lazy infrastructure is explicitly preserved.
- [ ] [codex5-sidebar-collapse-ia] **[P1][IA]** Collapse sidebar to 8–10 top-level domains + Pinned + Recent. Today the sidebar carries deep nested tabs at the same level as top-level domains; review recommends `Home, Ask, Apps, CoS, Brain, Calendar, Goals, Health, Dev Tools, Settings` only at the top level with deep tabs pushed into each page's local tab bar and Cmd+K. Add Pinned + Recent sections driven by the user's actual working set. Touch every consumer of `Layout.jsx`'s nav tree; expect alphabetical ordering convention to survive.
-- [ ] [codex5-visual-modes] **[P2][DESIGN]** Product-specific visual modes: `Ops` (dense terminal-like, minimal animation), `Focus` (quiet, spacious, only next actions), `Health` (warmer, less cyber, more explanation), `Review` (document-like, optimized for reading + decisions). Tied to the day-mode selector from `[codex5-operating-loop-dashboard]`. Extend the existing Tailwind token system rather than introducing a parallel theming layer.
+- [ ] [codex5-visual-modes] **[P2][DESIGN]** Product-specific visual modes: `Ops` (dense terminal-like, minimal animation), `Focus` (quiet, spacious, only next actions), `Health` (warmer, less cyber, more explanation), `Review` (document-like, optimized for reading + decisions). Needs a day-mode selector to switch between them. Extend the existing Tailwind token system rather than introducing a parallel theming layer.
- [ ] [codex5-decision-provenance-everywhere] **[P2][DESIGN]** Decision/provenance pattern across CoS, Insights, Health, Goals, Dashboard widgets. Each AI-generated or rule-driven surface answers: "Why am I seeing this?", "What data backs this?", "What changed?", "What can I do next?" Reuse the Ask source-chip component. Pairs with `[codex5-health-provenance-chips]`.
- [ ] [codex5-empty-states-teach] **[P3][ONBOARDING]** Workflow-teaching empty states. Each "no data" state replaces "Nothing here" with a setup hint that names the next action: "Connect calendar to unlock schedule-aware goals", "Add birth date + genome file to unlock longevity estimates", "Capture 10 notes to improve Ask Yourself", "Configure one API provider to enable autonomous CoS". Inventory empty states first, then prioritize by which pages new users hit earliest.
diff --git a/server/routes/apps.js b/server/routes/apps.js
index e99d1b0050..ab88bfb418 100644
--- a/server/routes/apps.js
+++ b/server/routes/apps.js
@@ -1027,7 +1027,7 @@ router.post('/:id/refresh-config', loadApp, asyncHandler(async (req, res) => {
// Document Endpoints
// ============================================================
-const ALLOWED_DOCUMENTS = ['PLAN.md', 'CLAUDE.md', 'GOALS.md', 'REVIEW.md', 'REJECTED.md'];
+const ALLOWED_DOCUMENTS = ['PLAN.md', 'CLAUDE.md', 'GOALS.md', 'OPERATIONAL.md', 'REVIEW.md', 'REJECTED.md'];
const documentUpdateSchema = z.object({
content: z.string().max(500000),
diff --git a/server/services/goalProgress.js b/server/services/goalProgress.js
index c941770cb3..e25d85c8b6 100644
--- a/server/services/goalProgress.js
+++ b/server/services/goalProgress.js
@@ -1,17 +1,17 @@
/**
* Goal Progress Service
*
- * Tracks progress toward user goals defined in GOALS.md by analyzing
- * completed CoS tasks and mapping them to goal categories.
+ * Tracks progress toward CoS operational goals defined in OPERATIONAL.md by
+ * analyzing completed CoS tasks and mapping them to goal categories.
*
- * Goals are extracted from GOALS.md's Operational Goals section.
+ * Goals are extracted from OPERATIONAL.md's Operational Goals section.
* Task completions are categorized by keywords and mapped to goal progress.
*/
import { join } from 'path'
import { readJSONFile, PATHS, tryReadFile } from '../lib/fileUtils.js'
-const GOALS_FILE = join(PATHS.root, 'GOALS.md')
+const GOALS_FILE = join(PATHS.root, 'OPERATIONAL.md')
const LEARNING_FILE = join(PATHS.cos, 'learning.json')
/**
@@ -52,7 +52,7 @@ const GOAL_MAPPINGS = {
}
/**
- * Parse GOALS.md to extract active goals
+ * Parse OPERATIONAL.md to extract active goals
* @returns {Promise<Array>} Parsed goals with titles and items
*/
async function parseGoalsFile() {
@@ -120,7 +120,7 @@ async function getTaskStats() {
/**
* Calculate progress for each goal based on completed tasks
- * @param {Array} goals - Parsed goals from GOALS.md
+ * @param {Array} goals - Parsed goals from OPERATIONAL.md
* @param {Object} taskStats - Task completion statistics
* @returns {Array} Goals with progress metrics
*/