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

correct two instruction-file contracts that pointed agents at the wrong thing

[._.]/ Adam Eivy96bd2fb28935
diff --git a/AGENTS.md b/AGENTS.md
index a682b91eb7..2ade38cd0c 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -121,7 +121,7 @@ Client- and server-specific conventions live in nested memory files that load wh
`server/lib/navManifest.js` is the single source of truth for navigation: `NAV_COMMANDS` + `resolveNavCommand()`, consumed by both the `⌘K` palette and the voice agent's `ui_navigate` tool. **Adding a `<Route>` without a `NAV_COMMANDS` entry leaves the page unreachable from `⌘K` and un-navigable by voice.** Invoke the `portos-add-page` skill for the entry shape, palette-action wiring, and the fail-fast guards.
-**Optional features gate navigation, not routes.** `server/lib/instanceFeatureRegistry.js` declares the optional per-install features (`post`, `datadog`, `jira`) the user toggles in **Settings > Features**; `server/services/instanceFeatures.js` resolves each one as stored override → auto-detection of the integration it fronts → `defaultEnabled`. A nav entry tagged `feature: '<id>'` (or living in a section listed in navManifest's `SECTION_FEATURE` map) drops out of `⌘K` and the sidebar while that feature is off — **the `<Route>` keeps working, so bookmarks, direct links, and voice `ui_navigate` still resolve**. The gate is applied CLIENT-side (`useInstanceFeatures` + `client/src/lib/navFeatures.js`), not by filtering the manifest response: `⌘K` and the voice widget each fetch `/api/palette/manifest` once per session and it is HTTP-cached, so a server-side filter would both defeat that cache and still show hidden pages until a reload. A sidebar row still needs its own `NAV_PRESENTATION` entry in `client/src/components/Layout.jsx` (path → icon); `feature`, `section` and `label` are inherited from `NAV_COMMANDS`, so the path is the one thing declared twice — the icon lives only in `NAV_PRESENTATION` — and a manifest tag alone yields no sidebar row — `NAV_PRESENTATION`'s keys are the set the sidebar iterates. `Layout.test.jsx` pins that every Settings, Digital Twin and Messages sub-tab path has a `NAV_PRESENTATION` entry, and that each entry stays presentation-only (an icon, no `to`/`label`/`section`/`feature`) keyed to a live manifest path. `navManifest.test.js` fails when a tag names an unregistered feature, or when a `SECTION_FEATURE` key stops matching a live section.
+**Optional features gate navigation, not routes.** `server/lib/instanceFeatureRegistry.js` declares the optional per-install features (`post`, `datadog`, `jira`) the user toggles in **Settings > Features**; `server/services/instanceFeatures.js` resolves each one as stored override → auto-detection of the integration it fronts → `defaultEnabled`. A nav entry tagged `feature: '<id>'` (or living in a section listed in navManifest's `SECTION_FEATURE` map) drops out of `⌘K` and the sidebar while that feature is off — **the `<Route>` keeps working, so bookmarks, direct links, and voice `ui_navigate` still resolve**. The gate is applied CLIENT-side (`useInstanceFeatures` + `client/src/lib/navFeatures.js`), not by filtering the manifest response: `⌘K` and the voice widget each fetch `/api/palette/manifest` once per session and it is HTTP-cached, so a server-side filter would both defeat that cache and still show hidden pages until a reload. A sidebar row still needs its own `NAV_PRESENTATION` entry in `client/src/lib/navPresentation.js` (path → icon), which `Layout.jsx` iterates; `feature`, `section` and `label` are inherited from `NAV_COMMANDS`, so the path is the one thing declared twice — the icon lives only in `NAV_PRESENTATION` — and a manifest tag alone yields no sidebar row — `NAV_PRESENTATION`'s keys are the set the sidebar iterates. `Layout.test.jsx` pins that every Settings, Digital Twin and Messages sub-tab path has a `NAV_PRESENTATION` entry, and that each entry stays presentation-only (an icon, no `to`/`label`/`section`/`feature`) keyed to a live manifest path. `navManifest.test.js` fails when a tag names an unregistered feature, or when a `SECTION_FEATURE` key stops matching a live section.
**Feature groups bucket related features under one toggle, additively.** `INSTANCE_FEATURE_GROUPS` in `server/lib/instanceFeatureRegistry.js` declares the groups (today: `comms`, holding FaceTime Audio, iMessage, Signal, X, Stacker News and Beeper); a feature joins one by carrying `group: '<groupId>'` on its descriptor, which is the whole edit. `resolveOne` in `server/services/instanceFeatures.js` resolves a grouped feature as **its own stored override → the group flag → the detector → `defaultEnabled`**: an explicit per-feature override always wins, and only a feature left on "inherit" answers to its group (group off hides it, group on hands it straight back to its normal resolution). Setting an override back to inherit deletes the stored key rather than writing a third sentinel, so it reads exactly like a feature nobody ever touched. **A group's own `enabled` defaults to `true` when no group state is stored** — that default is the parity guarantee: an install with no `instanceFeatureGroups` in settings resolves every member exactly as it did before the group existed, so registering a group is never a silent hide and needs no settings migration. Malformed group settings fail toward `false`, matching the per-feature override's own posture. An ungrouped feature is completely unaffected.
diff --git a/docs/API_TOOL_CONTRACT.md b/docs/API_TOOL_CONTRACT.md
index a4c1bf6353..3fabc51318 100644
--- a/docs/API_TOOL_CONTRACT.md
+++ b/docs/API_TOOL_CONTRACT.md
@@ -18,11 +18,15 @@ The current source contains:
for the lifetime of the server process.
- A Socket.IO inventory derived from server and client call sites on first use,
then cached the same way.
-- 24 provider-neutral semantic tools: one `cos.create-task` tool, the
- `issues.list` / `issues.file` forge pair, and 21 semantic adapters
- inherited from the voice registry.
+- Provider-neutral semantic tools, filtered by scope: 48 at `mind`, 32 at
+ `agent` and `ui`, 23 at `voice`. The shared core is the 22 semantic
+ adapters inherited from the voice registry (tabulated below); `mind` adds
+ `cos.create-task`, the `issues.list` / `issues.file` forge pair, and the
+ `mind.*` family, while `agent` and `ui` add the `eidoverse.*` family and
+ `user-actions.query`. Read the live count from `getCosToolCatalog({ scope })`
+ rather than from this paragraph.
- Five read-only context tools on the Agent Tools MCP transport. The MCP
- transport may additionally advertise the 21 semantic adapters and eligible
+ transport may additionally advertise the 22 semantic adapters and eligible
machine-local saved read recipes when their independent grants are enabled.
The route catalog is the exhaustive HTTP map. Both it and the Socket.IO
@@ -151,7 +155,7 @@ is authoritative for descriptions and JSON Schema.
| `cos.agents.status` | `code_agent_status` | none | read |
| `catalog.search` | `catalog_lookup` | `query`; optional `type`, `limit` | read |
-All 21 entries are scope-eligible for `agent`, `ui`, and `voice`; the
+All 22 entries are scope-eligible for `agent`, `ui`, and `voice`; the
Persistent Mind `mind` scope additionally includes `cos.create-task`,
`issues.list`, and `issues.file`. None of the three is in the Agent MCP
catalog. The task tool validates its app, provider, model, effort, mode,
@@ -292,8 +296,8 @@ exposable merely because they appear in the internal OpenAPI inventory.
1. **Resolved documentation drift.** The prior unified spec said 2,066 HTTP
operations, 23 Persistent Mind tools, 22 semantic tools, and a `cursor`
catalog query. The current generated inventory is 2,069 operations; the
- runtime registry is 24 tools total (21 semantic plus `cos.create-task`,
- `issues.list`, and `issues.file`),
+ runtime registry answers per scope (48 at `mind`, 32 at `agent` and `ui`,
+ 23 at `voice`) over a shared core of 22 semantic adapters,
and the implemented catalog query is `scope`, `intent`, and `format`.
The point-in-time spec's implemented-foundation text is corrected in this
PR.