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

85.0 KB
Raw Blame

Release v2.24.0

Released: 2026-06-29

Highlights

  • Music Video production mode — a full director's board (new). Create a Music Video project from any track and PortOS analyzes its BPM, beat grid, downbeats, and sections entirely offline (no new dependency, no model download). Storyboard the video as beat-aligned scenes, generate a reference still for each shot, turn that still into a moving clip (image-to-video), and render the whole thing to one MP4 with your track as a single master audio bed — lightly cut-to-the-beat. Long renders complete durably in the background, and projects (plus their audio and rendered clips) federate across your machines.
  • Creative pipeline — your Catalog now feeds your stories. Multi-select catalog ingredients and Remix into Story Builder or the Creative Director, where they arrive as a pre-cast set the director grounds the story in. The Creative Director can Auto-cast a project by searching your whole Catalog from its brief, and an ingredient's image is generated from an editable, canon-grounded prompt. A new Start a Story front door routes you into the right tool, and Brain notes can flow into the Catalog as reusable ingredients.
  • Catalog, grown up. Universe / series / tag filters, real pagination past the old 200-item cap, and a new Albums grouped view (with Unsorted and Orphaned buckets) — all reflected in the URL so a filtered catalog is shareable.
  • A new tier of editorial story-craft checks. Arc regression, series-wide pacing/escalation curve, POV economy, scene interiority balance, object weight-proportionality, hedge/weasel words, and dialogue-on-the-nose sub-classification — plus per-series severity tuning, a clickable health-trend drill-down, per-check maturity badges, and one-click canon links from findings into the universe.
  • Run agent tasks on a local model. New Claude Ollama (CLI + TUI) and OpenCode Ollama providers run the full file-editing agent harness on top of your local Ollama models, so an Ollama/LM-Studio-only machine can finally do file-writing CoS tasks. "Test" now finds your CLI provider on Windows.
  • Local model stack & LoRA training. The Local LLMs page tells you when Ollama is out of date and updates it in one click; LoRA captioning keeps a subject's signature look out of the captions (and blocks training when identity is still leaking); and the M5 Max GPU-watchdog kernel-panic during training is fixed and documented (pinned mlx trio + auto display-sleep).
  • Federation reach. Music Video projects and media, the live Chief-of-Staff task list and completed-agent history (newest-edit-wins, claim-aware so two machines never double-spawn), and Writers Room folders / writing-sprint exercises all now replicate across full-sync peers.
  • Chief of Staff safety & smarts. Issue-claiming now defaults to a --self boundary (only issues you filed are auto-claimed), model-tier routing prefers the lightest tier that succeeds, reference-repo watches file proposals into the app's real tracker (GitHub/GitLab/JIRA, not just PLAN.md), and a federated peer's claimed task can no longer starve this machine's queue.
  • Install out-of-sync detection. Pull new code by hand without ./update.sh and PortOS now warns you distinctly — spelling out exactly what's stale (code, deps, client build, pending migrations) — with a one-click Reconcile Now.
  • Performance. Tabbed pages (Digital Twin, MeatSpace, Brain) lazy-load their tab bodies, /apps and /ambient left the eager bundle, pipeline series views read only their own issues via a new index, and assorted per-render/per-frame allocations and N+1 I/O were collapsed.
  • Scene-render reliability. Canceling or early-failing a scene render now clears its spinner cleanly everywhere (Writers' Room, catalog portraits, Music Video board), and a late older render can't overwrite a newer frame.
  • Quality-of-life. A Daily POST dashboard widget, Pinterest board import into mood boards, a fixed-height app shell that stops phantom body-scroll, Messages promoted to its own Comms section, larger mobile tap targets on /apps, a day-theme-aware Tribe map, a composable no-size-cap Image Cleaner, and Windows setup fixes (esbuild rebuild, UTF-8 BOM PowerShell scripts).

Setup

  • [issue-1792] Windows setup no longer aborts rebuilding esbuild. Running setup.ps1 on Windows could stop partway with Error: Cannot find module ...\client\node_modules\esbuild\install.js. The script ran esbuild's installer through a hardcoded path that assumes esbuild sits directly under client/node_modules — but esbuild is a nested dependency (pulled in by Vite) that npm may place deeper in the dependency tree, so the fixed path was missing and setup bailed. It now rebuilds esbuild with npm rebuild esbuild, which finds esbuild wherever it actually landed, matching how the Mac/Linux setup already works. (Closes #1792)
  • [issue-1788] Windows setup no longer fails to launch on the default PowerShell. Running setup.ps1 on Windows PowerShell 5.1 errored out before doing anything (The string is missing the terminator / Missing closing '}'). The scripts contained accented punctuation and an emoji but were saved without a UTF-8 byte-order mark, so the default Windows PowerShell read them in the legacy system codepage and mis-parsed those characters. setup.ps1, update.ps1, and scripts/setup-voice.ps1 now carry a UTF-8 BOM so they parse correctly on both Windows PowerShell 5.1 and PowerShell 7+, and a test keeps any future .ps1 from regressing. (Closes #1788)

AI Providers

  • [issue-1801] "Test" now finds your CLI provider on Windows. Testing a CLI/TUI provider (e.g. claude) on Windows always failed with Command 'claude' not found in PATH even when the command worked fine from a terminal. The test resolved the command with the Unix-only which tool, which doesn't exist on Windows — so the check itself errored and was misreported as a missing command. It now uses where on Windows (and which elsewhere), and runs the version probe against the exact resolved executable, so the test correctly succeeds when your provider is installed. The Test button also now reports failure (not a misleading "available") when where resolves the command to a Windows .cmd/.bat npm shim that the shell:false agent runner can't actually launch — distinguishing a binary that ran-but-has-no-version-flag (still "available") from one that couldn't be spawned at all. (Closes #1801)
  • [issue-1802] Run local Ollama models that actually edit files with the new "OpenCode Ollama" provider. Ollama models are trained against the OpenAI tool-calling format, so under the Claude harness they often describe a file edit as JSON without ever applying it — the model "responds" but nothing changes on disk. OpenCode Ollama drives the opencode agent against your local Ollama daemon instead, speaking the OpenAI-compatible protocol natively, so the same local models reliably read, write, and edit files in headless agent tasks. It's disabled by default; enable it, hit Refresh Models to pull your tool-use-capable Ollama models, pick a default model, and run. Tool approvals are auto-allowed for unattended execution, and the Ollama connection is configured for you (no opencode.json to hand-write). It arrives on the AI Providers page after ./update.sh (migration 149-opencode-ollama-providers.js adds it to existing installs) and appears under Load Samples on fresh installs. Requires the opencode CLI on your PATH. (Closes #1802)
  • [issue-1776] Run CoS agent tasks on a local model with the new "Claude Ollama" provider (CLI + TUI). If your only LLM is Ollama or LM Studio, you couldn't run file-writing agent tasks — those providers return plain text with no Read/Write/Edit harness. Claude Ollama runs the full Claude Code harness on top of your local model: it's a claude CLI/TUI pre-wired to your Ollama daemon, and its Refresh Models pulls the installed Ollama models filtered to the tool-use-capable ones the agent loop depends on. It now ships in two variants — Claude Ollama (local model) (cli, headless) and Claude Ollama TUI (local model) (tui, interactive) — and both arrive on the AI Providers page after ./update.sh (migration 146-claude-ollama-providers.js adds them to existing installs and renames the earlier "Clawed Ollama" sample, preserving your settings; previously it lived only in the toolkit sample and never reached the merge path). The task form offers only coding providers — raw Ollama / LM Studio / kimi are excluded (with an inline advisory pointing you to Claude Ollama when they're all you have), and a server-side guard rejects an API provider that slips into the spawn path instead of silently writing nothing. Includes a copy-ready global ~/.claude/settings.json example and a setup guide with the tool-use model caveat. (data.reference/providers.json, server/lib/aiToolkit/, scripts/migrations/146-claude-ollama-providers.js, docs/features/claude-ollama.md, docs/examples/)

Dashboard

  • A new "Daily POST" dashboard widget surfaces your cognitive self-test streak and whether you've trained today. POST (the daily 5-minute math/wordplay/memory/verbal/imagination self-test) had no dashboard presence — you had to navigate to /post to even remember it existed, which is exactly the wrong friction for a habit you want to do daily. The new widget shows today's status (✓ Done · score%, or a "Start →" nudge), your current practice streak with a fire/zap/sparkle glyph, and your personal-best run — one click into /post/launcher. To back it, getPostStats now also returns completedToday, currentStreak, longestStreak, lastDate, and todayScore, computed by a new pure computePostStreaks(sessions, today) helper that mirrors the activity-streak grace-window semantics (a not-yet-done today doesn't break the streak if yesterday is logged) using UTC day math so month/DST boundaries don't cause off-by-ones. The widget ships in the built-in Health layout — a migration (145-seed-daily-post-widget.js) seeds it into existing installs' persisted Health layout, so current users get it too, not just fresh installs — and is addable to any layout. (server/services/meatspacePost.js, client/src/components/DailyPostWidget.jsx, client/src/components/dashboard/widgetRegistry.jsx, server/services/dashboardLayouts.js, scripts/migrations/145-seed-daily-post-widget.js)

Catalog

  • [issue-1809] Generate a catalog ingredient's image from an editable, canon-grounded prompt. The Generate button on an ingredient's media panel no longer fires a fixed one-line prompt — it opens an inline editor pre-filled with a prompt composed from the ingredient itself: every populated visual field (physical description, visual notes/identity, silhouette/posture, special traits, with description/summary as fallback) folded together, the ingredient's tags appended as style tokens, and — when the ingredient is linked to a universe — that universe's style preset layered on top so renders stay on-model. You can tweak the prompt and negative prompt before rendering, or write your own from scratch even for an ingredient with no visual text yet. The result attaches back to the ingredient as its portrait (first render) or a reference (later renders), durably filed by the server even if you navigate away mid-render. (Closes #1809)
  • [issue-1762] Catalog gains universe/series/tag filters, real pagination, and an Albums grouped view. The Catalog page had outgrown a flat, hard-capped list of 200 ingredients with only type chips + search. It now exposes the universe, series, and tag facets the server already understood as filter dropdowns (series scoped to the chosen universe), all reflected in the URL (?type=&universe=&series=&tag=&q=&view=) so a filtered catalog is shareable and back-button-safe. The flat Grid view paginates past the old cap with a "Load more" button (60/page) and an honest "showing X of N" line. A new Albums view groups ingredients by universe with a pinned "Unsorted / Raw" album (ingredients linked to nothing yet) and an "Orphaned" album (refs whose universe/series was deleted) — each lazy-loading its cards on first expand. The multi-select action bar can now place a selection into a universe/series directly, closing the raw → placed loop. Server-side: listIngredients gained refKind/refId/unlinked/orphaned filters, a new GET /api/catalog/facets aggregates type/universe/series/tag facets plus unlinked/orphaned bucket counts in one round-trip, and the shared <CatalogCard> is extracted so the grid and albums render identical cards. (server/services/catalogDB.js, server/routes/catalog.js, server/lib/catalogValidation.js, client/src/pages/Catalog.jsx, client/src/components/catalog/, client/src/services/apiCatalog.js)

Creative Director

  • [issue-1810] Auto-cast a project from its brief — let the director pull catalog ingredients for you. The Overview tab gains an Auto-cast button: instead of hand-picking each character/place/object/scene to remix in, the Creative Director reads the project's brief (style spec + story) and searches your whole Catalog — the same hybrid full-text + semantic (pgvector) search the Ask retriever uses — to find the best-matching ingredients, then appends them to the project cast and links them back so each shows up in its Catalog "Appears in" list. It only adds new matches (never replaces what you've already cast), everything it adds is editable, and the button stays disabled until the project has a style spec or story to search from. This is the autonomous "Auto-generate" slice of the creative pipeline; auto-composing a full treatment from the cast and chaining first-pass image/video/music gen are tracked as follow-ups. (Closes #1810)
  • [issue-1808] Remix catalog ingredients straight into a Creative Director project. The Catalog's "Remix into…" menu (multi-select ingredients) now offers Creative Director alongside Story Builder. Hand a set of characters, places, objects, or scenes to the Creative Director and they arrive as the project's cast: the create form shows them as chips, and the autonomous director uses them when it writes the treatment — grounding the story in your canon and casting specific members into individual scenes so renders stay on-model. The seeded ingredients are also linked back to the project in the catalog, so each one's "Appears in" list now shows the Creative Director projects it features in. (Closes #1808)

Music Video production mode

  • [issue-1760] Render the finished music video — scene clips over the track as one master audio bed (Phase 2). The director board can now turn its per-scene clips into a single MP4: a new Render button assembles every scene that has a generated video, in order, and lays the project's track underneath as the master audio bed (the per-clip generated audio is dropped — a music video plays one continuous song, not each shot's audio). Render progress streams live as a percentage with a Cancel option, and when it finishes a "View rendered music video" link drops you into Media History. When the project has a cached beat analysis, each cut is lightly snapped to the nearest beat (trimming a clip slightly so the edit lands on the music — never stretching it), so the result feels cut-to-the-beat even before the full beat-quantized arranger lands. The render reuses the existing ffmpeg pipeline and ends on the shorter of video/track, so it never runs past the song. (server/services/musicVideo/render.js, server/routes/musicVideo.js, client/src/pages/MusicVideo.jsx, client/src/services/apiMusicVideo.js)
  • [issue-1760] Groundwork: offline beat/tempo/section analysis of an audio track (Phase 0 spike). The first slice of the planned Music Video production mode proves the riskiest unknown — that a music track's BPM, beat grid, 4/4 downbeats, and a coarse section map can be extracted fully offline with no new dependency, using only ffmpeg (already required) plus a pure-JS DSP core (onset-strength envelope → tempo-weighted autocorrelation → beat-phase fit → energy-novelty sections). No Python, no ML model download, no network — so it runs the same in CI and on every install. There's no user-facing surface yet; this is the analyzer the upcoming director scene board and beat-snapped render build on. (server/services/musicVideo/audioAnalysis.js)
  • [issue-1760] Director scene board: create a Music Video project, analyze its track, and storyboard beat-aligned scenes (Phase 1). Builds the first user-facing surface on top of the Phase 0 analyzer: a new Create → Music Video page (also reachable via ⌘K and voice) where you pick an existing track (or name an uploaded audio file), create a project, and run the offline analyzer with one click — the detected BPM, beat/downbeat counts, and section map render inline. From there you storyboard the video as an ordered list of scenes, each with a label, a start/end time, a beat-aligned flag, and image/frame prompts; scenes can be added, edited (blur-to-save), reordered, and removed. Projects persist through a db-primary store (PostgreSQL music_video_projects with a file-backend fallback for dev/test), mirroring the creative-director pattern with soft-delete tombstones and LWW timestamps. Cross-machine federation of projects, per-scene reference-frame/image generation + image-to-video, and the beat-snapped render with a master audio bed are filed as follow-ups on #1760. (server/services/musicVideo/, server/routes/musicVideo.js, server/lib/musicVideoValidation.js, client/src/pages/MusicVideo.jsx, client/src/services/apiMusicVideo.js)
  • [issue-1770] Music Video projects now sync across your federated machines. Phase 1 shipped the project store as local-only; it now federates over the same peer-sync pipeline your other creative records use. A new Music Video toggle on the Instances page enables it per peer — when on, creating, editing, reordering scenes on, or deleting a project on one machine propagates to the others, with newest-edit-wins conflict resolution and deletions that an out-of-date peer can't resurrect. Conflicting edits are surfaced in the Conflicts UI for restore. Referenced media (the uploaded audio track and rendered scene clips) is not bundled in this phase and is tracked as a follow-up. (Closes #1770)
  • [issue-1772] Music Video project media now federates with the project. #1770 synced the project record but shipped an empty asset manifest, so a peer that subscribed to just one project received the metadata and beat-aligned scenes but none of the bytes. The push now bundles the project's referenced media: the uploaded audio track (as a music asset) and each scene's rendered clip (resolved from its videoHistoryId through video-history.json to the file under data/videos/, with a <id>.mp4 fallback when the metadata row hasn't synced yet). A track-linked project ships no audio here — the linked track federates its own. Tombstones still ship nothing, and missing files are skipped so a stale reference never forces a peer to re-request bytes the sender doesn't have. (Per-scene reference-frame stills are bundled too, once Phase 1b populates them — see below.) (Closes #1772)
  • [issue-1760] Generate a reference frame for each scene on the director board (Phase 1b). Each scene now has a frame prompt and a Generate frame button: it renders a still image (through your configured image generator — local, Codex, or external SD-API) that seeds the shot, suffixed with the project's global concept style. The frame thumbnail shows inline once it lands, and the button re-renders it on demand. Long local/Codex renders complete durably in the background — the image is filed onto the scene even if you navigated away or refreshed before it finished, and it appears the moment it's ready (no manual refresh). Because the attach goes through the normal project store, a generated frame also propagates to your federated machines. This is the first half of Phase 1b; turning the reference frame into a moving clip (image-to-video) and the beat-snapped render remain follow-ups on #1760. (server/services/musicVideoSceneImageHook.js, server/services/musicVideo/events.js, server/routes/imageGen.js, server/services/sharing/peerSync.js, client/src/pages/MusicVideo.jsx)
  • [issue-1760] Turn each scene's reference frame into a moving clip with one click (image-to-video). Once a scene has a reference frame, a new Generate video button drives image-to-video generation from that exact frame — the still you dialed in becomes the first frame of the shot, with the scene's prompt guiding the motion — completing the director MVP's frame → clip step. The resulting clip plays inline on the scene card and re-renders on demand. Like the reference frame, the render completes durably in the background: the clip is filed onto the scene even if you navigated away or refreshed before it finished, and a render canceled while queued or running clears its spinner cleanly without a misleading failure toast. The beat-snapped render with a master audio bed and the autonomous shot planner remain follow-ups on #1760. (server/routes/videoGen.js, server/services/musicVideoSceneVideoHook.js, server/services/musicVideo/events.js, client/src/pages/MusicVideo.jsx)

Scene image rendering

  • [issue-1791] Canceling a scene render now clears its spinner cleanly, and a late older render can't overwrite a newer frame. Two long-standing rough edges in the background scene-image renderers — storyboard scenes in Writers' Room, catalog portraits, and the Music Video director board — are fixed together. First: canceling a render used to leave its "Rendering…" spinner stuck (when the job was still queued, which produced no client event at all) or surface a misleading failure (when canceled while running, which the generator reported as a failure). Now a cancellation reaches the UI and clears the spinner right away — with no error toast and no error state — everywhere a scene spinner appears, whether the render was queued or already running. Second: if you regenerated a scene frame and an older render happened to finish after the newer one, it could quietly revert the scene to the stale image — the storyboard and catalog now drop the out-of-order older render (matching the behavior the Music Video board already had), so the newest frame you asked for is the one that sticks (a stale catalog portrait is kept as a reference instead of being lost). Internally the four near-identical media-job completion hooks were consolidated behind one shared tag-dispatch mechanism so this guarantee stays uniform as new render targets are added. (Closes #1791, #1796)
  • [issue-1799] A scene render that fails before it even starts now clears its spinner instead of sticking on "Rendering…". The cancellation fix above handled jobs canceled while queued; this is the failure-side twin. When a media job fails before generation begins — for example an unready bring-your-own-video runtime that errors the moment it's dequeued, or a job the watchdog times out — the generator never reached the point of emitting its own failure event, so the scene button could stay stuck spinning forever. Such early failures are now bridged to the same render-failure signal a normal failure uses, so the spinner clears (and the error is surfaced) everywhere a scene spinner appears — Writers' Room storyboards, catalog portraits, and the Music Video director board alike. (Closes #1799)

Devtools

  • [issue-1763] Image Cleaner is now a composable, opt-in pipeline with no upload-size cap (Phase 1). The cleaner ran one fixed pipeline — it always stripped the C2PA chunk and applied a median+sharpen denoise, with a hard 40MB base64-in-JSON upload cap. It's now a step selector: Strip metadata & C2PA (default ON, lossless) and Median + sharpen (default OFF, lossy) run independently, with a per-step report card showing exactly what each pass did. The lossless metadata strip was widened from C2PA-only to also drop EXIF/XMP/IPTC and PNG text chunks (tEXt/zTXt/iTXt/eXIf) — pixels and color chunks left byte-identical. The upload switched from base64-in-JSON to raw image bytes (express.raw, 256MB transport ceiling), killing the ~33% base64 inflation and removing the 40MB cap entirely; the decompression-bomb pixel guard stays. The page now also shows the source resolution (W×H + megapixels) before cleaning. The honest "this does NOT defeat SynthID" messaging is preserved. The local diffusion SynthID-disruption pass, the ignore-zone mask, and resolution-aware diffusion options remain tracked in #1763 as the next phase. (server/lib/imageClean.js, server/routes/imageClean.js, client/src/pages/ImageClean.jsx, client/src/services/apiMedia.js)

Performance

  • Tabbed pages now lazy-load their tab bodies, and /apps + /ambient moved out of the eager entry bundle. Digital Twin (17 tabs), MeatSpace (11 tabs), and Brain (10 tabs) previously imported every tab component up front, so opening any one tab downloaded a single 240–450 kB chunk's worth of all of them. Each tab body is now a React.lazy chunk behind a <Suspense> boundary, so a user who views 1–2 tabs no longer pays for the other 15. Apps and Ambient were the only two non-index pages still imported statically into the entry chunk — they're now lazyWithReload like every other route, shrinking the initial bundle (~109 → ~95 kB gzip). The Vite vendor split also gained named vendor-three / vendor-charts / vendor-term groups so the big 3D/charting/terminal libs land in stable, single shared chunks instead of an opaque OrbitControls-*.js. (client/src/App.jsx, client/src/pages/DigitalTwin.jsx, client/src/pages/MeatSpace.jsx, client/src/pages/Brain.jsx, client/vite.config.js)
  • Pipeline series views read only their own issues instead of scanning the whole table. listIssuesForSeries and listIssues({ seriesId }) loaded every issue in the install, sanitized each, then filtered in JS — wasteful in the autopilot/editorial hot loops that call them per series. They now route through a new indexed WHERE series_id = $1 query (idx_issues_series) on the PostgreSQL backend, with a matching JS-filtered path on the dev/test file backend. (server/services/pipeline/issues.js, server/services/pipeline/issuesStore/{db,store}.js)
  • Removed avoidable per-render and per-frame work in the client. ArcCanvas rebuilt + re-sorted its season→issue buckets (Set/Map/sort) on every render; it's now a useMemo keyed on [seasons, issues]. VideoGen re-filtered the full installed-LoRA list on every keystroke; those two filters are memoized. The CyberCity sky's useFrame loop allocated a fresh THREE.Vector3 every frame (~60/sec) for the sun direction — it now reuses a module-scoped scratch vector. (client/src/components/pipeline/ArcCanvas.jsx, client/src/pages/VideoGen.jsx, client/src/components/city/CitySky.jsx)
  • Collapsed serial awaits and an N+1 insert into batched I/O. The /api/apps/:id detail endpoint read each PM2 process status one-at-a-time → now Promise.all. dataSync's meatspace snapshot and the media-collections ephemeral/refused-parent lookups did serial independent reads → now concurrent. memoryDB.updateMemory inserted one memory_links row per related id in a loop → now a single multi-row INSERT. (server/routes/apps.js, server/services/dataSync.js, server/services/memoryDB.js)

Navigation

  • Messages moved out of Brain into its own top-level "Comms" section. The four Messages pages (Inbox, Drafts, Sync, Config) were buried as loose children inside the Brain group, mixed in with notes/feeds/links. They now live under a dedicated Comms sidebar section (between Chief of Staff and Create, alphabetically), with clean labels — so messaging is a first-class destination rather than a Brain sub-item. The page routes are unchanged (/messages/*), so existing links, ⌘K, and voice ("messages" / "comms") still resolve; only the sidebar grouping and the nav-manifest section moved. (client/src/components/Layout.jsx, server/lib/navManifest.js)

Settings

  • The AI Provider add/edit dialog now closes when you click outside it (or press Esc). The provider form on the AI Providers page was a hand-rolled fixed inset-0 backdrop with no dismiss-on-backdrop and no Esc handling — the only way out was the Cancel/✕ button. It now uses the shared ui/Modal component (the app-wide DRY standard for modal chrome), so a backdrop click or Esc dismisses it like every other migrated dialog. (client/src/pages/AIProviders.jsx)

Mobile

  • Fix: the Apps page action buttons now meet the 40px touch-target minimum on mobile. A mobile-responsiveness audit of the app (375px viewport) found the codebase already well-covered — tables wrap in overflow-x-auto, drawers/modals use w-full sm:w-[...], and grids carry responsive bases — with one outlier: every control button on /apps (Start/Stop/Restart, Launch/Dev UI, Manage/Delete/Archive, and the expanded-panel quick actions like Update/Build/Refresh Config) used py-1.5 + text-xs, rendering ~30px tall — below the codebase's own 40px tap-target convention and the WCAG 44px guideline. Each now gets min-h-[40px] sm:min-h-0, so the primary app-management controls are comfortably tappable on a phone while desktop keeps its compact density. (client/src/pages/Apps.jsx)

Tribe

  • Fix: the Tribe relationship map now adapts to the daytime themes instead of staying dark-only. The concentric circle map (TribeCircleMap) hardcoded dark hexes into its SVG — a near-black label halo (#1a1a1a), pale-gray node initials (#e5e7eb), and a light-blue "Me" label (#bfdbfe) — plus text-white legend headings and a text-white tooltip name. On a light day theme (near-white cards) the halos showed as dark outlines, the node initials and headings washed out to near-invisible, and the tooltip name vanished. All of these now resolve through the active theme's CSS variables (rgb(var(--port-card)) for the masking halo, --port-text / --port-text-muted / --port-accent for ink), mirroring the SVG-theming pattern in ScoreSheet.jsx, so the map reads correctly in both night and day modes. (client/src/components/tribe/TribeCircleMap.jsx)

CoS / task learning

  • Issue-claiming now defaults to a --self security boundary: only issues YOU filed are auto-claimed. slashdo v3.19.0 added /do:next --self, which restricts issue work to issues whose author is the authenticated gh/glab account (@me) — the point is to never act on instructions or work embedded in a third party's issue on a shared/multi-contributor tracker. PortOS now adopts this as the default everywhere an app claims forge issues: the Shell page's /do:next shortcut button runs --self, and the per-app Issue Author Filter (CoS → Schedule) gains a new "Filed by me only" option that is the default for GitHub/GitLab issue trackers (both the manual /do:next app button and the scheduled claim-work flow). You can still widen it per-app to Owner-filed only or Any author in the app-management UI. Existing installs that had the prior owner default frozen in their saved schedule are migrated to self (migration 147, narrow: it only rewrites a stored owner — the former default — and never touches a deliberate any choice or a per-app override). (client/src/pages/Shell.jsx, server/services/cosTaskGenerator.js, server/services/perpetualWork.js, server/services/taskSchedule.js, server/lib/validation.js, client/src/components/cos/, scripts/migrations/147-issue-author-filter-self-default.js)
  • Fix: deleting a blocked/pending task now clears the review-hub alert it raised, instead of leaving an orphan whose "Review" button does nothing. When a task surfaced a review item (via task:ready) and you then deleted the task, the alert lingered in the Review Hub forever — the task it pointed at was gone, so its approve/review action resolved nothing. Task deletion now dismisses any pending review items referencing the deleted task, mirroring the existing memory:approved/memory:rejected cleanup. (server/services/review.js)
  • Fix: the delete confirmation for a CoS task now appears next to the trash icon instead of at the bottom of the card. Deleting a pending/blocked task armed an inline confirm row that rendered below the task's full content — so for a task with a long description or context, the trash icon sat at the top while the "Delete this task?" confirm landed far down the card, off-screen and hard to find. The confirmation now swaps in compactly right where the trash icon lives (<ConfirmButtonPair>, mirroring AgentCard's pattern), so confirm/cancel are always next to the action you just clicked. (client/src/components/cos/tabs/TaskItem.jsx)
  • Learning-based model routing now prefers the lightest tier that succeeds, instead of the marginally-highest-success tier. suggestModelTier sorted candidate tiers by success rate and returned the top one, so a heavy tier at 85% would beat a light tier at 82% — silently over-allocating compute for the same outcome, despite an inline comment that said "if a lighter tier has high success, no need to upgrade." It now picks the lightest tier among all that clear the high-success threshold (≥80%), realizing that intent and saving the heavier model for task types that actually need it. The cost-ranking covers the full tier namespace that actually lands in routingAccuracy — not just light/default/medium/heavy but the thinking-level names (minimal/low/high/xhigh) recorded by selectModelForTask, with minimal/low (local models) cheapest and xhigh (opus) heaviest; an unknown/future tier name (e.g. user-specified) ranks as heaviest so it can never masquerade as the cheapest option. Failing-tier avoidance and the insufficient-data short-circuit are unchanged. The model selector now resolves a learned thinking-level suggestion (high/xhigh/off) through getModelForLevel instead of only its four-entry static map, so a proven thinking-level tier is actually used rather than silently falling through to the provider default. Local-preferred thinking levels (minimal/low) are excluded from suggestion candidates because the learning→selection path can't switch the active provider to a local one — so the recommender never suggests a tier nothing can run, and the lightest tier the runtime can run (e.g. light) wins instead of falling through to default. (server/services/taskLearning/routing.js, server/services/agentModelSelection.js)

Local model stack

  • The Local LLMs page now tells you when Ollama is out of date and lets you update it in one click. The backend card previously showed only the installed Ollama version with no indication that a newer release existed — so an install could quietly fall behind (and a model pull would fail with a cryptic "requires a newer version of Ollama" before the auto-upgrade flow kicked in). The card now compares the running version against the latest published Ollama release (looked up from GitHub, cached 6h so the steady-state UI never hits the network) and, when newer, shows a "v{latest} available" hint plus a green Update to v{latest} button that drives the existing in-place updater (direct .app download + relaunch on macOS, Homebrew or the official script elsewhere) with live progress. On platforms PortOS can't auto-update, it links to the download page instead. (server/services/localLlm.js, client/src/components/settings/LocalLlmTab.jsx)
  • [issue-1320] LoRA captioning now keeps a subject's signature look out of the captions, so the trigger word learns it — and training won't silently start when identity is still leaking. A LoRA binds whatever the captions don't describe to the trigger word, so naming a character's always-present cloak/crown/armor in every caption taught the model those phrases instead of the trigger — the bare trigger then rendered a generic subject. Two changes close the loop: (1) the vision captioner is now told to describe only what changes shot-to-shot (pose, framing, expression, lighting, setting) and to omit fixed identity — and when the bible knows the subject's signature wardrobe/props/palette, those are passed in by name as an explicit do-not-mention list, so they're omitted even when the model would have phrased them differently each shot (the case the post-hoc shared-fragment strip misses, since it only matches exact repeated phrasing). (2) Launching a training run now re-checks for caption identity-leak and blocks (409 CAPTION_IDENTITY_LEAK, listing the offending fragments) instead of training silently — the panel offers "Strip identity & queue" or "Train anyway," and resume skips the gate. This is the dataset-quality groundwork before the #1321 base-tier fidelity bench. (server/services/loraDatasetCaption.js, server/services/loraDatasetGenerate.js, server/services/loraTraining/dataset.js, client/src/components/loraTraining/TrainingPanel.jsx)
  • [issue-1329] Pinned a validated mlx/mlx-metal trio for LoRA training so the GPU-watchdog stack can't silently drift back to the known-bad build. The three M5 Max kernel panics during FLUX.2 LoRA training all happened on mlx/mlx-metal 0.30.6, but setup-image-video.sh installed mflux>=0.17 as a floor and let pip resolve mlx under mflux's mlx<0.32 cap — so a reinstall could land back on a panicking build. The setup script now pins the bisect-validated trio mflux 0.17.5 · mlx 0.31.2 · mlx-metal 0.31.2, proven by run d36562a0 completing a full LoRA training to adapter extraction (flux2-klein-4b, bf16, 768px, segmentation on) on the panicking M5 Max with no panic or reboot. The runtime-fingerprint half shipped earlier (#1406). (scripts/setup-image-video.sh, docs/research/2026-06-13-mflux-training-watchdog-panic.md)
  • [issue-1329] Applied the upstream-confirmed fix for the LoRA-training GPU watchdog panic. A search of the MLX tracker turned up the root cause: mlx #3267 — the Metal GPU watchdog kills sustained LoRA training whose command buffers compete with active-display compositing (escalating to a watchdogd kernel panic + hard reboot on M5-class silicon). The MLX maintainer's confirmed workaround is the AGX_RELAX_CDM_CTXSTORE_TIMEOUT=1 env var, which PortOS now sets automatically in the trainer (it propagates to the mflux-train child; set it to 0 to disable). The trainer logs STATUS:watchdog mitigation · AGX_RELAX_CDM_CTXSTORE_TIMEOUT=… so a paniclog records whether it was active. Notably, per #3267 the kill is at the IOGPU layer above the process boundary — so process-teardown segmentation alone does not prevent it, and the strongest user-side mitigation is to keep the display off (SSH headless or pmset displaysleepnow) for heavy sustained runs. Our data points were posted to #3267 rather than filed as a duplicate. (scripts/train_mflux_lora.py, docs/TROUBLESHOOTING.md, docs/research/2026-06-13-mflux-training-watchdog-panic.md)
  • [issue-1329] Confirmed on the M5 Max what actually stops the watchdog panic: keeping the display off. A clean A/B on the same 9B-bf16 segmentation-OFF config (the heaviest, most panic-prone) — both with AGX_RELAX_CDM_CTXSTORE_TIMEOUT=1 set — settled it: with the display active the box hard-rebooted at step 0 within minutes (first telemetry-captured panic showed Nominal thermal pressure, i.e. a GPU driver hang not heat, with WindowServer the top-CPU thread); with the display asleep (pmset displaysleepnow) the identical run reached step 302, clearing the documented 150–300 panic window with no panic. So the env var is necessary but not sufficient for heavy runs — for a 9B/heavy bf16 job, drive the box over SSH or sleep the display, and keep segmentation on. caffeinate -s does not sleep the display, and closing the lid suspends the whole machine. TROUBLESHOOTING now documents the working recipe. (docs/TROUBLESHOOTING.md, docs/research/2026-06-13-mflux-training-watchdog-panic.md)
  • [issue-1329] Fixed a bug that was causing the training GPU-watchdog crash, and made PortOS auto-sleep the Mac's display during training (then wake it after). The trainer spawned caffeinate -dis to keep the machine awake — but the -d flag forces the display to stay on, the exact WindowServer-GPU-contention state that triggers the watchdog kernel panic. (The code comment even said "display can sleep"; the flag did the opposite.) The flag is now -is so the display can sleep, and on Apple Silicon PortOS proactively runs pmset displaysleepnow when a run starts and wakes the display (caffeinate -u) when it finishes — so a run you kick off and walk away from (or trigger remotely) protects the box automatically, and you see the result when it's done. On by default; opt out with loraTraining.displaySleep: false (e.g. headless). The training panel now explains the crash risk and recommends letting big runs go overnight. (server/services/loraTraining/index.js, server/services/loraTraining/displayPower.js, server/lib/validation.js, client/src/components/loraTraining/TrainingPanel.jsx)

Self-update

  • [issue-1779] PortOS now warns when you've pulled new code but haven't reconciled the install — and reconciles in one click. Running git pull by hand (without ./update.sh) leaves a half-updated install: new source on disk, but old dependencies still installed, a stale client bundle still being served, the old server process still running, and any new data migrations unapplied. PortOS now detects this and surfaces it distinctly from the existing "a new release is available" notice — a persistent Install out of sync warning (toast + a panel on the Update tab) that spells out exactly what's stale: running older code than what's checked out, out-of-date dependencies (per workspace), an older client build, and the count of pending migrations. A Reconcile Now button runs the full update.sh (install · rebuild · migrate · restart) straight from the UI, fork-aware like the release-update flow, even when there's no newer release to move to. All four signals clear themselves automatically after a proper update, so existing installs get accurate detection with no migration or marker file. (server/services/installState.js, server/services/updateChecker.js, server/routes/update.js, scripts/run-migrations.js, client/src/components/apps/tabs/UpdateTab.jsx, client/src/hooks/useUpdateChecker.jsx)

Mood boards

  • Fix: Pinterest sync pulled 0 pins from boards that actually had images. Two bugs compounded. (1) Linking a board section URL (/user/board/section/) stored a /user/board/section.rss feed, but Pinterest serves no per-section RSS — that path returns its HTML page with a 200, which parsed to zero pins. Section URLs now collapse to the parent board's feed (the best available, since Pinterest has no section feed), keeping the section URL for display; already-linked section boards self-heal on the next sync. (2) Pinterest entity-escapes each pin's description HTML (&lt;img src=…&gt;) rather than wrapping it in CDATA, so the <img> fallback never matched the live feed and every pin was skipped; the parser now decodes the description before probing for the image. (server/lib/pinterestFeed.js, server/services/moodBoard/pinterest.js)
  • Import a Pinterest board into a mood board — link it once, then "Sync now" pulls new pins on demand. Paste a public Pinterest board URL onto a mood board and PortOS fetches the board's RSS feed, downloads each pin's image into your own data/images/ (so it federates with the board and survives Pinterest link rot), and pins it as an image item with the pin's title as the caption and its permalink as the source. Syncing is incremental: the first sync after linking pulls everything the feed exposes; later syncs add only pins it hasn't seen (deduped by permalink), and re-linking to a different board pulls that one down. NOTE: Pinterest's RSS exposes only the most-recent ~25 pins, not the entire board — the UI states this rather than implying a full backfill. Feed and image fetches go through a new shared SSRF-guarded fetcher (server/lib/safeUrlFetch.js), and the link rides the board record's JSONB so it federates with no schema-version bump. (server/lib/pinterestFeed.js, server/services/moodBoard/pinterest.js, server/routes/moodBoard.js, client/src/pages/MoodBoardDetail.jsx)

Creative onramp

  • [issue-1633] A new "Start a Story" page gives you one clear front door for beginning a story. Instead of guessing whether to open the Story Builder, the Importer, or the Writers Room, you now pick how you want to begin — from an idea, from an existing work, or by writing prose — and the page routes you into the right tool. You can also choose up front whether to start a fresh universe or attach the story to one you already have; that choice carries through to the Story Builder and Importer automatically. All the existing pages stay exactly where they were — this just adds a signposted entry point (reachable from the sidebar, ⌘K, and voice). (First phase of the larger creative-onramp effort; prose-mode universe linking comes later.)
  • [issue-1633] Brain notes can now flow into the creative Catalog — making it the one place your ideas, characters, and scenes collect as reusable ingredients. Two new paths: (1) every Brain record (idea, journal memory, project, admin item, person) gets a Send to Catalog button that runs it through the same extract→review→commit pipeline as paste/URL/voice, so a captured thought becomes typed ingredients (characters/scenes/ideas/…) you confirm before keeping. (2) A sticky Creative toggle on the Brain capture box (Inbox + Quick Capture) flags a note as a creative idea at capture time — todos and links stay out — and a Send N creative notes → Catalog action in the inbox batches the flagged notes into one ingest review when you're ready. Reuses the existing catalog ingest flow end-to-end; no new data model. (server/services/catalogIngestSources.js, server/services/brain.js, client/src/components/brain/tabs/InboxTab.jsx, client/src/components/QuickBrainCapture.jsx, client/src/pages/CatalogIngest.jsx)
  • [issue-1722] Batch-sent creative notes now drop out of the inbox once their Catalog ingest is committed — so you can't accidentally send the same notes twice. Previously, after sending your flagged creative notes to the Catalog, the "N creative notes ready" banner kept showing them and a return trip would re-submit the same text. Now the notes are marked consumed the moment you commit ingredients from that review (not on mere navigation — abandoning the review leaves them re-sendable), so the banner clears itself for the notes you've already turned into ingredients.
  • [issue-1761] Remix Catalog ingredients straight into a new story — the first output-side bridge of the creative pipeline. The Catalog now has multi-select: tick any characters/places/objects/ideas/scenes, then Remix into… → Story Builder carries them across. Story Builder opens seeded — the chosen ingredients show as chips and the seed-idea field is pre-filled from their summaries (yours to edit), and when you create the story each ingredient is linked to the new series via the existing catalog_ingredient_refs table, so it shows up in that ingredient's "Appears in" panel. No new data model and no parallel copy of your ingredients — the story and the Catalog share one graph. The handoff is intentionally generic (remix.ingredientIds) and the action is a menu with one target today, so adding further remix destinations (Creative Director casting, portrait gen) is additive. Story Builder creation is unchanged when you don't remix. (First remix slice of the #1721 creative-pipeline epic.) (server/lib/catalogValidation.js, server/services/catalogDB.js, server/routes/catalog.js, server/lib/storyBuilderValidation.js, server/services/storyBuilder.js, client/src/pages/Catalog.jsx, client/src/pages/StoryBuilder.jsx, client/src/services/apiCatalog.js)

Chief of Staff

  • Reference-repo watches now file proposals into the app's configured task tracker — not just PLAN.md. The weekly reference-watch task always appended its adoption-worthy [ref-watch-…] proposals to PLAN.md, even for an app configured to track work in GitHub (or GitLab/JIRA) issues — so the proposals landed where nothing would pick them up. The task now resolves each app's work tracker (resolveAppWorkTracker) and injects tracker-specific recording instructions into the prompt: PLAN.md apps get committed checklist items as before, GitHub/GitLab apps get a labeled reference-watch issue per proposal (gh/glab issue create), and JIRA apps get a ticket (falling back to PLAN.md when no JIRA credentials are present). The References tab note now states the real destination for the current app instead of hardcoding "PLAN.md". Prompt bumped to v3 with the prior default preserved for cross-install auto-upgrade. (server/services/referenceRepos.js, server/services/taskPromptDefaults/prompts.js, server/services/taskPromptDefaults/versions.js, server/services/taskPromptDefaults/previousDefaults.js, client/src/components/apps/ReferenceReposPanel.jsx)
  • [issue-1683] CoS daily action-budget can no longer overshoot by one at the boundary. completeAgent() emitted agent:completed — whose handler schedules dequeueNextTask() and its daily action-budget gate — before recording the just-finished action via recordDomainUsage('cos', …). At the exact maxActionsPerDay boundary the dequeue read stale usage that didn't yet include the completing action (which was already status: 'completed', so it wasn't counted as in-flight either), admitting one autonomous spawn past the cap. The usage ledger is now written before the agent:completed emit so the gate always counts the completing action. (server/services/cosAgents.js)
  • [issue-1650] A task a federated peer is already working can no longer starve this machine's queue. Now that peer claims/leases are visible via task-list federation (#1712), both spawn engines skip a task whose live lease belongs to another instance during candidate selection — before they emit task:ready and consume a spawn slot. Previously such a task (often the highest-priority pick) was selected each cycle, the lifecycle spawn guard then refused it (spawning nothing), and that wasted slot starved the next unclaimed task. The skip now runs in dequeueNextTask (cos.js) and evaluateTasks (cosTaskGenerator.js), across their user-task and auto-approved tiers and their dry-run plan, using the shared isHeldByOther(task.metadata, instanceId) predicate. This closes the last open acceptance criterion of #1650 (the dequeue-time peer-claim skip from the #1563 review). (server/services/cos.js, server/services/cosTaskGenerator.js)

Federation

  • [issue-1724] Decision: the Tribe relationship graph and universe render-runs stay machine-local (not federated). Closing the last two open lines of the full-sync gap matrix (#1561) with an explicit, documented call rather than new sync wiring. The Tribe graph (tribe_people / tribe_touchpoints / tribe_memory_links) stays local because it is relationship-graph data — the same boundary PortOS already draws for the brain, where memory nodes federate but memory_links deliberately do not — and because it is coupled to machine-local domains (its memory cross-links extend the non-federated memory_links layer; its touchpoints carry per-machine calendar-account references). Universe render-runs (universe_runs) stay local because they are a regenerable render cache under a 200-row global cap that two peers would mutually evict, while the durable universe record they derive from already syncs. The decision is recorded in an ADR and pinned by a guard test so federating either later is a conscious act. No new sync categories or schema-version keys — no coverage guards touched. (docs/decisions/2026-06-26-tribe-and-universe-runs-local.md, docs/STORAGE.md, server/services/tribe.js, server/services/universeBuilder/db.js, server/services/sharing/peerSync.test.js)
  • [issue-1650] Completed Chief-of-Staff agent history now mirrors across full-sync peers. Each paired machine's CoS history tab becomes a complete replica: a full-sync peer advertises its date-bucketed completed-agent archives (the metadata, transcript, and prompt for every finished agent), and the other machine receiver-pulls any it's missing on the ~60s sweep, verifies each file against its advertised hash before writing, then updates its history index so the arrivals appear. Archives are immutable once an agent finishes, so this is safe append-only replication — nothing is overwritten or merged. It runs only for peers explicitly flagged full-sync; a non-full-sync peer is unaffected. Live/running agents, their terminals, and worktrees stay machine-local as before. (Task-list and claim-metadata federation is tracked separately.) (server/services/sharing/peerSync.js, server/routes/peerSync.js, server/services/cosAgents.js)
  • [issue-1712] The live Chief-of-Staff task list now mirrors across full-sync peers — so two machines never both spawn the same task. Completing the CoS federation started in #1650, each paired machine now sees the other's live backlog and, crucially, its claims: when one machine claims a task to work it, the other learns of that claim on the ~60s sweep and yields instead of spawning a duplicate agent. Because both machines edit the task files live, the backlogs are merged per task rather than copied over each other — a task you've just claimed is never clobbered by a peer's stale copy, completions converge so a finished task stops showing as in-progress on the other machine, and an expired claim (from a crashed machine) becomes freely re-claimable. It runs only for peers explicitly flagged full-sync; a non-full-sync peer is unaffected. Live terminals, in-flight spawns, and worktrees stay machine-local. (server/services/sharing/peerSync.js, server/services/cosTaskMerge.js, server/services/cosTaskStore.js, server/routes/peerSync.js)
  • [issue-1714] Chief-of-Staff task edits now converge to the most recently edited version across full-sync peers. Building on the task-list federation in #1712: when the same task is edited on two paired machines while it stays in the same state (you re-prioritize it on one, tweak its description on the other), the machines now keep the newest edit instead of an arbitrary-but-stable winner. Each task carries an edit timestamp stamped whenever its content changes — but deliberately not on a background claim/lease heartbeat, so merely working a task can't make a stale edit win. Older tasks from a peer that predates this still converge safely (a missing timestamp counts as oldest), and task completion still always wins over an in-progress edit. (server/services/cosTaskMerge.js, server/services/cosTaskStore.js)
  • [issue-1645] Writers Room folders and writing-sprint exercises now federate across peers. Following works (#1644/#1565), the library's folders and exercise sessions replicate over the per-record peer-sync push pipeline with full last-writer-wins + tombstone semantics. Both tables gained soft-delete columns (deleted/deleted_at) so a deletion propagates as a tombstone the merge keeps until garbage-collected — the LWW model never propagates a hard delete, so omitting a record would let an out-of-date peer resurrect it. New record kinds writersRoomFolder / writersRoomExercise are wired through the schema-version gate, wire sanitizer, conflict journal (with restore), peer-sync subscribe/push/merge, tombstone GC, auto-subscribe-on-create, the Instances sync-category toggles, and both storage backends. Exercises predate federation and carry no updatedAt, so the wire sanitizer derives a stable LWW key from their existing startedAt/finishedAt. (server/services/writersRoom/, server/services/sharing/peerSync.js, scripts/migrations/139-…)

Editorial checks

  • [issue-1616] The editorial health-score severity weights and the autopilot blocking-severity sets are now tunable per series. The health score deducted a fixed penalty per open finding (High 12 / Medium 5 / Low 1) and each Series Autopilot gate blocked on a fixed severity set — arc verification and beat continuity on High+Medium, the editorial review on High — with no way to say "for this series, Medium findings shouldn't pause the run" or "weight Low nits more heavily." Each series can now override both from the Editorial Checks page: a Severity tuning panel sets per-severity health-score weights (blank = the default) and, per autopilot gate (arc / beat continuity / editorial review), which severities count as blocking (checking none = nothing blocks that gate). The score shown in the panel, the health gate, and the persisted revision-trend snapshots all reflect the override, and the resolved blocking sets drive every autopilot gate read. Both default to "unset → frozen defaults," so existing series are unchanged; the overrides ride peer sync wire-gated at pipelineSeries schema v9 (a behind peer rejects the ahead-version transfer rather than stripping the override). Follow-up to the per-check severity override (#1596). (server/lib/editorial/severityConfig.js, server/services/pipeline/editorialScore.js, server/services/pipeline/seriesAutopilot.js, server/services/pipeline/series.js, server/lib/schemaVersions.js, server/routes/pipeline/series.js, server/routes/pipeline/editorial.js, client/src/components/pipeline/editorial/SeriesSeverityConfig.jsx)
  • [issue-1626] On-the-nose dialogue findings now say why a line is flat, not just that it is. dialogue.on-the-nose flagged subtext-free dialogue but labeled every finding the same way — too broad to act on. Each finding is now sub-classified into one of three subtypes so the fix is obvious: exposition (info-dump / "maid-and-butler" lines that state facts to inform the reader), emotion-tell (a character naming their own feeling outright instead of letting it surface through behavior), and relationship-report (a line describing a bond instead of dramatizing it). The stage prompt classifies and emits the subtype, the runner validates it against an allow-list (a stray label falls back to none), and it renders as a small badge on the finding in both the manuscript comment card and the editorial triage list. Additive and backward-compatible — older findings and synced peers carry no subtype and render unchanged; existing installs pick up the new prompt via boot migration 144. (server/lib/editorial/checkRegistry.js, data.reference/prompts/stages/pipeline-editorial-on-the-nose.md, server/services/pipeline/manuscriptReview.js, client/src/components/pipeline/manuscript/ManuscriptCommentCard.jsx, client/src/components/pipeline/editorial/EditorialFindingsTriage.jsx, scripts/migrations/144-editorial-on-the-nose-subtype.js)
  • [issue-1631] Findings that name canon entities now link straight to the universe's canon section. A continuity or character finding ("Aria's eye colour drifts between issues") named a canon entity in plain prose with no way to jump to that entity's record — you'd manually cross-reference. When the selected series has a linked universe, each finding now carries a Canon chip row: every character, place, or object whose name appears in the finding's problem/location text becomes a one-click link into the universe's canon section, with the entity's descriptor shown as a hovercard (and a per-kind icon). Matching is whole-word and case-insensitive, prefers the longest name so "Jon Snow" wins over "Jon", and collapses repeated mentions to one chip. The chips render outside the finding's manuscript deep-link (no nested links) and appear on resolved findings too, so a continuity review can cross-reference in place. A series with no linked universe, or a finding that names no canon entity, shows no chips — existing behavior is unchanged. (client/src/lib/editorialChecks.js, client/src/components/pipeline/editorial/EditorialFindingsTriage.jsx, client/src/pages/PipelineEditorialChecks.jsx)
  • [issue-1630] Click a point on the editorial health-trend sparkline to drill into that revision — what was open then, and what changed since the prior run. The score sparkline in the Editorial Health panel was read-only: you could watch the line dip after an edit pass but not see why. Every recorded revision is now a clickable point. Selecting one opens a drill-down showing that snapshot's score (with its delta vs the previous revision) and its open-finding breakdown by severity and category, plus a per-dimension diff against the prior revision — which severities, categories, and checks rose (regressed, in red) or fell (improved, in green), biggest change first. The first recorded revision says there's nothing to compare yet; a revision recorded before per-check tracking shipped omits the per-check diff rather than inventing an all-new baseline. (client/src/components/pipeline/editorial/EditorialHealthPanel.jsx, client/src/lib/editorialHealth.js, server/services/pipeline/editorialScore.js)
  • [issue-1629] Each editorial check now wears a maturity / quality badge in the catalog, so you can tell a trustworthy check from a noisy or untested one at a glance. With a series selected, every check card gains a compact quality strip: how many findings the check has produced for that series, the share you dismissed, its false-positive rate, and a maturity badge — untested (no findings yet, trust unknown), unproven (too few findings to judge — under 5), noisy (a proven sample you dismiss most of the time, ≥40% — the signal you most want surfaced so you can deprioritize or mute it, whether or not you tagged each one a false positive), or reliable (a proven sample you mostly keep). The numbers are derived purely from the findings you've already triaged (reusing the existing per-check grouping), so the catalog turns your dismissals into a trust signal without any new data model. The strip is hidden when no series is selected, since findings are per-series and every check would otherwise read "untested". (client/src/lib/editorialChecks.js, client/src/components/pipeline/editorial/EditorialCheckCard.jsx, client/src/pages/PipelineEditorialChecks.jsx)
  • [issue-1625] The reading-level check now reports per-scene variance, not just a single whole-corpus number. style.reading-level measured one Flesch–Kincaid grade for the entire series and flagged drift from the style-guide target — but a single average hides the modulation a skilled writer uses (a quiet introspective scene reads lower, an action scene higher) and conceals a lone scene that swings far outside the intended band. The check now also splits the manuscript into scenes (reusing the shared splitScenes divider parser — markdown headings including the stitcher's # Issue N, and centered rules like ***), measures each, and flags any scene whose grade falls outside the target band (target ± sceneTolerance), reporting the widest swings first. Three new per-series knobs join the existing whole-corpus tolerance: per-scene band tolerance (default 4 — wider than the corpus tolerance since scenes legitimately modulate), minimum scene words to measure (default 120 — short fragments are too noisy for a reliable FK estimate), and max per-scene findings (default 5 — so a long manuscript can't flood the review). The original whole-corpus finding is unchanged, and a single-scene manuscript reports only that — so existing series behavior is preserved. (server/lib/editorial/checkRegistry.js)
  • [issue-1622] The adverb, passive-voice, and repeated-gesture copy-edit checks are now series-tunable like their word-list siblings. Clichés, said-bookisms, filter words, crutch words, hedge words, and gestures already accepted a house-style allowlist and an extra-words list, but prose.adverbs and prose.passive-voice didn't expose theirs (repeated-gestures already did). Now all three carry the same config: prose.adverbs gains an extra-adverbs list so a series can flag the real adverbs the -ly heuristic misses ("fast", "well", "hard"); prose.passive-voice gains a house-style allowlist (participles to never flag — archaic/adjectival "-ed" forms like "blessed", "beloved") and an extra-participles list (series-specific irregular participles the heuristic misses, e.g. "begun", "hewn"). A historical-fiction series can now whitelist archaic forms and a comedic series can mute gesture repetition without code changes. Additive config with empty-string defaults — existing series are unaffected. (server/lib/editorial/proseTics.js, server/lib/editorial/checkRegistry.js)
  • [issue-1624] A new editorial check flags objects whose narrative weight is out of proportion to their prominence. The existing objects.* checks are presence tests — is a significant object attached to someone, is an interaction motivated, does an attachment's origin contradict its character — but none asked whether an object's weight matches how much the plot actually leans on it. The new objects.weight-proportionality check (series-scope, LLM, default-on) weighs each object's prominence in the prose against the depth of backstory and significance the story invests in it, and flags two failures: over-weighted (a minor object handed a disproportionate backstory — "a one-line locket with a three-issue origin") and under-established (a prominent or decisive object resting on no lineage — "an heirloom that resolves the finale, never set up"). It reads the stitched manuscript plus the canon object↔character attachment summary, judging the proportion rather than the absolute amount, and carries each object's established weight across manuscript chunks so a backstory planted early is weighed against a payoff that lands late. Stays distinct from objects.unmotivated-interaction (a single unmotivated beat) and objects.backstory-consistency (a contradicted origin) — the gap here is the over- or under-writing of plot machinery. Ships the prompt + stage-config for fresh installs and a boot migration (143) so existing installs seed the stage. (server/lib/editorial/checkRegistry.js, data.reference/prompts/stages/pipeline-editorial-object-weight-proportionality.md, scripts/migrations/143-editorial-object-weight-proportionality-stage.js)
  • [issue-1623] A new editorial check flags visually dense but emotionally empty scenes. sensory.balance already flags all-visual scenes and sensory-bare scenes, but it missed the opposite failure: a scene rich in setting and physical detail that carries almost no POV reaction — "500 words of setting, zero interiority" reads just as flat as a bare one. The new scene.interiority-balance check (scene-scope, default-on) weighs each scene's description-to-interiority ratio and flags two cases — description swamps reaction (long passages of scenery/blocking with little interleaved thought, feeling, or appraisal) and emotionally inert detail (striking images that land with no reaction from the perceiving character). It reads the stitched manuscript plus the reverse-outline scene map and degrades to a whole-issue scan when no outline exists. It judges the ratio, not the absolute amount, so a richly described scene filtered through a reacting mind passes — and it stays distinct from sensory.balance (the five senses) and interiority.protagonist (whole-issue interiority absence). Ships the prompt + stage-config for fresh installs and a boot migration (142) so existing installs seed the stage. (server/lib/editorial/checkRegistry.js, data.reference/prompts/stages/pipeline-editorial-interiority-balance.md, scripts/migrations/142-editorial-interiority-balance-stage.js)
  • [issue-1621] The copy-edit pass now flags hedge / weasel distance markers, and the filter-words check catches more perception phrases. prose.filter-words only caught perception verbs (saw, noticed, felt…) and missed the other way prose quietly backs the reader out of a moment: metaphorical distance ("it was as if he knew", "somewhere deep inside", "almost felt"), dialogue/cognitive hedges ("I kind of think", "sort of felt", "more or less"), and cognitive weasel words ("surely", "no doubt", "obviously", "of course"). A new deterministic, default-on, series-tunable prose.hedge-words check (its own per-1000-word density threshold, house-style allowlist, and extra-words list, exactly like the sibling word-list checks) scores these as a separate hedge/weasel bucket. The filter-words list also gained the modal-perception and reflexive phrasings of the same tic — "could see/hear/feel", "found himself/herself". (server/lib/editorial/proseTics.js, server/lib/editorial/checkRegistry.js)
  • [issue-1620] A new editorial check flags POV economy — too many viewpoints for the run length, and viewpoints introduced too late to earn their place. pov.justified asks whether each individual viewpoint earns an arc, but nothing judged the viewpoint roster as a whole. The new pov.economy check (series-scope, deterministic, default-on) reads the reverse-outline POV-per-scene map and flags two structural problems: too many POVs for the run length (e.g. 8 viewpoints across 12 issues, each barely developed — gated by an absolute floor so a one- or two-POV book is never called a crowd) and a late-introduced, underdeveloped POV (first takes the viewpoint in the final stretch of the run and holds only a scene or two). The acceptable POV-to-issue ratio, the minimum run length to judge, and the late-introduction window are all per-series tunable. Purely structural over the outline — no LLM call, no manuscript corpus — and degrades to silence when the outline carries no issue numbers (without a run length neither signal can be judged). (server/lib/editorial/checkRegistry.js)
  • [issue-1619] A new editorial check flags character-arc regression, circular arcs, and premature closure. arc.transitions finds the change moments but never judged whether each arc holds together end to end. The new arc.regression check (series-scope, default-on) tracks each character's progress across the issues and flags an unmotivated regression (a character grows then reverts with no earned reason — distinct from a dramatized relapse), a circular arc (ends in the same state they began, the growth cancelled out), or premature closure (the arc resolves early — e.g. issue 3 of 10 — then stays flat, deflating the back half). It reads the stitched manuscript plus the reverse-outline scene map and the authored per-character arcs (series.characterArcs), gates its whole-arc verdicts to the final manuscript part so a mid-arc character whose later growth is still ahead is not false-flagged, and degrades to a prose-only scan when no outline or authored arcs exist. Ships the prompt + stage-config for fresh installs and a boot migration (141) so existing installs seed the stage. (server/lib/editorial/checkRegistry.js, data.reference/prompts/stages/pipeline-editorial-arc-regression.md, scripts/migrations/141-editorial-arc-regression-stage.js)
  • [issue-1618] A new editorial check scores the series-wide pacing / intensity escalation curve. plot.structure-momentum flags flat stakes as one of many macro pathologies, but nothing measured the shape of intensity across the whole series. The new pacing.escalation-curve check (series-scope, default-on) scores each issue's dramatic intensity and flags a curve that fails to build — flat intensity (issue 1 reads as intensely as issue N), a front-loaded climax (the biggest beat lands early and the back half coasts), plateaued stakes, or a de-escalating arc. It reads the stitched manuscript plus the reverse-outline scene map and a new deterministic per-issue conflict-marker density tally (a mechanical intensity proxy the model treats as a hint and confirms against the prose), gates its whole-curve verdict to the final manuscript part, and degrades to a prose-only scan when no outline exists. Subsumes "conflict escalation" as one signal of the same curve. Ships the prompt + stage-config for fresh installs and a boot migration (140) so existing installs seed the stage. (server/lib/editorial/checkRegistry.js, data.reference/prompts/stages/pipeline-editorial-pacing-escalation-curve.md, scripts/migrations/140-editorial-pacing-escalation-stage.js)
  • [issue-1697] Health-panel deep-links now honor the triage's session-local check mute. Muting a check from the Editorial Findings triage (#1602) hid its findings group but the health panel kept advertising that check/category row as clickable — clicking it scrolled to an empty filtered view. The session mute state (hiddenCheckIds) was lifted from EditorialFindingsTriage up to PipelineEditorialChecks, which now subtracts muted checks from the filterable sets the health panel receives; a category stays clickable only while a non-muted check still contributes an open finding to it. (client/src/pages/PipelineEditorialChecks.jsx, client/src/components/pipeline/editorial/EditorialFindingsTriage.jsx)
  • [issue-1667] Final-part editorial verdicts no longer lose their carried setup context on a packed last chunk. The cross-chunk "setup so far" digest normally yields to manuscript coverage — but two whole-story checks (arc.climax-agency, emotion.reaction-proportionality) gate their verdict to the final part and anchor it on a snippet carried in that digest (the climax candidate / the unprocessed event). When the final chunk packed to within a few hundred chars of the provider window, the digest was silently dropped and the final-only finding was missed. These checks now opt into a reserveSetupDigest guarantee that trims the final chunk's manuscript tail to make room for the digest (the inverse of the usual yield), scoped to the final chunk and opt-in checks only — every other chunk and every non-reserving check keeps full manuscript coverage. (server/lib/editorial/checkRegistry.js)
  • [issue-1614] Series Autopilot no longer wastes an LLM call refreshing the reverse outline for a check that won't run, and never proceeds on a stale one. The pre-checks reverse-outline refresh decided "does any enabled check consume the outline?" from declared sources alone — so a check that's enabled but whose runtime gate declines for this series (no POV-tagged scenes, a canon-less roster) could still trigger a billed regeneration nothing would read. The refresh now evaluates each consumer's gate against the current outline and skips the regen when nothing that would actually run consumes it; a never-generated outline still bootstraps unconditionally. Separately, when the regen no-ops as cached the run re-confirms staleness against the live manuscript and forces one regen if a concurrent edit moved it — so the editorial checks never read a stale outline mid-run. (server/services/pipeline/seriesAutopilot.js, server/services/pipeline/editorial/checkRunner.js)
  • [issue-1613] Series Autopilot can now pause when an editorial-checks pass surfaces too many High findings. Previously the registry-driven editorial-checks step always reported "complete" regardless of finding count — a pass that surfaced 50 High findings looked clean and only the downstream health gate caught it, making the per-step signal misleading. A new, off-by-default pause threshold (pipelineEditorialChecks.checkFindingsPauseThreshold, also a per-run override and an Options field) makes the run pause for human review when the checks pass finds at least N High findings — gating like the verify/editorial loops, with the High findings carried as residual and a "high findings" badge in the panel. The step's progress frame now also reports the real High count instead of a hardcoded 0. 0 = off, so existing runs are unchanged. (server/services/pipeline/seriesAutopilot.js, server/services/pipeline/series.js, server/lib/validation.js, server/routes/pipeline/autopilot.js, client/src/components/pipeline/AutopilotPanel.jsx)
  • [issue-1615] Series Autopilot now actively notifies you when a run pauses, instead of going silent until you check the status page. A paused run (budget exhausted, too many High findings, a convergence gate that couldn't auto-resolve, a failed child stage) previously only emitted a live SSE frame — so if you weren't watching the page, the run could sit indefinitely. Every pause now also posts an in-app notification (in the header notification center) with the pause reason and a one-click resume link to the series. A prior pause banner for the same series is cleared first, so a resume→pause cycle leaves exactly one current notification rather than a stack. This is the one autopilot signal that's on by default — it's a zero-cost informational banner — but it's overridable per run and via a persisted setting (pipelineEditorialChecks.notifyOnPause) and exposed as a "Notify me when a run pauses" checkbox in Options. (server/services/pipeline/seriesAutopilot.js, server/services/notifications.js, server/lib/validation.js, server/routes/pipeline/autopilot.js, client/src/components/pipeline/AutopilotPanel.jsx)
  • [issue-1617] Stopping a Series Autopilot run now gives you immediate feedback instead of looking frozen mid-step. Cancellation is cooperative — it's honored between steps, so a Stop pressed during a long LLM call was only acted on once that call returned, with no acknowledgement in between. The server now emits a cancel:acknowledged SSE frame the instant you press Stop; the button switches to a disabled "Cancelling…" spinner and the live status reads "finishing the active step…" until the run unwinds and the terminal frame lands. The active step still finishes first (no mid-stream interruption) — this is purely the missing acknowledgement, now documented on the cancel route. (server/services/pipeline/seriesAutopilot.js, server/routes/pipeline/autopilot.js, client/src/components/pipeline/AutopilotPanel.jsx)

Shell

  • Watching an agent TUI no longer leaks stray characters into your next shell. When a CoS agent TUI (claude/codex) was running and you switched from watching it to your basic/home shell — or opened a fresh one — random escape-sequence characters got typed into the prompt and kept accumulating the longer you sat there (and followed you into a brand-new shell). The Shell page reuses one xterm terminal instance across every session and only called clear() on switch, which wipes the screen but leaves the previous session's DEC private modes active. A full-screen TUI turns on mouse-motion and focus tracking, so after switching away those modes stayed on and xterm kept emitting mouse/focus reports as input into the now-basic shell. Session switches now do a full reset() (modes, parser state, alt-screen, buffers) instead of clear(), so a watched TUI's terminal state can't bleed into the next session. (client/src/pages/Shell.jsx)

UI

  • Pages no longer body-scroll when their content fits — the app shell is now a fixed-height frame. The layout root used min-h-screen, so when a full-bleed page rendered content that grew to fit (most visibly the Shell page's xterm terminal, whose FitAddon sized to its container and then the min-h-driven root grew to that — a feedback loop), the whole window scrolled ~166px even though nothing needed to. The root is now h-screen h-[100dvh] (with print:h-auto print:min-h-screen preserving multi-page print), so flex-1 children actually bound to the viewport: full-width pages own their internal scroll and normal pages keep scrolling inside <main> (overflow-auto) — the body never scrolls. (client/src/components/Layout.jsx)

Internal

  • [issue-1627] Editorial checks can now share findings within a single run. An editorial check may declare dependsOn: [<checkId>...]; the runner topologically orders the pass so declared dependencies run first and injects their findings into the dependent's ctx.priorFindings (+ ctx.findingsByCheck(id)), scoped to declared deps and frozen. This is the architecture for compound signals (a finding that references another check's finding); no check uses it yet, and a pass where nothing declares a dependency keeps the exact prior run order. Checks that declare no dependency stay pure functions of their sources. (server/services/pipeline/editorial/checkRunner.js, server/lib/editorial/checkRegistry.js)
  • [issue-1628] Editorial checks can now declare more than one scope. A check meaningful at multiple granularities may set scope: ['series','issue'] instead of being split into two near-duplicate checks; the single-string form keeps working. normalizeCheckScopes/primaryCheckScope normalize either form, the load-time registry guard validates every member (rejecting empty arrays, unknown members, and duplicates), and resolveCheckState exposes both a primary scope string (for single-value consumers) and the full scopes array — so the catalog grouping and dry-run plan list a dual-scope check under each of its scopes. No built-in check is multi-scope yet; this is the architecture. (server/lib/editorial/checkRegistry.js, server/services/pipeline/editorial/checkRunner.js, client/src/lib/editorialChecks.js)
  • [issue-1544] Dedup the arc-planner's season-tree grouping and episode-match logic. Extracted groupIssuesBySeasonTree (backs both the arc-verify and beat-continuity context builders) and seasonIdByNumberOf + matchIssueForEpisodeEdit (back both the arc-resolve and beat-continuity episode-correction passes) into arcPlanner/context.js. Pure refactor — prompt output and match semantics are unchanged. (server/services/pipeline/arcPlanner/)
  • [issue-1798] Dedup the Music Video board's image/video render socket effects behind one hook. The reference-frame and i2v scene-clip lanes had two near-verbatim socket-lifecycle useEffects plus duplicated spinner state, pending/orphan refs, and orphan-reconcile callbacks — they differed only in event names, the apply callback, and the failure-toast string. Extracted a useSceneRenderLifecycle hook (the client-side analog of #1791's server createMediaJobImageHook unification) that owns a lane's genScenes spinner state, job-id→scene correlation, orphan-terminal reconcile, and the durable-attach + *-gen:completed/failed/canceled subscription (with the running-cancel toast disambiguation preserved); each lane is now one useSceneRenderLifecycle({...}) call plus a trackJob(jobId, sceneId) in its generate handler. Behavior is unchanged; covered by a new renderHook test. (client/src/hooks/useSceneRenderLifecycle.js, client/src/pages/MusicVideo.jsx)
  • [issue-1803] Dedup the orphan-terminal race-buffer eviction behind a shared boundedMap helper. Three client race-buffers hand-rolled the same "stash an unmatched event in a jobId → … Map, evict the oldest when it overflows 64" idiom (useSceneRenderLifecycle, useImageGenQueue, clientErrorReporter). Extracted evictOldest(map, max, onEvict?) and the shared ORPHAN_BUFFER_MAX cap into client/src/lib/boundedMap.js (barrel + README + unit tests), then routed all three call sites through it — the eviction logic and the magic 64 for the two orphan buffers now live in one place. The error-dedup cache keeps its own MAX_RECENT (a separate tuning knob) but shares the eviction primitive. Behavior is unchanged. (client/src/lib/boundedMap.js, client/src/hooks/useSceneRenderLifecycle.js, client/src/hooks/useImageGenQueue.js, client/src/lib/clientErrorReporter.js)
  • Bump bundled slashdo to v3.19.0 — /do:next --self restricts issue work to issues you filed. A new --self/--no-self security gate (and saved self default) filters auto-pick, swarm batches, and explicit #<num> claims to issues authored by the running gh/glab account (@me) — an explicit number for someone else's issue is refused, not overridden — so a shared tracker never auto-feeds third-party issues (and the instructions embedded in them) into an agent. Builds on v3.18.0's --swarm (parallel multi-issue draining, each in its own worktree, merge-gated on CI) and v3.17.2's dependency-/priority-aware backlog ordering. (lib/slashdo submodule)
  • Renumbered two duplicate-numbered migrations to the next free numbers. Concurrent feature branches had landed two migrations numbered 100 (100-editorial-chekhov-stage, 100-seed-comic-page-refine-render-stage) and two numbered 112 (112-editorial-head-hopping-stage, 112-editorial-on-the-nose-stage). Migrations are keyed by full filename (not number), so all four already applied exactly once — the collision was cosmetic, muddying log/sort order. The later-added sibling of each pair was renamed to the next free number (150-seed-comic-page-refine-render-stage, 151-editorial-head-hopping-stage); both are idempotent copy-if-missing/merge-if-absent prompt-stage seeds, so installs that already applied them under the old name re-run the renamed file harmlessly as a no-op. (Older pre-2.x duplicate numbers are left as-is: several do non-idempotent data transforms, so renaming them would unsafely re-run them.) (scripts/migrations/150-seed-comic-page-refine-render-stage.js, scripts/migrations/151-editorial-head-hopping-stage.js)

Full Changelog

Full Diff: https://github.com/atomantic/PortOS/compare/v2.23.0...v2.24.0