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
Merge remote-tracking branch 'origin/main' into claim/issue-2440
Adam Eivy2705a79eddaf
diff --cc .changelog/NEXT.mdindex 7f290baade,2e40ee1101..0a2200ce45--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -24,8 -28,8 +28,10 @@@## Features+- **CoS confidence auto-approval now has a safety-kind override, so outward-facing / irreversible work always needs human sign-off (#2440).** Confidence auto-approval used to gate on ONE axis — a task type's historical success rate — so once a type crossed the threshold, *any* task of that type could auto-run, including inherently outward-facing work: publishing content that goes live, federating records to sync peers, opening external/upstream PRs, or releasing/deploying. A new **safety-kind** axis, orthogonal to confidence, classifies each generated task (`server/services/taskLearning/safetyKind.js`): outward-facing/irreversible kinds (`content`, `publish`, `federation`, `external-pr`) always require the user's approval regardless of how high the success rate is — a 100% score can't undo work that has already left the install — while reversible internal work (analysis, refactor, code-review, same-repo improvement PRs) keeps today's success-rate gate unchanged. Classification is driven by explicit task metadata (`safetyKind` / `outwardFacing` / capability flags) then conservative keyword signatures, defaulting to *reversible* so existing behavior is preserved unless a task carries an outward signal. The reason is surfaced on the task record (`safetyKind` + `approvalReason`) and in the approval log line, so the UI can show why a high-confidence task still needs review. Tunable via the new `safetyKindApproval` CoS config (`{ enabled, alwaysApproveKinds }`, default on) — additive optional key merged on read, no migration needed.++ - **The CoS Schedule Timeline can now expand each task track to see and edit its per-app overrides inline.** Which apps run a given scheduled task type (and each app's interval / agent-option / issue-author / swarm overrides) was previously only visible on the Schedule tab's per-task drawer — the Timeline showed the task cadence but not who it runs for. Every task track — both the pinned timeline rows and the unpinned rotation/on-demand tasks in the "Unpinned runner queue" — now carries a chevron that expands to the same `PerAppOverrideList` used on the Schedule tab (enable/disable per app, "Enable/Disable All", per-app interval and metadata), plus an `enabled/total` app-count badge (shown even at `0/N` so "runs for none of my apps" is distinguishable from "no app scope") so an at-a-glance "3/5 apps" is visible without expanding. Edits save through the existing per-app override endpoints and refresh the timeline in place. System-job tracks (which are not per-app) show no expand toggle. The timeline graph node now forwards the `appOverrides`/`enabledAppCount`/`totalAppCount` plus the global `taskMetadata`/`managedAgentOptions` defaults that `getScheduleStatus` already computes; no migration needed (read-only surfacing of existing data).+- **Layered Intelligence now evaluates a managed app against its OWN goals and performance — not PortOS's agent telemetry.** Running the loop on a managed app previously fed it the PortOS install's global autonomous-agent run stats (`data/cos/learning.json`) as the "CoS metrics" source — which is on by default for every app — so a managed-app run reasoned over PortOS's tooling performance instead of the app's own product performance. Two changes fix this: (1) a new **App metrics (METRICS.md)** telemetry source, on by default for every app, reads a repo-root `METRICS.md` from the app (same as `GOALS.md`/`PLAN.md`) — the place an app documents how it measures success (user-success KPIs, production telemetry, where its data lives, and read-only queries an agent can run); and (2) the **CoS metrics** source now defaults **on only for the PortOS install** (where the agent stats genuinely are its own-performance metric) and **off for managed apps** (where they're a tooling/interaction signal, still opt-in). The reasoning prompt is reframed around "how is THIS app performing against its own goals and purpose," and when a managed app exposes no own-performance metrics the loop is nudged to propose adding a `METRICS.md` as an `app-data-gap`. New standard documented in [`docs/METRICS.md`](../docs/METRICS.md); apps can also wire a custom `cmd`/`http` source to feed live numbers into each run. Back-compat: these are default changes only — any explicitly-stored source toggle is preserved, so no migration is needed.- **Grok is now selectable as a Review Loop code reviewer.** The reviewer picker (AI Providers → Code Review Defaults, plus the per-task task form and the per-task-type Schedule config) gains a **Grok** option alongside Claude, Codex, and Antigravity. Selecting it adds `grok` to slashdo's `--review-with` list, and the review-loop follow-up agent invokes the Grok Build CLI (`grok`) headless against the PR diff — the same CLI-reviewer path the other coding-agent reviewers use (it already routed any non-Copilot/non-local-LLM reviewer generically). New enum value `grok` in `REVIEWER_VALUES` (mirrored in the client `REVIEWER_OPTIONS`); no migration needed (absent from a stored list = not selected, and the default reviewer stays `copilot`).