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
Release v2.27.0
Released: 2026-07-08
Highlights
Creative Writing Quality Engine. A calibrated LLM quality judge now scores every drafted issue (writer/judge model split), and a new foundation-quality gate judges the world, characters, and arc before the expensive drafting stages run. Series Autopilot can iterate a whole series to quality under a keep/revert score gate, invent several distinct concepts under an anti-generic banlist and pick a winner, and auto-polish drafts in place. Editorial review now catches AI-slop writing tells, measures voice drift against the voice you chose (the "tuning fork" style exemplars), runs an adversarial-cuts pass, and simulates a four-persona reader panel. Prose can be exported as a compiled manuscript, ePub, or print-interior PDF.
Privacy Center. A full data-privacy cockpit: an encrypted PII vault, a trusted-organizations registry, an exposure-scan engine that finds you on people-search and data-broker sites, and an opt-out automation engine that works your removals for you across web-form and email lanes with verification and scheduling. A Brokers cockpit visualizes where you're exposed and drives removals from the UI, change-of-address tracking flags who still needs your new number/email/address, and the vault can feed your Digital Twin as an opt-in identity dossier.
Human Activity Tracking. A unified activity timeline backed by bulk-history importers for Spotify, YouTube, iMessage, Signal, WhatsApp, Discord, Google Takeout location history, browser history, and a full Gmail
.mboxbackfill. The timeline drives three federated, LLM-free outputs: daily-log auto-drafts of what actually happened, Digital Twin taste + chronotype enrichment learned from observed behavior, and a weekly goal-effectiveness scorecard correlating where your time went against your stated goals.Layered Intelligence Loop. An opt-in, per-managed-app self-improvement loop that gathers each app's goals/metrics/health signals, reasons over them with a provider you configure, and files exactly one well-scoped improvement issue per cycle — to GitHub, GitLab, Jira, or PLAN.md. The reasoning model never touches code; every side effect is deterministic. Custom telemetry sources can be files, URLs, or shell commands, and a Layered Intelligence overview page surfaces the loop's status and proposal counts across every app.
Creative Director. Continued build-out of the Creative Director orchestrator: a gated creative-tool registry, production plans driven by a planner agent, a bidirectional bridge to Series Autopilot, and a Studio UI with a directive composer, plan board, blocked-step triage, and dry-run preview. Rendered scenes are now evaluated on a local vision model instead of Opus.
Media & image tools. The Image Cleaner gained a GPU FLUX diffusion round-trip that genuinely disrupts SynthID watermarks, with an ignore-zone mask to preserve text and faces. New: a sketch & annotation canvas for guided re-renders and blank-canvas storyboards, custom HuggingFace base-model management (no more hand-editing JSON), LoRA download progress + corruption verification, exact custom video dimensions, and a watchdog that kills wedged local renders instead of pinning the GPU queue.
MeatSpace POST training. A unified progress dashboard tracks whether you're actually improving, cognitive drills now level up as you master them, and sessions survive refreshes, are shareable by link, and can't double-record. Server-side Morse progress with WPM/accuracy trends and a confusion matrix, Wordplay practice tracking, and a batch of scoring/adaptive-preview correctness fixes round it out — with mobile-Safari and mobile-layout fixes throughout.
Songs & Rounds. The live vocal Tuner now locks onto the note you're singing instead of flickering, you can learn real parts from a reference recording (including pulling a voice out of a stacked mix) or attach reference audio straight from a URL, and several key-signature and minor-key rendering bugs are fixed.
Chief of Staff agents. branch-reconcile now reaps abandoned
/claimworktrees instead of parking on them forever, a wall-clock ceiling backstops the idle reaper so a stuck agent can't run unbounded, TUI agents with zero file changes are marked failed instead of silently succeeding, partially-completed issues no longer become un-claimable zombies, and a batch of TUI paste-rendering and worktree-race fixes landed. Branch/PR reconciliation now runs on any managed app, not just PortOS.AI providers & integrations. OpenCode Ollama providers accept any
--modelflag and start/stop cleanly under Chief of Staff on Windows, a wrong local-model default self-corrects instead of failing the run, Jira Cloud token expiry now gives the same friendly message as Server and workspace ids auto-detect, and the Usage page shows your Claude Code subscription rate limits alongside PortOS's own token counts.
Full Changelog
Full Diff: https://github.com/atomantic/PortOS/compare/v2.26.0...v2.27.0
[issue-2157] Goal effectiveness scorecard — weekly time-allocation vs stated goals (Human Activity Tracking Phase 8). The third federated output of the activity timeline: a new Goal Scorecard tab on the Insights page correlates where a week's tracked time/attention actually went (conversations, meetings, media from
human_activity_events) against your stated goals (data/digital-twin/goals.json) — deterministically and LLM-free.server/services/goalScorecard.jsmaps each timeline event to goals via three deterministic, user-editable rules — keyword (goal title/tags/category tokens, stopword-filtered, matched against event text + participant names), linked-person (goal.linkedActivities↔ event participantpersonId), and linked-calendar (goal.linkedCalendars↔ eventsubcalendarId) — then rolls up hours aligned per goal vs unaligned time, an aligned-share trend over the last 4 weeks, and distinct-contact counts per goal (tribe touch cadence vs relationship goals). Events without a real duration get a small per-kind nominal weight so a chatty day doesn't vanish from a time-allocation view. The numeric scorecard persists as an artifact underdata/insights/goal-scorecard.jsonand renders as totals cards + a per-goal breakdown + a trend sparkline; a collapsible "Mapping" editor lets you add extra keywords per goal (stored locally indata/insights/goal-scorecard-rules.json, never federated). Week bucketing is timezone-anchored on the same source-of-truth local-day range as the rest of the timeline (DST-correct 7-day spans, configurable Monday/Sunday start). Per the AI policy the numeric scorecard is always provider-free and computed only on an explicit user action; an optional plain-language narrative ("this week you said X mattered but spent 6× more time on Y") sits behind the same opt-in provider config as the Phase 6 activity digest — silent until you enable a provider and click Generate — and only annotates the deterministic artifact. When enabled, a one-line slice can also be spliced into the week-anchor day's Brain daily-log. New Zod-validated routes under/api/insights/goal-scorecard(GETcached read,POST /computeLLM-free,POST /narrativeopt-in,GET/PUT /rules,GET/PUT /settings). (server/services/goalScorecard.js,server/routes/insights.js,server/lib/validation.js,server/lib/navManifest.js,client/src/pages/Insights.jsx,client/src/components/insights/GoalScorecardTab.jsx,client/src/services/apiSystem.js)[issue-2176] Foundation-quality gate in Series Autopilot (CWQE Phase 11) — judge the world/characters/arc BEFORE drafting. Autopilot previously verified only arc structure (
verifyArc) and then drafted against a completely unscored universe and cast, so a thin magic system or a flat-Lie protagonist sailed into the expensive text stages and the editorial phase paid to detect problems that were cheap to fix up front. A newfoundationGatestep now runs after arc/episode generation + arc verify and BEFORE beat sheets: a calibrated LLM judge (pipeline-judge-foundation, writer/judge split offpipeline-arc-overviewviaresolveJudgeForStage) scores the whole foundation against a weighted rubric mirroring the Phase 10 doctrine — worldbuilding 40%, character 30%, structure 20%, craft 10% — naming a gap AND a fix per dimension under an anti-inflation calibration ladder. A bounded improve loop (mirrorsverifyArc/arcVerify:MAX_FOUNDATION_ROUNDS=3, divergence guard, per-round cos-budget charge) targets the highest-leverage weakest dimension and applies the fix through the OWNING service — universe world refine (expandWorldTemplate→updateUniverse, echoing locked entries) for worldbuilding/craft,expandUniverseCharacteron the thinnest unlocked character for character, arc resolve (resolveVerifyIssues) for structure — never a raw write,force:falseeverywhere so human-locked canon is a constraint, not a fix target. The run proceeds tobeatSheetonce the weighted score clears a configurable threshold (default 7.5); on non-convergence (ran out of rounds, stopped improving, or the weakest dimension can't be auto-fixed) it pauses with the residual per-dimension findings for human review — the same failure contract as the arc/editorial gates. The judged inputs (universe canon + character records + arc) are content-hash-pinned on the snapshot, so an already-clean foundation re-reached after unrelated steps returns the cached verdict with no LLM call and can't loop. Config surface (enable flag default ON, threshold, max rounds) is per-run and persisted (pipelineEditorialChecks), overridable from the Autopilot Options drawer, and Zod-validated on both the settings and start-run paths. (server/services/pipeline/foundationJudge.js,server/services/pipeline/seriesAutopilot.js,data.reference/prompts/stages/pipeline-judge-foundation.md,data.reference/prompts/stage-config.json,server/lib/pipelineValidation.js,server/routes/pipeline/autopilot.js,client/src/components/pipeline/AutopilotPanel.jsx)[issue-2156] Digital-twin enrichment from observed behavior — taste + chronotype evidence (Human Activity Tracking Phase 7). The second federated output of the activity timeline: the Digital Twin now learns from what you actually listen to, watch, and when you're active — LLM-free — instead of only from questionnaires. A new
server/services/twinEnrichment.jsrolls upmedia.listen/media.watchevents into a taste-profile evidence record (data/digital-twin/taste-observed.json): top artists, genres, channels, and topics per week + month, with a novelty-vs-repeat ratio (distinct plays ÷ total). An hourly activity histogram (outbound messages, meetings, media by local hour — received messages are excluded as they reflect others' timing) produces a chronotype evidence record (chronotype-observed.json) with per-category peak hours and an observed morning/intermediate/evening classification derived from a circular-mean center-of-mass (so a midnight-wrapping night owl isn't averaged to noon). Every evidence record carriessource: 'observed'provenance and lives beside — never overwrites — the stated questionnaire/genome records; the two are kept in separate files and the Taste tab surfaces both, flagging stated-vs-observed chronotype divergence as signal, not error (an underived default chronotype is treated as "no stated value" so it can't fake a divergence). Both evidence files federate viadigital-twin-sync.jsas LWW-on-derivedAt(newest observation wins wholesale; a peer that sends none can't blank the local record). Aggregation is deterministic and provider-free, so it runs with no consent — incrementally after each Spotify/YouTube sync (a self-guardedrefreshTwinEvidenceAfterSync()hook fired only when new events landed) and on a daily backstop rollup (twinEnrichmentScheduler.js, started fromserver/index.js). The ONLY provider call is an explicit "What does this say about me?" button on the Taste tab that names the provider before running (per the AI policy — no cold-bootstrap LLM calls) and persists the narrative onto the evidence record without touching the numbers. New Zod-validated routes:GET /twin-evidence,POST /twin-evidence/recompute(LLM-free),POST /twin-evidence/interpret(explicit). (server/services/twinEnrichment.js,server/services/twinEnrichmentScheduler.js,server/services/digital-twin-sync.js,server/services/{spotifySync,youtubeSync}.js,server/routes/digital-twin.js,server/lib/digitalTwinValidation.js,server/index.js,client/src/components/digital-twin/ObservedTasteEvidence.jsx,client/src/components/digital-twin/tabs/TasteTab.jsx,client/src/services/apiDigitalTwin.js)[issue-2155] Daily-log auto-drafts from the activity timeline (Human Activity Tracking Phase 6). An evening scheduled job drafts a "what actually happened today" section into that day's Brain daily log — the first federated output of the activity timeline.
server/services/activityDigest.jssummarizes a day'shuman_activity_events(conversations grouped with sent/received tallies, meetings with attendee names, media consumed — tribe-person names resolved from participants + the tribe registry) into a deterministic structured bullet list. That list is useful on its own AND is the template fed to an LLM: when the user has configured a provider/model, an opt-in narrative is generated on top of the bullets; otherwise the structured summary ships with zero provider calls. Per the AI policy the feature is silent until enabled — a dedicated scheduler (activityDigestScheduler.js, patterned onbrainScheduler.jswith an evening time-of-day trigger + missed-day catch-up, started fromserver/index.js, NOTtaskSchedule.js) no-ops entirely when disabled and never fires a cold-bootstrap LLM call. The draft is spliced into the journal as a clearly-marked, marker-delimited section via a newbrainJournal.upsertAutoSection()(ridesbrainStorage.upsertWithIdso it federates + re-embeds throughbrainMemoryBridge); user-typed/dictated content and segment history are never touched, and a re-run replaces only the auto section (stable HTML-comment markers via the pure, unit-testedserver/lib/markedSection.js). A "Draft" button on the Daily Log tab runs it on demand (direct user action — names the provider, no extra consent modal), and the tab's settings drawer gains the enable toggle + provider/model/run-time config. (server/services/activityDigest.js,server/services/activityDigestScheduler.js,server/services/brainJournal.js,server/lib/markedSection.js,server/lib/brainValidation.js,server/routes/brainDailyLog.js,client/src/components/brain/tabs/DailyLogTab.jsx,client/src/services/apiBrain.js)
CoS Agents
branch-reconcile now reaps ABANDONED
/claimworktrees instead of parking on them forever. When a/claim(or/do:next) agent finishes WITHOUT committing, it leaves aclaim/issue-Nbranch that's just a bare pointer at an already-merged commit plus a lingering worktree. branch-reconcile classified these asMERGEDbut its cleanup unconditionally protected anyclaim-*worktree as a live human session (worktree-human-claim) — so it skipped them every run and parked with the misleading "nothing in-flight (cleaned 0)", and the stale branches/worktrees accumulated indefinitely (this is exactly what leftclaim/issue-1933+claim/issue-1938stuck locally). The protection is now age-gated: a claim worktree is reaped only when it's merged AND clean AND older thanSTALE_CLAIM_IDLE_MS(7 days) — a trio that's only ever true for an abandoned claim, since a claim with real work in progress is never merged+clean (uncommitted edits → dirty → WIP; committed work → not an ancestor of default → not MERGED). Because a merged+clean worktree has nothing beyond the default branch and nothing uncommitted, the reap loses no recoverable work, and re-running/claimrecreates it — so the window is set very conservatively (a full week) to preserve even a paused human session returned-to within days; unknown-age worktrees fail safe toward not-deleting, and branch-reconcile's daily recheck reaps a genuinely-leaked worktree once it finally crosses the threshold. The park log also now names any merged branches held back by a protection guard (, N merged branch(es) held back (worktree-human-claim, …)) so a lingering worktree is a visible breadcrumb instead of an invisible "cleaned 0". Worktree age is read from the worktree root's mtime (set atgit worktree add, unmoved by deep-file edits) ingatherBranchStateand threaded into the pureworktreeProtectionReasongate. (server/services/branchReconcile.js,server/services/cosTaskGenerator.js)An explicit "Run" of a perpetual claim/reconcile task that finds no work now tells you so — instead of silently doing nothing. Triggering an on-demand
claim-issue(or any perpetual task) that had nothing actionable produced zero UI feedback: the task parked with a log line buried in pm2, so the user was left wondering why "40 open issues" didn't spawn an agent. The on-demand path now (1) resets any existing park and the branch/issue-reconcile convergence signature before re-running the detector, so a manual trigger always re-checks live state and never honors a stale/cached verdict — previously an explicit "Run" ofbranch-reconcile/issue-reconcilecould re-parkno-progressagainst an unchanged-since-last-run set even though the user asked to re-drive; and (2) when the fresh check still finds no work, emits acos:schedule:on-demand-emptyevent that surfaces a toast — e.g. "claim-issue: re-checked now — no claimable issues (0 of 40 claimable — 2 in-flight, 38 filtered). Next auto-recheck in 33 hours." The GitHub/GitLab work-detector now returns a breakdown (open,inFlightheld by open claim branches/PRs,filteredskipped by label/assignee/epic), plumbed through the park record and event, so the message explains WHY a non-empty queue yields zero claimable work — the common case being issues already shipped whose staleclaim/issue-Nbranches still count as in-flight. The event carries anoutcomeso the message fits the case:parked(perpetual detector found no work),transient(agh/glabprobe failure — "couldn't complete the check just now — try again", never a false "nothing to do"), oridle(a non-perpetual task likepr-watchergenuinely had nothing — a calm neutral note, not an error). Both on-demand drain engines —cos.dequeueNextTaskandcosTaskGenerator.spawnPriority0OnDemand— share the reset-and-emit path (viaemitOnDemandEmpty), so a user Run gets feedback no matter which engine picks it up. The event fires ONLY for user-initiated on-demand runs (never background parks), so there's no toast spam. (server/services/cos.js,server/services/cosTaskGenerator.js,server/services/perpetualWork.js,server/services/taskSchedule.js,server/services/socket.js,client/src/hooks/useOnDemandTaskToast.js)The proactive voice agent now announces a task's topic, not the raw prompt block. When a voice-dispatched CoS task became ready or finished, the spoken line read the first ~240 characters of the task's
description— which for a scheduled swarm/claim run is the# ⚡ SWARM MODE — claim and ship up to 3 independent issues in parallel. This run operates in slashdo /do:next --swarm=3 mode. …prompt scaffolding, so the assistant recited the orchestration preamble instead of naming the work. Both the "new task is ready" and "task is done" lines now derive a short topical label via a sharedderiveTaskSpeechLabelhelper that prefers an explicit title or the post-run agent summary and otherwise strips the first meaningful description line down to its topic (leading markdown heading, emoji,[Claim Issue: App]tag,**bold**markers, and theSWARM MODE —label), clipped to one phrase — so the swarm task speaks "claim and ship up to 3 independent issues in parallel" and a plain claim task speaks "Claim and ship the next open GitHub issue". (server/services/voice/proactiveTriggers.js)[issue-2259]
issue-reconcilenow heals JIRA zombie tickets as well as GitHub/GitLab issues. Following the GitLab sibling (#2249), the zombie-scan is now JIRA-aware. JIRA has noin-progresslabel to release, so the zombie is STATUS-based: a ticket left In Review (the claim-issue-jira success end-state) whose MR/PR shipped with remaining scope and NO liveclaim/<KEY>branch anywhere. Detection flows through the PortOS JIRA API (fetchMyCurrentSprintTickets— a new non-swallowing variant ofgetMyCurrentSprintTicketsso a transient API blip skips-without-parking instead of being misread as an empty sprint) + git-ref scan forclaim/<KEY>/cos/…/<KEY>/…claim branches — nogh/glabequivalent. JIRA tickets normalize into the SAME common{ number, title, url, status, hasMergedPr, hasLiveClaim, hasActiveAgent }shape the forges use, so the pure classifier/signature stay shared: In-Review → ZOMBIE, plain In-Progress → STALLED, To Do / Done → excluded so the scan converges. Routing mirrorsresolveAppWorkTracker— JIRA is NEVER auto-selected from the git host; it's chosen only when the app's resolvedworkTrackeris'jira'with enabledjira.instanceId/projectKey. The coordinator prompt gains a JIRA arm (heal via ticket transitions +POST /api/jira/instances/:id/ticketsrather than close+relabel), bumped to v3 with the v2 body preserved inPREVIOUS_DEFAULT_PROMPTS. (server/services/issueReconcile.js,server/services/jira.js,server/services/cosTaskGenerator.js,server/services/taskPromptDefaults/)Claude Code TUI agents no longer fail
paste-not-renderedon every multi-line prompt. The #2192 paste-verification guard confirmed a paste had landed by looking for the prompt's literal text in the TUI buffer — but Claude Code collapses a multi-line bracketed paste into a[Pasted text #N]chip and hides the pasted body text, and it reflows single lines with cursor-positioning escapes instead of literal space bytes between words. Both made the text check false-negative, so everyclaude-code-tuiCoS agent retried 3× and died withpaste-not-rendereddespite the paste landing perfectly (100% reproduction across real runs, 2026-07-05). The gate now treats the TUI's own paste-commit marker as authoritative proof of delivery (checked first, via a newisPasteConfirmedhelper), and only falls back to text matching for the markerless path — where the match is now whitespace-insensitive so a space-less reflowed line still matches. Captured transcripts from the real incident are pinned as regression tests. (server/lib/tuiHandshake.js,server/services/agentTuiSpawning.js)[issue-2228] A TUI-transcript-analysis prompt that itself embeds a
[Pasted text #N]literal no longer false-fails the paste. The marker-authoritative gate above subtracts the marker count the prompt itself carried, so an echoed[Pasted text #N]isn't mistaken for the TUI's own commit — correct for the inline (uncollapsed) path, but wrong when Claude Code collapses a multi-line self-marker-containing prompt into its own single chip and hides the body: the buffer then shows one marker while the prompt also carried one (1 > 1is false), and the hidden body also defeats the text fallback — so the agent diedpaste-not-rendereddespite the paste landing. Paste confirmation now also recognizes Claude's collapsed-chip shape (a marker present alongside the "paste again to expand" affordance) as authoritative proof of delivery — chrome the TUI only renders on its own genuine commit, so it can't re-introduce the echoed-marker false-positive the subtraction guards. A misleading code comment claiming the collapsed transcript paste "simply falls back to the timer, which is safe" is corrected. (server/lib/tuiHandshake.js)A live agent TUI no longer gets reaped mid-paste. The idle-timeout reaper only tracked
lastOutputAt(PTY output), not client input, so pasting a large multi-line command into a running agent's session could sit in a silent reflow/commit window with no echo yet — indistinguishable from "idle" to the 5s poll. If the session happened to already be near its idle threshold, the reaper killed the PTY mid-paste, showing "[Session removed externally]" in the Shell page. The idle timer inagentTuiSpawning.jsnow also checks a newshell.jsexport,getLastInputAt(), and skips the reap while input arrived within the last 15s. This is deliberately keyed on input recency, not "is a Shell viewer attached": a regular (non-external) session's socket stays bound after its viewer navigates away — only external one-shottuiPromptRunner.jsruns get released viashell:release-views— so an attachment-based guard would have permanently suppressed idle-complete for any agent glanced at once in the Shell UI. (server/services/shell.js,server/services/agentTuiSpawning.js)Swarm claim-issue runs now write the completion sentinel so the task actually finishes. In
/do:next --swarmmode the orchestrator ships every issue via a PR and never touches the working tree, so it was skipping the.agent-donecompletion sentinel — leaving the CoS task hanging with no summary as if the run never ended. Phase C of the swarm directive now explicitly instructs the orchestrator to write the sentinel (with a run summary of the issues claimed, their PRs, and merge outcomes) after the serialized merges, while still skipping the per-agent/simplify/push steps. (server/services/cosTaskGenerator.js)[issue-2190] OpenCode Ollama providers now accept any --model flag. The static
OPENCODE_CONFIG_CONTENTlacked a models map, so OpenCode rejected every model with "not valid" and the agent sat idle. The config is now built dynamically at spawn time, declaring the provider's configured models (plus the model being run) underprovider.ollama.modelswith bare ids — the exact shape OpenCode's@ai-sdk/openai-compatibleprovider validates--model ollama/<id>against. Applied across every OpenCode spawn path (CoS CLI/TUI agents, the toolkit CLI/TUI runners, and the light fire-and-collect CLI run), and a migration backfills existing installs'data/providers.jsonso a configured model's map is persisted too. Fixes the TUI eval path for local Ollama models.[issue-2243] OpenCode Ollama (and every other CLI provider) now starts — and stops cleanly — under Chief of Staff on Windows. A CoS task using OpenCode Ollama — or any npm-installed CLI provider — failed instantly with a
startup-failure(exit code -4058) while the same provider ran fine from the Settings "Run Prompt" button. The CoS agent spawners launched the bare command (opencode) directly, so on Windows theopencode.cmdshim couldn't be found and the process never started; the "Run Prompt" path already resolved the real shim and launched it throughcmd.exe. Both CoS spawn paths (the runner process and direct mode) now use that same resolve-and-wrap step, so the agent starts correctly. The runner path additionally now injects the OpenCode models config (the #2190 fix), so the model is accepted there too. And because a launched agent is now acmd.exe-wrapped process on Windows, stopping, pausing, or terminating it routes through a process-tree kill so the real CLI child is taken down too instead of being orphaned. Non-Windows installs are unaffected.A busy-but-stuck TUI agent can no longer run unbounded — a wall-clock ceiling now backstops the idle reaper. The idle-timeout reaper resets on every PTY chunk, but Claude Code repaints its
(Ns · esc to interrupt)working counter roughly once a second while any tool/API call is in flight — including one stuck retrying a stalled Bedrock/network operation. A "busy-but-stuck" agent therefore keepslastOutputAtadvancing forever, so idle-reap never fires and the run had no ceiling at all: a real/do:next --swarmclaim-issue orchestration churned its counter for 98 minutes (2026-07-06, agent-b1c56083) before Claude Code's own internal "Operation timed out" finally stopped it — had the CLI not self-terminated, the agent would have run unbounded, holding its lane, blocking the app's cooldown, and leaking a shell session. The long-running agent TUI path now arms an absolute wall-clock backstop from prompt submission (default 3h, provider-configurable viatuiMaxRuntimeMs), mirroring the one-shot runner's existinghardTimeoutTimer. If it fires with no.agent-donesentinel present, the run finalizes as a needs-manual-finish FAILURE (max-runtime-timeout) with the same "check for open or merged-but-uncleaned PRs" guidance as the merge-queue/review-loop idle-timeout paths, capturing any uncommitted worktree diff for post-mortem first; if the sentinel is present the run is salvaged as success. (server/services/agentTuiSpawning.js,server/lib/tuiHandshake.js,server/lib/aiToolkit/providers.js,server/lib/aiToolkit/validation.js,server/lib/validation.js)[issue-2191] TUI agents with zero file changes are now marked failed instead of silently succeeding. A TUI agent that idled out after showing working indicators but made no uncommitted file changes was previously finalized as
success: idle-complete— deleting the worktree and any evidence of what happened. Now the idle-complete path checksgit statusin the worktree: if the tree is clean, it finalizes asfailure: idle-no-changeswith the TUI buffer tail as error context. Any uncommitted diff is also captured toworktree-diff.txtin the agent archive dir before cleanup, so post-mortems can see what (if anything) was left behind.[issue-2193] Concurrent agent spawns no longer race on git worktree creation. When two tasks for the same app spawned in the same evaluation tick, the first
git worktree addgrabbed git's per-repo worktree lock and the second failed with a lock error — blocking that task withblockedCategory: worktree-failedand leaving an orphan branch (cos/task-…/agent-…) with no worktree. Worktree creation now serializes per source repo through a single promise tail (theissueWriteTailpattern), so same-tick adds queue instead of colliding;git worktree addalso retries a few times with backoff on lock errors to absorb residual external contention; and on final failure the partially-created branch is deleted (git branch -D+git worktree prune) so orphan branches stop accumulating. (server/services/worktreeManager.js)Scheduled improvement tasks with no configured model now follow the active provider's default instead of a stale hardcoded one. When a self-improvement or managed-app improvement task had no explicit model in its schedule config, the generator pinned a hardcoded
claude-opus-4-5-20251101into the task — a model that had since dropped out of theclaude-code-tuiprovider config, so the scheduler spawnedclaude --model claude-opus-4-5-20251101even after the provider default moved to Opus 4.8. Since a per-task model pin is honored above the provider default (it's passed straight through to the CLI), that stale literal overrode the configured default on every scheduled run. The generator no longer pins a literal: with no configured model it leaves the task's model unset, so model selection resolves the active provider's tier/default model at spawn time and always uses a model the provider actually lists. An explicit per-task or per-schedule model pin still wins as before. (server/services/cosTaskGenerator.js)An explicit per-task model pin is now always honored — no more silent, expensive downgrades. When you set a specific model on a CoS task, PortOS validated it against the provider's
modelslist and, on any mismatch, silently fell back to the provider's default (heaviest) model. Becauseclaude-code-tuilists the dated idclaude-haiku-4-5-20251001whileclaude-codelists the undatedclaude-haiku-4-5, picking "haiku" on the TUI provider quietly ran Opus instead. Explicit user-specified models are now passed through to the CLI even when they're not in the convenience list (the CLIs accept any valid id; a genuine typo surfaces as a provider error rather than a costly silent substitution). Auto-selected models still fall back to the tier default as before.Worktree tasks now default to opening a PR instead of auto-merging to your default branch. A CoS task run in an isolated worktree with "Open PR" off merges its commits straight back to the main development branch on completion — fine for trusted agents, dangerous for unreviewed local-model work. Creating a worktree task now defaults "Open PR" on (in the UI, enabling Worktree checks it; via the API, a worktree user-task without an explicit
openPRdefaults totrue). You can still turn it off per-task for a quick auto-merge, and internal automation (autopilot, self-improvement) keeps its existing auto-merge behavior so nothing starts silently waiting on a human to merge a PR.Local-model Claude agents now launch in a lean, isolated mode. CoS agents on the Ollama-backed Claude providers (
claude-ollama,claude-ollama-tui) previously inherited your full personal Claude Code environment — hooks, plugins, MCP servers, global CLAUDE.md — which reliably derailed small local models (a live eval showed qwen3.6:35b answering a session-start hook instead of its task). These sessions now spawn with--bare --strict-mcp-config(no hooks, no plugins, no MCP tool schemas, no CLAUDE.md auto-discovery), authenticating through the provider's existingANTHROPIC_BASE_URL+ANTHROPIC_AUTH_TOKEN(pointed at your local Ollama), and get the same plain-git/ghcompletion workflow OpenCode agents use instead of slashdo commands bare mode can't load. In the same eval, once isolated this way qwen3.6:35b wrote a correct, test-passing helper (verified 46/46) end to end — the failures were the environment, not the model.Every Claude Code agent now separates its task from the PortOS operating contract. For all Claude providers (TUI and headless CLI, local and hosted), the PortOS coordination boilerplate — worktree branch, completion-sentinel protocol, git/PR workflow — now rides in a real system prompt via
--append-system-prompt-file(saved beside the agent'sprompt.txtassystem-prompt.md), while the pasted/stdin prompt carries only the task. The model weights the contract as standing instructions rather than conversation, and hosted providers get better prompt-cache reuse on the stable system block. The prompt content is byte-identical to before — only its placement changed. Codex, Antigravity, and OpenCode agents (no equivalent flag) keep the combined prompt unchanged.Partially-completed issues no longer become un-claimable "zombies," and a new scheduled task heals any that already exist. When a claim run shipped only PART of an issue's scope and merged the PR, the issue was left OPEN with its
in-progresslabel (and assignee) still on — and since the claim queue treatsin-progressas "claimed and being worked," the remaining scope was never re-picked and never finished (real cases: #2220, #2179, #2175). The completion flow was binary (fully-done → close + unlabel) with no "partial ship" path, and the branch reconciler is branch-centric so it never touched the linked issue. Two fixes: (1) theclaim-issue/-gitlab/-jiraprompts now choose the PR trailer deliberately (Closesfor a full ship,Refs+ a## Remainingsection for a partial one) and Phase 7 reconciles the issue with an agent-judged hybrid — close + file a scoped follow-up when the remainder is a clean separable chunk, else post aDone ✓ / Remaining ▢comment and release thein-progressclaim so the queue re-picks it (JIRA records remaining scope + files a follow-up ticket). (2) a new opt-in per-appissue-reconcileCoS task (sibling tobranch-reconcile, disabled by default) runs a deterministicgh/gitscan for zombie issues — open +in-progressyet with their PR merged and no live claim anywhere (no open PR, no local/remote/CoS claim branch, no active agent) — and dispatches a coordinator agent that applies the same hybrid per issue, with anautoClosetoggle (OFF ⇒ comment + release only) and follow-up dedup so two federated peers can't file duplicates. Perpetual drain with a convergence signature, exactly like branch-reconcile. (server/services/issueReconcile.js,server/services/cosTaskGenerator.js,server/services/taskSchedule.js,server/lib/cosValidation.js,server/services/taskPromptDefaults/)
Privacy Center
- [issue-2146] The Privacy Center now has a Brokers cockpit — see where you're exposed and drive removals from the UI. Phase 7 of the Privacy Center (epic #2138) puts a front-end over the Phase 5 scan engine + case ledger and the Phase 6 opt-out automation. A new Brokers tab (
/privacy/brokers,⌘K/voice-navigable under Identity) opens on an exposure map — stat chips counting your cases per state (found, in-progress, submitted, verifying, awaiting, removed, blocked, human tasks), plus how many brokers are enabled, how many cases are due for re-check, and the next scheduled run. A case board lists every case (state badge, broker, cluster-child badge, listing count, next re-check date), filterable by state, and each case opens a detail drawer (deep-linked via?case=<id>) with its evidence (listing URLs, match basis, confirmation screenshot), disclosed fields, the broker's opt-out playbook, and manual controls: force re-check, mark submitted, dismiss, open the opt-out page. Run controls start a scan or an opt-out pass on demand with a live spinner — and both buttons disable while either pass is in flight so you can't kick off overlapping runs. A human-task digest panel surfaces every case that needs you (blocked walls, phone/fax/gov-ID channels) with per-item done/dismiss and a jump to the broker's opt-out page. The recheck schedule is a UI toggle that creates the cron on the spot and says when it'll next run (disabling removes it), alongside a cron-expression field and the auto-approve-emails autonomy toggle; a broker database section lists every broker with source/confidence/tier and a per-broker enable/disable switch and a user-triggered "Refresh broker list". The Overview tab gains a broker case-summary card. Mobile-usable at 360px. (client/src/pages/Privacy.jsx,client/src/components/privacy/{PrivacyBrokersTab,BrokerCaseDrawer,PrivacyOverviewTab}.jsx,client/src/components/privacy/constants.js,client/src/services/apiPrivacy.js,server/routes/privacy.js,server/services/{privacyBrokers,privacyRecheckScheduler}.js,server/lib/privacyValidation.js,server/lib/navManifest.js) - [issue-2145] The Privacy Center can now work your data-broker removals for you. Phase 6 of the Privacy Center (epic #2138) adds the opt-out automation engine on top of the Phase 5 broker scan + case ledger. It drives each exposed case through removal on two lanes: an email lane that renders a CCPA/CPRA/GDPR/generic rights-request (recipient locked to the broker's own declared address) into the Comms drafts queue as an unapproved draft you review before it sends, and a web-form lane that — by default — prepares the request and surfaces it as a human task with the broker's playbook and exactly which identifiers to submit. A verification loop scans your synced inbox for the broker's confirmation email (anti-phishing gated: the link's domain must actually match the broker's) to advance a case, and a case can only reach "confirmed removed" when a fresh read-only re-scan proves your listing is gone — never from a confirmation page. Everything is opt-in and default-safe: auto-sending emails and auto-submitting forms are two separate settings toggles that both ship off, the engine never emits anything outside a fixed least-disclosure allowlist (
full_name, email, phone, city, state, dob, listing_url) intersected with what each broker asks for (your SSN/passport/financial data can never reach a broker), and a CAPTCHA or bot-wall is recorded as blocked and never bypassed. A human-task digest collects every case that needs you (blocked walls, phone/fax/gov-ID channels, forms awaiting manual submit) with the prepared request attached. Nothing runs on startup; passes run only when you trigger one (POST /api/privacy/optout) or turn on the user-configured recheck schedule (Settings → Privacy, off by default). (server/services/privacyOptOut.js,server/services/privacyRecheckScheduler.js,server/services/privacyScan.js,server/routes/privacy.js,server/lib/privacyValidation.js,data.reference/privacy/email-templates/,server/index.js) - [issue-2147] The Privacy Center org drawer now cross-links to your Digital Twin social accounts — from both sides. Completing Phase 8 (epic #2138): the create/edit organization drawer gains a Linked social account (Digital Twin) picker that lets you point any org at one of your twin's social accounts. It pairs with the twin's existing "Add to org registry" / "in org registry" badge so the link is visible and editable from either surface, and a stale link to a since-deleted account is preserved rather than silently dropped. (
client/src/components/privacy/OrgDrawer.jsx) - [issue-2142] A new Privacy Center UI puts your encrypted PII vault and the organizations that hold it in one place. Building on the Phase 1 encrypted vault (#2140) and Phase 2 trusted-organizations registry (#2141), a deep-linkable
/privacy/:tabpage (Identity → Privacy,⌘K/voice-navigable) ships three tabs: Overview — a doctor-style readout of whether AES-256-GCM encryption is engaged, vault record counts by type, and org counts by trust stance, with quick-jump cards into the other tabs; Vault — records grouped by type showing only the precomputed masked value (•••, Portland OR/a•••@example.com), with per-record "Share with Twin" / "Use for scans" optimistic toggles (hard-disabled for sensitive SSN/passport/license/financial types), a create/editDrawer, and an explicit per-record Reveal action that decrypts plaintext only on click (never cached in list state) — plaintext never renders until you ask for it; Organizations — a trust/category/status chip-filtered list with per-org holdings status badges and a create/edit drawer whose holdings picker checkboxes over your vault records (masked) to record which fields each org holds. All mutations update local state directly (no full-list refetch), deletes use an inline confirm row (nowindow.confirm), and every tab is usable at 360px. Each tab path is registered in the nav manifest (nav.identity.privacy-*). (client/src/pages/Privacy.jsx,client/src/components/privacy/,client/src/services/apiPrivacy.js,server/lib/navManifest.js) - [issue-2144] The Privacy Center can now find where you're exposed on people-search sites. Phase 5 of the Privacy Center (epic #2138) adds a database of ~20 major data brokers (Spokeo, Whitepages, BeenVerified, Radaris, MyLife, and the PeopleConnect cluster — Intelius/TruthFinder/Instant Checkmate/US Search), a read-only exposure scan that searches each broker using only the identity facts you've marked as scan-eligible in the vault (never your SSN, passport, license, or financial details), and a per-broker case ledger that tracks each listing through its removal lifecycle. Scans respect a hard rule: a CAPTCHA or bot-wall is recorded as "blocked" and never bypassed, and a broker can only be marked "removed" by a fresh scan that confirms your listing is actually gone — never by a submission page saying so. Nothing runs on startup: the broker list loads on first view and you can grow it on demand from the public BADBOOL and California data-broker registries (your curated brokers are never overwritten), and scans run only when you start one or schedule them. This is the data + scan backbone for the upcoming opt-out automation (Phase 6) and Brokers UI tab.
- [issue-2143] Moved, changed your number, or got a new email? The Privacy Center now tracks who still needs updating. Phase 4 of the Privacy Center (epic #2138) adds a change-of-address inventory: a new Changes tab (
/privacy/changes,⌘K/voice-navigable under Identity) where you declare "this field changed from A to B" — the old vault record is retired toprevious(with an end date), a new encrypted record is created for the new value, and every organization recorded as holding the old value is automatically flagged update pending. You then work the checklist per organization — mark updated once they've got the new value, mark removed if they dropped the field entirely — with a live progress bar per change that reads "done" only when zero orgs are still pending. For any org with a contact email you can draft a plain "please update my records" email (old → new) straight into the Comms drafts queue as an unapproved draft you review before it ever sends (template-only, no AI, no auto-send). Works for any field, not just addresses — phone, email, and name changes get their own change type. All privacy records stay encrypted-at-rest and machine-local; the inventory joins only masked values, never plaintext. (server/services/privacyChanges.js,server/routes/privacy.js,server/lib/privacyValidation.js,server/lib/db.js,client/src/pages/Privacy.jsx,client/src/components/privacy/{PrivacyChangesTab,DeclareChangeDrawer}.jsx,client/src/services/apiPrivacy.js,server/lib/navManifest.js)
Layered Intelligence
- [issue-2293] The overview page can now show how many proposals the loop has actually filed per app, with links. The
/layered-intelligencepage was deliberately deterministic (config + scheduler bookkeeping only, no LLM/forge I/O), so it couldn't tell you whether the loop had filed one issue or fifty for a given app. A new opt-in "Load filed-proposal counts" button on the page fires a separateGET /api/apps/layered-intelligence/proposalsendpoint that does the per-app tracker read on demand — counting thelayered-intelligence-labelled items each enabled app has filed and surfacing open/closed totals plus clickable links to the actual GitHub/GitLab issues (Jira and PLAN.md apps show counts without per-item links). Splitting it into its own endpoint keeps the base overview fast and I/O-free: the counts only cost agh/glabshell-out (or Jira REST call, or PLAN.md scan) when the user asks for them, and only enabled-loop apps are swept so the fan-out is bounded. Each app resolves and reads concurrently and independently — one failing tracker read surfaces as that app's "couldn't read the tracker" rather than aborting the batch, and a failed read never collapses into a misleading zero (the sentinel rule). No LLM calls (forge reads only), so it's outside the no-cold-bootstrap policy.listForgeIssuesnow also surfaces each issue'surl(gh url/glab web_url). (server/services/layeredIntelligence.jssummarizeFiledProposals/normalizeProposalSummary,server/routes/apps.js,client/src/services/apiApps.js,client/src/pages/LayeredIntelligence.jsx) - [issue-2262] The loop can now hand a trivial, safe fix straight to a coding agent instead of only filing it. Each app's Intelligence config gains an opt-in "Auto hand-off" toggle (off by default, on top of enabling the loop). When it's on and the reasoner marks its single proposal both
trivialandsafe, the loop still files the tracker issue for the audit trail, then also queues an approval-gated CoS coding-agent task to implement that exact issue end-to-end (read → fix → test → PR that closes it, or stop and comment if it turns out non-trivial). The reasoner's JSON now carriescomplexity(trivial/moderate/complex) andsafefields, and the prompt only mentions the hand-off path when the app enabled it — so a hand-off-off app's reasoning is unchanged. The hand-off only fires for a concretely-filed forge issue or Jira ticket (a plan-tracked app has no issue number, so it stays file-only and its PLAN item is drained by the normal claim-work scheduler), the enqueued task requires user approval before any code is written, and it's deduped per app so a re-run won't double-queue while the fix is still pending. No cold-bootstrap risk — it only runs inside the already user-enabled scheduled sweep. (server/services/layeredIntelligence.jsisHandoffEligible/buildHandoffTask,server/services/autonomousJobs/layeredIntelligenceHandler.js,server/lib/validation.js,server/services/apps.js,client/src/components/apps/LayeredIntelligenceTab.jsx) - [issue-2262] A dedicated Layered Intelligence page now surfaces the self-improvement loop's status across every app. The perpetual per-app loop was previously visible only inside each app's Edit-App → Intelligence drawer tab, so there was no single place to see which apps had it enabled, when each last ran / is next due, or whether the global sweep job is even on. The new
/layered-intelligenceroute (Chief of Staff → Layered Intelligence,⌘K/voice-navigable) reads a deterministic cross-app overview — each active app's effective config plus scheduler bookkeeping (lastRunAt/nextDueAt/due) and the global job's on/off state — with no LLM or forge I/O. It warns when the global job is disabled (per-app configs are inert until it's on), lists enabled apps with their interval, telemetry sources, allowed scopes, and provider, and deep-links each app's "Configure" action straight into its Intelligence tab (/apps/:id?edit=1&appTab=intelligence, via a new auto-open trigger on the app-detail drawer). (server/routes/apps.js,server/services/layeredIntelligence.jssummarizeLoopStatus,client/src/pages/LayeredIntelligence.jsx,client/src/components/apps/AppDetailView.jsx,server/lib/navManifest.js) - [issue-2262] The loop now catches near-duplicate proposals worded differently, not just exact-slug repeats. The DECIDE layer's dedup was purely the reasoner-chosen slug (plus label) — so if the model proposed the same work under a fresh slug ("introduce-widget" vs an open "add-widget"), it slipped past and filed a second tracker issue. A semantic guard now runs after the slug guard passes: it embeds the proposal's title+body and each open (or recently-closed, within the same 30-day window) tracker issue via the local embeddings provider, and suppresses the proposal when a candidate's cosine similarity meets a conservative floor (
SEMANTIC_DEDUP_THRESHOLD = 0.9). It's strictly best-effort and self-gating: when no embeddings provider is configured (or the proposal embed is skipped/fails) the check reportsavailable:falseand filing proceeds — slug dedup already guarded the exact case, so an unavailable semantic layer only restores prior behavior, never files a slug-duplicate. No cold-bootstrap risk (embeddings degrade to a no-op with no provider, and this only runs inside the user-enabled scheduled sweep), no new config field, and plan-tracked slug-only issues are simply not embeddable so they're skipped. Candidate embedding is capped per run (SEMANTIC_DEDUP_MAX_CANDIDATES = 50) so a large backlog can't fan out unboundedly, and the sharedisIssueWithinDedupWindowhelper keeps the semantic and slug guards agreeing on which issues still count. (server/services/layeredIntelligence.jscheckSemanticDuplicate/findSemanticDuplicate/cosineSimilarity,server/services/autonomousJobs/layeredIntelligenceHandler.js)
Creative Writing Quality Engine
[issue-2171] Series Autopilot can now iterate a series to quality — an opt-in revision loop that revises the weakest issue under a keep/revert score gate and stops on plateau, hedged-convergence, or a cycle cap. Autopilot used to cap editorial convergence at 2 rounds and then pause for a human, with craft findings advisory-only. A new opt-in
revisionCyclestep (off by default; enable + tune min/max cycles and the plateau delta in the Autopilot options drawer, persisted like the other gate settings) sits between the editorial-health gate and canon/visuals and cycles the manuscript toward publishable quality unattended. Each cycle: (1) judges every drafted issue (composing the Phase 3 judge #2167, cache-aware so only stale content bills), (2) picks the weakest issue — the Phase 5 Elo ranking (#2169) when a fresh one exists, else the lowest compositequalityScore— (3) runs the Phase 4 adversarial-cut pass (#2168) and auto-applies the safe cut types (OVER-EXPLAIN + REDUNDANT) through the snapshotted stage-write path, (4) builds a structured revision brief (PROBLEM / WHAT TO KEEP — the strongest sentences, so a rewrite can't gut the good material / WHAT TO CHANGE / VOICE RULES / TARGET) from the judge output + cut list, then (5) re-judges and applies a keep/revert gate — a revision is kept only whenqualityScoredid not regress, else the pre-revision text is restored through the serialized write path (never a force over a concurrent human edit). The loop stops on plateau (mean series score moves less than a configurable delta after a minimum cycle count), maxCycles (a cost ceiling, default 1–3), or qualification-aware convergence — remaining findings classified as hedged trade-offs ("individually fine", "deliberate choice", "costs of ambition") rather than actionable defects; majority-hedged ⇒ converged. Every judge/cut/re-judge call is budget-gated and billed against the cos daily action cap exactly like the existing steps, budget exhaustion pauses the run, and resume is a pure function of state (cycle counters live in run state, no stored cursor). Every keep/revert decision is logged as a single-line experiment-ledger entry. Pure brief-assembly and stop-condition/keep-revert logic are unit-tested. Gated on the already-consented Series Autopilot — never fires at boot (AI-provider policy). (server/services/pipeline/seriesAutopilot.js,server/services/pipeline/editorial/revisionBrief.js,server/services/pipeline/editorial/revisionStop.js,server/lib/pipelineValidation.js,server/routes/pipeline/autopilot.js,client/src/components/pipeline/AutopilotPanel.jsx)[issue-2179] The Writers Room now anchors a freeform work's voice with the same exemplar/anti-exemplar passages ("the tuning fork") the series pipeline already uses. Completing #2179's Writers Room parity: a work can now carry
voiceExemplars(1–3 short passages that nail its target voice, each with an optional note on what it demonstrates) andvoiceAntiExemplars(passages in the wrong register, noted with what's wrong — "too ornate", "wrong temperature"), edited in a new Voice exemplars drawer on the work editor. On generation those render into the SAME "MATCH this voice / NEVER drift toward this" blocks as the series style guide — via the sharedrenderVoiceExemplars/sanitizeVoiceExemplarshelpers now exported fromserver/lib/styleGuide.js(one sanitizer, one set of caps, no drift between surfaces) — and are injected into the two prose-generation paths: the live-continuation prompt (writers-room-continue.md, gated by a conditional{{#voiceGuide}}block so a work with no passages carries zero per-call overhead) and the Phase 9 polish loop's revision brief (folded into VOICE RULES so the rewrite is held to the chosen voice, not just told to "match the existing voice"). The editor UI is the sharedVoiceExemplarEditorcomponent (extracted from the series style-guide editor and reused by both). Zod parity onwritersRoomWorkUpdateSchema(each passage capped at 2000 chars, list at 3; an explicit[]clears); the server sanitizer drops empty passages and re-sanitizes on read.writers-room-continue.mdis a shipped template, so the block ships to existing installs via a standard hash-keyed migration (181) with migration 166 resynced and the drift baseline updated. (Final slice of #2179 — the earlier slices shipped the series exemplar fields, the AI voice-discovery flow, and the voice-fingerprint baseline hook.) (server/lib/styleGuide.js,server/lib/pipelineValidation.js,server/services/writersRoom/local.js,server/services/writersRoom/liveDirector.js,server/services/writersRoom/polish.js,data.reference/prompts/stages/writers-room-continue.md,scripts/migrations/181-writers-room-voice-exemplars.js,client/src/components/VoiceExemplarEditor.jsx,client/src/components/writers-room/WorkEditor.jsx)[issue-2180] Series invention now generates several distinct concepts under an anti-generic banlist, then user-picks (interactive) or judge-picks (autonomous) the winner — concept diversity at the seed is the cheapest quality lever in the pipeline. Autonomous series invention used to produce ONE concept with no anti-generic pressure; autonovel's seed stage generates many concepts under an explicit banlist ("no chosen-one prophecies, no dark lords, no medieval-Europe-with-elves, no magic academies, no love triangles"), then selects. The
pipeline-series-generatestage now invents N genuinely distinct candidate concepts (default 5, clamped 2–8), each carrying craft facets — HOOK / WORLD / CONFLICT ENGINE + COST / TENSION (personal AND larger-scale) / THEME (genre-neutral, not every series has magic) — under an anti-generic banlist that merges a shipped default list with the universe's owninfluences.avoid(case-insensitive dedupe, so an author's "steer clear of X" gets a hard veto at the seed). Interactive mode (the "Generate with AI" button on the New Series form) now presents the candidates for user pick — a deep-linkable card selection (?concept=is the URL source of truth) that pre-fills the form; the rejected candidates stay in memory (and in run history) so the user can switch without regenerating. Autonomous mode (CoS-driven invention) judge-picks the winner via a new one-call forced-rank stagepipeline-series-concept-judge("which concept would a reader who has seen a thousand pitches stop scrolling for?" — ties forbidden), reusing the writer/judge split (#2167) resolved from the generation stage'sjudgeProvider/judgeModel; it falls back to the first candidate when no judge is configured or the call fails, so invention never blocks. Seed-faithful expansion is untouched — when the user typed their own idea it's still expanded, never replaced with a "better" concept. Runs ONLY from an explicit user action or the already-consented autonomous path — never at boot (AI-provider policy). Candidate normalization, banlist merge, forced-rank parsing, and judge-pick fallback are unit-tested; the modified prompt ships a hash-keyed migration (customized prompts preserved + warned) and the new judge stage a seed migration. (server/services/pipeline/seriesGenerate.js,data.reference/prompts/stages/pipeline-series-generate.md,data.reference/prompts/stages/pipeline-series-concept-judge.md,server/routes/pipeline/series.js,server/services/creative/tools/pipeline.js,scripts/migrations/179-series-multi-concept-ideation.js,scripts/migrations/180-series-concept-judge-stage.js,client/src/pages/Pipeline.jsx,client/src/services/apiPipeline.js)[issue-2169] Two comparative-quality mechanisms build on the calibrated judge — a multi-candidate draft gate, and head-to-head Elo ranking of a series' issues. Both compose the Phase 3 judge (#2167) to escape autonovel's "rubric trap" (absolute 1-10 scores collapse into a 2-point band; comparison forces the discrimination the judge can't avoid). (1) Multi-candidate draft gate — a new opt-in per-stage config (
draftAttempts1–3, default 1 = off; optionaldraftGateThreshold, schema parity added tostageConfigUpdateSchema) makesgenerateStagegenerate → judge → re-roll a FRESH draft while the compositequalityScoreis below the threshold, up to the attempt cap, and keep the best-scoring attempt. Every attempt persists (rejected drafts stay recoverable in run history) and a per-attempt scorecard lands onstage.draftGate({ winner, threshold, attempts:[{ runId, qualityScore, rejected }] }) — never silently discarded. Only the judgeable stages (prose/comicScript/teleplay) gate; the single-shot path is byte-for-byte unchanged when off. When run from Series Autopilot each re-roll bills one cos action and stops re-rolling when the daily budget is spent (keeping the best so far); a manual regenerate is never cos-billed. Canon extraction runs once, on the winning draft. (2) Head-to-head Elo ranking — a newcomparativeRank.js+ forced-pickpipeline-judge-compare.mdstage prompt ("you are not allowed to call it a tie" — quote the deciding passage) runs a Swiss-style tournament (~4 rounds, K=32 Elo) across the series' drafted issues, each side truncated to a comparable budget viacontextBudget.js. The ranking + per-match records persist atdata/pipeline-comparative-rank/{seriesId}.json, content-hash-pinned for staleness (reusescomputeSourceContentHash), with the weakest-N slice as the revision-priority order Phase 7 consumes. A tie/hedge/garbage pick from the judge falls through to a deterministic, balanced tiebreak. Surfaced as a new Rankings tab on the Reader Map page (?tab=rank) — an Elo table with the weakest issues flagged as revision priorities. Runs ONLY from the explicit "Rank issues" action or an autopilot step — never at boot (AI-provider policy). Pure Elo math + Swiss pairing + tie-refusal parsing + staleness are unit-tested. (server/services/pipeline/editorial/comparativeRank.js,server/services/pipeline/textStages.js,server/services/pipeline/issues.js,server/services/pipeline/seriesAutopilot.js,server/lib/pipelineValidation.js,server/routes/pipeline/editorial.js,data.reference/prompts/stages/pipeline-judge-compare.md,client/src/components/pipeline/ComparativeRankView.jsx,client/src/pages/PipelineSeriesRoadmap.jsx,client/src/services/apiPipeline.js)[issue-2167] A calibrated LLM quality judge now scores each drafted issue, with a writer/judge model split —
qualityScore = judge overall − deterministic slop penalty. PortOS had severity findings and a deterministic health score but no LLM quality score per issue — the keep/revert currency Phases 5 and 7 need. A new harsh, calibrated judge (server/services/pipeline/pipelineJudge.js, stage promptpipeline-judge-issue.md) scores a drafted issue across 9 dimensions (voice adherence, beat coverage, character voice, plants seeded, prose quality, continuity, canon compliance, lore integration, engagement) against the SAME contract the writer received — style guide, beat sheet, and full canon (no reveal-gating, so it can catch canon/continuity/premature-reveal issues the writer's horizon-filtered view hides). An anti-inflation calibration ladder ("the median competent AI-generated chapter is a 6; a 10 does not exist for a draft; err lower") plus a QUOTE TEST (3 strongest / 3 weakest exact sentences) and a scene-vs-summary ratio keep the judge honest. The compositequalityScore = judgeOverall − computeSlopPenalty(text)(the deterministic slop penalty from #2165, clamped ≥ 0) is the dual immune system — the mechanical layer catches what the LLM judge normalizes away. Writer/judge split: a newresolveJudgeForStage()(sibling ofresolveProviderForStage()inserver/lib/stageRunner.js) resolves a per-writer-stagejudgeProvider/judgeModelpin (schema parity: added tostageConfigUpdateSchema), defaulting to the writer's own provider but with the UI encouraging a different, harsher judge model to avoid self-congratulation. Scores persist per issue+stage atdata/pipeline-judge/{issueId}.jsonwith asourceContentHashso a later edit flips the score tostale(mirrorseditorialAnalysis.js), and the judge run itself lands in run history viarunStagedLLM(a malformed-JSON response is retried once). Surfaced as a score chip + dimension/quote/revision breakdown on the issue page (IssueJudgePanel) and a weakest-first quality column on the series Editorial Roadmap. Runs ONLY from an explicit user action or the already-consented autopilot — never at boot. (server/services/pipeline/pipelineJudge.js,server/lib/stageRunner.js,server/routes/pipeline/editorial.js,data.reference/prompts/stages/pipeline-judge-issue.md,client/src/components/pipeline/IssueJudgePanel.jsx,client/src/pages/PipelineSeriesRoadmap.jsx)[issue-2181] Prose series can now be exported as a compiled manuscript, an ePub, or a print-interior PDF. A prose-format series had no shipping step — once the quality-engine phases produced publishable prose the pipeline dead-ended at "text in stages" (comic series already had
comicPdf/volumePdf, prose had nothing). A new Export tab on the series page (deep-linkable/pipeline/series/:id/export, registered in the nav manifest) offers three downloads, each assembled on demand and streamed straight to disk: (1) a compiled manuscript (Markdown with YAML front matter, volume breaks, and chapter headings) that reuses the same arc-ordered, drafted-prose-onlycollectManuscriptSectionsstitching the editorial passes use, so the exported prose matches what the editor and LLM see; (2) an ePub — an OCF container (mimetype + container.xml + OPF manifest + nav doc + per-volume XHTML chapters + CSS + the cover image from the existing cover stage) packaged in-repo with the existingzipWriter.createZip(no epub dependency added, per the dependency policy —mimetypestays entry #0, stored, per spec); (3) a print-interior PDF — a trade-format interior (trim size, margins, running heads, title page, chapter openers) built on the samepdf-libplumbing asvolumePdf.js. Per-series export settings (trim size, interior font, title-page/subtitle/author/copyright/dedication) persist on the series record under a newexportSettingsfield (sanitizeProseExportSettings, wire-gated atpipelineSeriesv12 +ADDITIVE_SERIES_FIELDSso an older peer can't strip-then-LWW it). Issues group into volume breaks byseasonId. (server/services/pipeline/proseExport.js,server/lib/proseExportSettings.js,server/routes/pipeline/proseExport.js,client/src/pages/PipelineExport.jsx)[issue-2165] Editorial review now catches recognizable "AI slop" writing tells automatically. Four new deterministic editorial checks join the existing 68: a tiered banned-word scan (hard-bans like "delve"/"myriad"/"utilize"; suspicious words like "robust"/"seamless" only flagged when 3+ cluster in one paragraph), fiction-specific AI-tell idioms ("a sense of dread", "couldn't help but", "eyes widened", "a wave of relief washed over him"), rhetorical structural tics ("not just X, but Y", runs of "did not [verb]", punchy three-sentence-in-a-row bursts like "Fast. Precise. Deadly."), and structural burstiness (em-dash overuse, essay-style transition-word openers, mechanically uniform paragraph lengths). Each surfaces as an editorial finding with the exact offending quote, same as the existing prose checks — configurable thresholds and house-style allowlists included.
[issue-2166] Editorial review now flags an issue whose narrative voice statistically drifts from the rest of the series. A new deterministic
style.voice-driftcheck measures each issue's prose fingerprint — sentence-length rhythm (mean, spread, variation), fragment and long-sentence rates, paragraph shape, dialogue ratio, em-dash rate, abstract-noun and simile density, and how often sentences open the same way — then compares every issue against the series average and flags the outliers (e.g. "Issue 7's sentence-length variation is 0.18 vs the series 0.41 — prose has gone metronomic"). It's the cheap, deterministic complement to the existing LLM voice-consistency check: no model cost, and it names the exact issue and metric that drifted. You can tune the sensitivity (σ threshold), and optionally declare vocabulary "wells" — register categories liketrade: forge, anvil; body: pulse, sinew— so it also flags an issue that drops a register the series leans on. It stays off until at least 4 issues are drafted (with fewer, the statistics are too small to distinguish real drift from a normal series).[issue-2172] The draft prompts now carry a craft anti-pattern corpus, so first drafts avoid recognizable "AI prose" tells before the editorial pass ever runs. A shared
craft-anti-patternsprompt block — injected into the prose-draft stage and the Writers Room live-continuation suggestions — encodes hard rules the model must follow while writing: no triadic sensory lists, a cap on "did not [verb]" and "the way X did Y" similes, no "thought about X" constructions or over-explaining after showing, varied paragraph lengths, at least 70% in-scene (not summary), speech that sounds like speech, and at least one genuinely surprising moment per chapter. The same block carries "Stability Trap" countermeasures (from the Rettberg & Wigers 2025 finding that AI stories favor stability over change): characters must end truly different, bad things are allowed to stay bad, some losses are irreversible, information is withheld rather than dumped, and every real choice has a real cost. Preventing these in the draft is far cheaper than detecting them in editorial. Existing installs auto-upgrade their prose/writers-room prompts (customized prompts are left untouched and flagged).[issue-2172] Series arc planning now emits a foreshadowing ledger that the Chekhov's-guns editorial check consumes directly. When you generate a series arc overview, the model now plans 2–6 planted seeds as explicit
plant → reinforce → payoffentries with the payoff landing at least 3 issues after the plant (so the reader has time to forget before the gun fires). The ledger persists on the series arc record (lockable and preserved across regenerates, like the reader map and ticking clock), and thechekhov.setups-payoffscheck reconciles the manuscript against these author-declared seeds instead of inferring every setup from scratch — a more grounded, less hallucination-prone review.[issue-2194] The voice-drift engine now has a dedicated matrix view showing every issue's full fingerprint, not just the flagged outliers. A new deep-linkable Voice Fingerprint page (
/pipeline/series/:seriesId/voice-fingerprint, linked from the series header and reachable via ⌘K / voice) renders the whole issues×metrics matrix as a monospace table — one row per drafted issue, one column per fingerprint metric (sentence rhythm, fragment/long-sentence rates, paragraph shape, dialogue ratio, em-dash rate, abstract-noun/simile density, dominant opener, plus any configured vocabulary wells) — with each statistical outlier cell highlighted in amber and a series mean/σ footer. Where thestyle.voice-drifteditorial finding only names the flagged outliers in prose, this view shows the full picture at a glance, reading the same per-series config (drift threshold, min issues, vocabulary wells) as the check. Read-only, no LLM cost.[issue-2168] A new "adversarial cuts" editorial check and mechanical applier tightens prose by identifying what a ruthless editor would cut. The
prose.adversarial-cutscheck asks an LLM editor persona to cut 8–12% of the text as 10–20 passages, classifying each cut by type: FAT (purple prose), REDUNDANT (repeated information), OVER-EXPLAIN (spelling out what's clear), GENERIC (stock phrases), TELL (emotion-telling after showing), or STRUCTURAL (scenes that don't advance the story). Each cut lands as a manuscriptReview finding with the exact verbatim quote. The Manuscript Editor gains an "Apply safe cuts" action that batch-removes OVER-EXPLAIN and REDUNDANT cuts mechanically — exact string match with whitespace-normalized fallback, refusing ambiguous or too-short quotes — through the same snapshotted stage-write path fixes use (full undo via version history). The check also reportsfat_percentage,tightest_passage(protected), andloosest_passagefor a quick health read.[issue-2170] A simulated four-persona reader panel now reads your whole series and shows you where the readers disagree. Convene the panel from a new Reader Panel tab on the Reader Map page (deep-linkable via
?tab=panel) and four distinct readers — The Editor (prose texture, subtext, over-explaining), The Genre Reader (pacing and page-turn pull, "gets bored by beautiful prose that doesn't GO anywhere"), The Writer (structure, beats, foreshadowing payoff, whose worst insult is "I can see the outline"), and The First Reader (pure emotional response, no craft vocabulary) — each read a condensed, content-hash-pinned arc digest of the series (per-issue summary, opening/closing excerpts, and notable dialogue) and answer the same ten qualitative questions (where momentum is lost, is the ending earned, what to cut, a missing scene, the thinnest character, best/worst scene, would-recommend, what haunts you, would-read-the-next-book), citing specific issue numbers. The editorial signal is where they disagree: an issue flagged by 3+ personas is routed straight into your editorial-findings triage flow as a consensus concern; softer some-flagged-some-didn't calls and "polarizing" issues (one persona's best scene is another's worst) are surfaced for your judgment. One LLM call per persona, run only from the explicit Convene button — nothing fires on its own.[issue-2175] Worldbuilding craft doctrine now shapes universe generation up-front, and two new editorial checks verify it. The universe-expansion prompt now injects Sanderson's-Laws craft doctrine before the writer model drafts — limitations over powers, costs that drive plot decisions, solutions foreshadowed before they resolve, iceberg depth, interconnected systems, 2–3 societal implications per major system, and a sensory signature per location — so autonomous and interactive runs alike start from a lived-in world instead of decorative set dressing (Series Autopilot calls the same stages, so autonomous mode is upgraded automatically). Two new series-scope editorial checks close the loop on the review side:
world.unforeshadowed-solution(a plot problem solved by a rule/power the reader was never shown — the worldbuilding sibling of the deus ex machina) andworld.cost-free-power(an ability used at a decisive moment with no cost or limitation on the page). Both reconcile the prose against the established world canon and the continuity-bible world-rule facts, so a rule that WAS planted earlier is not flagged. (First slice of #2175 — the character-framework and structure-rule pillars ship separately.)[issue-2175] Prose drafting now carries Le Guin's craft doctrine — "style is not ornament, it IS the story" — so first drafts reach for strong verbs instead of adjective-noun clichés. Following the worldbuilding-doctrine (#2219) and character-framework/structure (#2245) slices, the prose-writing stages (prose, comic script, teleplay) now inject a short, always-on prose-craft block ahead of drafting: style is the reader's experience of the world, not decoration over it; prefer specific nouns and verbs to adjective/adverb padding and cut dead clichés ("ancient wisdom", "piercing gaze", "heavy silence"); let concrete sensory detail carry meaning rather than summarizing an emotion; and vary sentence length and rhythm on purpose. It rides the existing
{{series.styleNotes}}template variable (viacomposeStyleNotes), so there's no new prompt-template variable and no migration — and it's scoped to the drafting stages only, staying out of the structural beat-sheet/arc/episode-seed passes where sentence-level craft would just be noise. This completes CWQE Phase 10 (#2175).[issue-2179] A series style guide can now carry concrete voice exemplar and anti-exemplar passages — "the tuning fork" — that get injected into every draft and revision prompt. Adjective lists ("witty, atmospheric") anchor prose voice far more weakly than an actual passage does, so the series style guide gains two new fields:
voiceExemplars(1–3 short passages that nail the target voice, each with an optional one-line note on what it demonstrates) andvoiceAntiExemplars(passages in the wrong register kept as negative examples, noted with what's wrong — "too ornate", "wrong emotional temperature"). Add and edit them inline on the series style-guide editor. On generation they render into the house-style block as a "MATCH this voice — echo their rhythm, diction, and register" block and a "NEVER drift toward this" block — conditional, so a guide with no passages injects nothing. They ride the existing{{series.styleNotes}}template variable (viacomposeStyleNotes), so prose drafting, revision, arc planning, and episode-seed passes all honor them with no new prompt-template variable and no migration. The sanitizer drops empty passages, trims each to ~2000 chars, and caps the list at 3 so the fixed per-call prompt overhead stays tight. (First slice of #2179 — the AI-assisted voice-discovery flow, Writers Room parity, and the voice-fingerprint baseline hook ship separately.)[issue-2178] Canon can now be reveal-gated so a mystery or twist doesn't leak into the prose before it's due. Canon context — including character secrets and late-story facts — was injected into every issue's drafting prompt, so the writer model could (and would) spill a reveal issues early. Each canon entry (character, place, or object) now carries optional reveal gating: a
revealIssuenumber hides the fact from any issue before it; aspoilerflag hard-hides it from all drafting context; and an optionalsurfaceDescriptoris the spoiler-free stand-in shown before the reveal ("the locked east wing" instead of "the wing where the heir is imprisoned"). The drafting/rewrite prompts (buildStageContext, the alternate-POV rewrite cast) filter canon to each issue's reveal horizon, while the judge and editorial checks still receive the full canon so they can verify hint placement. Absent gate fields mean "always visible," so every existing canon entry and every federation peer round-trips unchanged. A reveal-timing editor with a spoiler badge lands on every canon-entry card (universe + series). A newcontinuity.premature-revealeditorial check (gated on the series having authored any reveal-gated canon) scans drafted prose for a gated fact stated or unambiguously implied before its reveal issue, distinguishing a genuine leak from deliberate foreshadowing — and its reveal issue feeds the Chekhov setups-payoffs check as an authored payoff so an orphaned reveal is flagged too.[issue-2177] Prose drafts now flow across issue boundaries instead of each issue opening and closing in a vacuum. When drafting an issue's prose, the generator now injects the previous issue's actual closing prose (its last ~2000 characters) and the next issue's opening beats into the draft prompt — with guidance to open so it flows from the previous ending (without repeating its closing image or re-explaining what the reader just read) and to land the ending so it hands off to the next issue's beats. This is what keeps the narrative voice carrying across units and prevents the "every issue opens/closes the same way" tic, improving the autonomous first draft so the editorial loop has less to fix. Both blocks are token-budgeted (they degrade by trimming on a small-context local model rather than erroring), and when the previous issue hasn't been drafted yet — non-linear or parallel generation, or the first issue of a volume — the block simply doesn't render, so there's never any fabricated continuity. Every full prose (re)generation path gets it: the manual draft button, the auto-runner, and Series Autopilot. Existing installs auto-upgrade their prose prompt (a customized prompt is left untouched and flagged).
[issue-2179] The voice-drift check can now measure each issue against the voice you CHOSE — its style-guide exemplars — instead of the average of what got drafted. The
style.voice-driftcheck flags an issue whose prose fingerprint sits more than a threshold's σ from a baseline; that baseline used to be the drafted-issue mean, which has a blind spot — if every issue drifted the same way, the average drifts with them and nothing flags. A new Drift baseline setting on the check adds two modes on top of the defaultdrafted:exemplarsre-centers every metric on the combined fingerprint of the style guide's voice exemplars (the "tuning fork" passages from the first #2179 slice), andblendeduses the midpoint of the two. In exemplar/blended mode the spread (σ) is still the drafted corpus's — only the center shifts — so an issue is judged against the chosen voice while still tolerating the series' natural per-metric variance. When the style guide has too little exemplar prose (under ~40 words combined) the run silently falls back todraftedand says so. Findings read "…vs the style guide's chosen voice of 5 words" instead of implying drift from the drafted mean, and the deep-linkable Voice Fingerprint matrix view renders the chosen-voice baseline as its own footer row with the outlier cells measured against it. The check now also lists the style guide as a source, so editing an exemplar re-stales the finding — exactly like its LLM siblings. (Third slice of #2179 — the voice-fingerprint baseline hook; the AI-assisted voice-discovery flow and Writers Room parity ship separately.) (server/lib/editorial/voiceFingerprint.js,server/lib/editorial/checks/proseStyle.js,server/services/pipeline/voiceFingerprint.js,client/src/pages/PipelineVoiceFingerprint.jsx)[issue-2248] The chosen-voice baseline now also catches drift the whole series shares — not just per-issue outliers. The exemplar/blended
style.voice-driftbaseline (#2247) flags an issue that stands apart from the chosen voice, but it had a residual blind spot: when every drafted issue sits at the same value on a metric (zero spread) yet that shared value is far from the chosen voice, there is no per-issue outlier to name — the whole corpus is uniformly off-register. The classic case is a dialogue-free series measured against a dialogue-heavy chosen voice: every issue's dialogue ratio is 0, so the per-issue z-score model stays silent even though the register is plainly wrong. The check now emits a distinct series-wide finding for exactly this case ("The whole series sits at 0% on dialogue ratio vs the style guide's chosen voice of 42.5% — the corpus is uniformly below the chosen voice here"), gated on a scale-free relative distance so it works across metrics with wildly different scales and never fires under the defaultdraftedbaseline (where the center is the mean by definition). Series-wide findings carry no issue number (it's a corpus-wide observation, not an outlier) and escalate one severity rank above the per-issue floor, and the Voice Fingerprint matrix view surfaces them as a banner above the table since they have no single cell to highlight. (Follow-up slice of #2179.) (server/lib/editorial/voiceFingerprint.js,server/lib/editorial/checks/proseStyle.js,server/services/pipeline/voiceFingerprint.js,client/src/pages/PipelineVoiceFingerprint.jsx)[issue-2173] The Writers Room can now auto-polish a draft in place — cutting fat, rewriting to a brief, and keeping the change only if it scored better. A new Polish action on any Writers Room work runs the same adversarial quality loop the series pipeline gets, sized for a single piece: it evaluates the draft, runs a ruthless-editor cut pass, mechanically applies the safe cuts (over-explaining and redundancy), rewrites the result against an auto-built brief that spells out what to keep (the protected passage and strongest lines), then re-evaluates and keeps the revision only if it didn't score worse — otherwise it reverts. Run 1–3 cycles; the loop stops early once quality plateaus. Live per-cycle progress streams into the panel (before/after score, words trimmed, kept vs reverted), and every cycle first snapshots the body to an immutable revert point, so you can roll back to any prior state at any time — including the original baseline. It only ever runs from the explicit Polish button (no background or startup AI calls). (
server/services/writersRoom/polish.js,data.reference/prompts/stages/writers-room-cuts.md,data.reference/prompts/stages/writers-room-revise.md,client/src/components/writers-room/PolishPanel.jsx)[issue-2179] "Discover voice" now writes the same scene beat in five distinct registers so you can pick the series voice by ear. Filling in a voice exemplar from a blank page is the hard part — so the series style-guide editor gains a Discover voice button that runs one LLM call and returns the same invented scene moment written five ways (spare / lyric / wry / close-psychic / cinematic). Each candidate renders side-by-side with its register label; one click files it into
voiceExemplars("the tuning fork") or, for a passage in the wrong register, intovoiceAntiExemplars— both capped at 3, with the register carried as the passage note. Nothing persists until you save, exactly like the New Series "Generate with AI" concept flow, and the call only fires on your explicit click (no cold-bootstrap LLM work). The trial passages are seeded with the series' premise + existing tone/house-style so the registers vary within the world rather than swapping genre. Ships as a newpipeline-series-voice-discoverstage prompt (seeded to existing installs, no migration since it's a brand-new template) behindPOST /api/pipeline/series/:id/discover-voice. (Fourth slice of #2179 — the phase headline; Writers Room parity ships separately.) (server/services/pipeline/seriesVoiceDiscover.js,server/routes/pipeline/series.js,server/lib/styleGuide.js,client/src/pages/PipelineSeries.jsx,data.reference/prompts/stages/pipeline-series-voice-discover.md)
Human Activity Tracking
- [issue-2150] Activity timeline — a new
/timelinepage shows a unified, day-by-day view of your activity (emails sent/received and calendar events, with more sources coming), backed by a machine-localhuman_activity_eventsstore that your existing message and calendar syncs populate automatically. Pick any day (deep-linkable via/timeline/:date), see an hourly activity histogram and per-source tallies, and browse the day's events. Only metadata and a short summary line are stored — full message bodies stay in their per-source caches — and the timeline is machine-local (never federated to peers), like Tribe. - [issue-2152] Spotify listening history — a new Settings → Spotify tab pulls your recently-played tracks into the activity timeline as listen events (taste signal for the digital twin). Create a free Spotify developer app, paste its client ID/secret, and connect your account with one click (standard OAuth) — PortOS surfaces the exact redirect URI to register. It's off by default and opt-in: enable it, set a sync interval (keep it under ~25 minutes since Spotify only exposes your last 50 plays), and use "Sync now" to run immediately. Each play records the track, artists, album, and duration; re-syncs are incremental and idempotent, so running it repeatedly never double-logs. Like the rest of the timeline, listens are machine-local and never federate to your peers, and your Spotify credentials/tokens stay on this machine.
- [issue-2151] iMessage ingestion (macOS) — a new Settings → iMessage tab lets you pull your Mac's Messages history into the activity timeline and your Tribe touchpoints. It reads
~/Library/Messages/chat.dbread-only (never writing to Apple's database) using a built-in SQLite reader — no new dependencies — and matches conversations to the people you track by phone number (a new phone field on Tribe people, matched in E.164 form) as well as email. It's off by default and opt-in: enable it, set a sync interval, and use "Check setup" to confirm PortOS has macOS Full Disk Access (with a clear fix if it doesn't) or "Sync now" to run immediately. Only conversation metadata and a short preview line are stored — full message text stays in chat.db — and, like Tribe, nothing federates to your peers. Re-syncs are incremental and idempotent, so running it repeatedly never double-logs. - [issue-2160] WhatsApp import direction inference — the WhatsApp chat backfill importer now takes an optional "your name in this chat" field. When set, messages from a sender matching that name land as
message.sentevents and everyone else asmessage.received(the same kinds email uses); left blank, messages stay neutralmessageevents as before. The preview shows the sent/received split before you commit. Direction isn't part of the dedupe key, so an earlier neutral import isn't double-counted — clear the source's events and re-import to apply the classification. - [issue-2160] WhatsApp import optional chat label — hardens the cross-chat dedupe collision — the WhatsApp chat backfill importer now takes an optional "chat label" field. WhatsApp exports carry no stable chat id (the filename differs between a
WhatsApp Chat - Alice.zipand the bare_chat.txtextracted from it), so the content-hash dedupe key was deliberately un-scoped — which meant two DIFFERENT chats that each contained a same-named sender sending an identical message at the same timestamp granularity could collapse into a single event. Supplying a chat label (e.g. "Family group") now folds that stable, user-supplied scope into the dedupe hash so distinct chats key apart, and the label also becomes the displayed chat title. Left blank, the dedupe key is byte-identical to before, so existing imports and their idempotency are unchanged; use the same label consistently for a given chat across re-imports. (server/services/whatsappImport.js,server/routes/timeline.js,client/src/services/apiTimeline.js,client/src/components/timeline/WhatsappImportPanel.jsx) - [issue-2153] YouTube watch history — YouTube killed its watch-history API, so PortOS ingests your viewing two complementary ways, both landing as
media.watchevents on the activity timeline (taste signal for the digital twin). A new Settings → YouTube tab scrapes your signed-inyoutube.com/feed/historypage through the managed browser — off by default and opt-in: log into YouTube in the managed browser, run "Check setup" to confirm you're signed in, set a conservative scrape interval (the history page only shows day-bucketed entries, so a few times a day is plenty), and use "Scrape now" to run immediately. Selector failures degrade to a surfaced sync-status error instead of crashing, and all the page selectors live in one place for easy repair. For reliable historical data (and a fallback whenever the scrape breaks), the Timeline page gains a Google Takeout backfill importer: upload your "YouTube and YouTube Music → history" export (the ZIP or a singlewatch-history.json) and every watch is imported with its exact timestamp. Both paths share a per-video-per-local-day dedupe key, so a Takeout backfill and the live scrape reconcile without double-counting, and re-imports/re-scrapes are always safe. Like the rest of the timeline, watches are machine-local and never federate to your peers. (server/services/youtubeSync.js,server/services/youtubeImport.js,server/services/youtubeScheduler.js,server/routes/youtube.js,client/src/components/settings/YoutubeTab.jsx,client/src/components/timeline/YoutubeImportPanel.jsx) - [issue-2154] Signal Desktop ingestion — a new Settings → Signal tab pulls your Signal Desktop message history into the activity timeline and your Tribe touchpoints, matching conversations to the people you track by phone number (reusing the iMessage phone match). Signal stores its chat database SQLCipher-encrypted with a key wrapped by your macOS Keychain, so PortOS decrypts a temporary copy of the database in-process — never touching Signal's live file — using only Node's built-in crypto (no new dependencies): it unwraps the key from the keychain, decrypts the SQLCipher pages, and reads the plaintext copy read-only. Both the legacy plaintext key and the modern keychain-wrapped key (Signal ≥6.2) are supported. It's off by default and opt-in: enable it, set a sync interval, and use "Check setup" to confirm the database and key are reachable (with an actionable message if a keychain prompt or an unsupported Signal version blocks it) or "Sync now" to run immediately. As Signal is the most fragile source — a Signal update can change its key handling or storage format — everything degrades to a clear sync-status error rather than failing hard or retry-looping. Only conversation metadata and a short preview line are stored; full message text stays in Signal's database. Like the rest of the timeline it's machine-local and never federates to your peers, and re-syncs are incremental and idempotent. (
server/lib/signalCrypto.js,server/services/signalSync.js,server/services/signalScheduler.js,server/routes/signal.js,client/src/components/settings/SignalTab.jsx,client/src/services/apiSignal.js) - [issue-2160] Gmail full-history backfill — the Timeline page gains a Gmail importer that backfills your entire email history from a Google Takeout "Mail" export into the activity timeline as sent/received message events. Because a Gmail
.mboxis routinely several gigabytes and won't fit the upload flow the other backfills use, this importer reads it from a local path instead: extract your Takeout Mail export on the machine, then point it at the.mboxfile (or the whole extractedMail/folder) and it streams the file in place — a multi-gigabyte mailbox never has to be uploaded or held in memory. Only header metadata is read (subject, sender, recipients, date, thread) — never message bodies — matching the timeline's privacy stance. Each message is deduplicated by its email Message-ID, so re-importing the same export (or a newer overlapping one) never double-counts; Preview streams and counts the messages (with a sent/received split, date range, and top correspondents) before you commit. Direction comes from Gmail's own "Sent" label, and an optional "your email" field refines it. Like the rest of the timeline, these events are machine-local and never federate to your peers. (server/services/gmailMboxImport.js,server/routes/timeline.js,client/src/services/apiTimeline.js,client/src/components/timeline/GmailMboxImportPanel.jsx,client/src/pages/Timeline.jsx)
Privacy Center
- [issue-2140] Encrypted PII Vault — PortOS can now store your identity facts (legal name, addresses, phones, emails, DOB, ID documents, financial-account stubs) in an encrypted-at-rest vault: values are AES-256-GCM encrypted with a key auto-provisioned into your
.envon first use, the API only ever shows masked values (like••••6789orj•••@example.com) unless you explicitly reveal one, and sensitive document types can never be marked for use in the upcoming data-broker scans. This is Phase 1 of the Privacy Center (epic #2138) — the UI arrives in Phase 3. - [issue-2141] Trusted Organizations registry — the Privacy Center now has a place to track every organization that has (or had) your PII — banks, utilities, government, employers, subscriptions, medical, insurers, platforms — each with a trust stance (trusted/tolerated/unwanted) and per-org holdings linking to the exact vault records they hold. Holdings always show masked values, never plaintext, and deleting an organization or a vault record automatically cleans up its holdings. This is Phase 2 of the Privacy Center (epic #2138) — it's the data backbone for the upcoming change-of-address inventory and "who has my PII" view; the UI still arrives in Phase 3.
Songs
- [issue-2109] The live vocal Tuner now locks onto the note you're singing instead of flickering. Holding a steady note used to make the readout strobe — the note label flipped between neighbors, the needle lurched, and the display dropped to "—" on every breath or consonant. The tuner now holds a stable reading through brief dropouts (dimming while it coasts), only blanks after a real pause, keeps one note label while your pitch wanders up to ~60¢ around it, and re-locks promptly when you actually change notes — so a held note shows one label with a gently moving needle.
Rounds
- [issue-2104] Fixed: 500 Miles' reference TikTok videos now show up on older installs. The built-in "500 Miles" round shipped with three TikTok reference performances, but any install that already had its data saved from before those were added never picked them up — the Reference material section stayed empty. A one-time backfill now restores the three references for those installs, without touching anything you may have added of your own.
- [issue-2105] Fixed: "Hey Ho Nobody Home" now sings in D minor and stacks cleanly with its partner rounds. The built-in round shipped with a mis-transcribed melody — centered on G with a major third — that contradicted its own key label and sounded a harsh clash when stacked with Ah Poor Bird and Rose Rose Rose Red in the Round Stack view. The melody is now the correct D-centered, all-natural minor tune (same shape, just the right key), so the three-round quodlibet is consonant. Older installs get the corrected melody automatically; a score you customized yourself is left untouched (use "Refresh from template" to pull the fix).
- [issue-2106] Learn the real parts from a reference recording. A round reference (like a layered TikTok performance) can now carry attached audio — upload a file or capture through the mic while the video plays — and open in a new analysis view: see the waveform, mark the time ranges where each voice sings alone, and extract each range into a proposed part snapped to the round's tempo and key. Review the proposal side by side with the part you already have, with each bar flagged where the notes disagree, then apply it with one click (nothing changes until you Save). All analysis runs locally on your machine — no AI calls.
- [issue-2120] Attach a reference's audio straight from a URL. Following #2106's upload + mic-capture attach paths, a reference now also offers "Download from URL": paste a link (a TikTok performance, a YouTube clip, …) and PortOS downloads + extracts just the audio via
yt-dlpinto your uploads dir, ready to analyze like any other attached recording — with a live download-progress readout you can cancel. It's a best-effort convenience (scraping is brittle; upload and mic capture stay the primary paths) and requiresyt-dlpinstalled on the host (detected at runtime, no new npm dependency — the same discovery the YouTube track import uses). The URL is SSRF-guarded (http(s) only; loopback/link-local/private-LAN hosts refused) and the download is bounded to a short-clip size/duration. Under the hood, the yt-dlp download+extract+SSE-progress core is now shared between this and the YouTube track import (#1945) rather than duplicated. (server/services/ytdlpAudioImport.js,server/services/roundReferenceAudioImport.js,server/services/trackYoutubeImport.js,server/lib/fileUtils.js,server/routes/rounds.js,client/src/hooks/useReferenceAudioImport.js,client/src/components/songs/ReferenceAnalysis.jsx)
Media
- [issue-2196] Image-to-Video sizing now accepts custom width/height inputs. The Video Gen page's resolution picker showed only preset aspect ratios — users who wanted an exact I2V size had to set it via URL params, remix, or wait for the auto-snap from an uploaded image. The resolution field now includes editable width and height inputs directly below the preset dropdown, accepting any value (the server floors to a 64-pixel grid and enforces the FFLF pixel budget as before). Picking a preset, typing a custom value, or auto-snapping to a source image all update the same state, and the "custom" option appears in the dropdown whenever your dimensions don't match a preset.
- Installing a video LoRA from HuggingFace now shows live download progress. The LoRA Manager's "Install video LoRA from HuggingFace" form (and the curated video quick-install buttons) used to freeze on a static "Downloading…" label with no indication of how far along a multi-GB LoRA was — unlike image-model downloads, which show a percentage. The install now streams byte-level progress over SSE: the button shows
Downloading 42%and a progress bar withreceived / totalbytes fills as it downloads (an indeterminate pulse when the server can't read a Content-Length). Errors — including the "couldn't detect the model family" case that offers the inline "Install as LTX-Video" retry — still surface exactly as before. - The LoRA Manager's Installed list is now grouped by Video / Image. The curated "Video LoRAs" suggestion cards sat directly above a single flat "Installed" grid, so installed image LoRAs looked like they belonged to the video section. The Installed section is now visually divided from the suggestions and, in the "All" view, splits into labeled Video LoRAs / Image LoRAs subsections (mirroring the suggestion panel) so it's obvious which renders each LoRA applies to. The Image/Video filter still collapses it to a single scoped list.
- [issue-2036] Sketch & Annotation Canvas (phase 2): re-render an image guided by your annotations. The annotate page (
/media/annotate/:mediaKey) gained a "Re-render" action: draw over a generated image, then feed your markup back through local img2img so the marks reshape the render. A confirmation dialog names the exact local model it will run (no surprise AI calls) and lets you add an optional prompt and tune how much to change before it starts; the new render is queued and appears in Media History. Requires a local FLUX img2img runner — the action explains when one isn't available. Phase 3 (blank-canvas storyboard) remains open on #2036. - [issue-2036] Sketch & Annotation Canvas (phase 3): blank-canvas storyboard sketches on pipeline scenes. Each scene in the Storyboards stage now has a Sketch button that opens a blank drawing surface — the same draw/erase/undo/color/size toolbar as the image annotator, but starting from an empty white canvas instead of over a generated image. Rough out a composition or shot idea for the scene, save it, and a thumbnail appears inline on the scene; the button becomes Edit sketch to reopen the same canvas. The sketch is deep-linked and reload-safe (
/media/annotate/sketch:<id>) and returns you to the storyboards stage when you're done. Blank sketches are stored under asketch:key kept local to the media-sketch service — deliberately outside the shared media vocabulary so they never leak into collections, cross-machine sync, or the media catalog. Closes #2036. (server/services/mediaSketches.js,server/routes/mediaSketches.js,client/src/components/media/AnnotationCanvas.jsx,client/src/pages/MediaAnnotate.jsx,client/src/components/pipeline/stages/StoryboardsStage.jsx) - [issue-2199] LoRA downloads are now verified for corruption before install. A truncated or corrupt
.safetensorsdownload from Civitai or HuggingFace used to install silently and then render garbage ("mosaic") output at generate time. PortOS now checks every freshly downloaded LoRA's structure (safetensors header + size) and, when Civitai provides a SHA-256 for the file, compares it against the bytes on disk. On any mismatch the partial file is deleted and the install fails with a clear error so you re-download instead of training or rendering against corrupt weights. - [issue-2196] Video Gen now takes an exact custom Width×Height. The
/media/videopage only offered a 9-item resolution preset dropdown, so a size the presets didn't cover was only reachable via URL params, remix/continue, or aspect-snap on upload. Two numeric Width and Height inputs now sit beside the preset select — type any dimensions and the render uses them (the server still rounds each down to a multiple of 64 and enforces the per-tier pixel budget). Uploading a source image still auto-snaps the size to the image's aspect ratio by default, until you take the dimensions into your own hands. - [issue-2197] First-run model downloads now show GB progress instead of raw text. The video and image generation handlers now parse byte sizes from
DOWNLOAD:markers and tqdm progress bars, displaying a formatted "Downloading model · first run · X.X GB / Y.Y GB" message instead of the raw protocol output. Progress frames includedownloadedBytes/totalBytesnumeric fields so the UI can build download progress bars. Phase tracking (isDownloading,currentPhase) ensures the formatting only applies during actual download phases. - [issue-2198] A wedged local video render that produces no output is now killed automatically instead of pinning the GPU queue. The existing completion watchdog only guards a render that finishes and then hangs in teardown — it never armed for a render that stalls before emitting anything (a known MLX/Metal failure mode where the job never exits and never prints), which held the serialized GPU lane until you manually canceled. A new idle-stall deadline arms at spawn and resets on every child output line (stdout or stderr); if a render produces no output for a generous window (default 10 minutes, tunable via
VIDEOGEN_IDLE_STALL_MS) it's SIGKILLed and surfaced as a failed job, so the next queued render can start. The window is deliberately generous so a legitimately slow first-token render (weights load + Metal kernel compile) is never killed, and a manual cancel still works and always wins. (server/services/videoGen/local.js) - [issue-1933] Creative Director's first-pass music-bed render now surfaces failures in the UI. When you opt into "+ music bed" on Auto-cast, the background render used to be invisible on failure — an engine crash, OOM, or sidecar error left
project.musicBedsilently unpopulated, discoverable only by polling the Render Queue. Theaudiomedia-job kind now rides the same socket bridge as image/video renders (audio-gen:started|progress|completed|failed), and the Creative Director detail page watches the queued job: a failed render raises an error toast with the reason, and a completed one confirms the music bed landed. (server/services/socket.js,client/src/hooks/useMediaJobProgress.js,client/src/pages/CreativeDirectorDetail.jsx,client/src/components/creative-director/OverviewTab.jsx) - [issue-2124] Add and manage custom image/video base models from HuggingFace — no more hand-editing a JSON file and restarting. Base models used to be addable only by editing
data/media-models.jsonand restarting the server, while LoRAs had a first-class "install from HuggingFace" flow. The Media Models page (/media/models) now has that same self-service experience for base models: paste a HuggingFace repo (URL ororg/name), and PortOS inspects its files + model card to detect whether it's an image or video model and which runtime loads it, then appends a registry entry and hot-reloads it live (no restart). The catalog lists every built-in model read-only alongside your added ones, which you can rename, retune (steps/guidance), or remove inline. Formats no runtime can load are refused up front with a clear reason — a GGUF-only repo (e.g.unsloth/LTX-2.3-GGUF), a Wan or HunyuanVideo repo (which need a dedicated BYO venv), or anything unclassifiable — so a bad add can never wedge the model picker. For a GGUF LTX build specifically, the refusal points you at the native MLX Q4 model PortOS already ships. The multi-GB weight download still happens through the existing per-model download badge on the gen form once the entry exists.
MeatSpace POST
- [issue-2099] POST correctness batch: fill-blank scoring, an honest adaptive preview, weighted session scores, and fair shuffles. Memory Fill-Blank drills now score and count toward your spaced-repetition schedule/mastery like Memory Sequence and Element Flash — a scoring-shape bug meant a fill-blank answer could never be marked correct no matter what you typed, so any fill-blank work inside a scored session was silently unrecorded (also closes #2116). The Adaptive Difficulty preview for Multiplication now matches what a session will actually generate: it shows your current progressive-ladder rung when the ladder is on (the default) instead of a "Max Digits" adjustment that could never apply. Session scoring config gained real teeth — a per-domain weight you set now actually shifts your blended session score (uniform weights, the default, score exactly as before). Memory drill generators (fill-blank, sequence recall, element flash) now use an unbiased shuffle instead of a skewed one, so which lines/elements you're drilled on is genuinely random.
- [issue-2101] POST config & UX polish: Morse in the sidebar, config presets, keyboard-accessible history, pausable transitions. Morse is now a full nav entry under the POST sidebar section (previously reachable only via the launcher or ⌘K). The drill config page gained one-click presets — "Balanced daily", "Math focus", "Cognitive focus", and "Everything (local-only)" — plus per-group "Enable all / Disable all" buttons on the Mental Math, Cognitive, and LLM sections (bulk-enabling LLM drills is blocked until you've picked an AI provider). History session rows now expand/collapse with the keyboard (Enter/Space), not just a mouse click. The inter-drill transition screen gained a Pause/Resume control and pauses its 3-second auto-advance countdown while you're hovering or focused on it, so you're never yanked into the next drill mid-read.
- [issue-2097] The Wordplay tab now tracks your practice. Completing a round of Compound Chain, Bridge Word, Double Meaning, or Idiom Twist in the standalone Wordplay tab used to score every response and then throw the result away — closing the tab meant the practice never happened. Each completed round now logs to your training history (same log the in-session drills and streak use), so Wordplay accuracy shows up in training stats and counts toward your practice streak. The standalone tab and the in-session drill runner now also share one scoring path for these four types, and a bug that always logged 0% accuracy for in-session LLM-drill training rounds (regardless of actual performance) is fixed too.
- [issue-2114] Wordplay training-log entries now keep the per-question breakdown, not just the round total. Follow-up to #2097: each completed Wordplay round — whether from the standalone Wordplay tab or a wordplay drill inside an in-session training session — previously logged only the aggregate question/correct counts. It now also stores each question's prompt/response, score, feedback, and whether it cleared the correct threshold — so a future progress dashboard can trend which individual wordplay prompts you miss. Bridge Word's persisted prompt is now the clue set it actually showed you (it previously had no readable prompt at all). Entries without a breakdown (older rows, and other training modules) remain fully valid.
- [issue-2094] Scores now separate how accurate you were from how fast — and stop rewarding not answering. Every scored drill now records accuracy (of the answers you actually gave), completion (how much of a timed drill you reached), and average speed as distinct numbers alongside the blended headline score, so the session and history views show accuracy and speed side by side instead of one merged figure. Running out of time on a timed drill now lowers completion, not accuracy — an unreached question no longer counts as wrong. Adaptive difficulty follows your accuracy (with a guard that skips adjusting when you barely started a drill), so a fast-but-sloppy run and a slow-but-careful run now push difficulty in different, correct directions. The n-back drill is rescored with proper signal-detection: never pressing now lands at ~50% (chance) instead of the old ~70% freebie, and always-pressing is penalized for its false alarms. The reaction-time drill is now scored on your median reaction speed (false starts invalidate their trial) with your best time tracked too. Older saved sessions without the new fields still display and chart correctly.
- [issue-2093] Session results now teach from mistakes on every drill, not just AI ones. Expanding a math, memory, or cognitive (n-back, digit-span, Stroop, Schulte table, mental rotation, reaction time) drill row on the results screen used to do nothing — only AI-scored drills showed a review. Every drill row now expands into a per-question/per-trial breakdown: a "missed items" summary up top, then a type-appropriate view — a prompt/answer/expected table for math and memory, letter-sequence hit/miss/false-alarm marks for n-back, shown-vs-recalled digits for digit span, word/ink/your-answer for Stroop, and per-trial timing with slow-response outliers flagged for the pure speed drills. Unanswered questions are shown distinctly from wrong ones. The same review now also appears when you expand a past session in History.
- Multiplication drills now ramp up instead of starting hard. The mental-math multiplication drill used to open at a fixed 2-digit × 2-digit difficulty (e.g.
566 × 191) for everyone. It now climbs a mastery-gated ladder —1×1→1×2→1×1×1→2×2→ … — starting at single-digit × single-digit and advancing to the next rung only after you answer a level quickly and accurately (≥90% correct within a per-rung speed target). The drill header and the config page show your current rung and per-level mastery. On by default; turn off "Progressive difficulty" on the Multiplication card to go back to the manual Max Digits setting. - Morse trainer audio now works on mobile Safari. iOS Safari starts the Web Audio context suspended and only unlocks it once
resume()fully settles. The trainer firedresume()without awaiting it, so the first tones were scheduled against a still-suspended clock and never sounded on iPhone/iPad. It now awaits the resume before scheduling any tone (matching the app's other audio modules), so Copy, Head Copy, and Send-mode keying all produce sound on mobile Safari. - The Elements Song trainer is now mobile-friendly and speed-readable. The periodic-table memorization view no longer overflows off the right edge of a phone screen: the mastery summary, search box, and Mastery/Category toggle now stack and stretch to full width on small screens, the periodic table uses smaller cells (with a scroll-hint fade so it's clear the grid pans horizontally), and the header shrinks to fit. It also gained a Rapid Read practice mode that RSVP-flashes the lyrics one word at a time (reusing the app's speed reader) — run the whole song from the Practice list, or tap the gauge icon on any verse to speed-read just that section.
- [issue-2102] POST test-coverage hardening. Added behavioral test coverage for previously-untested load-bearing paths: stats aggregation (module/drill averaging, the days-window cutoff boundary, empty-window shape, streak passthrough), the adaptive-difficulty preview and its integration across every math drill type, the drill-generation route's cache/memory/adaptive dispatch and error paths, all 14 LLM drill generators plus their local/LLM scoring branches, non-memory session scoring/rollup, and the memory-builder's chunk-mastery ordering and built-in mastery-only update restriction. The memory drill's fuzzy-match/fill-blank/sequence/hint scorers and the LLM/session-launcher drill runners' pure helpers are now exported and unit-tested directly instead of only through component rendering (test-only, no user-facing change).
POST Training
- [issue-2100] POST now tells you what to practice next — and works toward goals you set. The launcher gained an "Up next" panel: a prioritized list of what to work on — memory items due for review, mastered skills due for a maintenance rep, your weakest recent skill, and laddered drills you're close to leveling up (e.g. "2 more clean reps to reach 2-back", "advance to Koch level 6") — each a one-click deep link into the exact drill or mode. You can set optional goals (daily minutes, sessions per week, streak length, Morse WPM) on the config page; the launcher and the dashboard's Daily POST widget show your progress against them, and everything hides cleanly if you set none. A Full POST now interleaves your drills across domains (math → cognitive → memory → verbal) instead of running all of one type in a row, and a Quick 5 Min session leads with your top recommendation instead of a purely random pick. As always, AI-backed wordplay drills are never auto-added to a default session — those stay opt-in.
- [issue-2096] POST now checks whether you still know a skill, not just that you once did. Element and chunk mastery is now decay-aware: it reads your most recent attempts (a rolling window) instead of an all-time tally, so a recent run of misses actually lowers your mastery and an unlucky early wrong answer no longer haunts you forever. On top of that, POST tracks the skills you've mastered but stopped practicing — multiplication rungs below your current level, cognitive rungs you've passed — and schedules a light "maintenance rep" for them on an expanding 7 → 30 → 90-day cadence. When one comes due, a Quick session quietly mixes in one or two labeled review reps; passing pushes the next check further out, while failing marks the skill "needs refresh" and re-checks it sooner (it never demotes a level you've earned). The Progress dashboard gains a Skill Retention panel showing each skill as fresh / due for review / needs refresh, plus a 90-day retention percentage. Nothing appears until you've actually mastered something, so fresh installs and existing data stay quiet until there's a skill worth re-verifying.
- [issue-2098] POST sessions survive a refresh, are shareable by link, and can't double-record. A POST session no longer lives only in the current page: refreshing mid-drill now resumes the same run (same drill queue, same completed results, right where you left off), and refreshing on the results screen keeps your results. Every saved session gets its own shareable, bookmarkable address (
/post/session/<id>) — History rows open it, and it shows the same per-drill mistake review as the just-finished screen; a stale or deleted link shows a clear "session not found" message. Wordplay game modes now live in the URL too (/post/wordplay/<mode>), so a mode is deep-linkable and refresh-safe. Saving a session is now idempotent: if the network drops and the app retries, you get one record, not two — and a hiccup in the after-save bookkeeping (spaced-repetition scheduling for memory drills) can never fail an already-saved session. - [issue-2095] Cognitive drills now level up as you master them, instead of training at one fixed difficulty forever. N-back, digit span, Schulte table, mental rotation, and Stroop each climb their own mastery-gated ladder: n-back ramps 1-back → 2-back → 3-back and then squeezes the flash speed (2500 → 2000 → 1600ms); digit span grows its span and adds backward recall; Schulte grows the grid 4×4 → 6×6; mental rotation and Stroop add trials. You advance a rung only after sustained high accuracy at the current one (n-back uses the fair signal-detection accuracy, so never-pressing can't bank a level), and you're never demoted below a rung you've earned. Each drill now stamps its difficulty into your saved results, so progress is tracked per level (a 2-back run no longer pools with a 3-back run). The config page shows each drill's current rung and progress toward the next, with a per-drill "Progressive" toggle (on by default) — turn it off to set the knobs by hand, including the previously-hidden n-back stimulus speed and digit-span show time. Reaction time stays a fixed measurement. On by default for existing installs with no migration.
- [issue-2091] A unified Progress dashboard shows whether you're actually improving. POST has a new Progress page (in the POST sidebar section, ⌘K, and voice nav) that pulls scored sessions, Morse/memory practice, and mastery into one view. It charts your score, accuracy, and response-time trends over time — so "am I getting faster?" finally has an answer — with same-day sessions rolled into one point (no more overlapping dots), a per-domain focus selector, and time-in-training cards. Your practice streak is now a single number counting any active day — a scored session or a Morse/memory practice — so the launcher, the Morse trainer, the Progress page, and the dashboard widgets all show the same streak instead of three different ones. A mastery panel shows your multiplication ladder rung and each memory item's mastery and due status. The full session-history table lives on as a sub-view.
- [issue-2092] Morse progress now lives on the server, with WPM/accuracy trends and a per-character confusion matrix. Your Koch level and every completed drill round are now saved server-side instead of only in the browser — so clearing browser data or switching devices (over Tailscale) no longer wipes your Morse mastery, and your level is identical everywhere. The first time you open the trainer it adopts your existing browser level once, then keeps both in sync. A new Morse Progress panel on
/post/morsecharts accuracy and effective-WPM trends per mode (Copy / Head Copy / Send), highlights your most-confused character pairs (E↔I and friends), and lists your weakest characters worst-first so you know exactly which to drill next. Send-mode rounds record per-character keying accuracy and timing too.
Rounds
- [issue-2121] Reference analysis can now pull a voice out of a stacked mix, not just solo spans. The "analyze a reference's attached audio" workbench used to only transcribe time ranges where a voice sings alone — useless for the many layered TikTok builds where a new part enters over the layers already playing and never appears solo. Each segment now has a Stacked toggle: turn it on and set a short backing reference window from the moment just before the voice enters, and extraction subtracts that backing layer's spectrum (a hand-rolled FFT + spectral-diff, all pure local DSP — zero AI calls) to recover the newly-added voice's pitch line, then transcribes it onto the round's tempo/key grid exactly like the solo path. Enabling the toggle auto-seeds a sensible backing window ending right where the voice enters; you can nudge it or set it from the playhead. Solo extraction is unchanged.
- [issue-2108] Built-in rounds now document their melody variant points. Ah Poor Bird, Rose Rose Rose Red, and Zum Gali Gali carried melody/lyric choices that differ from other printed versions with no note explaining why — so a future accuracy check (or the AI evaluate feature) could mistake a deliberate variant for an error. Their notation now spells out each variant (Ah Poor Bird's C natural vs. the harmonic-minor C♯; Rose's verse and ending-note choices; Zum Gali Gali's D-minor transposition and refrain-only form) and cites the sources it was checked against.
Dev Tools
- [issue-1763] The Image Cleaner gained a CPU "Diffusion pass" step that actually disrupts SynthID. Building on the Phase 1 composable pipeline (metadata/C2PA + median/sharpen toggles, #1768), the
/devtools/image-cleanpage now offers a third opt-in step: a CPU-only diffusion pass (default OFF, lossy) that runs the same spatial round-trip as the ImageGen lightbox regenerate — resize-squeeze + micro color/contrast nudge + high-frequency perturbation (applyLightRegen) — perturbing SynthID's resolution-dependent watermark carriers. It runs synchronously in-request after the metadata and denoise steps (pipeline order: metadata → median/sharpen → diffusion), always re-encodes to PNG, and reports a fidelity metric (pixel-delta % + PSNR) in the per-step report so the UI can honestly say it disrupts the watermark rather than removes it (never verified against Google's detector). Options ride in the query string (?diffusion=light). The higher-reliability GPU FLUX img2img round-trip — which needs a non-gallery render seam factored out of the lightbox/regenerateflow plus async media-job progress — is a tracked follow-up; requesting it (?diffusion=gpu) returns an actionable 501 for now. The ignore-zone mask painter and resolution-aware GPU options also remain in that follow-up. (server/routes/imageClean.js,client/src/services/apiMedia.js,client/src/pages/ImageClean.jsx) - [issue-1763] The Image Cleaner's diffusion step gained an ignore-zone mask so you can preserve text and faces. Diffusion — even the low-strength CPU pass — redraws the whole frame and garbles comic dialog, faces, and fine text. When the diffusion step is on, the
/devtools/image-cleanpage now shows a preserve-region painter (brush + rectangle, with undo/clear and adjustable brush size + feather) over the source: you mark the regions the pass must not alter, and after the diffusion runs the server composites the ORIGINAL pixels back into those regions with a feathered (Gaussian-blurred) edge — a puresharpround-trip (compositeIgnoreZone), no runner/GPU needed. The mask rides in the request as a no-dependency length-framed envelope (<uint32 maskLen><mask PNG><image bytes>,?mask=1&feather=<px>), and the per-step report labels the tradeoff honestly: a preserved region keeps its original SynthID locally, so the mask is a deliberate per-region quality-vs-disruption choice. The higher-reliability GPU FLUX round-trip and its resolution-aware options are tracked separately (#2264); requesting?diffusion=gpustill returns an actionable 501. (server/lib/imageClean.js,server/routes/imageClean.js,client/src/components/media/IgnoreZonePainter.jsx,client/src/pages/ImageClean.jsx,client/src/services/apiMedia.js) - The Usage page now shows your Claude Code subscription rate limits, not just PortOS's own token counts. The
/devtools/usagepage previously only reported PortOS's internal AI-toolkit accounting (its own sessions/messages/tokens). It now leads with a Claude Code Subscription panel that surfaces the same numbers as the CLI's/usagecommand — current-session %, weekly % (all models and per-model, e.g. Fable), how much is left in each, and when each window resets — as color-coded meters that load on page open with a manual Refresh. Because there's no structured usage endpoint in the CLI, the server reads it the only way available: it runsclaude -pwith/usageon stdin (a read-only call that consumes zero tokens), parses the human-readable output into JSON, and caches it for 60s. Reset times render in the machine's timezone — resolved from the OS, not the server process's env — so a server running under PM2/systemd in UTC still shows the same reset times as an interactive/usage, instead of UTC-shifted ones. The numbers are a per-machine local approximation (they don't include other devices or claude.ai), and the panel says so. If theclaudeCLI isn't installed/signed-in, the panel shows a friendly note instead of erroring. (server/services/claudeCodeUsage.js,server/routes/usage.js,client/src/pages/UsagePage.jsx)
Fixed
- Scheduled improvement tasks no longer run twice. When the periodic evaluation loop and the improvement-check timer fired close together, each took its own snapshot of the pending-task list, both found no matching task, and both queued an identical managed-app improvement (e.g. two overlapping
[Improvement: PortOS] Performance Analysisruns). TheaddTaskduplicate backstop that should have caught the second was silently disabled for these tasks: it read the candidate app only from top-leveltaskData.app, but queue-path improvement tasks arrive pre-built (raw: true) with the app inmetadata.app— so the app-scoped dedup comparednullagainst the existing task'sportosand never matched.addTasknow reads the candidate app fromtaskData.metadata?.apptoo, so the second concurrent queue is correctly rejected. (server/services/cosTaskStore.js) - PM2 standardization no longer overwrites a PM2 config PortOS didn't generate. Standardizing an app used to always regenerate
ecosystem.config.cjs, silently replacing a hand-written one — losing its custom ports and settings. A config PortOS didn't generate is now preserved by default (and its ports are left untouched in.env/Vite too); PortOS only regenerates its own previously-generated config. To deliberately replace a custom config, opt in with the overwrite flag when standardizing. - CoS TUI agents running
/do:release//do:pr//do:rprno longer get prematurely reaped as "done" while a reviewer is still working — the idle-timeout reaper only special-cased the/do:next --swarmmerge-queue wait (#2074); a slow multi-reviewer pass (e.g. codex reading a large diff) could go silent past the default 3-minute idle window and get finalized as a falseidle-completesuccess before the release ever reached the merge gate, leaving the PR open with the task dashboard showing "completed" (observed on agent-61508f36, PR #2084, which sat open+unmerged for hours). Added acreateReviewLoopTracker(server/lib/tuiHandshake.js) that latches on multi-reviewer-loop chrome — the review-plan status line (agent list in brackets), a review-pass counter (N of M), or the aggregate report heading — and extends the idle reaper's grace to 15 minutes while active — mirroring the merge-queue fix exactly, including surfacing a timeout as a needs-manual-finish failure (reason: 'review-loop-idle-timeout') instead of a silent success. (Deliberately worded here without reproducing the literal trigger strings — this changelog entry itself would otherwise false-latch the tracker once a future release run reads it.) - [issue-2083] Catalog URL-ingest no longer over-refuses public pages that embed slow or cached iframes. The pinned CDP SSRF gate (#2068) classified a top-level navigation using only
requestId === loaderId— but CDP sets that on the main resource of every frame, including cross-origin sub-frames. A safe public article embedding a slow iframe (its document still in flight at settle-end) or a cached iframe (emptyremoteIPAddress) was falsely refused. The gate now captures the top frame'sframeIdfrom thePage.navigateresponse and only that frame's document gates the pending/empty-IP checks; every connection IP is still independently verified, so the change can't weaken the gate — it only stops sub-frames from making refusal stricter. A defensive fallback retains the oldrequestId === loaderIdclassification if no request matches the top frameId. (server/services/browserService.js) - [issue-2107] A song scored in a minor key now shows the correct key signature. Typing
key: D minor(orEm,F# minor,Bbm, …) into a song's score header used to render the signature for the parallel major instead — e.g. "D minor" showed D major's 2 sharps on a staff full of natural notes. Minor keys now resolve to their relative major's signature (D minor → F, 1 flat), and the reference-audio-to-score feature spells accidentals on the correct side for minor keys too. Plain major keys ("D", "D major", "Dmaj") are unaffected.
AI Providers
A wrong local-model default now self-corrects instead of failing the run. When an Ollama or LM Studio provider is pointed at a model that isn't actually installed (a stale or mis-typed
defaultModel, or a model you've since deleted), an API call against it returned a dead-end "model not found" — the user had to notice, open settings, and pick a real model by hand. The sharedcallProviderAISimplepath now catches that error, lists the backend's actually-installed models, picks the best fit (the editorial recommender's family/size ranking, skipping embedding-only weights), repoints the provider'sdefaultModel(and any tier slot pointing at a missing model), tells the user via a low-priority notification + activity log, and retries the call once — so the run succeeds and the bad config is fixed going forward. Remote/API and CLI providers are left untouched, since their installed models can't be enumerated. (server/services/localModelHealing.js,server/lib/aiProvider.js)[issue-2192] OpenCode TUI prompt paste no longer gets silently swallowed during slow startup. When pasting a task prompt into a non-Claude TUI (OpenCode, Codex, Gemini), the paste could be sent while the TUI was still initializing — the prompt never appeared in the input buffer and the agent sat idle for 185s before being reaped as a false success. The TUI paste-commit path now verifies the pasted text actually rendered in the buffer (extracting a unique prefix from the prompt and checking for it after the paste-marker or fallback timeout). If verification fails, the paste is retried with exponential backoff (800ms, 1.6s, 3.2s); after 3 attempts the agent is finalized as a startup failure with a clear
paste-not-renderedreason instead of a misleadingidle-completesuccess. Claude TUIs already had positive input-ready detection and are unaffected. (server/lib/tuiHandshake.js,server/services/agentTuiSpawning.js)Creative Director now evaluates rendered scenes on a local vision model instead of Opus. Judging each freshly-rendered scene ("does it match the style spec and deliver the intent?") used to spawn a full Chief-of-Staff coding agent that landed on the active provider's heavy model — Opus for a Claude provider — purely to look at a couple of thumbnails and record a verdict. That decision now runs server-side through PortOS's vision-API path: it attaches the sampled frames to a local, vision-capable model (Ollama/LM Studio VLM) and parses a structured accept/retry/fail verdict, applying the exact same scene transitions (accept → add the clip to the collection; miss with retries left → re-render with a refined prompt; miss when exhausted → drop the scene). Pick the model under Settings → AI Assignments → "Scene evaluation model"; leave it blank to auto-select an installed local vision model. Installs with no local vision model configured transparently fall back to the original coding-agent path, so nothing breaks — but if you have a VLM installed, scene evaluation is now local and free. (
server/services/creativeDirector/sceneEvaluator.js)
Integrations
- JIRA instances now support Jira Cloud (
*.atlassian.net), not just Server / Data Center. The JIRA client authenticated every instance withAuthorization: Bearer <token>— correct for a Server/DC Personal Access Token, but Jira Cloud rejects that: a Cloud personal API token must be sent as HTTP Basic (base64("email:token")). PortOS now picks the scheme per instance by host — a*.atlassian.netbase URL authenticates as Basic using the instance's email + API token (both already stored and required by the instance form), and any other host keeps the Bearer PAT — so Cloud and Server instances work side by side with no new fields or migration. Create a Cloud API token at id.atlassian.com → Security → API tokens and paste it into the instance's token field. (server/services/jira.js) - [issue-2235] Expired-token detection is now Cloud-aware, so a Jira Cloud token expiry gives the same friendly "regenerate your token" message as Server. The JIRA client's expiry detector only recognized the Server/DC signal — a 200 response whose body is the HTML login page (
<!DOCTYPE) — so a Cloud instance, which instead returns a JSON 401 on an invalid/expired token, never hit the friendly branch and surfaced the raw HTTP 401 instead. Detection is now instance-type-aware alongside the auth header: the<!DOCTYPEheuristic is gated to Server (so a Cloud JSON payload can't accidentally trip on the marker string), and a 401 from either instance type maps to one shared "token expired or invalid — regenerate your token" error. Both instance types now report expiry from one place. (server/services/jira.js) - Configuring an app's JIRA integration now auto-detects the workspace instead of hand-typing ids. When you pick a JIRA instance + project in an app's JIRA settings, PortOS now detects that project's boards and offers them as a dropdown (
id — name (type)) rather than a free-text "Board ID" field — the field where a board id silently went stale. If the app's saved board id isn't among the project's live boards (e.g. carried over from a Server instance after a Cloud migration, where ids are reassigned), it's flagged with an amber "pick a current one" warning; the selected board also shows its current active sprint as confirmation. The Epic Key field gained live search-by-name (type a name → pick from matching epics) and validates a typed/pasted key against the instance — confirming it resolves as an Epic, or warning when it's the wrong type or no longer resolves. New read-only endpoints back this:GET /jira/instances/:id/projects/:key/boardsandGET /jira/instances/:id/issues/:key. (server/services/jira.js,server/routes/jira.js,client/src/components/apps/EditAppDrawer.jsx)
Creative Director
[issue-2186] Studio UI — directive composer, plan board, blocked-step triage, dry-run preview (CDO Phase 4). The user-facing half of the orchestrator, on the Phase 2 plan loop (#2184) + Phase 3 autopilot bridge (#2185). The CD detail page grows a deep-linkable Plan tab (
/media/creative-director/:id/plan,useValidTab— a stale deep link degrades to Overview) that renders a directive project'splan.steps[]as a step board: per-step status + cost-class badges (hydrated from a newGET /creative-director/toolscatalog — every registered tool'scostClass/longRunning/destructive), run timing pulled from the project'splan-stepruns, dependency edges, per-step result deep-links into the owning surface (created series →/pipeline/series/:id, issue → its page, universe/work/minted CD sub-project → theirs), and a progress/cost summary header. Live via the detail page's existing 5s poll — mutations update local state directly, no full refetch. Blocked-step triage: when the plan pauses, the pause reason renders prominently with actions — Resume (retry the blocked step viaPOST /:id/plan/step/:stepId {action:'retry'}), Skip (mark itskipped, unblocking dependents), and Request re-plan (POST /:id/replandrops the plan and re-runs the planner) — all toast-based, nowindow.confirm. Approval affordances: a destructive or over-budget step (flagged against the catalog's budget status) renders an explicit Approve button instead of auto-running. Directive composer: a sharedDirectiveComposer(goal text, deliverable checklist, target universe/series pickers, budget cap) hosted in the sharedDrawer— on the CD list page a deep-linkable "New directive" drawer (?new=directive) creates a studio project, and on the Plan tab an "Add/Edit directive" drawer converts an existing project (POST /:id/directiveclears the plan and re-plans). Dry-run preview: the catalog'screativeautonomymodedrives a banner — indry-runthe board shows each step's proposed cost class without executing (mirrors autopilot's dry-run frames);offshows a review-only notice. The CD nav-manifest entry gainsproducer/orchestratoraliases +directive/studio/plan boardkeywords so ⌘K + voice reach the tab. Pure plan-board presentation logic (annotate/cost-summary/status-summary/approval/deep-link) lives inclient/src/lib/creativeDirectorPlan.js, unit-tested alongside thePlanTabstate-transition + blocked-triage component tests and the new route tests. (client/src/components/creative-director/{PlanTab,DirectiveComposer}.jsx,client/src/pages/{CreativeDirector,CreativeDirectorDetail}.jsx,client/src/lib/creativeDirectorPlan.js,server/routes/creativeDirector.js,server/services/creative/toolRegistry.js,server/lib/{creativeDirectorValidation,navManifest}.js)[issue-2185] CD ⇄ Series Autopilot bridge, both directions (CDO Phase 3). Wires the two conductors together so they share resources instead of living in parallel silos, building on the Phase 2 plan loop (#2184) + Phase 1 registry (#2183). CD → Autopilot: a directive-driven plan can now run the Series Autopilot as one long-running plan step (
pipeline_startSeriesAutopilot). Series Autopilot returns a run handle (arunId, not a mediajobId), so a new lightweight in-process event bus (autopilotEventsbeside the SSE broadcast inseriesAutopilot.js— every frame mirrored onto the bus keyed by seriesId, SSE behavior unchanged) lets the plan-advance loop observe the run without opening an HTTP/SSE client: the plan step staysrunninguntil the autopilot reaches a terminal frame, then settles —complete→ step done + advance;paused→ stepblockedand the plan pauses for human review (never auto-retried);error→ failed → bounded re-plan. This replaces the Phase 2 caveat where a long-running autopilot step completed on start. An already-active run is attached to (via the autopilot's ownalreadyRunningdedup) rather than double-started, and the already-terminal attach race is closed by reading the persistedseries.autopilotmarker. Autopilot/pipeline → CD: a newcd_produceVideoFromIssueregistry tool (+produceVideoFromIssueservice) mints a FRESH Creative Director teaser/trailer project seeded from a pipeline issue — the #842 bridge pattern (generate a treatment from the issue's prose via the sharedwriters-room-cd-bridgestage + shaper,createProject+setTreatment+sourceIssueIdlink, auto-cast the series canon into CD casting withref_kind:'creative-director'refs, then explicitly start it) — never mutating an existing project, rolling back the orphaned project + collection on a post-create failure. The same deliverable is also available as an opt-in, default-off post-visualDraftautopilot step (produceTeaser, config-gated + budget-charged like every other autopilot step; a teaser failure is advisory — it files a gap but never strands the finished story). No user-facing surface yet — the plan board + directive composer arrive in Phase 4. (server/services/creativeDirector/{bridgeFromIssue,planAdvance}.js,server/services/creative/tools/cd.js,server/services/creative/toolRegistry.js,server/services/pipeline/seriesAutopilot.js,server/services/writersRoom/liveDirector.js)[issue-2184] Production plans: a directive, a planner agent (
cd-plan), and a generalized advance loop (CDO Phase 2). Builds on the Phase 1 tool registry (#2183) to promote the Creative Director from a hardcoded treatment→scene→stitch video producer into a general orchestrator you can hand a directive ("produce a 6-issue noir comic in universe X, with covers and a teaser") and let it plan + execute using any tool in the creative suite. The CD project record grows two additive fields (directive+plan.steps[]) alongside the existing treatment/scenes — a legacy video project leaves both null and behaves exactly as before (the back-compat discriminator the advance loop keys on). A directive-driven project runs a new machinery that mirrors the scene loop's shape: the planner is a cognitive CoS-agent task (enqueuePlanTaskbesideenqueueTreatmentTask) whosecd-planprompt receives the directive + the resolved tool-registry specs (getToolSpecs()) + the current plan and PATCHes a Zod-validated step list to/:id/plan; the generalized advance loop (advanceAfterPlanStepSettled,server/services/creativeDirector/planAdvance.js) is a pure next-step function over the plan DAG — sequential,dependsOn-respecting, in-memory-deduped, idempotent — that dispatches each step through the Phase 1 gateddispatchCreativeToolchokepoint (so the whole plan runs under thecreativeautonomy domain + daily budget; an off/over-budget gate blocks the step and pauses the project). Long-running steps (media renders) stayrunninguntil their media job settles via a completion listener; a step failure triggers bounded re-planning (MAX_REPLAN_ROUNDS, default 2) — the planner revises the remaining steps, preserving already-completed steps bystepId— then the project pauses with residuals for human review (autopilot's convergence-pause contract, never a silent retry). Boot recovery resets stuckrunningplan steps and re-fires the loop; each step records aplan-steprun row for the Phase 4 plan board. Federation-safe:creativeDirectorProjectsschema version bumped 1→2 (per-category gate) and a stage-seed migration (175) ships thecd-planprompt to existing installs. No user-facing surface yet — the directive composer + plan board arrive in Phase 4. (server/services/creativeDirector/{planAdvance,projectsLogic,agentBridge,completionHook,recovery}.js,server/lib/{creativeDirectorValidation,creativeDirectorPrompts,schemaVersions}.js,data.reference/prompts/stages/cd-plan.md,scripts/migrations/175-cd-plan-stage.js)
Internal
[issue-1938] Creative Director first-pass scene-frame cleanup (deferred from #1867). Three low-risk tidy-ups with no user-visible behavior change: (1) the "look up
ASPECT_PRESETS[aspectRatio], degrade gracefully if unrecognized" pattern — inlined a third time infirstPassGen.js#enqueueFirstPassSceneFrameson top of the two copies increativeDirectorPrompts.js— is now a single exportedresolveAspectDimensions(aspectRatio, fallback)helper increativeDirectorPresets.jsthat all three call sites share (thefallbackstays caller-owned so prompt views keep their printable{width:0,height:0}and first-pass gen keeps its{}→ worker-default box). (2) First-pass scene-frame seeding now fires fromsetTreatmentitself (the domain write increativeDirector/local.js) rather than only the/:id/treatmentPATCH route, so thegenerateFirstPassopt-in is honored on every treatment path (route,episodeVideo,liveDirector) instead of silently no-op'ing if a future caller lands a treatment another way; the route-level assertions moved tolocal.test.js. (3) The auto-cast route'sgenerateFirstPassopt-in is threaded intoapplyAutoCastToProject's options so the flag persists in the SAME read-modify-write as the cast merge — collapsing what was two sequential full project writes (each with its own peer-sync push) into one on the opt-in path. (server/lib/creativeDirectorPresets.js,server/lib/creativeDirectorPrompts.js,server/services/creativeDirector/{firstPassGen,local,autoCast}.js,server/routes/creativeDirector.js)[issue-2256] Removed the dead cos-runner
/rundevtools endpoint (latent Windows ENOENT bug). The CoS runner'sPOST /rundevtools path spawned a bare command undershell:falsewith the prompt passed as an argv — the same Windowsspawn ENOENTbug the CoS agent path had (#2243), but no code called it: the live "Run Prompt" flow goes throughserver/services/runner.js(already fixed), andexecuteCliRunViaRunner+ the/runs,/runs/:id/output,/runs/:id/active,/runs/:id/stopsibling endpoints and their client wrappers (getActiveRunsFromRunner,isRunActiveInRunner,getRunOutputFromRunner,stopRunViaRunner) were referenced only by their own tests. Rather than refactor dead code to be Windows-safe (a prompt-via-stdin rewrite to dodge the ~8191-charcmd.exe /ccommand-line limit), the whole devtools-run cluster is removed — the endpoint, its in-memoryactiveRunsmap +ensureRunsDirhelper, therun:data/run:complete/run:errorsocket forwarders, and the now-orphaned client functions and their tests. The main server and cos-runner sidecar ship in one repo and deploy together, so there's no cross-install compatibility concern. (server/cos-runner/index.js,server/services/cosRunnerClient.js,server/services/cosRunnerClient.test.js)[issue-2249] The
issue-reconcilezombie-scan is now forge-aware — it heals stranded issues on GitLab (glab) as well as GitHub (gh). The v1 deterministic scan resolved the repo viagetOriginInfo().isGithuband queriedghonly, so enablingissue-reconcileon a GitLab-tracked app was a silent no-op.server/services/issueReconcile.jsnow resolves the forge from the app's gitoriginhost insidereconcile()(github.* → GitHub, gitlab.* → GitLab, anything else → skip/park) and delegates to a per-forge state gatherer. Both gatherers normalize into ONE common issue shape ({ number, title, url, labels, assignees }) + change shape ({ number, headRefName, body, url }), so the pure classifier (classifyIssue), the boundary-safe ref matchers, and thezombieSignatureconvergence guard stay shared and unit-testable with zero forge branching — GitLab mapsiid→number, MRsource_branch→head ref (carriesclaim/issue-<iid>), MRdescription→body (carriesRefs #<iid>). It remains a SINGLE task type (not three): the coordinator prompt is shared and simply gets the resolved forge + the matchinggh/glabcommand table injected via{zombieIssues}(prompt bumped to v2, v1 preserved inPREVIOUS_DEFAULT_PROMPTSper the cross-install upgrade contract). A cwd-awareglabexec helper was added atserver/services/gitlab.js(mirrorsexecGh). The JIRA sibling — a status-based "In Review with remaining scope" analog healed through the PortOS JIRA API rather than a forge CLI — is deferred to a follow-up (Refs #2249). (server/services/issueReconcile.js,server/services/gitlab.js,server/services/cosTaskGenerator.js,server/services/taskPromptDefaults/)[issue-2183] Creative Tool Registry + gated dispatch (CDO Phase 1). Foundation for the Creative Director orchestrator (epic #2182): a single registry (
server/services/creative/toolRegistry.js+ per-domain modules undercreative/tools/) of creative-suite tools an orchestrating agent can call — universe, story builder, writers room, pipeline, media, catalog — each a thin conductor wrapper over an existing service entry point (createUniverse,generateStep,startSeriesAutopilot,enqueueJob, …), never a re-implementation. All orchestrator calls flow through one governed chokepoint,dispatchCreativeTool(name, args, ctx), which validates args (Zod), enforces a newcreativeautonomy mode, charges the daily action budget forllm/rendertools, and appends a{tool, argsDigest, outcome, timing}entry to the calling project's run ledger. Thecreativeautonomy domain (server/lib/domainAutonomy.jsgetCreativeAutonomyMode) is kept separate from the four core domains and defaults to mirror thecosmode, so existing autopilot users get consistent behavior with no migration, while an explicitdomainAutonomy.creativevalue can override it later. Direct user actions through the existing routes are unchanged — the gate lives only on the orchestrator path. No user-facing surface yet; the directive composer and plan board arrive in later CDO phases.[issue-2220] Creative render tools with route-level persistence (CDO Phase 2 slice). The Creative Director orchestrator can now render comic-issue and volume (season) covers —
pipeline_renderComicCover,pipeline_renderComicBackCover,pipeline_renderVolumeCover,pipeline_renderVolumeBackCoverare registered creative tools. These render jobs need more than a bare enqueue: the media-job filename hook attaches the finished image only if the target cover slot already carries the returnedjobId, and that slot write used to live in the route factory (routes/pipeline/covers.js#makeCoverRenderHandler), so wrapping the bareenqueueComicCover-style service in a tool would silently drop orchestrated covers. The enqueue+persist flow (build the in-flight render slot, script-gate, write it onto the record) now lives in shared service entry points —renderComicCover/renderComicBackCover(→stages.comicPages.{cover|backCover}via the serializedupdateStageWithLatestseries write tail) andrenderVolumeCover/renderVolumeBackCover(→series.seasons[].{cover|backCover}viaupdateSeasonOnSeries) invisualStages.js— so the four cover-render routes and the four orchestrator tools share ONE code path. The persist keeps the script-gate semantics (absentcoverScriptpreserves the persisted concept, empty string clears it) and serializes against a concurrent blur-save on the same record. Tools charge asrenderagainst the daily action budget. Cover render is the primary deliverable; wrapping the remaining route-persisted render actions (comic page render / refine-render) as tools stays tracked on #2220.[issue-2241] Creative comic-page render + refine-render tools with route-level persistence (CDO Phase 2 slice). Completes the #2220 audit clause the covers slice (#2234) deferred: the Creative Director orchestrator can now render and refine full comic pages —
pipeline_renderComicPageandpipeline_refineComicPageRenderare registered creative tools. Like the covers, these need more than a bare enqueue — the media-job filename hook attaches the finished image only ifstages.comicPages.pages[pageIndex]'s active variant slot already carries the returnedjobId, and that slot write used to live in the route handler (routes/pipeline/issues.js), so wrapping the bareenqueueVisualComicPage/refineComicPageRenderin a tool would silently drop orchestrated pages. The enqueue+persist flow now lives in shared service entry points —renderComicPageandrefineComicPageRender(both persist ontopages[pageIndex].{proofImage|finalImage}through a sharedpersistComicPageSlothelper over the serializedupdateStageWithLatestissue write tail) invisualStages.js— so the page render + refine-render routes and the two orchestrator tools share ONE code path, mirroring therenderComicCover/makeCoverRenderHandlerstructure exactly. The persist runs inside the write tail's compute step so a concurrent page edit or sibling render can't be reverted by a stale snapshot. Tools charge asrenderagainst the daily action budget. (server/services/pipeline/visualStages.js,server/routes/pipeline/issues.js,server/services/creative/tools/pipeline.js)getSettings()now serves from an in-memory cache instead of re-reading settings.json on every call.getSettings()is invoked 100+ times across the codebase (several per request), each previously doing a fresh filesystem read + JSON.parse of app-wide, rarely-changing data. It now memoizes the parsed settings, populated lazily on first read and refreshed off thesettings:updatedevent that everysave()/updateSettings()/updateSettingsWith()already emits — so app-driven writes keep the cache coherent while write paths still read fresh off disk inside their write queue for the read-merge-write, preserving write-ordering guarantees. Mirrors the existingsettings:updated-invalidated cache insharing/annotationIdentity.js. Alongside it, a few independent per-file read loops are now parallelized (digital-twin-analysis.validateCompleteness, editorial series-health's series+settings load) and hot page derivations memoized (Reviewgrouping/sorting,Tribecare-queue), cutting redundant work on socket-driven re-renders.[issue-2225] Test suites that write settings.json directly are now hardened against the
getSettings()read-cache. The cache added in the perf change above only refreshes off thesettings:updatedeventsave()emits, so a test that writes settings.json straight to disk (bypassingsave()) can read a stale cache after a priorgetSettings()warmed it. Two suites already patched this inline (authGate.test.js,publicApiIntegration.test.js); two more (auth.test.js,settings.secretsStrip.test.js) only passed because theirvi.resetModules()incidentally discarded the cache after each write — an unasserted ordering that a future warm-then-direct-write would silently regress. A new shared test utilserver/lib/settingsTestUtil.jsexposesbindSettingsFile(dataRoot)→writeSettingsFile/mergeSettingsFile, which do the disk write and the cache reset (via the required dynamic import of__resetSettingsCache, since a static import binds to a pre-resetModulesinstance) in one place. All four suites now route through it, so future direct-writers get correct invalidation for free. Footgun-removal only — no behavior change. (server/lib/settingsTestUtil.js,server/lib/authGate.test.js,server/routes/publicApiIntegration.test.js,server/routes/auth.test.js,server/routes/settings.secretsStrip.test.js)Branch & PR reconciliation now runs on any managed app as a Chief-of-Staff scheduled task — not just PortOS. The branch reconciler (finish this machine's unfinished local git work: delete fully-merged orphaned branches + their worktrees, open PRs for pushed-but-unopened work, resolve merge conflicts, drive the review loop, and auto-merge when a PR is green) used to be a PortOS-only feature with its own daily cron,
/api/branch-reconcileroute,settings.branchReconciletoggle, and a dedicated Settings tab — hardwired to the PortOS checkout. It is now a first-class per-app CoS task type,branch-reconcile, configured like every other improvement task (per-app enable, provider/model, cadence, cooldown, budget) under Chief of Staff → task scheduling. It runsperpetual(drain-until-done): each dispatch runs the deterministic, peer-safe cleanup + classification against the app's repo, dispatches the coordinator agent only while actionable in-flight branches remain, then parks on a daily recheck — so no agent is burned on a no-op run. A progress-signature convergence guard ensures the drain only re-dispatches when the actionable set actually changed since the last run (a branch advanced NEEDS_PR→IN_REVIEW→merged, or a new/removed branch): a cycle that leaves the same branches in the same states (a branch judged "not ready", a PR blocked on human review or red CI) parks instead of re-spawning an identical coordinator back-to-back. The peer-safety guarantee is unchanged (only localrefs/heads/are ever touched; a federated peer's branch exists here only as a remote-tracking ref and is structurally invisible), and the per-behavior toggles (cleanupMerged/openPr/resolveConflicts/autoMerge) are now per-app task-metadata overrides. Off by default; enabling it on an app is the user's explicit consent to let it drive PRs on a schedule. The old dedicated scheduler, route, settings key, and Settings tab are removed; a migration (scripts/migrations/170-branch-reconcile-to-cos-task.js) carries a previously-enabledbranchReconcileopt-in into the new task (cron→recheckCron, actions→per-app metadata) scoped to the PortOS app, and drops the dead settings key — so an install that had it on keeps reconciling instead of silently stopping. (server/services/branchReconcile.js,server/services/cosTaskGenerator.js,server/services/taskSchedule.js,server/services/taskPromptDefaults/prompts.js)[issue-1929] Creative Director scene-0 render no longer races its seeded reference frame. When first-pass gen is on (#1867), the treatment handler enqueues a fire-and-forget image-gen job per scene to seed
scene.sourceImageFile; butadvanceAfterSceneSettledfired the instant the treatment task settled and calledrunSceneRenderfor the lowest-order pending scene, which readssourceImageFilesynchronously — so scene-0 almost always rendered text-to-video before its just-queued seed frame landed, silently degrading the establishing shot. The "find next pending scene" branch now checks whetherproject.generateFirstPass && !scene.sourceImageFileand acreativeDirector-tagged image job for that scene is still queued/running on the media-job queue; if so it defers the render, re-firingadvanceAfterSceneSettledonce the seed job settles (with a short bounded poll for the scene-image hook to filesourceImageFile, since both handlers run off the samecompletedevent). If the seed job fails/cancels the scene renders text-to-video exactly as the fire-and-forget contract always allowed. A 5-minute backstop timer force-proceeds if the seed job never emits a terminal event (worker crash / queue stall / restart that drops the in-memory job), so a stuck seed can't wedge the scene inpendingforever; the backstopped re-advance renders the scene directly (via askipSeedDeferSceneIdgate) instead of re-arming a fresh defer on the same stalled job, and the settle listener matches by scene tag so a duplicate/re-queued seed job for the same scene wakes it too. Later scenes are unaffected (they already have a multi-minute buffer). (server/services/creativeDirector/completionHook.js)[issue-2175] Generation-side character framework + structure doctrine (CWQE Phase 10 remainder). Following the worldbuilding-doctrine slice (#2219), the character-generation and structure-planning prompts now teach the craft up front. The character bible gains the Ghost → Wound → Lie → Want → Need chain (with interlock checks: state the Lie in one sentence; the Need/Truth is its direct opposite; the Ghost causally explains the Lie), a declared arc type (positive/negative/flat), the Three Sliders (proactivity/likability/competence 1–10, rule: HIGH on ≥2 or one-with-growth; all-low = boring, all-high = Mary Sue), and a secrets list — all OPTIONAL so pre-#2175 records round-trip unchanged (
server/lib/storyBible.jssanitizer + Zod-shape parity via the existingcanonArrayFieldsanitize-on-write, client mirror inclient/src/lib/bibleLimits.js, character-sheet UI inCharacterDetailEditor.jsxwithhtmlFor/idpairing, and no-clobber merge inuniverseCharacterExpand.jsfor the AI-expand path). Thecharacter.consistency/arc.*editorial checks now receive the authored Lie/Want/Need/arc-type when present (viacanonCharacterTraitsSummary) so they reconcile plan-vs-delivery instead of inferring both. Structure prompts gain lean doctrine:pipeline-season-episodes.mda try-fail mandate (60%+ of middle episodes end "Yes, but"/"No, and"), beat rules (Catalyst external; Break Into Two a protagonist choice; All Is Lost includes a death — literal or of a hope/relationship/identity) and an active-climax rule;pipeline-arc-overview.mdMICE-style thread nesting (threads close in reverse order of opening; name the opening/closing thread per season). Shipped-template edits ship to existing installs via hash-keyed migrations 171/172/173 (with the drift-cross-sync of prior owners 003/005/019/027/166). Remaining Phase 10 items (Le Guin style doctrine into the style-guide flow) stay tracked on #2175.[issue-2160] Bulk-history importer for browser history → timeline
web.visitevents, on the shared import seam. The/timelinepage gains a collapsible "Import browser history" panel alongside the Spotify, location, Discord, and WhatsApp ones: request the Chrome product from Google Takeout (takeout.google.com), then upload the ZIP (or a singleHistory.json) → preview parsed visit counts + unique sites + date-range + top domains → confirm, and every page visit lands as an idempotentweb.visitevent (sourcebrowser) via the existingrecordEvents()infra. Chromium browsers have no in-app history export, so Takeout'sHistory.json(or the olderBrowserHistory.json) is the ingestion path;time_usecis epoch-microseconds (UTC, already normalized by Takeout) → divided to ms for the instant. The full URL lands in the row'surlcolumn while the summary keeps only the hostname (privacy contract — no query strings in the preview line). Subframe navigations (AUTO_SUBFRAME/MANUAL_SUBFRAME— ad/embed iframe loads Chrome records alongside real navigations) are dropped as noise, the same way the location importer drops travel segments. Since a visit carries no id in the export, the dedupe key is a stable content hash of (visit-instant + URL), so re-imports and overlapping exports never double-count. Built on the same shared seam: the genericActivityImportPanel, theimportHandlerroute factory, and theimportFileclient wrapper. (server/services/browserHistoryImport.js,server/routes/timeline.js,client/src/services/apiTimeline.js,client/src/components/timeline/BrowserHistoryImportPanel.jsx,client/src/pages/Timeline.jsx)[issue-2160] Bulk-history importer for WhatsApp chat exports → timeline
messageevents, on the shared import seam. The/timelinepage gains a collapsible "Import WhatsApp chat" panel alongside the Spotify, location, and Discord ones: in WhatsApp open a chat → ⋯ More → Export chat, then upload the_chat.txt(or the exported.zip) → preview parsed message counts + unique senders + chat title + date-range + top senders → confirm, and every message lands as an idempotentmessageevent (sourcewhatsapp) via the existingrecordEvents()infra. Both export layouts parse: iOS bracketed lines ([2024-01-15, 6:30:45 PM] Name: …) and Android dash lines (1/15/24, 6:30 PM - Name: …), with multi-line message bodies folded back together, bidi marks stripped, system notices (encryption/group changes) skipped, and media-only lines kept with a placeholder. Because WhatsApp timestamps are LOCAL wall-clock with no offset, they're anchored to your configured timezone (reusing the calendar importer'sresolveEventInstant) instead of the server's OS zone; the M/D vs D/M date order is auto-detected per file (a component >12 disambiguates; ambiguous files default to M/D). WhatsApp exports don't mark which sender is "you", so direction (sent vs received) is left neutral for now with the sender kept per event — a later reclassification pass, plus Gmail/YouTube/browser-history sources, stay tracked on #2160. Since WhatsApp lines carry no message id, the dedupe key is a stable content hash of (chat, instant, sender, body), so re-imports and overlapping exports never double-count. Built on the same shared seam: the genericActivityImportPanel, theimportHandlerroute factory, and theimportFileclient wrapper. (server/services/whatsappImport.js,server/routes/timeline.js,server/lib/navManifest.js,client/src/services/apiTimeline.js,client/src/components/timeline/WhatsappImportPanel.jsx,client/src/pages/Timeline.jsx)[issue-2160] Bulk-history importer for Discord data packages →
message.sentevents, on the shared import seam. The/timelinepage gains a collapsible "Import Discord history" panel alongside the Spotify and location ones: request your Discord "data package" (Settings → Data & Privacy → Request all of my Data), then upload the ZIP (or a singlemessages.json/.csv) → preview parsed message counts + unique channels + date-range + top channels → confirm, and every message you sent lands as an idempotentmessage.sentevent (sourcediscord) via the existingrecordEvents()infra. Because every message in the package is authored by the account owner and Discord message IDs are globally-unique snowflakes, the dedupe key is just the message id, so re-imports and overlapping exports never double-count. Both export vintages parse: newermessages.jsonand oldermessages.csv(a small in-tree RFC-4180 CSV reader — no new deps — handles quoted fields with embedded commas/quotes/newlines), each channel'schannel.jsonis joined to give guild/DM context, offset-less CSV timestamps are anchored to UTC, and attachment-only messages are kept with a placeholder body. Built on the same shared seam: the genericActivityImportPanel, theimportHandlerroute factory, and theimportFileclient wrapper. (server/services/discordImport.js,server/routes/timeline.js,client/src/services/apiTimeline.js,client/src/components/timeline/DiscordImportPanel.jsx,client/src/pages/Timeline.jsx)[issue-2160] Bulk-history importer for Google Takeout Location History →
place.visitevents, on the shared import seam. The/timelinepage gains a collapsible "Import Google location history" panel alongside the Spotify one: upload the Takeout "Location History (Timeline)" ZIP (or a singleSemantic Location HistoryJSON) → preview parsed visit/place counts + date-range + top places → confirm, and every place visit lands as an idempotentplace.visitevent (sourcelocation) via the existingrecordEvents()infra (dedupe on place identity + visit start, so re-imports and overlapping exports never double-count). Both export vintages parse: classic server-side Timeline (timelineObjects[].placeVisitwith E7 coords and ISO or epoch-ms durations) and the 2024+ on-device export (semanticSegments[].visit.topCandidatewithlatLngstrings). Travel/activity segments carry no "where was I" signal and are dropped; the rawRecords.jsonGPS dump is deliberately skipped. The two importers now share ONE seam: a genericActivityImportPanel(pick → preview → confirm, stale-response-guarded) that Spotify + location wrap thinly, oneimportHandlerroute factory on/api/timeline, and oneimportFileclient wrapper — so the remaining sources are small follow-ups. (server/services/takeoutLocationImport.js,server/routes/timeline.js,client/src/services/apiTimeline.js,client/src/components/timeline/{ActivityImportPanel,TakeoutLocationImportPanel,SpotifyImportPanel}.jsx,client/src/pages/Timeline.jsx)[issue-2160] Bulk-history importer for Spotify extended streaming history + shared import seam. The
/timelinepage gains a collapsible "Import Spotify history" panel: upload the privacy-download ZIP (or a singleStreaming_History_Audio_*.json) → preview parsed counts/date-range/top-artists → confirm, and every play lands as an idempotentmedia.listenevent via the existingrecordEvents()infra (dedupe on track-uri + played-at, so re-imports and overlapping exports never double-count). Both the modern extended-history shape (ts/ms_played/master_metadata_*) and the legacyStreamingHistory*.jsonshape (endTime/artistName/trackName/msPlayed) are parsed; legacy offset-less UTC timestamps are anchored to UTC so a server west of UTC can't shift the listen into the wrong day. The route reuses the streamingmultipart.jsparser +zipStream.js(no new deps; the JSON parser is hand-written), Zod-validates thepreviewflag, and always unlinks the temp upload. This is one slice of the larger backfill issue. (server/services/spotifyImport.js,server/routes/timeline.js,client/src/services/apiTimeline.js,client/src/components/timeline/SpotifyImportPanel.jsx,client/src/pages/Timeline.jsx)[issue-2264] Image Cleaner GPU FLUX diffusion round-trip + resolution-aware options + save-to-gallery. Completes the composable Image Cleaner (predecessor #1763): the
/devtools/image-cleanpage can now run the higher-reliability GPU FLUX img2img round-trip, not just the CPU light pass. The GPU render is GPU-serialized throughmediaJobQueue(two concurrent FLUX renders OOM the box), so for?diffusion=gputhe route stages the already-sync-cleaned bytes to a non-gallery temp dir, enqueues a job through the SAME regen seam the lightbox/regenerateflow uses (resolveRegenBackend/buildRegenParams/clampRegenDimensions/enqueueJob), and returns HTTP 202 + ajobId; the client tracks progress via the existing media-job channel (useMediaJobProgress), then GETs the finished bytes from a result endpoint. A non-gallery render seam was factored out ofgenerateImage(resolveOutputPlacement+ anoutputTargetparam): the cleaner renders todata/image-clean-tmp/with no sidecar and the gallerycompletedindex/federate hooks suppressed, so a clean pass never pollutes the gallery by default — the lightbox gallery-write + lineage/variant behavior is untouched. The finished result is ephemeral; an explicit "Save to gallery" action promotes it viasaveUploadedGalleryImage. Resolution-aware diffusion options land in the page: a GPU/CPU sub-mode selector auto-picked by hardware (getRegenAvailability()), a strength slider bounded by the server'sstrengthMin/strengthMax, an optional max-render-MP override, a render-budget warning when the source exceeds the FLUX attention budget, and a resolution-squeeze note. The ignore-zone preserve-region mask (#1763) applies to the GPU sub-mode too — the original (oriented) pixels are composited back over the diffused frame after the render. A short-grace age-gated GC (imageCleanTmpGc.js) sweeps the temp working files. (server/routes/imageClean.js,server/services/imageGen/cleanGpu.js,server/services/imageGen/local.js,server/services/imageGen/regen.js,server/services/imageCleanTmpGc.js,server/lib/fileUtils.js,client/src/pages/ImageClean.jsx,client/src/services/apiMedia.js)[issue-2262] Layered Intelligence Loop — deterministic backbone (server slice). A perpetual, per-managed-app self-improvement loop that runs as an Engine-B autonomous script job (
job-layered-intelligence, off by default). On its schedule the handler sweepsgetActiveApps()and, for each app whoselayeredIntelligence.enabled === trueand whose per-app interval has elapsed, runs four layers: GATHER (reads enabled sources — GOALS.md, CoSlearning.jsonmetrics, HEALTH_REPORT.md, PLAN.md, open tracker issues, plus app-declaredfilecustom sources), REASON (callProviderAISimpleagainst the active/overridden provider with a JSON-only prompt), DECIDE (deterministic scope-gate + slug/label dedup against live tracker state), and ACT (files exactly ONE issue via the app's resolved work tracker, and optionally pauses the app on a blocking issue). The reasoning model never touches code — it returns structured JSON and every side effect is deterministic handler code, so the "model must not make direct code changes" contract holds by construction. Dedup and pause are fully tracker-derived (a<!-- lil-slug: … -->marker +layered-intelligence/layered-intelligence:blockinglabels; closed-issue suppression pinned at 30 days) — the only local state is per-applastRunAtbookkeeping. Meta/self proposal scopes (loop-meta/portos-self) are double-enforced to PortOS-only so a hallucinated or hand-edited scope can't file against the loop from someone else's app. GitHub (gh) and GitLab (glab) forge filing +plan-tracker PLAN.md append are implemented; ships via theDEFAULT_JOBScatalog (merged into existing installs on boot byapplyAdditiveFields) and the per-app config accessor's default (all sources on; PortOS gets the meta/self scopes) — so no seed file or migration is needed. Off by default; only runs as a user-enabled scheduled automation (no cold-bootstrap LLM calls). (server/services/layeredIntelligence.js,server/services/autonomousJobs/layeredIntelligenceHandler.js,server/services/autonomousJobs/scriptHandlers.js,server/services/autonomousJobs/defaults.js,server/services/apps.js,server/lib/validation.js)[issue-2262] Layered Intelligence Loop — per-app config UI (client slice). The Edit App drawer gains an "Intelligence" tab that configures the self-improvement loop per managed app: enable/disable, a run-interval preset select (hourly → weekly, with a "Custom" readout for a hand-set cadence), an optional provider/model override (defaults to the active CoS provider), the Layer-1 telemetry source toggles (goals, CoS metrics, health report, PLAN.md, open issues), an add/remove list of repo-relative custom
filesources, a free-text guidance-rules box, and the allowed-proposal-scope checkboxes — with theloop-meta/portos-selfscopes shown only on the PortOS baseline app (mirroring the server's PORTOS-only gate). The tab reads the effective config from a new read-onlyGET /api/apps/:id/layered-intelligenceendpoint (stored partial merged over the shipped defaults +isPortosflag) and, on save, PATCHes only the fields that changed against that baseline via abuildLayeredIntelligenceUpdatediff — so an unchanged config stays absent and the server's merge-over-stored contract keeps the install forward-compatible with future default changes (persisting the full effective config would freeze it). No migration or seed file is needed: the job ships via theDEFAULT_JOBSboot-merge and the per-app config comes from the accessor default (per the design doc indocs/plans/2026-07-07-layered-intelligence-loop.md). (client/src/components/apps/LayeredIntelligenceTab.jsx,client/src/components/apps/EditAppDrawer.jsx,client/src/services/apiApps.js,server/routes/apps.js)[issue-2262] Layered Intelligence Loop now files to Jira (tracker abstraction completed). A Jira-tracked managed app previously short-circuited BEFORE reasoning (
skipped: jira-filer-not-implemented) — only GitHub/GitLab forges and PLAN.md apps could file. The loop's "act" step now files through the PortOS Jira REST service for any app whose resolved work tracker isjirawith an enabledjira.instanceId/projectKey(Jira is never auto-detected from the git host, matchingresolveAppWorkTracker). A Jira app with no usable config still skips before reasoning (jira-not-configured) so no LLM call is burned on a result that can't land. Dedup, park, and pause reuse the same tracker-derived model as the forges: the<!-- lil-slug: … -->marker is embedded in the ticket description and matched via alabels = "layered-intelligence"JQL scan (with theok/issuesfailed-vs-empty sentinel so a transient Jira blip suppresses filing rather than duplicating), closed-issue suppression uses the ticketresolutiondateagainst the shared 30-day window, and pause applies a Jira-safelayered-intelligence-blockinglabel (colons/spaces stripped) filtered bystatusCategory != Doneso a resolved blocker un-parks the app automatically. Because Jira issues are keyed strings (PROJ-123),pause.blockOnIssue: "this"resolves to the just-filed ticket's key and an integer resolves to<projectKey>-<n>. Adds three generic Jira service helpers (searchIssues,addLabels, exportedescapeJql) reused by the filer. (server/services/jira.js,server/services/layeredIntelligence.js,server/services/autonomousJobs/layeredIntelligenceHandler.js)[issue-2277] Layered Intelligence custom sources gain
http+cmdtypes (full-stack). The Intelligence tab's custom-source list previously only offeredfilerows even though the design called for three source types —http/cmdsources could only be set through the API. Each row now has a type selector (File / URL / Command) that swaps in the type-appropriate value field (repo-relativeref/url/cmd) plus an optionallabel, and "Add source" seeds a new file row. The backend backbone the UI needs was also added in the same change (it didn't exist inmainyet): the Zod schema is now atype-discriminated union (filekeeps the repo-relative-path refine,httprequires an http(s) URL,cmdis a bounded command string, all with an optional label), andgatherSourcesreads the new types via two injectable, degrade-to-omit helpers —fetchHttpSource(http(s)-scheme-guarded, 10s-timeoutfetch, null on non-2xx/throw) andrunShellCommand(shell-run in the app's repo dir, 15s timeout, null on non-zero exit). AcustomSourceKeyhelper namespaces the prompt map key by type so afileref and anhttpurl that share a string can't collide. Sanitize/diff on the client mirrors all three types + label so a blank/half-typed row still sanitizes away (no over-persist), and a type change clears the stale value field while keeping the label. (server/lib/validation.js,server/services/layeredIntelligence.js,client/src/components/apps/LayeredIntelligenceTab.jsx)[issue-2147] Privacy Center Phase 8 — Digital Twin integration (context injection + social-account cross-link). The encrypted PII vault can now feed the Digital Twin as its authoritative identity dossier, gated opt-in TWICE: a new global twin setting
includePrivacyContext(default false, toggled from the twin Overview → Settings panel) AND the existing per-recordshare_with_twinflag — with either gate off, prompts receive nothing from the vault. When both are on,getPrivacyTwinContext()builds a compact block of the flagged identity facts (legal name, contact details, addresses) decrypted at injection time only (never cached to disk or logged), plus a one-line org summary (counts by trust + category span) and, when the Phase 5/6 broker tables exist, a data-broker posture line (N confirmed removed, M pending). The block is injected bygetDigitalTwinForPrompt()ahead of the twin documents under the samemaxContextTokensbudget, and degrades to nothing (never throws) when Privacy Center isn't provisioned — ato_regclassexistence gate means missing vault/org/broker tables just omit their section. The org registry ↔ twin cross-link surfaces on the twin's Accounts tab: each social account shows an "in org registry" badge when aprivacy_orgs.social_account_idreferences it (via a newGET /api/privacy/social-account-linksreverse index), and unlinked accounts get an "Add to org registry" action that files aplatform-category org linked back to the account. Additive, defaulted setting — no migration needed. (server/services/privacyTwinContext.js,server/services/digital-twin-context.js,server/services/privacyOrgs.js,server/routes/privacy.js,server/lib/digitalTwinValidation.js,client/src/services/apiPrivacy.js,client/src/components/digital-twin/tabs/{AccountsTab,OverviewTab}.jsx)