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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
docs: replan — migrate PLAN.md Future/Ideas to issues (plan #894-895, future #896-912)
[._.]/ Adam Eivy3d94927734a9
diff --git a/PLAN.md b/PLAN.mdindex 257d5c9561..e2157602a7 100644--- a/PLAN.md+++ b/PLAN.md@@ -1,35 +1,17 @@# PortOS — Development Plan-The active, claimable roadmap now lives in the **GitHub issue tracker** — see the-open issues labeled [`plan`](https://github.com/atomantic/PortOS/issues?q=is%3Aissue+is%3Aopen+label%3Aplan).+The roadmap now lives entirely in the **GitHub issue tracker**:++- **Active / claimable work** — open issues labeled+ [`plan`](https://github.com/atomantic/PortOS/issues?q=is%3Aissue+is%3Aopen+label%3Aplan).+- **Parked ideas / not-yet-ready** — open issues labeled+ [`future`](https://github.com/atomantic/PortOS/issues?q=is%3Aissue+is%3Aopen+label%3Afuture)+ (speculative possibilities; promote to `plan` when one becomes a real, claimable task).+Managed by `/do:replan --issues`. For project goals, see [GOALS.md](./GOALS.md);for completed work, see [.changelog/](./.changelog/) and `git log`.This file no longer tracks individual tasks (so it stops generating merge-conflicts as work proceeds). The only thing kept here is the **Future / Ideas**-list below — speculative possibilities, not commitments, deliberately left out of-the tracker until one is promoted to a real, claimable issue.--## Future / Ideas--- **Identity Context Injection** — per-task-type digital twin preamble toggle.-- **Content Calendar** — unified calendar across platforms.-- **Goal Decomposition Engine** — auto-decompose goals into task sequences.-- **Knowledge Graph Visualization** — extend BrainGraph 3D to full knowledge graph.-- **Autobiography Prompt Chains** — LLM follow-ups building on prior answers.-- **Legacy Export Format** — identity as portable Markdown/PDF (closes GOALS "Knowledge Legacy" gap currently at Early status). Bundle scope: autobiography, Brain notes + memories, key decisions, goals + milestones, digital-twin prompt, health summaries with source caveats, and a machine-readable manifest.-- **Workspace Contexts** — project context syncing across shell, git, tasks.-- **Inline Code Review Annotations** — one-click fix from self-improvement findings.-- **AI-assisted panel/scene prompt generation** — reserve `pipeline-comic-panel-image-prompt.md` and `pipeline-storyboard-image-prompt.md` for a future "turn script fragment into N image-gen prompts" button.-- **Local LLM stream backpressure** — `POST /api/local-llm/test/stream` (`server/routes/localLlm.js`) ignores `res.write()`'s return value, so it never awaits `drain`. Fine under single-user/local trust + modest local-LLM token rates, but a fast model + slow client buffers NDJSON unbounded. Mirror `ask.js`'s drain-await if ever hardened. (Deferred from PR #872 review — NIT.)-- **Reasoning-only models stream in one chunk** — in `server/services/localLlmPlayground.js`, reasoning deltas aren't forwarded to `onChunk` during the stream (only content is), so a reasoning-only model's playground panel shows "Waiting for the first token…" the whole run, then the full text lands at once via the terminal result frame. To stream live, forward `delta.reasoning` during the loop AND drop the end-of-stream `onChunk(resolved)` re-emit so it doesn't double — but that touches the shared non-streaming TTFT-timing contract, so it was left as-is. (Deferred from PR #872 review — NIT.)-- **Major Dependency Upgrades** — Zod 4, PM2 6, Vite 8. (React 19 + react-three fiber 9 / drei 10 shipped in issue-880.)-- **Bump `react-router-dom` for the pre-existing HIGH advisory** (tracked in #883) — `client/package.json` pins `[email protected]`; `npm audit` flags react-router 7.0.0–7.14.2 (HIGH: CSRF/XSS/open-redirect/turbo-stream RCE, GHSA-h5cw-625j-3rxh et al.). Fix is an in-major bump to `7.16.0+`. Left out of issue-880 (scoped to the react-three/React-19 coupling) to keep that PR focused; not introduced by it. Bump and re-run the full client suite (router is app-wide).-- **Workflow tab Phase 2** — drag-and-drop ordering of stages, custom user-defined stages, per-app workflow overrides.-- **Inspiration & Mood Board Canvas** — dedicated mood-board surface for collecting visual + textual references that feed into Universe Builder, Writers Room, and Creative Director (distinct from raw Media History). Items can be pinned from any media surface; canvas surfaces ref images when starting a new universe / scene / treatment. Documented as a Secondary Goal in GOALS.md but had no tracking.-- **Clamp negative success-duration on learning reset** — `resetTaskTypeLearning` in `server/services/taskLearning/metrics.js` (~line 188) subtracts a task type's `successDurationMs`/`successMaxDurationMs` from the totals guarded only by `if (data.totals.successDurationMs)`, without clamping the result to ≥0 (the tier-subtraction block just below it DOES clamp). A hand-edited/older store where totals drifted below a single type's accumulated value goes negative and `calculateDurationETA` then yields a negative `avgDurationMs`. Self-heals via `recalculateDurationStats`; add `Math.max(0, …)` for parity. (Deferred from v2.15.0 release review — NIT.)-- **NaN guard in `computeGoalVelocity`** — `server/services/identity/goals.js` (~line 104) does date arithmetic (`new Date(entry.date) - new Date(...)`) and string-compares `entry.date` without guarding malformed dates; a bad `progressHistory.date` yields `NaN`/mis-ordering. Low-risk (self-authored data) but a `Number.isNaN(daysDiff)` early return would harden it. (Deferred from v2.15.0 release review — NIT.)-- **Verify goal-organization apex round-trip** — `organizeGoals` instructs the LLM to return `apexGoal` (`suggestedTitle`/`suggestedDescription` for a NEW apex) and `suggestedSubApex`, and references a `__new_apex__` sentinel, but `applyGoalOrganization` (`server/services/identity/goals.js` ~line 713) only reparents/retypes existing goals — any goal with `suggestedParentId === '__new_apex__'` fails the `goalMap.has()` check and is silently skipped, and no apex/sub-apex is created. Confirm the apex creation is handled elsewhere in the route, or this is prompt/behavior drift to close. (Deferred from v2.15.0 release review — NIT.)-- **Single-source the `audioMode` default** — `server/services/creativeDirector/stitchRunner.js` (~line 150) inlines `issue.stages?.audio?.audioMode || 'per-clip'`, a third copy of the fallback already centralized in `sanitizeAudioMode` (`issues.js`) and `AudioStage.jsx`. Functionally fine (record is sanitized on read) but route it through `sanitizeAudioMode` so the default has one source of truth. (Deferred from v2.15.0 release review — NIT.)-- **Finite-gain guard in audio mux builders** — `muxMusicBed`/cue builders in `server/services/pipeline/audioMux.js` call `Number(musicGain).toFixed(3)` without a finite check; a non-numeric gain would put `"NaN"` in the ffmpeg filter and abort the graph. Not currently reachable (all callers pass clamped/frozen gains) but these are exported "pure, unit-tested" builders — add a `Number.isFinite` fallback to `DEFAULT_MUSIC_GAIN`. (Deferred from v2.15.0 release review — NIT.)-- **Generative regen path for SynthID defeat (image cleaner) — research/backlog, hardware-gated.** Current `cleanImageBuffer` (`server/lib/imageClean.js`) only strips the C2PA `caBX` chunk + runs `median(3).sharpen()` — SynthID survives by design. The only honest defeat path is to round-trip pixels through a generative model: short-step img2img (low step count + low–moderate denoise, ~0.35–0.5) on a local FLUX runner so composition holds but the per-pixel watermark signal is overwritten by fresh sampling. **Scope narrowed (2026-05-20):** post-hoc, history-only — a second button next to "Clean (aggressive)" on the image-settings/lightbox modal; never auto-applied, never wired into the active gen flow. Each run is ~5–15s on local mflux and GPU/unified-memory heavy; wants its own queue lane. Sidecar records `regenerated: true, regenSteps: N, regenStrength: 0.4, regenModelId: 'flux-v1'` so lineage stays honest. **Hardware-gated** — the 128GB unified-memory machine is now online, so this can be pulled in when the user wants to play with it. UX caveat: this is the only honest watermark-defeat path; the existing C2PA-strip-and-denoise will always be a no-op against SynthID.+conflicts as work proceeds). Speculative ideas now live as `future`-labeled+issues rather than a list here, so they can each be promoted, refined, or closed+independently.