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

fix(plan): add GSD smart state detection & guided setup to PLAN.md

Adam Eivy86dc675955ea
diff --git a/.changelog/v1.19.x.md b/.changelog/v1.19.x.md
new file mode 100644
index 0000000000..b1e8598f8e
--- /dev/null
+++ b/.changelog/v1.19.x.md
@@ -0,0 +1,11 @@
+# Release v1.19.x - Changelog
+
+Released: YYYY-MM-DD
+
+## Overview
+
+Planning and documentation updates.
+
+## Features
+
+- **GSD smart state detection plan** — added planned feature to PLAN.md for detecting GSD workflow progress (codebase mapped, project created, roadmap exists) and showing a stepped setup guide in the GSD tab
diff --git a/PLAN.md b/PLAN.md
index 062ab2201c..059e1587fe 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -81,6 +81,31 @@ pm2 logs
### Planned
+- [ ] **GSD Tab: Smart State Detection & Guided Setup** — Extend `GET /api/apps/:id/documents` to return GSD status fields and update GSD tab empty state with stepped setup guide
+
+#### GSD Smart State Detection
+
+The GSD tab currently shows a binary state: project loaded or "No GSD project initialized". This misses intermediate states where partial GSD work exists (e.g., codebase mapped but no project created).
+
+**Server Changes** — Extend `GET /api/apps/:id/documents` response to include GSD status:
+- `hasCodebaseMap` — `.planning/codebase/` directory exists with analysis files
+- `hasProject` — `.planning/PROJECT.md` exists
+- `hasRoadmap` — `.planning/ROADMAP.md` exists
+- `hasState` — `.planning/STATE.md` exists
+- `hasConcerns` — `.planning/CONCERNS.md` exists
+
+Check via `existsSync()` against `app.repoPath + '/.planning/...'` (same pattern as existing document checks).
+
+**GSD Tab UI Changes** — Replace single empty state with stepped guide:
+| State | What to show |
+|---|---|
+| Nothing (no `.planning/`) | "Run `/gsd:map-codebase` to analyze your codebase" |
+| Has `.planning/codebase/` only | "Codebase mapped! Run `/gsd:new-project` to create a project" |
+| Has `PROJECT.md` but no `ROADMAP.md` | "Project created. Run `/gsd:plan-phase` or create a roadmap" |
+| Has `ROADMAP.md` + `STATE.md` | Full project view (current behavior) |
+
+*Touches: `server/routes/apps.js` (extend documents endpoint), `client/src/components/apps/tabs/GsdTab.jsx` (stepped empty state), `client/src/services/api.js` (consume new fields)*
+
- [ ] **M34 P5-P7**: Digital Twin - Multi-modal capture, advanced testing, personas
- [ ] **M42 P5**: Unified Digital Twin Identity System - Cross-Insights Engine. See [Identity System](./docs/features/identity-system.md)
- [ ] **M44 P7**: MeatSpace - Apple Health Integration (live sync via Health Auto Export app + bulk XML import)
diff --git a/package-lock.json b/package-lock.json
index 3aa1f61d72..2a41a4320f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "portos",
- "version": "1.19.0",
+ "version": "1.19.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "portos",
- "version": "1.19.0",
+ "version": "1.19.1",
"license": "MIT",
"dependencies": {
"express": "^4.21.2",
diff --git a/package.json b/package.json
index 2032cad25e..2b534fd02a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "portos",
- "version": "1.19.0",
+ "version": "1.19.1",
"private": true,
"description": "Local dev machine App OS portal",
"author": "Adam Eivy (@antic|@atomantic)",