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

chore: release v2.31.0

[._.]/ Adam Eivy5a874841f19a
diff --git a/.changelog/NEXT.md b/.changelog/v2.31.0.md
similarity index 96%
rename from .changelog/NEXT.md
rename to .changelog/v2.31.0.md
index 15fc0cb74e..dc1dd55367 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/v2.31.0.md
@@ -1,4 +1,22 @@
-# Unreleased
+# Release v2.31.0
+
+Released: 2026-07-16
+
+## Highlights
+
+- **Autonomous Creation Engine (Creative Commissions).** A standing creative brief that fires on a schedule and drives the Creative Director unattended — "every night at 2am, make me something surreal." Rate each run 👍/👎 and your reactions steer the next one; pick which AI provider/model processes it; and a ⚡ "Run Now" button tests a commission outside its schedule.
+- **Creative Director reliability.** Antigravity (`agy`) agents now actually receive their brief (a flag-parsing bug had them ignoring it), commissioned videos honor the project's locked aspect ratio, and a finished video commission now promotes its rendered clip to the project's final video instead of looking like it did nothing.
+- **Digital Twin gets a face and a mirror.** A new **Avatar Bio** tab assembles a copy-ready persona for live-avatar platforms (HeyGen, Tavus, ElevenLabs), built deterministically with no LLM call. A new **Personality** tab runs models through an introspective self-evaluation and scores how well their posture aligns with your twin.
+- **SongBook.** A new Brain repertoire for guitar tabs, chord sheets, and sheet music — learning-stage tracking, an Ultimate-Guitar-style autoscroll play view, non-destructive transpose, and per-instrument (guitar/ukulele/piano) chord voicings with tappable diagrams. Songs federate across machines.
+- **Daily Driver + POST.** A self-dismissing dashboard card sequences your day (POST → per-goal next actions) with no boot-time LLM calls; POST cognitive drills get first-run how-to cards; and every POST streak/day boundary is now computed in your timezone instead of the server's UTC day.
+- **Holistic "Review this series."** One panel runs every read-only series check at once — foundation, editorial, health, canon — into a single verdict with each finding deep-linked to where it'd be fixed, optionally driving the autopilot revision cycle.
+- **CyberCity.** URL-addressable building focus mode (fly-to camera, deep-linkable), an adaptive render budget with an Auto quality mode and a frameloop that pauses on hidden tabs, and a responsive mobile HUD that keeps the scene visible.
+- **Smarter, self-healing automation.** Task learning now weighs recent runs (so a fixed task type recovers fast), excludes provider outages from a type's success rate, dedups investigations per failure cause, and applies consecutive-failure backoff with auto-park + notification. Layered Intelligence stops re-proposing finished work.
+- **Lower-latency voice.** An opt-in fast-resolution cascade handles navigation and simple turns client-side (including on-device Gemini Nano) before the server LLM, and proactive speech now plays on a single designated tab instead of every open device at once.
+- **Companion-app foundation.** The public health endpoint now reports the instance name, whether a password is required, and the scheme — enough for a native companion app to list and label instances across your tailnet — with a documented native-client API contract.
+- **Security hardening.** SSRF / API-key-exfiltration guards on custom AI provider endpoints and browser navigation, shell-injection removed from the DB-sync import and Layered Intelligence custom sources, fail-closed auth when `settings.json` is corrupt, and tightened upload-path containment.
+- **Reliability & accessibility.** Lazy route chunks retry before failing on flaky mobile networks, above-the-fold mobile touch targets hit 44px, warning surfaces meet WCAG AA in day themes, and a broad sweep removes double error toasts across the app.
+- **Infrastructure.** Large god-modules (`universeBuilder`, `catalogDB`, the digital-twin router, `cosAgents`, the pipeline stores) decomposed behind thin barrels with shared write-queue / SSRF / pagination helpers, plus new Antigravity + Grok subscription-usage adapters in DevTools.
## Creative Director
@@ -164,3 +182,7 @@
- **[issue-2657] Autonomous Creation Engine (Phase 2) — the taste feedback loop closes.** Each commission run's output is now rateable, and your reactions steer the next run. A new per-run **rate/annotate control** in the Creative Commissions run history (👍/👎 + an optional note like "less horror, more Magritte", keyboard-accessible, mobile-responsive, reactive) records a `CommissionFeedback` reaction against that specific run; the next scheduled fire's `buildCommissionDirective` folds the last **N** reactions (a configurable **feedback window**, now editable in the drawer — 0 disables conditioning) into the directive's goal as a "Recent likes / Recent dislikes — steer toward the likes, away from the dislikes" digest, so the run visibly drifts toward what you actually like (the digest shows up in the run's `promptUsed`). Feedback lives inline on the commission record — Phase 1 reserved `feedback[]` for exactly this, so no schema/table change was needed; reactions are deep-sanitized (a 👍/👎 or non-zero score is required, numeric ratings preserved verbatim, capped at 100) and **upserted by run** (re-rating a run replaces its prior reaction rather than stacking a contradictory second one) on the same shared per-id write queue as run-recording so a rating submitted mid-fire can't clobber a run append. The composed directive goal is length-clamped (per-note + overall) so a large feedback window can't push it past the Creative Director's 5000-char goal limit on the scheduler path (which skips the route's input validation). New `POST /api/creative-commission/:id/feedback` (Zod-validated `commissionFeedbackSchema` — `runId` required and verified against the record's runs, a zero rating rejected as meaningless, → 400/404 on bad input/unknown id) returns the full updated commission for reactive state; the edit drawer preserves unsaved field edits when a rating lands (the form re-syncs only on a genuine target change, not on every in-place record update). When a commission fires it also **surfaces** the run as a low-priority, machine-local notification (new `creative_commission` type, deep-linked to the commission) worded to reflect that the piece is *being created* — "rate the result once it lands." Surfacing stays notification-only for now: the brain inbox is federated (`inbox` ∈ `BRAIN_ENTITY_TYPES`), so a reminder there would propagate a peer-useless `needs_review` item pointing at a machine-local commission — brain-inbox surfacing (and completion-triggered surfacing) rejoin once commissions themselves federate. Commissions stay machine-local as in Phase 1 — since feedback lives on the never-federated commission it is also machine-local; the split-record federation the epic sketches (feedback federates, `schedule` stays per-machine to avoid double-runs) is genuinely larger and tracked as follow-up. Refs #2657 — Phases 3–5 (all-ability adapter, music tool, genre taxonomy) remain. New/updated unit + route tests cover the feedback sanitizer, `submitCommissionFeedback` (upsert-by-run / runId verification / NOT_FOUND / the full loop where a reaction folds into the next directive), the goal clamp, the feedback route contract, the notification-only surfacing helper (deep link + no federated-inbox write + best-effort resilience), and the scheduler surfacing a successful fire but not a skipped one.
- **[issue-2657] Creative Commissions now show — and let you choose — which AI processes them.** A commission used to silently inherit the install's default Creative Director AI Assignment, so it wasn't clear what provider/model would write each run's treatment and production plan. The edit drawer gains an **AI provider & model** picker (the shared `ProviderModelSelector`, filtered to agent-harness CLI/TUI providers since an API-type provider injected into a CoS agent task trips the harness-boundary guard), and the list card shows the chosen processor at a glance (an unset pin reads "Install default AI"; the picker's default option names the actual active provider so "default" is never opaque). The choice is stored as a new `assignment: { providerId, model }` on the commission record (additive; `providerId: null` = inherit the default, preserving prior behavior); at fire time the scheduler fans that single pin onto **both** CD cognitive stages (`modelOverrides.{treatment,plan}`) so the run is processed by the provider/model you picked. Evaluation is deliberately left inheriting the default — it's a vision API call, not a CoS agent, and pinning it to a CLI/TUI provider would trip the same harness boundary. A provider-less model is dropped by the sanitizer (the runtime keys on the provider first) so the stored pin can never dangle, and a PATCH that omits `assignment` preserves it while an explicit `{ providerId: null, model: null }` clears it back to the default. Zod-validated on create/update via the new `creativeCommissionAssignmentSchema`. The scheduler also **guards the pin at fire time**: treatment/plan run as CoS agent tasks that only accept an *enabled* agent-harness (cli/tui) provider, so a pin slipped past the UI (a direct REST write, or a provider whose type later changed to `api` or that the user disabled after pinning) is dropped and the run falls back to the default CD assignment instead of stalling at the harness boundary or launching through a disabled provider. New unit tests cover the sanitizer normalization/trim/provider-less-drop, the update replace-and-clear + preserve-on-omit semantics, the scheduler fanning the pin onto both stages (and omitting the model when only a provider is chosen), and the fire-time guard dropping api/removed/disabled pins.
- **Fix the Dev-UI "Vite host will be blocked" warning firing for apps whose vite config lives in an unlisted subdir.** `findViteConfig` only probed a hardcoded subdir allowlist (`client/`, `frontend/`, `web/`, …) plus each managed process's `cwd`. Apps that keep their Vite client elsewhere — e.g. an `admin/` dir — and whose stored process records carry no `cwd` produced a false "no vite.config was found" banner even though the config already set `allowedHosts: true` and the Dev UI opened fine over Tailscale. `findViteConfig` now falls back to a bounded breadth-first scan of the repo (depth ≤3, skipping `node_modules`/`.git`/build/vendor dirs, shallowest match wins) when the fast-path subdirs miss, so a config in any reasonable location is detected and the host-allow check reflects reality. `admin` also added to the fast-path list. New tests cover root, unlisted-subdir (`admin/`), nested, `node_modules`-ignore, and the end-to-end host-allowed status.
+
+## Full Changelog
+
+**Full Diff**: https://github.com/atomantic/PortOS/compare/v2.30.0...v2.31.0
diff --git a/package-lock.json b/package-lock.json
index 1536b61f26..66ab07c0bf 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "portos",
- "version": "2.30.0",
+ "version": "2.31.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "portos",
- "version": "2.30.0",
+ "version": "2.31.0",
"license": "MIT",
"devDependencies": {
"pm2": "7.0.3"
diff --git a/package.json b/package.json
index 1d36608f15..b14168ed46 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "portos",
- "version": "2.30.0",
+ "version": "2.31.0",
"private": true,
"description": "Local dev machine App OS portal",
"author": "Adam Eivy (@antic|@atomantic)",