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.22.0
Released: 2026-06-20
Fixed
[issue-1469] Editorial storyboard-continuity + comic-lettering checks now see every issue in a series, not just the first 1000. Both issue-derived editorial sources —
collectStoryboardScenes(storyboard.shots, #1315) andprojectComicLetteringContent(comicScript, #1313) — fed offlistIssues({ seriesId }), which caps atISSUES_PER_RESPONSE_MAX(1000) even unpaginated. For a series with more than 1000 issues, every storyboard scene / comic page past the 1000th was silently skipped — a coverage gap on both the run path and thegetReviewWithStalenessre-fingerprint path. A new uncappedlistIssuesForSeries(seriesId)(the per-series sibling oflistAllIssues/listIssueIds, sorted by issue number) now backs both paths, and the run-path fetch is gated on an enabled storyboard.shots/comicScript check exactly like the staleness path already was — so a run with neither check enabled pays no issue-fetch I/O. Regression-tested with a 1001-issue fixture whose offending scene rides the last issue. (server/services/pipeline/issues.js,server/services/pipeline/editorial/checkRunner.js, Part of #1283, #1469)[issue-1459] Editorial LLM checks now guarantee a manuscript budget floor, so a large reverse outline can't starve the manuscript chunk to empty. The manuscript-consuming editorial checks re-send a fixed context block (the reverse-outline scene map, character arcs, plotline coverage, style-guide expectations, …) on every chunk, counted as
overheadTokens. On a provider with a small or fallback context window and a large reverse outline (many scenes → a large scene map), that overhead could meet or exceed the usable input budget —planManuscriptPassthen returnedusableChars = 0and the chunker sliced every manuscript chunk to'', so a default-enabled check silently ran on no prose. A check now declares its trimmable context as acontext: { varName }map (instead of baking it intooverheadTokens); the runner reserves a minimum manuscript budget (MANUSCRIPT_FLOOR_TOKENS) and, when the context would push the manuscript below that floor, trims the context block (largest first, so the unbounded scene map absorbs the cut while bounded blocks survive) and feeds the model the same trimmed block it was budgeted for — rather than overflowing the window or reviewing an empty manuscript. The floor decision lives centrally incontextBudget.js(fitContextToManuscriptFloor/capContextOverhead/trimContextToBudget), so every manuscript+context check benefits. Unit-tested end-to-end: a tiny window + a 400-scene outline still yields a non-empty manuscript chunk. (server/lib/contextBudget.js,server/services/pipeline/editorial/checkRunner.js,server/lib/editorial/checkRegistry.js, #1459)
Added
[issue-1314] Editorial checks for comic pacing — splash usage, panel rhythm, and page-turn beat placement. Two new checks (Create → Editorial Checks) read each issue's parsed comic script (page → panel breakdown), not the prose manuscript. Comic panel rhythm & splash usage is deterministic: it flags splash overuse (too high a share of full-page splashes), back-to-back splash runs (consecutive full-page splashes that read as a slideshow and burn the page budget), overcrowded pages (too many panels cramped onto one page), and grid monotony (the same multi-panel count repeated page after page) — all threshold-configurable (max panels/page, splash-overuse ratio, monotony run length). Comic page-turn beat placement is LLM-judged: because a printed comic is read in two-page spreads, a reveal or cliffhanger on a page the reader has already been looking at across the open spread is spoiled before they reach it — a big reveal should land on the first page after a page turn. It reads each issue's recto/verso spread layout (including the caption/dialogue/SFX text of each panel, so a reveal delivered in a line — not just the art — is visible to the model) and flags reveals exposed early, reconciling against the authored reader-map reveals/cliffhangers and suggesting which panel to move. Both checks reuse the parsed comic pages the lettering check (#1313) already derives from each issue (no extra parse), and each declares a precise staleness source so findings only re-stale when the content that check actually read changes: panel-rhythm reads per-page panel counts (
comicScript.layout), so a text-only edit that leaves the layout intact never stales it; page-turn additionally reads each panel's visual description + text (comicScript.pacing), so a description edit re-stales it without touching a lettering finding (and vice-versa). The pure scanners live inserver/lib/editorial/comicPacing.js(no new deps); the page-turn stage prompt (pipeline-editorial-comic-page-turn) migrates for existing installs (119). (server/lib/editorial/{comicPacing,checkRegistry}.js,server/services/pipeline/editorial/checkRunner.js,scripts/migrations/119-editorial-comic-page-turn-stage.js, #1314)[issue-1455] Mood board cross-surface integration — "Pin to mood board" everywhere media appears, plus a reference strip in creation flows. Follow-up to the Mood Boards core canvas (#911), wiring boards into the rest of the Create suite. (1) Pin affordance — every generated image/video card and the media lightbox now carries a Pin to mood board button (the grid-icon sibling of "Add to collection"), so you can pin from Image Gen, Video Gen, Media History, Catalog media, and inside a collection through one shared control. The popover lists your boards, toggles membership (pin/unpin), and creates-and-pins a new board inline — pinning stores the asset's
<kind>:<ref>media-key plus its preview thumbnail as the board item'simageUrl, so a video pin renders a frame even though avideo:key has no derivable thumbnail path. (2) Creation-flow reference strip — a collapsible Mood board reference strip now appears in the New Series form (Series Pipeline) and the Universe Builder's Starter-idea panel: pick one of your boards and its pinned reference images show inline, so collected inspiration is visible at the moment you're describing a new universe / series (it remembers the last board per flow). The pin popover reuses the existing collection-picker shell (generalized to accept an injectable data source rather than duplicating the positioning/search/create plumbing), and the board-item image resolver is now a sharedmoodBoardItemSrchelper. (client/src/components/media/{PinToMoodBoardMenu,CollectionPickerShell,MediaCard,MediaLightbox}.jsx,client/src/components/moodBoard/MoodBoardReferenceStrip.jsx,client/src/lib/moodBoardItemSrc.js,client/src/pages/{Pipeline,UniverseBuilder,MoodBoardDetail}.jsx, #1455)[issue-1408] LoRA training quality-of-life: vision-assisted reference-sheet slicing, caption with Claude/Codex CLI providers, and a richer training queue. Three improvements to building character LoRAs (Create → LoRA Training). (1) Smarter sheet slicing — "Slice reference sheet" now offers Auto-detect figures with a vision model, which asks a vision model to draw a tight box around each figure on the turnaround and crops those instead of a rigid grid; it falls back to the columns×rows grid automatically when no vision model is installed or detection finds nothing, so you still get crops to prune either way. (2) Caption with a CLI model — the caption-model picker now also lists vision-capable CLI providers (Codex / Claude Code), so you can auto-caption a dataset with
codexorclaude(vision) rather than only a local LM Studio / Ollama vision model. (3) Training queue at a glance — the new Training queue on the LoRA Training page shows each run's loss curve (a sparkline over its checkpoints) and sample thumbnails right in the row, so you can watch a run learn — and spot a divergence — without opening it. (Part of #1227, #1408)[issue-1466] Editorial check flags storyboard eyeline-match breaks — the LLM-assisted sibling of the deterministic shot-continuity check. A new Storyboard eyeline match (gaze continuity) LLM check (Create → Editorial Checks) reads a scene's per-issue storyboard shots and flags the eyeline mistakes a deterministic scan can't compute: two characters in conversation whose gaze directions don't reciprocate across the cut (both look the same way instead of toward each other), a described eyeline that contradicts the shot's tagged screen direction (the storyboard's own two signals disagree), and a reverse-angle that doesn't flip the eyeline. Where the deterministic Storyboard shot continuity check (#1315) reasons over the structured
shotType/screenDirection/continuity-link fields for 180°-rule axis reversals and shot-type monotony, an eyeline match needs semantic reading of the free-text shot descriptions — so this one runs an LLM over a compact per-scene shot block (id, framing, direction, continuity link, description), built only from scenes that have two-or-more described shots to compare. Findings render asContinuitynotes anchored to the offending shot pair + issue. Gaze is read from the free-text shot description (thescreen directionfield records where a subject faces or moves, which isn't always where they look), and the pass is bounded four ways (scene count, shots-per-scene, a hard total-character ceiling, and per-shot description length) with non-silent omission/truncation markers so a very large storyboard — wide, deep, or with one pathological scene — can't overflow the model context. The check skips the model call entirely when no scene qualifies. Ships a new stage prompt (pipeline-editorial-eyeline-match) that migrates for existing installs (117). (server/lib/editorial/shotContinuity.js,server/lib/editorial/checkRegistry.js,data.reference/prompts/stages/pipeline-editorial-eyeline-match.md,scripts/migrations/117-editorial-eyeline-match-stage.js, Part of #1283, #1466)[issue-1467] Editorial check flags storyboard appearance / prop continuity — the LLM diff the name-matching shot parser can't do. A new Storyboard appearance / prop continuity LLM check (Create → Editorial Checks) reads a scene's per-issue storyboard shots and diffs the descriptions of the same entity across shots, catching the continuity errors a vocabulary scan can't: the same named character described with conflicting wardrobe / hair / physical state (a "red jacket" in shot 1, a "grey coat" in shot 3, with no costume change described), a prop that appears, vanishes, or transforms with no action removing it (a coffee cup that pops in and out; a "mug" that becomes a "glass"), and a setting whose weather / time-of-day / layout contradicts across shots with no transition. Where the deterministic Storyboard shot continuity check (#1315) reasons over structured framing/direction fields and its eyeline sibling (#1466) judges gaze reciprocity, this one needs semantic comparison of two free-text descriptions — the shot parser matches characters by name but never diffs what they look like — so it runs an LLM over the same compact per-scene shot block (shared
summarizeStoryboardShots, built only from scenes with two-or-more described shots, bounded four ways with non-silent truncation markers). Findings render asContinuitynotes anchored to the offending shot pair + issue; deliberate changes the description justifies, single-shot details, and pure framing differences are explicitly not flagged. The check skips the model call entirely when no scene qualifies. Ships a new stage prompt (pipeline-editorial-appearance-continuity) that migrates for existing installs (118). (server/lib/editorial/checkRegistry.js,data.reference/prompts/stages/pipeline-editorial-appearance-continuity.md,scripts/migrations/118-editorial-appearance-continuity-stage.js, Part of #1283, #1467)[issue-1468] Storyboard shot-grammar editor + inline pre-render continuity warnings. The two UI follow-ups to the shot-continuity data model (#1315). (1) Shot-grammar editor — each storyboard shot row now carries framing and screen-direction selects, so you can set/correct the
shotType(extreme-wide → POV) andscreenDirection(faces screen-left / -right / head-on) the deterministicvisual.shot-continuitycheck reasons over — instead of the prior all-or-nothing behavior where hand-editing a shot's description silently cleared both to "not captured." The selects persist immediately (discrete picks, like the wardrobe picker) and an empty value clears the field back to "not captured" (skipped by the check); they explicitly bypass the description-edit reset so an intentional set sticks. (2) Inline pre-render warnings — the same 180°-rule axis-jump and shot-type-monotony hazards the editorial check surfaces in the manuscript review now appear inline in the Storyboards stage (per scene) and aggregated in the Episode Video stage's pre-render panel, so you see a known continuity error before spending render time on the clip — mirroring the inline comic-lettering warning pattern (#1313). The two deterministic detectors are a byte-for-byte client mirror ofserver/lib/editorial/shotContinuity.js(the server check stays authoritative); a newsceneShotWarningscomposer renders them as concise per-scene warnings. (client/src/lib/shotContinuity.js,client/src/lib/shotGrammar.js,client/src/components/pipeline/stages/{StoryboardsStage,EpisodeVideoStage}.jsx, Part of #1283, #1468)[issue-1412] Editorial check classifies unmodeled proper nouns used as character names — the LLM-assisted half of roster economy. A new Unmodeled proper nouns used as character names LLM check (Create → Editorial Checks) closes the gap the deterministic roster economy check (#1292) deliberately left open: that scan only sees canon names + aliases, so a proper noun used as an apparent character name that was never added to the story bible is invisible to it. This check surfaces those — and classifies each one, because a keyword scan can't tell a person from a place, organization, brand, or honorific. It reads the stitched manuscript plus your canon roster (names + aliases) as an exclusion list, flags capitalized proper nouns used as character names that are absent from canon, and calls out throwaway one-appearance names the reader is told to remember but who never recur — suggesting either adding them to canon or recasting them as an unnamed description. Unlike roster economy it runs even on an empty bible (then every named proper noun is a candidate). The LLM does only the judgment it alone can — surface a name and confirm it's a person — while a deterministic pass counts each surfaced name's appearances across the whole manuscript and authors the verdict (one-appearance throwaway vs recurring), so a long book reviewed in chunks never mislabels a name that appears in chapters 1 and 12 as a throwaway (and the same name surfaced from two chunks collapses to one finding). Findings render as
Castingnotes anchored to the issue + a verbatim quote. Ships a new stage prompt (pipeline-editorial-unmodeled-names) that migrates for existing installs (116). (server/lib/editorial/checkRegistry.js,data.reference/prompts/stages/pipeline-editorial-unmodeled-names.md,scripts/migrations/116-editorial-unmodeled-names-stage.js, Part of #1283, #1412)The Local LLM Playground now shows which Ollama models are warm in memory (and which one is processing). The models sidebar reads Ollama's
/api/ps(the same loaded-model probe the Memory Management panel uses) and flags each resident model with a green In memory badge carrying its VRAM footprint, plus a relative "frees in Nm" countdown until Ollama auto-evicts it. While a run is in flight, the model(s) it's driving show a Processing badge with a live spinner — derived from the playground's own in-flight run since/api/psreports residency but not which model is mid-generation. A header chip summarizes "N in memory" at a glance. The loaded list polls every 6s (2s while busy) and refreshes on the manual refresh button. (client/src/pages/LocalLlmPlayground.jsx)[issue-1317] Editorial check flags theme-coherence problems — themes stated but never dramatized, dropped after the opening, or unpaid at the climax (plus emergent-theme detection). A new Theme coherence / thematic throughline LLM check (Create → Editorial Checks) asks whether the manuscript actually delivers the themes the story arc declares (
series.arc.themes), not just names them. For each declared theme it builds a setup → complication → payoff coverage map and flags a theme that is stated but never dramatized through a character's choices or the central conflict, a theme that is dropped after the opening, and a climax that resolves the plot but never lands the thematic argument the setup promised. It also detects a strong emergent theme the story is really telling that isn't in the declared list — offering to add it (or reconciling it when the story drifts into a competing argument). It reads your reverse-outline scene segmentation as context so it can attribute a theme's setup/payoff to a scene + issue, and degrades gracefully — no authored themes ⇒ it works from the prose alone to surface emergent themes; no outline ⇒ it scans the whole manuscript. Whole-arc judgments (a dropped theme, an unpaid climax) are deferred until it has seen the final chunk, and cross-chunk findings + clean-setup digests keep a long book reviewed in pieces from false-flagging a theme whose payoff lands later. Findings render asThemenotes anchored to the issue + a verbatim quote. Ships a new stage prompt (pipeline-editorial-theme-coherence) that migrates for existing installs (115). (server/lib/editorial/checkRegistry.js,server/services/pipeline/editorial/checkRunner.js,data.reference/prompts/stages/pipeline-editorial-theme-coherence.md,scripts/migrations/115-editorial-theme-coherence-stage.js, Part of #1283, #1317)[issue-1316] Editorial health score + revision-trend tracking — manage the draft, not just receive findings. A new Editorial Health panel (Create → Editorial Checks, alongside the findings triage) turns the point-in-time manuscript-review findings into a metric you can steer by. A transparent, deterministic health score (0–100, per series with a per-issue drill-down) is computed from the OPEN findings weighted by severity —
100 − Σ weight(severity)with published weights (high 12 / medium 5 / low 1), so it's never a black box; accepted (fixed) and dismissed (waived) findings cost nothing. A revision-trend ledger snapshots the open-finding counts (by severity + category) on each editorial-checks / completeness run — the run is the revision boundary — so the panel renders a score sparkline across revisions, the most-recent-revision delta, and per-category regressions (a category that got worse after an edit pass). A configurable readiness gate ("no open high findings" by default, or the stricter "no high or medium", or "none") is the convergence signal the UI shows as Ready / Not ready and that the autopilot editorial loop now reads as a final gate (editorialHealthGate): after both editorial passes seed their findings, autopilot pauses with the residual blockers if the manuscript isn't clean — catching a blocker the registry checks surface after the completeness loop converged. The trend ledger is install-local telemetry (data/pipeline-editorial-health/{seriesId}.json, not synced); the score/readiness are derived live from the synced review. Scoring is pure + unit-tested. (server/services/pipeline/editorialScore.js,server/routes/pipeline/editorial.js,server/services/pipeline/{editorial/checkRunner,manuscriptCompletenessRunner,seriesAutopilot}.js,client/src/components/pipeline/editorial/EditorialHealthPanel.jsx,client/src/lib/editorialHealth.js, Part of #1283, #1316)[issue-1315] Storyboard shots now record camera framing + screen direction, and a new editorial check catches film-grammar continuity errors before render. Each storyboard shot gains two film-grammar fields — shot type (extreme-wide / wide / medium / close / extreme-close / over-the-shoulder / two-shot / POV) and screen direction (the side the subject faces or moves: left / right / neutral) — captured by the scene extractor (the teleplay→scenes prompt now asks the model to tag them) and carried on the shot record. A new deterministic Storyboard shot continuity check (Create → Editorial Checks) reads those fields and flags two classic film-grammar mistakes before you spend render time on a clip: a 180-degree-rule axis reversal — a shot that continues from an earlier one but flips the subject to the opposite side of the screen, so they appear to jump sides across the cut — and shot-type monotony, a scene whose shots all share one framing and read as flat, slideshow coverage with no establishing wide or punch-in. Findings render as
Continuitynotes anchored to the offending issue + scene, and (being deterministic) need no LLM. Both fields are backward-compatible and default to "not captured," so older storyboards simply aren't flagged until re-extracted; the extraction-prompt change migrates for existing installs (114). Eyeline-match and appearance/prop continuity (which need a vision/LLM pass) and a hard pre-render render-gate are tracked as follow-ups. (server/lib/shotGrammar.js,server/lib/sceneExtractor.js,server/lib/editorial/shotContinuity.js,server/lib/editorial/checkRegistry.js,server/services/pipeline/editorial/checkRunner.js,scripts/migrations/114-extract-scenes-shot-grammar.js, #1315)Digital Twin federation now syncs your whole identity — taste profile, documents, and autobiography — not just the four core files. The
digitalTwinsync category only ever transferredidentity/chronotype/longevity/feedback, so a peer could read "Digital Twin: synced" while your taste questionnaire, soul documents, and autobiography stories never crossed between machines (they were never wired into the snapshot at all). The snapshot now covers everything underdata/digital-twin/: the taste profile (responses union per section byquestionId, LWW — answers given on either machine survive), meta.json (documents/test-histories/personas union by id, enrichment deep-unioned, settings fill-missing), the.mddocuments themselves (shipped by filename, written add-only so a local doc is never overwritten — with a path-traversal guard on peer-supplied names), and the autobiography (stories union by id with LWW, prompt schedule stays machine-local). The merge is additive and key-presence-guarded, so an older peer that still sends only the four legacy keys can't blank out the new data, and no schemaVersions gate is needed (digitalTwin stays unversioned). The "Digital Twin" sync-category description in the Instances UI now reflects the full coverage. (server/services/digital-twin-sync.js,server/services/dataSync.js,client/src/pages/Instances.jsx)[issue-1312] Editorial check flags cast representation & balance — Bechdel signal, dialogue share, screen-time skew. A new Cast representation & balance check (Create → Editorial Checks) surfaces three coarse, computable casting signals so a lopsided cast doesn't slip by unnoticed: a Bechdel co-presence signal (does any scene put two or more non-male characters on the page together — the structural precondition for two women talking?), dialogue share (does one character dominate the spoken lines — e.g. 80% of all attributed dialogue?), and screen-time balance (is the appearing named cast strongly skewed toward one gender?). Gender is inferred only from each character's canon pronouns field — characters with absent or ambiguous pronouns are left out of the gender-dependent signals rather than guessed — and the co-presence signal reads your reverse-outline scene segmentation, so it stays silent until an outline records who's on the page. Every signal is advisory (representation is an authorial choice) and independently toggleable + threshold-configurable, and the whole check is deterministic — no model call, no new stage prompt. Findings render as
Castingnotes in the manuscript editor. (#1312)Digital Twin federation now syncs your social accounts and analyzed personality traits too. Two pieces of the identity dataset were still being left behind by peer sync. Social accounts (
data/digital-twin/social-accounts.json— your own GitHub/X/LinkedIn/etc. accounts) were owned by an isolated service and never wired into the snapshot at all, so they never crossed between machines. They now sync as part of thedigitalTwincategory — accounts union by id with LWW onupdatedAt, so an account added on either machine survives and the more-recently-edited copy wins a collision; the write routes through the owning service's cache-invalidate + change-event so the UI reflects synced accounts immediately. Separately, the analyzed personality-trait confidence block inmeta.json(the Big-Five + values/communication/decision-making/boundaries/identity dimension scores, gaps, andlastCalculated) was present in the file butmergeMetanever merged it — so a machine that had run the trait analysis couldn't share it, and the receiving peer would have had to reprocess from scratch. The confidence block now merges max-per-dimension (the scores accumulate monotonically as enrichment answers are processed, so the max loses no analysis from either machine), recomputesoverallas the mean of the merged dimensions, and carriesgaps/lastCalculatedfrom the more-recently-calculated side. Both merges are additive and key-presence-guarded, so an older peer that sends neither can't blank the local data. (server/services/digital-twin-sync.js)[issue-1310] Editorial check flags plot-structure & momentum problems — passive protagonist, deus ex machina, idiot plot, flat stakes, sagging middle, dropped subplots. A new Plot structure & momentum check (Create → Editorial Checks) reads your drafted manuscript and surfaces the macro pathologies a developmental editor flags at the arc level: a passive protagonist (events happen to them instead of being driven by their choices), a deus ex machina / convenient coincidence that resolves a problem by luck rather than setup, an idiot plot that only holds together because someone won't say the obvious, flat or unclear stakes that never escalate, a sagging middle with no try-fail rhythm, and dropped subplots — threads that open and then fizzle. It reconciles dropped threads against your reverse-outline plotline tags and your authored reader-map hooks/payoffs, and defers whole-arc judgments (a sagging middle, a never-resolved thread) until it has seen the whole manuscript so a long book reviewed in chunks isn't false-flagged. Findings render as
Plot structurenotes in the manuscript editor, anchored to the issue and (where one exists) a verbatim quote. Ships a new stage prompt (pipeline-editorial-plot-structure) that migrates for existing installs (111). (#1310)[issue-1313] Editorial check flags over-stuffed comic panels (lettering density / balloon load). A new Comic lettering density / balloon load check (Create → Editorial Checks) reads each issue's comic script and counts the lettering load the art has to make room for — the #1 reader gripe in comics being a wall of text crammed into one panel. It flags over-stuffed balloons (a single balloon past ~25 words), over-stuffed panels (more than ~50 words of dialogue + caption + SFX, or more than ~3 balloons fighting for room), and text-heavy pages whose total lettering would overwhelm the illustration — all thresholds configurable, with severity scaled by how far over the limit a panel runs and a fix suggestion (split the balloon, move to a caption, or break into another panel). Findings render as
Letteringnotes in the manuscript editor anchored to the issue/page/panel; the same accounting also surfaces inline in the comic-script stage, so over-stuffed pages warn you as you edit without waiting for an editorial-checks run. The check is deterministic — no model needed. (server/lib/editorial/letteringDensity.js,server/lib/editorial/checkRegistry.js,client/src/lib/letteringDensity.js,client/src/components/pipeline/stages/ComicScriptStage.jsx, #1313)[issue-1311] Editorial check flags head-hopping / POV-discipline breaks within a scene. A new Head-hopping / POV discipline LLM check (Create → Editorial Checks) polices viewpoint discipline in limited-POV prose — distinct from the existing POV justification check (#1295, which asks whether each viewpoint character earns an arc). For each limited-POV scene it flags narration that enters another character's head (reports interior thoughts/feelings the POV character can't know), reports knowledge or perception the POV character couldn't have (offstage events, things behind them), or switches POV mid-scene with no break — and suggests re-anchoring to the POV character's perception or inserting a proper scene break. It reads your reverse-outline scene segmentation as context (each scene's anchored POV character + the other characters on-stage, the candidate heads a hop slips into) and degrades gracefully to a whole-issue manuscript scan when no outline exists yet. It no-ops when the series style guide sets third-person omniscient — there the roaming viewpoint is intentional — and surfaces the configured POV person (first / third-limited / second) to the model so it judges against the discipline actually in force. Each finding anchors a verbatim quote + issue number and names whose head was entered. Ships a new stage prompt (
pipeline-editorial-head-hopping) that migrates for existing installs (112). (server/lib/editorial/checkRegistry.js,scripts/migrations/112-editorial-head-hopping-stage.js, #1311)[issue-1306] Line-edit / copy-edit pass — eight prose-tic editorial checks. A bundle of deterministic copy-edit checks (Create → Editorial Checks) that catch the most common reader pet peeves and editorial red ink, each independently toggleable + configurable: Filter words (distancing verbs — saw/felt/noticed/began-to), Crutch / filler words (just/really/very/suddenly/"in order to"; bare "that" behind a toggle so grammatical "that" doesn't swamp the count), Adverb overuse (
-lyadverbs, with adverb-laden dialogue tags — "said angrily" — flagged at higher severity), Passive voice (be-verb + past-participle heuristic, advisory), Repeated gestures / body-part autonomy (a gesture tally across the manuscript — nodded/smiled/shrugged — plus detached body parts that act on their own, "her eyes followed him across the room"), Word repetition / echoes (a distinctive word repeated within a window, plus repeated sentence openers — "He… He… He…"), and Sentence rhythm & variety (monotonous, uniform-length sentences). All are density-scaled — one "just" is fine, forty is a tic — with house-style allow/extra word lists and per-check thresholds, and ship sensible defaults so they don't drown the author. A ninth, LLM-judged sibling — Telling-not-showing emotion ("she was sad" → dramatize) — handles the false-positive-prone case a keyword scan can't, via a new stage prompt (pipeline-editorial-telling-emotion) that migrates for existing installs (110). The pure scanners live inserver/lib/editorial/proseTics.js+repetition.js(no new deps). Reading-grade level is already covered by the existingstyle.reading-levelcheck. (server/lib/editorial/{proseTics,repetition,checkRegistry}.js,scripts/migrations/110-editorial-telling-emotion-stage.js, #1306)[issue-1307] Dialogue-craft editorial checks — said-bookisms, attribution clarity, on-the-nose dialogue, and per-character voice distinctiveness. Four new checks (Create → Editorial Checks) for dialogue. Two are deterministic: Said-bookisms & non-speech tags flags ornate speech tags ("expostulated", "opined", "interjected") and non-speech actions misused as tags ("'Yes,' she smiled" — you cannot smile a line), matching only verbs adjacent to a quoted span so narrated uses ("the engine growled") are left alone; Dialogue attribution clarity flags long runs of consecutive dialogue lines with no speech tag or grounding action beat, where the reader loses track of who is speaking. Two are LLM-judged: On-the-nose / subtext-free dialogue flags lines that state feeling/meaning outright and "maid-and-butler" exchanges where characters tell each other what they both already know (complements the #1297 info-dumping check); Character voice distinctiveness samples each character's lines to flag (a) interchangeable voices — everyone sounding like one narrator — and (b) drafted lines that contradict the character's canon
speechPattern/speechAccent, producing a per-character voice fingerprint and naming concrete differentiating tics. The voice check closes the gap where those canon fields fed generation only and nothing validated the drafted dialogue against them; it rolls a per-character voice-sample digest across chunks (crossChunkSetup) so a later chunk judges against the full sample, and degrades gracefully (no voice fields ⇒ a pure interchangeability scan). The pure scanners live inserver/lib/editorial/dialogue.js(no new deps); the two LLM stage prompts (pipeline-editorial-on-the-nose,pipeline-editorial-voice-distinctiveness) migrate for existing installs (111, 112). (server/lib/editorial/{dialogue,checkRegistry}.js,scripts/migrations/{111-editorial-on-the-nose-stage,112-editorial-voice-distinctiveness-stage}.js, #1307)[issue-1293] Per-character story arcs + an editorial check that finds the beats where characters actually change. Series now carry an authored
characterArcs[]model — each cast member's want / need, start → end transformation, and explicit transition beats (a decision, realization, point-of-no-return, relapse, or sacrifice, each anchorable to an issue). Edit them inline in the Series Bible (a new Character arcs section, alongside the style guide); the field is local-only-additive and wire-gated (pipelineSeriesschema v6) so a not-yet-upgraded peer can't strip-then-LWW the arcs back. A new Character-arc transitions editorial check (Create → Editorial Checks) reads the drafted manuscript plus the reverse-outline scene map and these authored arcs to (1) detect genuine change moments and propose them as anchored transition beats, (2) reconcile detected vs authored transitions — flagging an undocumented change the prose delivers or an authored transition the prose never pays off — and (3) flag flat arcs: a character who carries the story but never changes. Findings render asCharacter arcnotes in the manuscript editor, highlighting the transition scenes. Ships a new stage prompt (pipeline-editorial-arc-transitions) that migrates for existing installs (109). (server/lib/seriesCharacterArc.js,server/lib/editorial/checkRegistry.js,server/services/pipeline/{series,editorial/checkRunner}.js,client/src/pages/PipelineSeries.jsx, #1293)[issue-911] Mood Boards — an inspiration canvas that feeds the Create suite. A new Mood Boards page (Create → Mood Boards, deep-linkable at
/mood-boardsand/mood-boards/:id, reachable via ⌘K / voice as "mood board" / "inspiration" / "references") for collecting visual + textual references, distinct from raw Media History. Create named boards with a description, then pin items: an image (external/pinned URL, or an app path like/data/images/…) or a text note, each with an optional caption and source backref. Items live inline in the board record; the canvas renders an image grid with inline-editable captions and an inline-confirm delete. Boards are db-primary and local-only — one row per board in the newmood_boardsPostgres table (full record indataJSONB, modeled oncreative_director_projects: no sync cursor/tombstone in v1), provisioned by both the boot-timeensureSchema()upgrade andinit-db.sqlwith an audit trigger, registered via migration 108. Every write locks the board row (SELECT … FOR UPDATE) so concurrent add/edit affordances can't clobber each other. Cross-surface "Pin to mood board" affordances and a board picker in the universe/scene/treatment creation flows are tracked as a follow-up. (server/services/moodBoard/,server/routes/moodBoard.js,server/lib/moodBoardValidation.js,client/src/pages/{MoodBoards,MoodBoardDetail}.jsx,client/src/services/apiMoodBoard.js, #911)Tribe gains a concentric-circles Map view + an "External" classification. A new Map tab on the Tribe page (Brain → Tribe) renders your relationships as nodes orbiting a central "Me" hub: each Dunbar ring is a concentric band (Support innermost → Village outermost), subtly tinted in its theme color, and each person is placed inside their ring's band — using an equal-area, golden-angle (sunflower) distribution so a crowded ring thickens into an organic cluster instead of cramming nodes onto a line. Each node's fill encodes energy (nourishing/steady/complex/draining) and its outline encodes cadence status (overdue/due-soon/on-track/no-touchpoint), so a glance shows both who's close and who needs care. Hover a node for a name/relationship/status tooltip and a one-click "log touchpoint"; click it to jump to the Circle tab with that person selected for editing. A new External classification covers people outside the active tribe — those known or previously known who've moved out of your circle (drifted acquaintances, a nemesis): it's uncapped, carries no care cadence (excluded from the Care Queue and the overdue/coming-up/capacity counts, and its nodes show a neutral status outline that never nags). On the map, external people aren't a ring — they fill the open canvas outside the solid "edge of tribe" perimeter (the annulus and the square's corners), packed with a clipped sunflower whose node size auto-shrinks as the population grows, so the layout stays uniformly dense and on-canvas even with hundreds of external contacts. Pure SVG — it scales, prints, and works on mobile with no WebGL/canvas dependency. The shared ring/energy/cadence logic was extracted into
client/src/lib/tribe.js(withhexswatches,TRIBE_RINGS, and aninitialsFornode-glyph helper) so the page and the map share one source of truth; theexternalring value is additive on the app-layer enum (server/routes/tribe.js,server/services/tribe.jsDEFAULT_RING_CADENCE) with no DB migration sincetribe_people.ringis an unconstrainedVARCHAR. (client/src/components/tribe/TribeCircleMap.jsx,client/src/lib/tribe.js,client/src/pages/Tribe.jsx,server/routes/tribe.js,server/services/tribe.js)The series pipeline list now shows a cover thumbnail on each series card. Like the reference-image thumbnail on the Universe list, each series in Pipeline now leads with a small thumbnail of its graphic-novel cover — the first rendered volume (trade-paperback) cover, falling back to the earliest rendered issue cover — so you can recognize a series at a glance instead of reading names. The thumbnail filename is persisted onto the series record (
series.coverImage) rather than computed at list time, so the list stays cheap (no per-series issue scan): the two cover filename hooks stamp it when a cover render completes, and a one-time, marker-gated boot backfill (data/series-cover-backfill.applied.json) derives it for series whose covers rendered before this shipped. Volume covers come straight off the series record (free); the issue fallback is only scanned when no volume cover exists. The field is wire-gated (pipelineSeriesschema v5) so an older peer can't strip-then-LWW the pointer back, and the card falls back to a book icon when no cover exists yet (or 404s on a peer that synced the pointer but not the bytes). (server/services/pipeline/seriesCoverImage.js,server/services/pipeline/series.js,server/services/pipeline/{comicPagesFilenameHook,seasonCoverFilenameHook}.js,server/scripts/backfillSeriesCoverImages.js,client/src/pages/Pipeline.jsx)Enrich a Universe noun — and refine a Universe style — from a reference image. The Universe Bible's "Describe from image" modal now takes reference images from your gallery as well as uploads, and for characters it can do more than write the descriptor paragraph: a new Build character details action has a vision model read the reference image(s) and propose values for the character's still-blank structured fields (pronouns, age, visual notes, color palette, expressions, …). The proposals are shown for review — uncheck any, edit the text inline — and applied through the normal entry-patch path, so existing values are never overwritten (no-clobber, characters-only). Separately, the Refine Prompts form gains an optional style-reference image: pick one from the gallery and the refiner runs through a vision-capable provider, folding the image's palette/lighting/mood into the universe's
influences+styleNotes. Both vision paths require an API provider with a vision model and reject a silent fallback to a non-vision provider rather than hallucinating from text alone; the vision provider/model pickers scope local (Ollama/LM Studio) backends to vision-capable models. Relatedly, a model-not-found error no longer benches the whole provider — that's a bad model id in one request, not a provider outage, so (like a content refusal) the single call still falls back but the provider stays available for its other working models (previously one bad model id could take Ollama offline for 30 minutes). (server/services/universeVisionExpand.js,server/services/universeBuilderRefine.js,server/routes/universeBuilder.js,server/lib/promptRunner.js,client/src/components/universe/VisionDescribeModal.jsx,client/src/pages/UniverseBuilder.jsx)[issue-1431] Legacy Export can now include a rendered PDF portrait. Phase 2 of the Legacy Export (#901) bundle: pass
includePdf: truetoPOST /api/legacy-exportand the.zipgains alegacy-portrait.pdfrendered from the same per-section Markdown the bundle already produces — title page, per-section pages, heading sizing, word-wrapped body, and bullet/quote handling. It uses the already-presentpdf-libdependency (the same primitives as the comic-pages PDF — no new package) and degrades non-ASCII glyphs (VO₂, smart quotes, em-dashes, ⚠️) to WinAnsi-safe text so a stray Unicode character can't fail the render. The PDF is hashed intomanifest.jsonlike every other file and the manifest'spdf.includedflag (previously hard-false) now reflects it, with the file name recorded underpdf.file. DefaultincludePdfis false — the Markdown/JSON bundle stays the primary artifact. (server/services/legacyExport.js,server/routes/legacyExport.js,server/lib/validation.js, #1431)[issue-1432] Generate and download your Legacy Bundle from the UI. Phase 3 of Legacy Export (#901): a new Legacy tab under Digital Twin (
/digital-twin/legacy, reachable via ⌘K / voice as "legacy bundle") puts a user-facing surface on top of the Phase 1 server endpoints. It previews each identity section (with record counts and an estimated bundle size fromGET /api/legacy-export/preview), lets you check/uncheck which sections to include — present sections default to selected — and on Generate & Download streams the.zipfromPOST /api/legacy-exportstraight to a browser download with a date-stamped filename and a success toast. Selecting all present sections sends no filter (so a future section is included by default); a subset sends the explicit list. Per-section build progress arrives over the existinglegacy-export:progress/:completedsocket events. The bundle preview now stamps each section with its humanlabelso the UI need not duplicate a key→label map. A small shareddownloadBlob()helper (client/src/lib/downloadBlob.js) collapses the inline object-URL +<a download>dance (also adopted by the soul ExportTab). (client/src/components/digital-twin/tabs/LegacyExportTab.jsx,client/src/services/apiDigitalTwin.js,server/lib/navManifest.js,server/services/legacyExport.js, #1432)[issue-1433] Legacy Export polish — richer Key Decisions, a smaller (compressed) download, and a large-bundle warning. Phase 4 finishing work on the Legacy Export (#901). The Key Decisions section is now derived from more of your existing data: completed goals (not just completed milestones) plus Brain notes you tagged or titled as a decision (
decision,chose,pivot, …), deduped and dated newest-first — so the section reflects the choices you already record without any new place to enter them (an architecture-decision record explains why this stays a derivation rather than a new entity). The downloaded.zipis now compressed (deflate, falling back to stored for files it wouldn't shrink), so a text-heavy identity bundle downloads much smaller — byte-for-byte identical on extract, and the manifest checksums are unchanged. And the Legacy tab now shows a large-bundle warning when the estimated export is unusually big (it tells you which section is driving the size and never silently truncates your data). The Knowledge Legacy goal status inGOALS.mdis updated to reflect the shipped export. (server/services/legacyExport.js,server/lib/zipWriter.js,client/src/components/digital-twin/tabs/LegacyExportTab.jsx,docs/decisions/2026-06-19-legacy-export-decisions-source.md, #1433)[issue-1300] Editorial checks flag five prose anti-patterns (weak openings, mirror self-description, empty pleasantries, italic thoughts, darlings). A bundle of line/scene-level checks (Create → Editorial Checks) for the well-known tells that pull readers out. Four are LLM checks over the drafted manuscript: Weak opening flags clichéd or mis-placed openers — "he wakes up" / alarm-clock / dream starts, weather-and-scenery preambles, and scenes that begin before the interesting moment; Mirror self-description catches the tired trick of a character studying their reflection so the prose can catalog their looks, while leaving reflections that do real story work alone; Empty greeting / small-talk openings flags scenes that open on greeting rituals or logistical filler that carry no tension or information, while sparing pleasantries laced with subtext; Kill your darlings surfaces precious, self-indulgent passages — showpiece descriptions, digressions, over-explaining, favorite lines that stop the scene — as cut candidates, judged by story need rather than quality (complementing the dead-metaphor check, which targets stock rather than precious prose). The fifth, Italicized internal thoughts, is a deterministic, high-precision scan that flags multi-word
*…*/_…_italic thought runs (the prose is already in the character's perspective, so italicizing a thought is a tell) while leaving single-word emphasis, bold, andsnake_casealone, with a configurable word threshold. All findings anchor a verbatim quote + issue number; the LLM checks ship four new stage prompts (pipeline-editorial-{opening-start,mirror-description,dialogue-pleasantries,kill-your-darlings}) that migrate for existing installs (103–106), the deterministic check needs no model. (server/lib/editorial/{italicThoughts,checkRegistry}.js) (#1300)[issue-1309] Editorial checks flag thin sensory writing and ungrounded "white-room" scenes. Two new prose checks (Create → Editorial Checks) target two of the most common reader gripes about flat scene writing. Sensory balance reads your drafted manuscript and flags scenes that lean almost entirely on sight while sound, smell, touch, and taste go neglected, plus sensory-bare scenes with almost no concrete grounding at all — naming exactly which sense is missing and suggesting a grounding detail to add. White-room / ungrounded scene flags "talking heads in a void": dialogue and action playing out with no setting, no physical blocking, and no spatial grounding the reader can stand in — distinct from sensory balance (which is about senses) and scene-component balance (narrative/action/dialogue mix) in that the gap here is specifically place. Both read your reverse-outline scene segmentation as context (using each scene's recorded setting as a white-room signal) and degrade gracefully to a whole-issue manuscript scan when no outline has been generated yet. Each finding anchors a verbatim quote + issue number so you can jump straight to the spot. Two new stage prompts (
pipeline-editorial-sensory-balance,pipeline-editorial-white-room) ship + migrate for existing installs. (#1309)[issue-1407] The LoRA-training form now exposes the per-run base-quant and low-RAM overrides. The
baseQuant(bf16 / 8-bit / 4-bit) andlowRamrequest params landed server-side under #1321 — schema, route threading, and theLORA_TRAIN_MAX_QUANT_BITScap — but the training form had no controls for them, so opting a single run into a heavier or lighter frozen base than its memory-derived tier still meant a code change. The Train-LoRA panel now has two Base quant and Low RAM spill selects (both defaulting to Auto); an explicit pick overrides the tier — still clamped by the install'sLORA_TRAIN_MAX_QUANT_BITSceiling — while "Auto" sends an explicitnullthat forces the memory-derived tier. (Thenullis a deliberate clear, not an omitted key: the server re-mergessettings.loraTraining.defaultsinto every run, so an omitted key would silently keep a saved default —nulllets "Auto" actually beat one.) The controls only show when the mflux engine is the one that'll run; the torch/FLUX2 path trains the bf16 base and ignores them. (client/src/components/loraTraining/TrainingPanel.jsx,server/lib/validation.js, #1407)Each managed app now declares where its autonomous work items live — PLAN.md, GitHub issues, GitLab issues, or JIRA. Previously the CoS could only claim work from PLAN.md (
plan-task) or GitHub issues (claim-issue) via separate per-app toggles. A new per-app Work Tracker setting (App settings → Edit) makes the work source a single explicit choice. It defaults to Auto, which resolves from the app's gitoriginhost: a github.com remote → GitHub issues, a gitlab.* remote (incl. self-hosted) → GitLab issues, anything else → PLAN.md (JIRA is always an explicit opt-in). A newclaim-workscheduled task is the single-source router: one toggle that, at dispatch, resolves the app's tracker and delegates to the matching claim flow — so the same agent still creates its ownclaim/<slug>worktree, opens its own PR/MR, and cleans up. GitLab issue claiming is genuinely new: aclaim-issue-gitlabprompt drives the full 7-phase/claim --issuesflow overglabissues + merge requests (the GitHubclaim-issueflow is untouched). The legacyplan-task/claim-issue/jira-sprint-managertask types remain for backward compatibility. NewGET /api/apps/:id/work-trackerresolves the effective tracker for the UI. (server/lib/workTracker.js,server/services/{cosTaskGenerator,taskSchedule,apps}.js,server/services/taskPromptDefaults/prompts.js,server/routes/apps.js,client/src/components/apps/EditAppModal.jsx)CyberCity buildings now have real lit-room windows you can look into. Online towers in the 3D city (CyberCity) render parallax interior-mapped window panes via the three-fenestra shader — a
MeshStandardMaterialthat fakes furnished 3D rooms behind flat glass, so as the camera moves you see into lit (and unlit) rooms rather than a flat emissive texture. Each building is a single instanced draw call: a deterministic per-pane seed drives the room-cell pick and per-window lit/unlit + warm/cool lighting entirely on the GPU, with the cool tone pulled toward the building's neon accent so windows stay in-family with the scene. The effect is night-only (by day a tower reads as a sunlit solid) and gated to the high quality preset and above, so medium/low machines keep the lighter flat-texture facade. (client/src/components/city/BuildingWindows.jsx,client/src/utils/cityInteriorWindows.js,client/src/components/city/{Building,Borough}.jsx)[issue-904] Generate N alternative image-gen prompts from one script fragment. Comic panels and storyboard scenes already had an "AI: refine" button that rewrites a description in place into a single richer image-gen prompt. A new "AI: N prompts" action sits alongside it and instead generates several candidate prompts from the same fragment — non-destructively. A count picker (1–6) in each stage's toolbar controls how many; the candidates render in a list under the row where you can Copy any to the clipboard (to paste into Image Gen) or Use one to apply it to the description. Sampling variance across the independent LLM calls yields genuinely different takes on the same beat. Partial failure is tolerated — a few provider hiccups still return the survivors; only an all-failed batch errors. Reuses the existing
pipeline-comic-panel-image-prompt/pipeline-storyboard-image-promptstage templates (no prompt change, so no migration). NewPOST .../panels/:i/image-promptsand.../scenes/:i/image-promptsroutes. (server/services/pipeline/{visualStages,refineHelpers}.js,client/src/components/pipeline/{ImagePromptCandidates.jsx,stages/{ComicPagesStage,StoryboardsStage}.jsx}, #904)Tribe — a relationship manager for rings, care cadence, focus lists, and touchpoints. A new Tribe page (Brain → Tribe, also reachable via ⌘K / voice) lets you organize the people in your life into Dunbar-style rings (Support / Core / Tribe / Village), each with a default check-in cadence; log touchpoints (manual or sourced from a calendar event), track per-person energy/next-move/notes, and link people to Brain memories. People, touchpoints, and memory links live in Postgres (
tribe_people,tribe_touchpoints,tribe_memory_links) so they can be joined to Brain memories and carry calendar event references for future scheduling work — provisioned by both the boot-timeensureSchema()upgrade andinit-db.sql(with audit triggers on people/touchpoints), and exercised by route + service tests. The page reconciles live against atribe:changedsocket broadcast (covers other tabs/devices) and falls back to a one-shot import of any legacylocalStoragecontacts on first load. New/api/triberoutes + service; relationship data is currently machine-local (the tables carry no sync columns). (server/routes/tribe.js,server/services/tribe.js,server/lib/db.js,server/scripts/init-db.sql,client/src/pages/Tribe.jsx,client/src/services/apiTribe.js, #1436)[issue-901] Legacy Export — download your whole identity as a portable bundle (server foundation). A new
POST /api/legacy-exportendpoint gathers your identity across every PortOS domain — digital-twin prompt, autobiography, brain notes, memories, goals + milestones, key decisions, and a health summary — into a single self-contained.zipof human-readable Markdown plus machine-readable JSON and a SHA-256manifest.json. The bundle is readable with zero PortOS running (plain files, no database), opens with a privacy banner, and degrades gracefully when a domain is empty. Secrets accidentally pasted into notes are redacted before anything leaves the box.GET /api/legacy-export/previewreports which sections are present and the estimated size without building the file. This is the server core of the Knowledge Legacy export; PDF rendering and a one-click UI are tracked as follow-ups. (#901)[issue-902] Workspace Contexts — save and restore a project's full working context. A new Workspaces view (Dev Tools → Workspaces) lists every active app/project and, for each, captures the working context you'd otherwise have to rebuild by hand: the repo's current git branch (plus dirty/clean state), the live shell sessions rooted in that repo, and the CoS/user tasks scoped to it (the PortOS project also collects its
_self/unscoped tasks). Save snapshots that context; Restore reconciles the snapshot against what's live now — reporting which saved shell sessions are still alive (re-attachable, one click to open in the Shell page via its existing attach/claim contract) versus gone, and whether the saved branch is still checked out. It's deliberately read-only with respect to your work: it never stashes, switches branches, or kills/respawns shells, so an open editor or uncommitted changes are never clobbered (the #902 hard constraints). Deep-linkable (/workspace-contextsand/workspace-contexts/:appId), reachable via ⌘K / voice. Stored machine-local indata/workspace-contexts.json(shell sessions and repo paths are machine-specific — a context never federates). New endpoints under/api/workspace-contexts. (server/services/workspaceContext.js,server/routes/workspaceContexts.js,client/src/pages/WorkspaceContexts.jsx,client/src/services/apiWorkspaceContexts.js) (#902)[issue-899] Knowledge Graph now includes Goals and Daily Log entries. The Brain Graph 3D view (Brain → Graph) extends from the five brain entity types to a full knowledge graph: active Goals and Daily Log journal entries now appear as colored nodes (orange for Goals, teal for Journal) and connect to related entities via semantic similarity and tag overlap. Goals show a progress bar, horizon, and target date in the detail panel; journals link by shared vocabulary in their embedded content. (#899)
[issue-898] Goal Decomposition Engine — auto-decompose a goal into milestones pre-populated with tasks. Goals already had AI phase-planning, but
Generate Planonly produced flat milestones with no tasks — you then hand-added every todo. A new Decompose into Tasks action (Goals → a goal's Plan section) turns a high-level goal into 3–7 ordered milestones, each carrying 2–5 concrete, estimated tasks (priority + minute estimate), in a single LLM pass. The proposal is fully reviewable before accept — reorder milestones, edit titles/descriptions, drop tasks or whole milestones — and onlyAccept Taskspersists it, normalizing each task with its own id andpendingstatus (mirrors the existing generate→accept-phases review flow). Accepted tasks render nested under their milestone with check-off, and unlike phase-planning, decomposition works without a goal target date (relative ordering only). Server addsdecomposeGoal/acceptGoalDecomposition/completeMilestoneTask(file-backed ingoals.json, mirrored to MortalLoom iCloud — no Postgres migration) with three new validated routes; existing goals lazily gainmilestone.tasks = []on load with no data loss. (server/services/identity/goals.js,server/lib/identityValidation.js,server/routes/identity.js,client/src/hooks/useGoalDetail.js,client/src/components/goals/{GoalPlanSection,GoalMilestones}.jsx, #898)[issue-1298] Editorial checks flag soft chapter endings and missed POV cut-aways. Two new pacing checks (Create → Editorial Checks) enforce the serial-fiction rule that every chapter is an episode. Chapter-ending cliffhangers (LLM) reads your drafted manuscript and flags chapter/issue endings that resolve and settle — "soft landings" that tie everything off mid-story instead of ending on an unresolved beat that pulls the reader forward — escalating severity when a mid-story chapter fully closes the very question that should carry the reader on, while leaving a clearly terminal final chapter alone. It reconciles detected endings against the authored reader-map cliffhangers you've logged on the series arc. Cliffhanger POV switch (deterministic) reads your reverse-outline POV map: in a multi-POV story, when a chapter ends on an authored cliffhanger the next chapter should cut to a different POV character to sustain the tension — so it flags each authored cliffhanger whose following chapter keeps the same viewpoint. It no-ops for single-POV series and when no cliffhangers are authored. One new stage prompt (
pipeline-editorial-endings-cliffhanger) ships + migrates for existing installs. (#1298)[issue-1295] Editorial check flags point-of-view characters who don't earn their viewpoint. A new POV justification editorial check (Create → Editorial Checks) reads your reverse-outline scene segmentation — which already tags who holds POV in each scene — and surfaces two viewpoint problems. First, a POV without an arc: a character we spend scenes inside who has no detected character arc (their arc reads flat, or they don't show up in the story's detected arcs at all) — a viewpoint that exists only to deliver information, with no arc and no stakes, should be cut or folded into another POV. Second, the inverse — a drive-by POV: a character who holds the viewpoint in only a single scene, a one-off head-hop that reads as a structural seam. Each finding names the character and anchors to the scene where their viewpoint begins. The drive-by threshold and whether to run the no-arc check are configurable, and the no-arc check degrades gracefully — when there's no arc information yet (no analysis has run, or the series is only partially analyzed), it stays silent rather than guessing, while the structural drive-by check keeps working. Requires a generated reverse outline. (#1295)
[issue-1299] Editorial check flags broken setups and payoffs (Chekhov's guns). A new Chekhov's guns (setups & payoffs) editorial check (Create → Editorial Checks) reads your drafted manuscript across the whole series and enforces the craft rule things planted must go off; things that go off should have been planted. It tracks concrete planted elements — weapons/objects/clues, secrets, stated fears, promises/vows, threats, and notable skills — and flags the two failure modes: planted, never fired ("the locked drawer in Issue 2 is never opened," "Mara's fear of water is set up but never confronted") and fired, never planted ("the antidote appears in Issue 7 with no prior setup"). Because a setup and its payoff can sit chapters apart, the check carries a rolling cross-chunk digest of what's been planted-but-not-yet-paid so a late payoff isn't mis-flagged "no setup" and a never-fired plant is still caught at the end. It also reconciles its detected setups/payoffs against the authored reader-map hooks/payoffs you've logged on the series arc, so an authored hook with no payoff in the prose surfaces as a strong finding. Each finding classifies the problem in its location, anchors a verbatim quote + issue number, and suggests the fix (plant earlier, pay off later, or cut). Runs on demand or as part of Series Autopilot's editorial pass; one new stage prompt (
pipeline-editorial-chekhov) ships + migrates for existing installs. (#1299)[issue-1308] Editorial checks flag clichés, mixed/dead metaphors, and overwriting. Three new style checks (Create → Editorial Checks) target tired and overwrought language — the stock phrasing that pulls readers out. Cliché phrases is a deterministic scan of a seed list of stock similes/idioms ("time stood still", "little did they know", "all hell broke loose"), anchored to the issue it appears in and deduped so a repeated cliché is one tic to fix, not many; a per-series house-style allowlist mutes intentional clichés in a character's voice, and an extra-phrases list adds your own. Overwriting — stacked adjectives/adverbs is a deterministic, high-precision flag for cumulative no-comma piles of three-or-more modifiers ("big red shiny new"), with the run length configurable. Dead / mixed metaphor & overwriting is the LLM judgment layer that catches what the lists can't — metaphors that collide or have gone invisible, lightly-reworded novel clichés, and purple prose — while leaving knowingly in-voice clichés alone. Severity is advisory; findings anchor a verbatim quote + issue number so you can jump straight to the spot. The deterministic checks need no model; the LLM check ships one stage prompt (
pipeline-editorial-dead-metaphor) that migrates for existing installs. (server/lib/editorial/cliches.js,server/lib/editorial/checkRegistry.js) (#1308)[issue-1296] Editorial check flags flat, single-mode scenes. A new Scene component balance editorial check (Create → Editorial Checks) reads your reverse-outline scene segmentation and flags scenes that lean on a single mode — a wall of narration, talking heads with no action, or pure action with no interiority or voice. The craft rule is that a scene should mix at least two of narrative, action, and dialogue; the check names exactly which modes a flagged scene is missing and suggests how to ground it, anchoring to the issue the scene belongs to. The minimum (default 2 of 3, up to all 3) is configurable, and scenes the outline hasn't classified are left alone rather than false-flagged. Requires a generated reverse outline. (#1296)
[issue-1294] Editorial check flags POV scenes with thin protagonist interiority. A new Protagonist interiority editorial check (Create → Editorial Checks) reads your drafted manuscript and flags POV scenes that move a viewpoint character through events without ever getting us inside their head. It scores each POV scene across four distinct dimensions — mind (their thoughts and feelings in the moment), objective (what they want here and why), emotional response (to twists, betrayals, shocks), and decision (the reasoning behind their choices) — and surfaces the gaps: "we're in X's POV but never learn what they want," "a betrayal lands with no emotional response," "X decides but we don't see the reasoning." Each finding names which dimension is missing in its location so you can group gaps by kind, anchors a verbatim quote + issue number so you can jump straight to the spot, and scales severity by how POV-central the scene is. POV is read from the prose, so the check works even before scenes are explicitly POV-tagged. Runs on demand or as part of Series Autopilot's editorial pass; one new stage prompt (
pipeline-editorial-interiority) ships + migrates for existing installs. (#1294)[issue-1292] Editorial check flags throwaway names, crowded openings, and an oversized cast. A new Character roster economy editorial check (Create → Editorial Checks) reads your cast against the drafted manuscript and surfaces three reader-economy problems: named characters who appear in only one issue (a named body the reader is told to remember but who never recurs — cut them, merge them, or leave them unnamed), too many named characters crowded into the opening issue (which makes it hard to tell who matters), and an oversized roster relative to the story's length (advisory). It counts appearances by name and alias, leaves never-appearing canon characters alone (they may simply be undrafted), and scales severity with story length. All three thresholds are configurable, and findings anchor to the issue where each name is introduced so you can jump straight there. (#1292)
[issue-1356] Your series' ticking clock now steers the beat sheets. If a series has a ticking clock / countdown the reader is anticipating (the deadline, the bomb, the failing life-support), the idea / beat-sheet stage now folds that countdown into its prompt — so generated beats plant it early, keep it present through the middle, escalate the pressure toward its due point, and don't resolve it prematurely or forget it. The arc-level prompts already used the clock; this extends it to the per-issue beats that the prose draft hangs from, so the anticipation carries all the way down. It only kicks in when the clock is toggled on; a draft clock you've switched off never steers generation. (#1356)
[issue-1346] Author your own editorial checks from the UI — name + prompt + scope, no code. The Editorial Checks page (Create → Editorial Checks) gains a New custom check button: give it a name, describe in plain language what to look for in the manuscript, pick a scope/category/default severity, and save — PortOS turns it into a real LLM editorial check with no code change. You only write the what; the manuscript and the required findings-JSON output format are appended automatically, and the response is parsed by the same machinery the built-in checks use. Custom checks behave exactly like built-ins everywhere downstream: they appear in the catalog (with a custom badge + edit/delete), enable/disable and configure through the same toggle/config controls, run on demand or as part of Series Autopilot's editorial pass, chunk a long manuscript to the provider's context window, and seed findings into the manuscript review for the existing jump-to / AI-fix / accept-dismiss flow. Definitions live in your settings (
pipelineEditorialChecks.customChecks); the authoring form is deep-linkable (?custom=new/?custom=<id>). New endpoints:POST/PATCH/DELETE /api/pipeline/editorial/custom-checks. (server/lib/editorial/checkRegistry.js,server/lib/stageRunner.js,server/services/pipeline/editorial/checkRunner.js,server/routes/pipeline/editorial.js,server/lib/validation.js,client/src/components/pipeline/editorial/EditorialCustomCheckForm.jsx,client/src/components/pipeline/editorial/EditorialCheckCard.jsx,client/src/pages/PipelineEditorialChecks.jsx,client/src/services/apiPipeline.js) (#1346)[issue-1321] Override a LoRA run's base-model precision and memory mode per run. A training run can now opt into a heavier or lighter frozen base than the one PortOS picks from your free memory, without editing any code: start a run with a
baseQuant(16 = full bf16, or 8 / 4-bit QLoRA) and/or alowRamtoggle, and that run uses exactly those settings on the mflux engine. Leaving them unset keeps the existing automatic, memory-derived tier, so nothing changes for runs that don't ask. As a safety backstop, a per-run request still can't exceed an install'sLORA_TRAIN_MAX_QUANT_BITScap — the guard that keeps M5-class machines off the bf16 path that GPU-watchdog-panics them. (#1321)[issue-1330] Phase-aware stall watchdog catches a wedged GPU mid-training and auto-resumes from the newest checkpoint. The training job queue's idle watchdog only trips on total silence (no runner output for 30 minutes) — but a soft GPU hang during mflux/FLUX.2 training is invisible to it, because the trainer's heartbeat and telemetry threads keep emitting lines while the step loop is wedged, perpetually resetting the flat timer. PortOS now runs a phase-aware stall detector that keys off the trainer's
STAGE:/STEP:line protocol: once steps are flowing it derives a per-step budget from the observed step rate (a few × the slowest recent interval, floored and capped below the flat watchdog) and enforces it only duringSTAGE:training— model-load, dataset-encode, mid-training sampling, and inter-segment cooldown stay on the generous flat watchdog so a legitimately slow phase is never false-killed. When training genuinely stalls, the wedged child is SIGKILLed immediately (SIGTERM relies on the GIL the hang holds) and the run auto-resumes from its newest checkpoint via the existing resume path — bounded to a couple of attempts per run so a config that wedges every segment can't resume-loop forever, after which the run stays failed for manual resume. This recovers soft hangs faster; it does not address the hard-reboot kernel panics (checkpoint-resume already covers those, since the machine is gone before any userspace watchdog runs). Off-switch:settings.loraTraining.stallWatchdog = false. (server/services/loraTraining/stallDetector.js,server/services/loraTraining/index.js,server/lib/validation.js) (#1330)[issue-1335] Import can clean up paste/PDF formatting with AI as it brings a manuscript in. Text imported from a PDF or paste arrives mangled — hard-wrapped lines, split drop-caps, hyphenated wraps, orphaned quotes — and until now every imported issue needed a manual Reformat pass in the editor afterward. The import Review panel gains an optional Clean up formatting with AI checkbox (off by default): when ticked, each issue's excerpt is run through the same word-preserving reformat pass the editor's Reformat button uses, so manuscripts (and comic scripts / screenplays) land already-clean. It's best-effort — a reformat that fails or would change any wording silently keeps the original text, so an import never breaks — and a live per-issue checklist shows progress while it runs. Left off by default because it's one AI pass per issue, so a large import opts in deliberately. (#1335)
[issue-1325] Video renders now record the exact runtime they ran on — and you can see it at a glance. Garbled or "mosaic" video output is often a per-chip/per-runtime numerical quirk rather than an outright crash, and until now a render left no trace of the stack that produced it. Each local video render now stamps a one-line runtime fingerprint — the resolved ltx/mlx (or torch+CUDA on Windows) versions plus your chip, OS, and Python — into the render log and onto the saved history record, so a problem render self-documents the environment that made it. The Video Gen status header also shows your host chip/OS and the installed runtimes' versions on demand, without running a render — so a bug report can carry the version info that makes it actionable. (#1325)
[issue-1324] Catch corrupt model weights and repair them in one click. A download that finished with the right file size but wrong bytes (an interrupted resumable fetch, bit-rot) silently decodes to garbled "mosaic" renders that a clean re-download fixes — a leading non-hardware cause of bad output. PortOS now checks downloaded model weights for integrity: a fast structural scan of each
.safetensorsheader (catches truncation without loading any tensors) runs automatically and is surfaced on the image- and video-gen model status, plus an optional deep per-file checksum scan on demand. When the Video Gen model you've selected has damaged weight files, a Repair model banner appears that deletes the bad files and re-downloads clean copies with progress — no need to wipe and re-fetch the whole multi-GB model by hand. (#1324)[issue-1376] Repair a corrupt text encoder, too — not just the video model. The integrity scan already flagged a damaged shared text encoder (the Gemma encoder every video render depends on), but there was no way to fix it from the UI — the one-click Repair only covered the selected model's own weights. Now when the text encoder has damaged files, a Repair encoder banner appears on the Video Gen form that deletes the bad files and re-downloads clean copies with progress, exactly like the model repair — so a garbled render caused by a bad encoder is one click to fix instead of a manual cache wipe. (#1376)
[issue-1305] Continuity bible — an established-facts ledger for your series. A new Series Continuity view (linked from the series page) builds a ledger of the concrete, checkable facts your story has committed to — the kind a later scene could contradict. Facts are auto-seeded from universe canon (each character's physical description, each place/object's description; locked canon is flagged as ground truth) and then learned from the drafted prose via an LLM extraction pass, sorted into seven buckets: physical traits, ages & birthdays, dates & elapsed time, locations & geography, possessions & wardrobe, world rules, and who-knows-what-when. Each fact shows its subject, the assertion, a canon/prose badge, and — for prose facts — a verbatim anchor quote and a deep-link to the issue where it was established. Generation streams live progress; the ledger flags itself stale when the manuscript or canon changes so you know to rebuild. This ledger is the substrate the upcoming contradiction checks (canon-contradiction, timeline, knowledge-leak, wardrobe/prop/injury) will read rather than re-deriving. New endpoints:
GET /api/pipeline/series/:id/continuity-bible+POST …/generate(with SSE progress + cancel); one new stage prompt (pipeline-continuity-bible) shipped + migrated for existing installs. (#1305)[issue-1304] Read aloud — proof a manuscript section by ear with synced karaoke highlighting. Reading prose aloud is one of the most effective proofing techniques: clunky rhythm, tongue-twisters, repeated words, and unnatural sentences are obvious to the ear and invisible to the eye. The Manuscript Editor gets a Read aloud button (in the header, next to Impact preview) that opens a read-along panel for the active section. It synthesizes the section's prose with the same local TTS engines that already voice storyboard dialogue (Kokoro/Piper — no new dependency, no network), splitting the text into sentence segments so it can highlight each sentence as it's spoken (karaoke-style) and let you click any sentence to jump there. Sync needs no word-level timestamps: the server measures each sentence's WAV duration and the client plays the segments back-to-back, driving the highlight + a progress bar from those durations. A pick-a-narrator-voice control (remembered across sessions) reuses the shared VoicePicker. Each sentence also carries a lightweight "hard to say" scan — over-long sentences, hard consonant clusters, alliteration runs, and a word repeated in close proximity get a wavy underline + hover tooltip so likely trouble-spots are visible before and while you listen. Narration is strictly non-destructive — it only reads the section's current text and never mutates the manuscript. New endpoint:
POST /api/pipeline/tts/narrate(text → per-segment audio + duration + readability). (server/services/pipeline/manuscriptNarration.js,server/services/pipeline/audio.js,server/routes/pipeline/audio.js,client/src/components/pipeline/manuscript/ManuscriptReadAloud.jsx,client/src/pages/PipelineManuscriptEditor.jsx,client/src/services/apiPipeline.js) (#1304)[issue-1320] Character-LoRA caption lint — warn when identity leaks into captions, and strip it in one click. When every caption for a character repeats the same invariant features ("white hair, circlet, tooth necklace"), the LoRA binds the look to those phrases instead of the trigger token — so the bare trigger renders a generic subject and only the full identity description reproduces the character (the exact failure that surfaced training Freydis). The dataset workbench now analyzes the captioned images, and when a descriptive fragment repeats across ≥80% of captions it shows an advisory banner listing the shared fragments (with their hit counts) and a Strip shared identity from all captions button that removes those fragments from every caption while preserving the trigger word and the per-shot detail (pose, framing, setting). The strip recomputes the shared set server-side (
POST /api/lora-datasets/:id/strip-shared-fragments) so it never trusts a stale client list, and it's idempotent. The "Tips for a strong training dataset" panel gains the caption recipe — describe what changes shot-to-shot, not who the subject is — so the guidance is on the page before a caption ever drifts. The threshold is high on purpose: a varying attribute (a single view or pose) only appears in a slice of the set, so it separates baked-in identity from legitimate variation without flagging the latter. (server/lib/loraDataset.js,server/services/loraDatasets.js,server/routes/loraDatasets.js,client/src/pages/LoraDatasetDetail.jsx,client/src/services/apiLoraTraining.js) (#1320)[issue-1303] Per-series style guide — one source of truth for tense, POV, audience, rating, and reading level. Style used to live only in free-text notes, so generation could drift and nothing could check conformance. Each series now has a structured style guide on its bible: narrative tense (past/present), POV person (first / second / third-limited / third-omniscient), target audience, content rating + allowed profanity, a target reading level, tone words, and copy-edit conventions (Oxford comma, US/UK spelling, italicize-thoughts). The guide is woven into prose and arc generation so the AI writes in the right register from the start, and two new editorial checks audit the drafted manuscript against it: Reading-level conformance (measures the manuscript's grade level and flags it when it drifts from the target) and Style-guide conformance (an LLM scan for tense slips, POV-person drift, and content/profanity beyond the configured rating). Everything is optional and additive — a series without a style guide behaves exactly as before — and the field is version-gated for cross-machine sync so an older peer can't silently strip it. (#1303)
[issue-1354] Catalog cards show image thumbnails, generate art from a description, and a "Sync from Universes" button pulls in missing canon. Three catalog gaps closed at once. (1) Missing canon items — characters/places/objects you add to a universe after the one-time setup never appeared in the Catalog, because canon→catalog promotion only ran once per install. A new Sync from Universes button on the Catalog page re-runs that promotion on demand (idempotent — already-catalogued items are skipped), so the catalog catches up to your universes in one click and the list refreshes with what was pulled in. (2) Thumbnails — each catalog card now shows the item's portrait (or its most recent reference image) as a thumbnail, falling back to a placeholder when there's no image, so the grid is scannable at a glance. (3) Generate from description — the catalog item editor's Media panel gets a Generate button that turns the item's description into an image via the same image-gen queue the universe canon uses; the first generated image becomes the item's portrait (and thumbnail), later ones attach as references. The button is disabled until the item has a description to render from. (#1354)
[issue-1289] Ticking clock — model the countdown your reader is anticipating. A story's "what is this building toward?" — an incoming storm, a deadline, a prophecy's hour — is now a first-class part of the series arc instead of something only implied. On the Arc Canvas you can turn on a ticking clock, name it, pick its kind (deadline / event / countdown / prophecy / bomb / custom), set where it's planted and where it's due, spell out the stakes if it runs out, and add reminder beats that keep it ticking in the reader's mind; it shows on the arc card and the Story Builder reader-map view with its plant→due span. The countdown is fed into arc generation so the AI reinforces it, and a new Ticking-clock hygiene editorial check flags a clock that's unnamed, has no stakes, has no plant/due span, is due before it's planted, or has no reminder beats to keep the reader from forgetting it through the long middle. (#1289)
[issue-1290] Perspective Lab — rewrite an issue in another character's POV, and see what you learn. A revision technique that exposes what each POV character knows, wants, and withholds now has a home on the Prose stage. Pick any cast character and Rewrite in another POV: the issue's drafted passage is re-lensed entirely through that character's interiority — same events, same scene order, but only what they can perceive, infer, or remember — and the original draft is never touched (rewrites are stored as alternate artifacts, capped per issue, and flag themselves stale once the source draft changes). A second analysis pass compares the original and the rewrite and reports what the exercise reveals: new information/interiority the shift surfaces, what the original POV was hiding, whether the new POV has a stronger claim to the scene (scored, with a stay-or-switch justification), and concrete fold-back suggestions you can apply to the canonical draft without switching POV. The UI shows the two passages side-by-side plus the analysis panel, with delete per artifact. New endpoints:
GET/POST /api/pipeline/issues/:id/pov-rewritesandDELETE …/:rewriteId; two new stage prompts (pipeline-pov-rewrite,pipeline-pov-analysis) shipped + migrated for existing installs. (#1290)[issue-1288] Object↔character attachments — model who cares about each object, and why. An object's significance used to be a single free-text field with no link to the cast. Each universe object now also carries structured attachments: pick a character, then capture the emotion they feel toward the object (grief, pride, guilt, longing…), why it matters to that specific character, how they came to have it (the backstory link), and a role archetype (talisman / macguffin / memento / tool / symbol / custom). The object card in the universe canon editor gets a collapsible Attachments section to add, edit, and remove these. Three new editorial checks read the web: Unattached significant object (an object with written significance that nobody is on record caring about), Unmotivated object interaction (an LLM scan for moments where a character treats an object as significant with no established reason), and Attachment backstory consistency (an LLM check that flags an attachment whose origin story contradicts the character's established background). The legacy prose
significancefield is untouched; attachments are purely additive and version-gated for cross-machine sync so an older peer can't silently strip them. (#1288)Structured character relationships + opposing-force tagging. A character's relationships used to be a single free-text field — readable, but invisible to tooling. Each universe character now also carries structured relationship links: pick a target character from the cast, tag the dynamic (ally / antagonist / rival / mentor / love-interest / family / custom), and add a short description. A link can optionally carry an opposing force — a binary tension the reader watches to see reverse (hunter/prey, winner/loser, predator/prey, smart/dumb, or a custom axis), with each side's role and a note ("reader is waiting to see if these flip"). The Cast editor surfaces opposition pairs prominently (they're a story spine, not every story has them). Three new editorial checks validate the web: Relationship reciprocity (A links B but B doesn't link back), Relationship dangling target (a link points at a deleted character), and an advisory Opposition role-reversal payoff (surfaces every tagged opposing-force pair so you can confirm the roles ever reverse — or deliberately don't). The legacy prose
relationshipsfield is untouched;relationshipLinksis purely additive and version-gated for cross-machine sync so an older peer can't silently strip it. (server/lib/storyBible.js,server/lib/validation.js,server/lib/editorial/checkRegistry.js,server/lib/schemaVersions.js,client/src/components/universe/CharacterDetailEditor.jsx) (#1287)Reverse Outline — a color-coded scene map of your drafted manuscript. A new Reverse Outline view (linked from the series page) reads the finished/drafted manuscript and lays out what's actually on the page: it identifies the recurring plotlines (A-plot, subplots, POV threads) and segments the prose into scenes, each tagged to the plotline it advances — then shows them as a grid (rows = plotlines, columns = scenes in reading order) so you can see thread cadence, gaps, and tangles at a glance. Click any scene marker to read its summary, POV, setting, character list, and narrative/action/dialogue mix, and jump straight into the manuscript editor at that scene's issue. Generation streams live progress; the outline flags itself stale once the manuscript changes so you know to regenerate. This scene segmentation is the shared substrate upcoming editorial checks (scene balance, POV justification, cliffhangers, arc transitions) will read rather than re-deriving. (#1286)
Editorial checks — an extensible editorial-review system for the series pipeline. Editorial rules (name confusability, exposition dumps, and more to come) previously had no shared home — each was a one-off. A new editorial check registry + runner lets each rule plug in, declare what it examines, and emit findings into the same manuscript-review comment set you already work through in the editor (jump-to, AI fix, accept/dismiss). This first release ships two reference checks: Character name dissimilarity (flags character names a reader could confuse — sharing a first letter, length, vowel pattern, opening, or ending) and Info-dumping (flags "as-you-know-Bob" exposition — backstory bricks, maid-and-butler dialogue, front-loaded world rules — with a suggestion to dramatize or trim each). Each check can be enabled/disabled and configured, and runs on demand for a series (with live progress) or automatically as part of Series Autopilot's editorial pass. Findings are tagged by which check raised them, so re-running never duplicates them and a dismissal stays dismissed for that check. New endpoints:
GET/PATCH /api/pipeline/editorial/checks(catalog + enable/config) andPOST /api/pipeline/series/:id/editorial/checks/run(run + SSE progress). (#1284)[issue-1285] Editorial Checks page — see, configure, run, and triage every editorial check in one place. The editorial checks now have a home of their own (Create → Editorial Checks, or ⌘K "editorial checks"). A catalog lists every check grouped by what it examines (Noun / Scene / Issue / Series) with a deterministic-vs-LLM badge, an enable toggle, and an expandable per-check config form (e.g. how many similarity signals two names must share before they're flagged). Pick a series, then Run all enabled — or tick a few checks and Run selected — and watch live progress. The results land in a findings panel grouped by check with open/total and severity counts, and every finding links straight into the manuscript editor at its passage, where the existing accept / dismiss / generate-fix flow takes over. (#1285)
Series Autopilot — drive a whole series end-to-end autonomously. A new
POST /api/pipeline/series/:id/autopilot/startruns a conductor that inspects the series' current state and walks every missing step in order — generate arc → generate episodes per volume → verify arc → per-issue beat sheets → per-issue text stages (prose + scripts) → structural comic-script gate → series-level editorial review → canon descriptive-integrity gate → draft cover + back cover + all interior comic pages — by composing the existing pipeline service functions (it never re-implements generation). The "what's next" decision is a pure resolver over the canonical records, so it is non-destructive and resumable: anything alreadyready/edited/rendered is skipped (every pass runsforce:false), and on restart you just start again and it picks up at the first still-missing step (a partially-built series is never clobbered). Progress streams over SSE (/autopilot/progress);/autopilot/cancelstops it (propagating to the active child runner);/autopilot/statusexposes a thin persistedseries.autopilotmarker for resume/paused UI. Gated on the cos autonomy domain:offrejects the start (409),dry-runemits a no-side-effectplanof what it would do,executeruns and meters the daily cos action budget (pausing when exhausted — every draft render is one budget-gated action, since a comic is many GPU jobs). The arc-verify and editorial loops are bounded and pause for human review when they can't converge (arc verification can surface fresh findings every pass) — the residual findings are persisted on the marker. Draft renders are fire-and-forget proof-quality jobs whose in-flight job ids are persisted onto each cover/page slot (so a resumed run never re-renders an already-queued slot). Boot recovery demotes a marker stuck atrunningtopaused. With opt-infileGaps, capability/quality gaps the run can't resolve on its own — an unparseable script, a failing render, a stalled verify/editorial gate, a run-ending error — are filed as deduped CoS tasks (scoped to the pipeline app) so they're tracked rather than silently swallowed. The per-issue script gate runs two checks: a structural parse gate (does the script become pages/panels) and a craft-level LLM verify (pipeline-script-verify— un-renderable panels, panel-to-panel flow, dialogue/art balance, within-issue continuity, page-turn placement); the craft gate is advisory (surfaces + files blocking findings without hard-pausing, since the gating quality pass is the series-level editorial review). Before any visual production it also runs a canon descriptive-integrity gate: every canon noun (character/place/object) that appears where it would be drawn — the comic-script panel descriptions, not prose narration — must have a description, or the run pauses for human review (an artist can't render a name). The visual-source distinction is deliberate: an off-page character named only in narration is never drawn, so it's a Nouns-stage quality note, not a production blocker. The same check is exposed for the pipeline UI viaGET /api/pipeline/issues/:id/canon-readinessandGET /api/pipeline/series/:id/canon-readiness(read-only, deterministic — reuses the committed canon name-matchers andgetSeriesCanon). The whole feature is surfaced in the UI by an Autonomous mode panel on the series page (AutopilotPanel): a Run/Resume button with a run-options popover (draft visuals, file-gaps), live SSE step progress (with the dry-run plan when the cos domain is in dry-run), a Stop control, a paused/done/error banner driven by the persisted marker that lists the residual findings, and a one-click "production readiness" canon check that links each undescribed drawn noun to its issue's Nouns stage. (server/services/pipeline/seriesAutopilot.js,server/services/pipeline/scriptVerify.js,server/services/pipeline/canonReadiness.js,server/routes/pipeline/canon.js,data.reference/prompts/stages/pipeline-script-verify.md,scripts/migrations/090-script-verify-stage.js,server/routes/pipeline/autopilot.js,server/routes/pipeline/index.js,server/services/pipeline/series.js,server/index.js,client/src/components/pipeline/AutopilotPanel.jsx,client/src/pages/PipelineSeries.jsx,client/src/services/apiPipeline.js)"Describe from prose" button on the Nouns stage backfills missing descriptions — and flags the nouns the manuscript can't describe. Extracted nouns (characters/places/objects) often land with a name but no description, so a generated reference image has nothing to work from but the name. The new button writes a description for every undescribed noun that appears in the issue, using only what the prose actually establishes — and, crucially, it does not invent. This is the inverse of "Extract from prose" (which commits opinionated, renderable choices when the prose is silent so it never leaves a blank): a noun the manuscript names but never describes comes back graded
noneand stays blank, surfacing in a persistent red-flag banner ("The manuscript is thin on description for N nouns…") rather than being papered over with a fabricated look. Nouns the prose describes only in passing are gradedthin(the grounded fragment is filled, with a note on what's missing). Strictly prose-grounded descriptions double as a manuscript-quality check: if the story can't describe its own people and places, that's a signal the prose needs enriching, not the bible. Fills only empty, unlocked entries (never clobbers an existing description or a locked one), re-reads freshest state at write time, and persists the gap report on the prose stage so the banner survives reload. Driven by a new strictly-groundedpipeline-canon-describe-from-prosestage prompt. (data.reference/prompts/stages/pipeline-canon-describe-from-prose.md,scripts/migrations/089-canon-describe-from-prose-stage.js,server/services/universeCanon.js,server/routes/pipeline/issues.js,server/services/pipeline/issues.js,client/src/services/apiPipeline.js,client/src/components/pipeline/stages/NounsStage.jsx)"Generate with AI" button on the New Series form invents a fresh story in the chosen universe. Creating a series previously pulled the universe's own logline/premise into the form, which nudged every series toward being a retelling of the world rather than a distinct story within it. The new button (enabled once a universe is picked) asks the configured AI provider to invent a different series — a fresh name, logline, premise, and recommended Vonnegut story shape — using the universe premise, style notes, embrace/avoid influences, and canon (characters/places/objects) as seed material, and is explicitly told to diverge from the universe's existing series (their names + loglines are passed in so it doesn't duplicate a premise). The concept pre-fills the form for the user to edit before creating — nothing is persisted by the generate call itself; a malformed/unknown story shape is dropped rather than poisoning the form, and the one-line rationale surfaces in the success toast. Driven by a new
pipeline-series-generatestage prompt. (data.reference/prompts/stages/pipeline-series-generate.md,server/services/pipeline/seriesGenerate.js,server/routes/pipeline/series.js,client/src/services/apiPipeline.js,client/src/pages/Pipeline.jsx)The AI Providers page now shows runtime availability, not just the enable toggle. An enabled provider can still be benched (runtime-unavailable) after a failure — a usage limit, auth error, or
model-not-found— and silently skipped in favor of a fallback, which made "but it's enabled!" confusing. Each enabled-but-unavailable provider now shows an UNAVAILABLE · {reason} badge plus a detail panel with the underlying error message ("Why: …"), the auto-retry ETA, and a Recover now button (clears the bench so the next call retries it — though a persistent cause like an invalid model id will simply re-bench on the next failure). The availability map refreshes every 20s so a badge appears/clears on its own. Reads the existingGET /api/providers/status(available/reason/message/timeUntilRecovery) —enabledis the user toggle, this is the separate runtime-health state the fallback router acts on. (client/src/pages/AIProviders.jsx)Ship a "Claude Code TUI: Bedrock" provider option. Installs that run Claude Code against Amazon Bedrock can now drive the interactive TUI on Bedrock without hand-editing
providers.json— the seed (data.reference/providers.json, plus the toolkit fallback sample) now includes aclaude-code-tui-bedrockprovider alongside the existingclaude-code-tui(Anthropic-native) andclaude-code-bedrock(Bedrock CLI), completing the native/Bedrock × CLI/TUI matrix. Like the Bedrock CLI it ships disabled with an emptyAWS_BEARER_TOKEN_BEDROCK(opt-in; no secret in git) and itssecretEnvVarsmarks the token so the UI masks it and cross-install sync withholds it. Existing installs pick it up viasetup-data.js'sprovidersmerge on the next run, without touching their customized providers. (data.reference/providers.json,server/lib/aiToolkit/defaults/providers.sample.json)Video LoRAs now fuse on the bf16 LTX-2.3 Unified Beta (mlx_video runtime), not just dgrauet — Previously a video LoRA like
ltx2.3-audio-reactive-loraonly worked on the dgrauetltx2runtime; selecting the higher-quality LTX-2.3 Unified Beta (notapalindrome'smlx_videoruntime) silently hid the LoRA picker. The stockmlx_video.generate_avCLI has no--loraflag, but themlx-video-with-audiopackage ships an LTX-aware LoRA subsystem (mlx_video.lora) that's simply never called from the AV generator. A new wrapper (scripts/generate_av_lora.py) closes that gap without reimplementing the ~1000-line generation loop: it loads the user LoRAs, monkeypatches generate_av's two transformer-weight load seams to merge the LoRA deltas into the transformer (bf16,quantization_bits=0), then runs generate_av's ownmain()— so the SSE progress protocol is byte-for-byte identical to the non-LoRA path. The VideoGen picker now appears for non-quantized LTX-2.xmlx_videomodels too (gated byisMlxVideoLtxLoraCapable); if a LoRA's keys don't match the model the render fails loudly rather than silently producing a base video. Scoped to bf16 — the quantized Distilled Q4/Q8 variants stay on the dgrauet path for now and show an inline hint pointing at the supported models. (scripts/generate_av_lora.py,server/lib/runners.js,server/services/videoGen/local.js,server/routes/videoGen.js,client/src/lib/runnerFamilies.js,client/src/pages/VideoGen.jsx)"Format" button on each manuscript section cleans up pasted-PDF artifacts. Text pasted out of a PDF export arrives hard-wrapped at the page margin (every visual line a real
\n), with stylized drop-caps split onto their own line ("T\nhe dawn …"), words hyphenated across the wrap ("approxi-\nmating"), and closing quotes orphaned from the text they terminate (alone on a line, wrapped to the next line, or with a stray space before them) — so a paragraph reads as a column of ragged lines. A new Format button in each section's header (both Live and Review modes) normalizes the section: it rejoins drop-caps, repairs hyphen splits, strips trailing whitespace, and collapses runaway blank lines for every stage, and — for prose only — re-attaches orphaned closing quotes, drops a stray opening-quote fragment the export duplicated onto its own line ("I\n"I need …→"I need …, guarded so genuine back-to-back dialogue is untouched), and reflows the soft-wrapped lines back into paragraphs (comic/teleplay keep their structural line breaks). The reflow joins a line onto the previous one only when it begins with a lowercase letter — a real sentence/paragraph/heading never starts lowercase, so headings and attributions keep their own line and two paragraphs are never fused (a global line-width threshold is unsound on documents that mix already-joined and still-wrapped paragraphs). The prior text is snapshotted server-side, so History ▸ Revert undoes a format in one click. (client/src/lib/manuscriptFormat.js,client/src/components/pipeline/manuscript/ManuscriptSectionFrame.jsx,client/src/pages/PipelineManuscriptEditor.jsx)"Reformat (AI)" button on each manuscript section — fixes paste artifacts the deterministic Format can't. PDF-pasted prose is sometimes genuinely scrambled (duplicated/misplaced quotes, ambiguous wraps before a capitalized word) in ways regex heuristics can't resolve. The new Reformat (AI) button sends the section to the AI provider selected in the sidebar with a strict "fix only whitespace, line breaks, drop-caps, and quotation-mark placement — do not change any words" prompt (stage
manuscript-reformat), then persists the result (snapshotted, so History ▸ Revert undoes it). It is trustworthy by construction: a server-side integrity guard requires the case-sensitive sequence of letters, digits, and apostrophes to be identical before and after, rejecting (400, nothing saved) any result that substituted, dropped, inserted, or recased a word — or mangled a contraction (don't→dont). Only whitespace, wrap-hyphens, and quotation marks may move (that's what reformatting is); the prompt forbids other punctuation edits. The endpoint is compute-only (returns the cleaned text without persisting); the client sends its live content and owns the save, so unsaved edits aren't reformatted-away and a mid-call edit discards the stale result instead of clobbering it. The corereformatManuscriptText()is shared so the importer can reuse it. (data.reference/prompts/stages/manuscript-reformat.md,server/services/pipeline/manuscriptFix.js,server/routes/pipeline/manuscript.js,client/src/services/apiPipeline.js,client/src/components/pipeline/manuscript/ManuscriptSectionFrame.jsx,client/src/pages/PipelineManuscriptEditor.jsx)
Changed
Social-platform icons updated. lucide-react v1 removed its brand glyphs (GitHub, Instagram, Facebook, LinkedIn, X, YouTube), so the Digital Twin accounts list and the GitHub dev-tools link now use generic line icons in their place.
Refreshed the seeded Claude Bedrock provider defaults to current model ids. The shipped
claude-code-bedrock(CLI) andclaude-code-tui-bedrock(TUI) provider entries in the seed config now default to the current Claude on Bedrock model set —us.anthropic.claude-haiku-4-5(light),us.anthropic.claude-sonnet-4-6(medium), andglobal.anthropic.claude-opus-4-8[1m](default/heavy), withglobal.anthropic.claude-opus-4-8also listed — replacing the staleclaude-opus-4-6/ dated-snapshot ids. Both stayenabled: false(opt-in) and ship with an emptyAWS_BEARER_TOKEN_BEDROCK; the CLI entry also gains thesecretEnvVarsmarker so the token is treated as a secret. (data.reference/providers.json)Updated the bundled
slashdosubmodule from v3.14.0 → v3.15.0. (lib/slashdo)[issue-1438] Hardened the client test suite against an environment where jsdom doesn't expose
localStorage— a guaranteed in-memory Web Storage shim is now installed before tests run, so suites that rely onlocalStorage/sessionStorageno longer fail intermittently across jsdom versions or CI environments (no user-visible app change).CyberCity now eases into full quality so the first second of startup doesn't drop frames. Mounting the 3D city used to render every district at the full quality preset on frame one — reflections, full particle density, and the high-DPR pixel ratio all at once — which spiked the GPU and stuttered the opening camera move. The scene now renders a deliberately lightened first pass (reflections off, particle density capped,
dprpinned to[1, 1]) for ~1.2s, then restores your real settings once startup has settled. Photo mode is exempt (it needs full fidelity immediately). The same settle also re-runs when the app count changes, since that reshuffles building layout — another heavy frame worth easing into. (client/src/components/city/CityScene.jsx)[issue-1364] Generating a D&D character avatar now persists in one round-trip. The character-sheet "Generate avatar" flow used to render the image and then make a second call to save the path onto your character. Since the avatar route already knows the character context, it now persists the rendered
avatarPathitself when asked (persistToCharacter), so the client drops the follow-upPUT /api/characterand keeps its optimistic update — same result, one fewer request. (server/routes/imageGen.js,server/services/character.js,client/src/pages/CharacterSheet.jsx, #1364)[issue-1291] The character-name confusability check now catches look-alikes and sound-alikes, reads aliases, and respects locked characters. The "Character name dissimilarity" editorial check used to compare only spelling traits — shared first letter, length, vowel pattern, opening, or ending. It now also flags names that are a near-typo apart (edit distance, e.g. Alina / Alana) or that simply sound alike (a phonetic match, e.g. Smith / Smyth, Sam / Sun), compares each character's aliases as well as their primary name, and adds a first-letter crowding finding when too much of the cast starts with the same letter (scaled to cast size — two M-names in a cast of thirty is fine, four of six is not). Severity now scales with how confusable a pair really is, near-identical names rank highest, and every suggestion steers you to rename an unlocked character (and tells you when both are locked). New per-check knobs let you tune the edit-distance threshold, the crowding ratio, and toggle the length/vowel/phonetic signals individually. (#1291)
[issue-1387] Editorial-check "stale" badges are now scoped to exactly what each check reads, so a single edit no longer marks unrelated findings stale. A finding's stale badge tells you the manuscript/canon/series content the check analyzed has drifted since it ran. That signal used to be derived from a coarse two-bucket heuristic (manuscript-vs-canon) that folded the style guide and the arc ticking clock into shared buckets — so editing the ticking clock marked every canon-only finding stale (naming, object-attachment, …), and editing the style guide marked every manuscript finding stale (even the info-dumping check, which never reads the style guide). Each check now declares the exact inputs it reads (
sources, a subset ofmanuscript/canon/series.styleGuide/series.arc.tickingClock) and the runner fingerprints precisely those — so editing the ticking clock stales only the ticking-clock-hygiene finding, editing the style guide stales only the style checks, and a future check that reads a new series field can't silently stay falsely "fresh" (a fail-fast guard requires every check to declare a non-empty, known source set, and amanuscriptsource to pair withneedsManuscript). A custom check's authored prompt is folded into its fingerprint too, so editing what a custom check looks for stales its prior findings even when the manuscript hasn't changed. Staleness is still derived per-read and never stored or synced. (server/lib/editorial/checkRegistry.js,server/services/pipeline/editorial/checkRunner.js, #1387)[issue-1348] Your reverse outline now travels with the series across federated machines. The scene-by-scene Reverse Outline is stored alongside the series, and until now it stayed put — regenerating it on one machine left your other synced machines (and anyone you share a bucket with) showing a stale or empty outline. It now rides the same cross-install sync as the series itself: regenerate it on one peer and the newest outline propagates everywhere, last-writer-wins by generation time. Older installs that don't yet understand outlines simply skip it (the series and its issues still sync fine) and pick it up automatically once they update. (#1348)
[issue-1340] LLM editorial checks now review your whole manuscript, even on a small-context model. The info-dumping, unmotivated-object-interaction, and style-conformance checks used to send the manuscript to the model in a single call, capped at a fixed length so it couldn't overflow a small or local provider's context window — which meant later issues in a long series were silently skipped. Each check now chunks the manuscript to fit whatever provider it runs on (the same context-window planning the completeness pass already uses) and merges the findings across chunks, so the entire series gets reviewed regardless of model size. Frontier models that can hold the whole book still run it in one pass. The per-run "max findings" cap is unchanged. (#1340)
[issue-1386] A single very long chapter is now reviewed in full instead of trimmed at the back. The editorial checks, completeness pass, and AI manuscript-fix already split a long series across several model calls to fit a small or local model's context window — but one single section longer than that window was still truncated at its tail, so the back of an unusually long chapter or episode never reached the model. Such an oversized section is now split into multiple context-sized pieces along paragraph/sentence boundaries — each keeping its issue heading, so findings still attribute to the right issue and don't duplicate — and reviewed in full. Series that already fit the window are unaffected. This closes the single-section gap that #1340 left after fixing the multi-section case. (#1386)
[issue-1331] Large ChatGPT exports with many attachments now import without hitting a memory ceiling. Importing a ChatGPT data-export ZIP used to buffer every image/audio/PDF attachment in memory at once, so a big export (lots of pictures and voice clips) could be rejected with an out-of-memory guard even though the upload itself was allowed. Attachments now stream straight to disk as they arrive — only a few leading bytes are held to detect each file's type — so the import's memory use stays flat no matter how large the export is, and a genuinely big export imports cleanly instead of being turned away.
[issue-1326] Picking a source image for image-to-video now snaps the default size to that image's shape. When you select (or upload) a source image on the Video Gen page, the width × height defaults jump to the closest preset matching the image's aspect ratio — so a vertical photo defaults to a vertical frame and a widescreen still to a widescreen one, instead of getting silently cover-cropped into a mismatched default that cut the subject out of frame. The size fields stay fully editable: once you choose a size yourself (or it arrives from Continue/Remix), the snap steps aside.
Deleting a Memory Builder item now reloads the full list from the server instead of splicing it out locally.
MemoryBuilder's delete handler previously dropped just the deleted row optimistically (setItems(prev => prev.filter(...))), so the displayed list could drift from server truth whenever the delete had server-side effects beyond removing that one id (re-seeding, ordering, or normalization). It now re-fetches via the existingloadItems()after the delete resolves, so the list always reflects what the server actually returns. (client/src/components/meatspace/post/MemoryBuilder.jsx)Destructive deletes across the app now ask for confirmation, consistently. Many delete actions — brain memories/people/projects/ideas/admin items, CoS memories/tasks/jobs/agents, digital-twin accounts/goals/stories, life-tracking entries (alcohol, nicotine, eye exams, epigenetic interventions, genome markers, post memories), goals (todos, progress, whole-goal), email/calendar accounts, message drafts, custom CoS jobs, media-queue rows, comic pages, uploaded files — previously deleted immediately on a single trash-icon click, an easy way to lose data with no undo. Each now arms an inline confirm before running, using the discoverable inline-confirm UI (
<InlineConfirmRow>/<ConfirmButtonPair>) PortOS already prefers over a bare two-click-arm. Bulk/"delete everything" surfaces get explicit, strongly-worded confirms too: the Data Manager category Purge moved off the easy-to-miss two-click banner onto an inline confirm row, and backup-archive deletion, Clear all completed agents, and Delete All uploads are now gated. A new shareduseConfirmDeletehook standardizes the "arm one row at a time → confirm → run" pattern so future delete buttons stay consistent. Low-stakes, trivially-reversible clears (notifications, the ignored-version list, draft-only dashboard-widget removal) are intentionally left un-gated to avoid confirmation fatigue. (client/src/hooks/useConfirmDelete.js,client/src/pages/DataManager.jsx,client/src/pages/Uploads.jsx, and the brain / cos / digital-twin / meatspace / goals / messages / calendar / apps / media / pipeline delete call sites)A proactive fallback swap now logs which primary was benched and why. When
createRunfinds the requested provider marked unavailable (benched) and routes to a fallback, the log said only⚡ Using fallback provider: Codex CLI (source: system)— leaving "why isn't my enabled provider being used?" unanswered (a provider'senabledtoggle is independent of its runtime availability state, which the bench sets). It now names the skipped primary, its unavailability reason, and the recovery ETA:⚡ Primary Claude Code CLI unavailable (model-not-found, recovers in 28m) — using fallback Codex CLI (source: system). (server/lib/aiToolkit/runner.js)AI provider failures now log the actual reason inline. The
🤖 AI provider error detectedline in pm2 logs previously printed only the provider name and run id, so diagnosing a failed run meant openingdata/runs/<id>/metadata.jsonto find the captured error. It now includes the model, error category, exit code, and the (single-line, capped) error text — e.g.… Claude Code CLI (claude-opus-4-8) [model-not-found] exit=1 - run f95b8af2-95fd-…: API Error (claude-opus-4-8): 400 The provided model identifier is invalid.— so the "why" is visible at a glance. The full untruncated text still lives in the run record. (server/services/autoFixer.js)Deploying a LoRA checkpoint with no preview now auto-renders one. A training run only writes preview thumbnails at the
sampleEverycadence, so a checkpoint whose step doesn't land on it — most often the final step (e.g. step 1188 with sampleEvery 300) — showed "no preview" in the picker, including on the deployed card. Promoting such a checkpoint now renders a thumbnail in the background from the just-deployed LoRA (the run's neutral trigger prompt + seed, on the LoRA's own 9B/4B base) and joins it to the checkpoint by step, so the deployed option gets a real image instead of a blank. The render is fire-and-forget — promote stays responsive and a render failure (OOM, restart) never fails the deploy, since the LoRA is already registered. The picker backstop-polls after promoting a preview-less checkpoint to surface the thumbnail once it's ready (~minutes on 9B), unmount-guarded. (server/services/loraTraining/index.jsensureCheckpointPreview,client/src/components/loraTraining/CheckpointPicker.jsx)LoRA training defaults now reflect what actually trains a clean character LoRA on Apple Silicon. The Train LoRA form previously seeded weak/cautious values (4B base, 600 steps, rank 16, lr 5e-5) — the 4B-first and low-lr choices were leftovers from misdiagnosing an early "divergence" (the real cause was captions over-describing invariant identity, so it bound to words rather than the trigger token, not the learning rate). Validated end-to-end on a 44-image real-face dataset: the form now defaults to 9B base · 1200 steps · rank 32 · lr 1e-4 · 768px · checkpoint/sample every 300, which binds identity cleanly and fast. The base-model picker prefers the 9B Klein id (it captures identity better than 4B and trains via the panic-safe 4-bit QLoRA tier the server forces) and avoids the heavy
*-bf16variant. Per-run values remain fully editable in the form. (server/services/loraTraining/runtimes.jsTRAINING_DEFAULTS,client/src/components/loraTraining/TrainingPanel.jsx)Share the
--user-lorasJSON parser between the two video LoRA runners.parse_user_loras(the strict[{path, strength}]validator that surfaces a Node-side bug before any model load) was duplicated verbatim inscripts/generate_ltx2.py(dgrauetltx2runtime) andscripts/generate_av_lora.py(mlx_video runtime); it now lives once inscripts/_runner_common.py(stdlib-only at import, so it's safe to import from either MLX venv — verified in both) and both runners import it, so a future fix to the validation contract can't drift between them. (scripts/_runner_common.py,scripts/generate_ltx2.py,scripts/generate_av_lora.py)Retire the repo-local
/claim,/gitup, and/workslash commands in favor of slashdo. The custom 46 KB.claude/commands/claim.mdprocedure (and its.agents/skills/claim/SKILL.mdadapter) is replaced by slashdo's/do:next, which runs the same claim-an-item-in-a-worktree-and-ship-a-PR flow;/gitupand/workare dropped in favor of/do:pushand slashdo's worktree workflow. The slashdo submodule is bumped v3.5.0 → v3.9.0 so/do:nextships from the module itself (symlinked into.claude/commands/do/next.mdlike the other/do:*commands) instead of relying on a separate global install. The CoSplan-task/claim-issuescheduled agents are unaffected — they carry their own self-contained prompts and never loaded the deleted command file.Unify the three pipeline editorial batch runners onto one shared SSE lifecycle. The manuscript-completeness, editorial-analysis, and editorial-checks runners each carried a near-identical copy of the in-memory run-tracking machinery (active-run map, late-client terminal-frame replay, cancel, and the fire-and-forget coordinator); they now share a single
createSseRunnerfactory, so a future fix to the streaming/replay/cancel behavior applies to all three at once. No user-visible behavior change. (server/lib/sseUtils.js, the threeserver/services/pipeline/*Runner.jsmodules, #1338)[issue-1343] Move the auto-run, volume-beats, and story-builder SSE runners onto the same shared lifecycle. The three older streaming runners (text-stage auto-run, per-volume beat sheets, and Story Builder step generate/refine) each kept their own copy of the in-memory run-tracking machinery on an earlier eviction pattern, so #1338's
createSseRunnerunification left them out. They now share that factory too — extended with optional signature-based coalescing so Story Builder can still tell a refine of one character apart from an in-flight generate. A finished run now reports "not active" the instant it completes (instead of staying active through the brief late-client replay window), which lets Series Autopilot advance to the next step immediately rather than idling out a few-second grace window. No other user-visible behavior change. (server/lib/sseUtils.js,server/services/pipeline/autoRunner.js,server/services/pipeline/volumeBeatsRunner.js,server/services/storyBuilderRunner.js, #1343)Harden the test-runner database write-guard against less-obvious write forms. The backstop that stops a misconfigured test run from mutating the real database was anchored on a single leading verb, so data-modifying CTEs (
WITH … DELETE …),COPY … FROMimports,MERGE, and a write hidden after a leading read in a multi-statement batch slipped past it. It now matches those verbs anywhere (after stripping comments) while still allowingCOPY … TOexports andSELECT … FOR UPDATErow locks. No store used those forms, so this was latent; the guard is billed as the last line of defense, so it now lives up to it. No user-visible behavior change. (server/lib/db.js, #1333)
Fixed
The element-symbol quiz no longer reshuffles on every keystroke. The Elements practice quiz rebuilt its question deck with a fresh random shuffle on every render, so typing an answer reshuffled the deck and swapped the current question out from under you. The deck is now built once per item and stays put while you answer.
CyberCity lightning flashes no longer teleport. The lightning flash light re-rolled its position on every render, making the flash jump around the scene; its origin is now chosen once.
[issue-1449] Fixed a flaky VoicePicker test whose
waitForguards never actually waited. Five tests inVoicePicker.test.jsxguarded the async voice load withawait waitFor(() => document.querySelector('option[value="kokoro:af_bella"]'))— butwaitForonly retries while its callback throws, and returningnull(option not yet rendered) isn't a throw, so it resolved on the first tick and the subsequentuser.selectOptionscould run beforelistPipelineTtsVoicespopulated the<option>s (Value "kokoro:af_bella" not found in optionsin CI). Every non-asserting guard now uses the asserting form (expect(...).toBeInTheDocument()), matching the one sibling test that was already correct, so the suite stops losing the load race on slow runners. (client/src/components/voice/VoicePicker.test.jsx, #1449)The CyberCity exploration avatar now faces its direction of travel instead of moonwalking. The runner is modeled facing +Z (visor, chest core, boot toes) while the player rig's forward convention is −Z, so
root.rotation.y = rig.facingpointed the model's face 180° opposite to its movement — it walked away from the camera while facing it, and at drop-in faced away from the city center despite the "facing downtown" spawn intent. The rig math is internally consistent on the −Z convention, so the fix is a single +π yaw offset where the model meets the rig inPlayerAvatar.jsx. (client/src/components/city/PlayerAvatar.jsx)Deleting a Brain memory imported from ChatGPT now removes its on-disk assets instead of orphaning them. A
chatgpt-importmemory references an archived conversation transcript (data/brain/imports/chatgpt/<sourceRef>) and any number of served image/audio/PDF assets (data/brain/imports/assets/, embedded aslinks in the transcript). Deleting the memory only tombstoned the JSON record, so those files lived on disk forever — repeatedly importing and deleting exports slowly filled the disk with orphans. The Brain service'sdeleteMemoryEntrynow cleans up after a successful delete: it removes the 1:1 archived transcript and unlinks every asset the deleted memory referenced that no surviving import memory still uses (a ChatGPTfile-service://id can legitimately recur across conversations, so shared assets are kept). Cleanup is best-effort — an already-missing file is a no-op and an unlink failure is logged, never thrown, so it can't turn a successful delete into an error. (server/services/brain.js,server/services/chatgptImport.js)Memory cards now show a copyable short id. Both the Brain memories list (Brain → Memory) and the CoS memories list (Chief of Staff → Memory) render each record's unique id as a click-to-copy badge in the card's metadata row — so you can read an id off the UI and ask the agent about that specific memory by id. The badge shows a short prefix with the full id in its tooltip; clicking copies the full id. (
client/src/components/ui/CopyableId.jsx,client/src/components/brain/tabs/MemoryTab.jsx,client/src/components/cos/tabs/MemoryTab.jsx)Tribe "Add" / "Add Relationship" now visibly surface the new-relationship form. The Add button (header), the empty-state Add Relationship button, and the Care Queue's empty-state all reset to a blank draft — but the contact form is statically rendered in the side column, so resetting an already-empty draft produced no visible change, and on narrow screens the form sat below the fold. Clicking Add now switches to a tab that has the form (Circle, if you're on Focus), resets the draft, scrolls the form into view, and focuses the Name field — so adding a person clearly does something on every screen size. Saving a new person also clears the form back to a blank draft (Name re-focused) so the next entry adds another person instead of overwriting the one just saved; editing an existing person still keeps them selected. (
client/src/pages/Tribe.jsx)[issue-1393] The universe base-style probe now scopes its in-flight render per universe instead of remounting on every switch. The probe spinner used to be kept from leaking across universe switches by remounting the whole
StyleProbeImage(akey={universe.id}in the Universe Builder and Story Builder). That worked but had two costs: every switch re-ran the probe's{ silent: true }image-settings GET, and switching away from an in-flight render abandoned its completion — the server still filed the image, but switching back never resumed the spinner or pinned the result onto the universe's style refs for that session.useSingleImageRendernow takes ascopeIdthat namespaces the single-target key per universe (<id>:__single__), so the displayed universe's job is read without a remount: no per-switch settings refetch, and switching back to a still-running (or already-finished) render resumes it and captures its completion. The mid-render style-drift guard is now keyed per universe too, so a stale image can't pin to the wrong record when two probes overlap across a switch. And because the render slot no longer remounts to reset itself, a render that fails or is canceled (which never produces a filename, so the slot's completion path can't clear it) now clears the stuck job explicitly — so a failed probe leaves the slot ready to re-render instead of disabling regenerate for the rest of the session. (client/src/hooks/useSingleImageRender.js,client/src/components/universe/{StyleProbeImage,EntryThumbSlot}.jsx,client/src/pages/{UniverseBuilder,StoryBuilder}.jsx, #1393)[issue-1422] Re-planning a goal that has scheduled calendar blocks no longer silently strands those calendar events, and a malformed AI plan now fails fast. Accepting a new AI-generated plan (either Generate Plan phases or Decompose into Tasks) replaces a goal's milestones wholesale — but if you'd already pushed those milestones onto your calendar as time blocks, the old blocks were left pointing at milestones that no longer existed. Accepting now refuses with a clear message asking you to unschedule first, so your calendar can't drift out of sync with your plan. Separately, both Generate Plan and Decompose into Tasks now validate the AI's proposal the moment it comes back — a garbled response surfaces a clear error up front instead of looking fine in the review screen and only breaking when you try to accept it.
Brain graph no longer crashes the tab at scale — it loads a bounded view and you navigate by search + focus. With a large brain (~1500 nodes) the graph tried to render the entire graph at once, and a server bug made that catastrophic: shared-tag edges were computed all-pairs per tag with no per-node cap, ballooning to >1,000,000 edges that the synchronous force layout and three.js renderer choked on — the tab froze and crashed within ~a minute. The graph is now bounded by design: it lands on an overview of the most-connected memories, a search box jumps to any memory across the whole brain, and double-clicking a node (or its "Explore connections" button) re-focuses on that node's neighborhood with a breadcrumb trail + Back / Overview to retrace. Each view is capped (≤ ~150 nodes, a few hundred edges) so the renderer stays fast, and the shared-tag edge computation is now capped per node (top-8) at the source, so the million-edge explosion can't recur. New endpoints:
GET /api/brain/graph?focus=&limit=(overview vs. neighborhood) andGET /api/brain/graph/search-index. (server/services/brainGraph.js,server/routes/brain.js,client/src/components/brain/tabs/BrainGraph.jsx,client/src/lib/brainGraphFocus.js)Brain graph: embedding refresh now shows it's working, can be targeted, and an isolated node can always be cleared. (1) The only feedback for the long server-side re-embed was a tiny braille spinner inside the button — easy to miss, so the page looked frozen; it now raises a persistent loading toast that stays up for the duration and swaps in place to the success/error result. (2) Rather than always re-embedding everything, the graph now reports how many records are missing an embedding and offers a fast "N missing · Embed" backfill that processes only those (unmapped records, or records whose memory vector is NULL because generation failed); the heavyweight re-embed-all is now a separate "Refresh all" gated behind an inline confirm (it can run for minutes). New endpoint
GET /api/brain/embeddings/status+onlyMissingonPOST /api/brain/bridge-sync. (3) Selecting a node isolates it by dimming the rest — but dimmed nodes still capture clicks, so clicking "empty space" to clear often re-selected a dark node andonPointerMissedignores any orbit drag, leaving the user stuck (the detail panel's × sits below the fold). There's now an always-visible Clear selection button on the canvas plus an Esc handler. (server/services/brainMemoryBridge.js,server/services/memoryDB.js,server/services/memory.js,client/src/components/brain/tabs/BrainGraph.jsx)The Chief of Staff 3D avatar no longer slowly zooms itself in until you reload. The full-bleed background avatar keeps a constant apparent size by moving the camera back as the panel grows (
CoSBackgroundCameraderivescamera.position.zfrom the live-measured canvas height). But a transient zero / pre-layout / hidden size reading — which fires when the agent panel collapses and re-expands, when the EventLog mounts on the "working on task" transition, or from tab-occlusion ResizeObserver frames — collapsed the scale factor to its floor and slammed the camera to its closest (most zoomed-in) position, whichOrbitControlsthen latched with no guaranteed correction. Over a busy night of state transitions the avatar ended up "zoomed way in," fixable only by a page reload. The camera-distance math is now a pure, unit-tested helper that returnsnullfor any degenerate (non-finite or sub-pixel) measurement, so those frames leave the camera at its last good framing instead of yanking it in. (client/src/components/cos/CoSBackgroundCamera.jsx)./update.shnow tells you where to open PortOS — and the boot banner stops pointing at a dead:5555. When a Tailscale cert is present, the user-facing:5555speaks HTTPS only, so a plainhttp://localhost:5555(the URL muscle memory reaches for, and the one you're left guessing after an update) just fails to connect — andupdate.sh/update.ps1printed no URL at all, so you'd end up on the Vite dev server at:5554by accident. Both update scripts now print the working access URL on completion (via the sameprint-access-url.jsbannersetup.shalready uses), leading with the loopback HTTP mirrorhttp://localhost:5553that works with no cert warning. The server's own startup banner is reordered to match — it now leads with the local mirror URL instead of burying it under the remote Tailscale lines — and it no longer advertises a bogus Tailscale hostname (e.g.https://undefined.<tailnet>.ts.net:5555, produced when a cert was provisioned while MagicDNS was down) as "trusted." (update.sh,update.ps1,server/index.js)[issue-1361] A behind/legacy sync peer can no longer erase a series' style guide, reader map, ticking clock, style notes, or seasons.
mergeSeriesFromSyncapplied an incoming series payload wholesale via last-writer-wins onupdatedAt, andsanitizeSeriesflattens an absent key to the samenull/[]/""as an explicit clear. So when a peer that never authored a field (an older install, or one that predates the field) pushed a series with a newerupdatedAtbut nostyleGuide/arc/styleNotes/seasonskey — or sentarcwithout its newerreaderMap/tickingClocksub-keys — the receiver overwrote and wiped the locally-authored value. The merge now consults the raw remote payload to tell "key absent" from "key present-but-empty": an absent key preserves the local value (mirroring the existinguniverseIdhierarchy guard, and applied uniformly across the additive fields plus the additive sub-fields nested inarc), while an explicitnull/empty from an up-to-date peer is still honored as an intentional clear. Tombstones are skipped (a deleted record carries no content to protect). (server/services/pipeline/series.js, #1361)[issue-1359] A catalog image you generate now attaches even if you navigate away before it finishes. When you used the catalog item editor's Generate button with a local or Codex image backend, the render is a queued job — and if you refreshed, switched to another item, or left the page before it completed, the finished image still landed in your media library but was never attached to the item, so it silently vanished from that item's Media panel. The attachment is now made server-side the moment the render completes, independent of whether that page is still open: the first image becomes the item's portrait, later ones attach as references — exactly as it would if you'd stayed on the page. (#1359)
The Universes list row thumbnail now shows the universe's base style image, matching the detail page. The
/universesindex thumbnail read the latest image from the universe's auto-managed media collection, which is often a contact sheet or character reference render — so a universe whose detail page proudly shows its subject-less "Base style" probe (e.g. the Neon Expanse cityscape) was previewed in the list as an unrelated grid of figures. The row thumbnail now prefers the universe's base style image (last entry instyleImageRefs, the same selection the Universe Builder'sStyleProbeImage→EntryThumbSlotmakes), falling back to the latest media-collection image, then the Globe placeholder — so the list and detail views agree. (client/src/pages/Universes.jsx)[issue-1356] The idea / beat-sheet prompt no longer renders parts of itself as
[object Object]. When an issue had a prior/next neighbor in its volume, the idea-stage prompt was supposed to quote that neighbor's beat sheet (or synopsis) and the arc role of each, so the new beats hand cleanly off the surrounding issues. A templating bug meant those neighbor beat sheets, synopses, and arc-role labels were emitted as the literal text[object Object]instead of their real content — silently degrading the context the beat sheet was generated against. They now render correctly, so neighbor continuity actually reaches the model. (#1356)[issue-1345] Editorial-check findings now show a "stale" badge when the manuscript or canon they analyzed has since changed. #1285's acceptance called for a stale badge on findings — mirroring the editorial-analysis snapshot's
sourceContentHash— but the editorial-check runner seeded findings into the manuscript review without recording any per-check source hash, so the UI had nothing to compare against and the badge shipped missing. The runner now stamps each finding with a fingerprint of the exact content its check analyzed: a manuscript-consuming check hashes the stitched corpus + canon, while a canon-only check (naming, object-attachment) hashes canon alone — so a prose edit doesn't falsely stale a finding that never read the prose. The manuscript-review GET annotates each finding with astaleflag (computed per-read, never stored, so it stays local to each install's current content), and the Editorial Checks triage view surfaces an amber Stale badge per-finding plus a per-check "N stale" count in the group header. Re-running a check against edited content refreshes the finding's hash (clearing the badge), and the hash survives cross-machine sync (additive, sanitized through the same shaper) while legacy/completeness findings with no hash are treated as never-stale. (server/services/pipeline/editorial/checkRunner.js,server/services/pipeline/manuscriptReview.js,server/routes/pipeline/manuscript.js,client/src/lib/editorialChecks.js,client/src/components/pipeline/editorial/EditorialFindingsTriage.jsx, #1345)[issue-1328] When a sync peer is too old to understand a new kind of record, you now see "this peer needs to update PortOS" instead of a silent retry that never lands. PortOS already surfaces a "peer is behind — they need to update" badge on the Instances page when a peer rejects a push because its storage layout is older than yours. But that badge only appeared for peers that recognized the record and balked at its version — the first time a brand-new kind of record ships (author personas were the latest; media collections did the same when they arrived), a peer running a PortOS version old enough to not know that record kind at all would reject the push one step earlier, and the rejection slipped past the badge: the push just kept quietly retrying on every edit, with nothing in the UI explaining why that record never reached the peer. Now that earlier rejection is recognized too, so the same "peer needs to update PortOS to sync <record kind>" badge appears and the retries back off until the peer upgrades — at which point the record syncs automatically. No data is ever lost: the push simply waits for the peer to catch up. (#1328)
[issue-1327] Uploaded (non-gallery) author headshots now transfer to federated peers. The authors federation only shipped a headshot's image bytes when its
headshotImageUrlpointed at/data/images/<f>(a gallery-picked image) —headshotImageFilename()maps that to theimageasset the peer-sync pull worker fetches. But the Authors page's upload button routed through the genericPOST /api/uploads, storing the file indata/uploads/and settingheadshotImageUrl = /api/uploads/<f>, which is not a pullable asset kind — so on a peer the author record synced but the headshot 404'd. Author-headshot uploads now go through the gallery instead: a newPOST /api/image-gen/uploadsaves the uploaded bytes intodata/images/— sniffing the real format from the magic bytes (PNG/JPEG/WebP/GIF), rejecting non-image payloads, and re-encoding to PNG so the saved file is a first-class gallery citizen (it lists in the gallery and deletes through the gallery API, both PNG-only) — and returns a/data/images/<f>URL, so the headshot rides the existingimagepull path and its bytes reach every peer. The magic-byte sniffer is consolidated into a shareddetectImageFormat()infileUtils.js(reused byimageClean.js). (server/lib/fileUtils.js,server/lib/imageClean.js,server/services/imageGen/local.js,server/routes/imageGen.js,client/src/services/apiSystem.js,client/src/pages/Authors.jsx, #1327)[issue-1319] LoRA training and video renders now survive a
pm2 restart portos-serverinstead of dying mid-run. A multi-hour LoRA training run kept dying withSIGINT/KeyboardInterruptat the exact second portos-server restarted (it restarts routinely on the memory ceiling). Root cause: pm2'sTreeKillwalks the parent→child process tree by PPID and signals every descendant of portos-server on restart — and the trainer/render children were descendants.detached: truedidn't help (it only moves the child to a new process group; TreeKill keys on PPID, not the group), andtreekill: falseon the app broke pm2's own reap (lingering:5555→ EADDRINUSE crash-loop). The fix is spawn-side: a newspawnDetachedhelper (server/lib/detachedSpawn.js) double-forks the job through a pure-shlauncher so it reparents to init (PPID=1) and leaves pm2's tree entirely, while the server keeps streaming progress by tailing on-disk log files (stdout/stderr/exit-status). Both spawn sites adopt it —server/services/loraTraining/index.js(was relying on the ineffectivedetached: true) andserver/services/videoGen/local.js(which previously had no detach at all, so it was fully exposed). Cancel/SIGKILL escalation, the completion watchdog, andcaffeinatekeep-awake all work unchanged (they signal the job by PID, which still reaches the reparented child); video renders clean up theirdata/videos/.detached/<jobId>scratch dir on completion. Because a surviving child outlives the server, boot reconcile now reaps any still-running orphan (cleanSIGTERMso the trainer checkpoints, thenSIGKILL) before marking its run/job failed — andresumeTrainingRunreaps too — so a restart becomes a clean checkpointed stop instead of a mid-opSIGINTcrash, and a resume can never spawn a second trainer into the same checkpoint dir. (Full re-attach-and-finalize across a restart is tracked in #1332.) The raised memory ceiling + checkpoint-resume remain the safety net for the rare restart that lands in the ~1ms pre-detach window. (server/lib/detachedSpawn.js,server/services/loraTraining/index.js,server/services/videoGen/local.js,server/services/mediaJobQueue/index.js, #1319)[issue-1332] A LoRA trainer that outlived a
pm2 restart portos-serveris now re-attached and finalized instead of being killed mid-run. #1319 made the detached trainer survive a server restart, but boot reconcile still reaped (cleanSIGTERM→ checkpoint →SIGKILL) any survivor before marking its run failed — so a run that was 95% done, or that even finished during the few seconds the server was down, registered no LoRA and silently discarded hours of GPU work (the survivor's terminalRESULT:line was never read). On boot PortOS now probes whether each interrupted training run's detached child is still alive (or finished-but-unconsumed) and, when it is, re-attaches: the media-job queue re-enqueues the run flagged for re-attach (so it reclaims the GPU lane ahead of any new render and won't OOM against a competing job), andrunTrainingtails the survivor's existing on-disk logs from the start — replaying the whole stream through the same line-handler/finalize path a fresh spawn uses, so the run streams live progress again and registers its LoRA exactly as if the server had never restarted. A survivor that genuinely died (killed mid-run with no recorded exit) still falls back to the prior reap-and-fail path, leaving its newest checkpoint resumable. Implemented asreattachDetached/isReattachableinserver/lib/detachedSpawn.js(the streaming half ofspawnDetachedwithout the spawn),hasSurvivingTrainer+ areattachbranch inserver/services/loraTraining/index.js, and a per-job re-attach decision inserver/services/mediaJobQueue/index.jsboot reconcile; progress persistence is now idempotent so the replay can't double-list checkpoints/samples. (server/lib/detachedSpawn.js,server/services/loraTraining/index.js,server/services/mediaJobQueue/index.js, #1332)Object and place LoRA datasets can now override their Lighting/Settings variation axes in the generate-batch dialog. The object/place LoRA feature was functional server-side (
deriveVariationAxesapplies kind-appropriate lighting/setting defaults), butLoraDatasetDetailhard-codedexpressionOptions/outfitOptionsto[]for non-character kinds, soGenerateBatchDialog'soptions.length > 0guards were always false and the relabeled "Lighting"/"Settings" chip lists never rendered — users could only ever use the server defaults, and the per-kind relabel logic was dead code. The dataset detail now exposes the server-derived axes via a newGET /api/lora-datasets/:id/variation-axesendpoint, and the client seeds the chips from that vocab (instead of duplicating the object/place axis constants client-side), so the overrides flow through the existingexpressions/outfitsgenerate params. (server/services/loraDatasetGenerate.js,server/routes/loraDatasets.js,client/src/pages/LoraDatasetDetail.jsx, #1322)The LoRA checkpoint picker no longer shows duplicate cards or offers the untrained step-0 adapter as a "Use this" option. A run's checkpoint picker could render several identical cards — most visibly three cards all at "step 0" with the same base-model preview. Two pre-existing artifacts caused it: (1) mflux writes a
0000000_checkpoint.zipfrom itsnum_iterations==0monitoring block — the untrained initial adapter — andlistRunCheckpointslisted it as deployable even though promoting it is a no-op; (2) every manual resume is a fresh job/watcher with an emptyseenset, so it re-emits checkpoints that already exist andrun.artifacts.checkpointsaccumulates duplicate entries for the same step.listRunCheckpointsnow collapses to one entry per (filename-derived) step — keeping the record that captured a real loss, tie-breaking on the latest — and drops step 0 entirely, sopromoteCheckpoint(step:0)correctly returnsCHECKPOINT_NOT_FOUND. The segmented-training path was never affected (one watcher with a persistentseenset spans all segments). (server/services/loraTraining/checkpoints.js, #1323)Deleting a brain memory now hard-prunes its mapped vector row instead of leaving a dead embedding in Postgres forever. A user-initiated brain delete used to flow through the bridge's archive path (
UPDATE memories SET status='archived'), which correctly hides the entry from search but left the row and its 768-dim embedding in the database indefinitely — so clearing a large import (e.g. a 1,482-record ChatGPT export) orphaned ~1,482 vectors that nothing ever reclaimed. The bridge now distinguishes a genuine local delete (a{type}:deleted/journals:deletedevent, emitted only by the localremove()/deleteJournalpaths) from a sync-driven archive (a peer delete arriving via the event-silentapplyRemoteRecord→sync:applied): a real local delete hard-deletes the mapped memory row + embedding and drops its bridge-map entry, while a synced delete stays soft-archived so a peer un-delete can still resurrect it. A present-but-archived record is always kept soft (archived ≠ deleted). (server/services/brainMemoryBridge.js, #1318)The Universe "Base style" image now lands in the universe's media collection, not just the probe slot. Generating the base-style probe persisted the result onto the universe's
styleImageRefs[](so it showed in the probe thumbnail) but never filed it into the "Universe: <name>" media collection the way batch renders and character reference sheets do — because the probe renders through the generic/image-gen/generateroute, which carried no collection tag. The probe render now passes the universe's identity as an argument on the generate call, and the route resolves the universe collection server-side and tags the queued job, so the existing completion hook (universeBuilderCollectionHook) files the finished image into the collection and enriches its sidecar with universe context — no front-end post-generation bookkeeping. The client never sends or knows a collectionId; resolution and filing are entirely server-side. Best-effort: if collection provisioning fails the render still proceeds (it just isn't auto-filed). The base-style slot is now also keyed by universe id in both the Universe Builder and Story Builder, so an in-flight render's spinner — and its completion handler — no longer leak onto the next universe when you switch selection mid-render (the abandoned render still files into its own universe's collection server-side). (server/routes/imageGen.js,client/src/hooks/useSingleImageRender.js,client/src/components/universe/StyleProbeImage.jsx,client/src/pages/UniverseBuilder.jsx,client/src/pages/StoryBuilder.jsx)The "Claim Issue" scheduled CoS task no longer reports an empty queue when there are claimable issues. The task's prompt skipped any issue carrying the
planlabel, calling them "tracking/umbrella" issues. Butdo-replan --issueslabels every migrated backlog itemplan— atomic bug-fixes included — so that rule discarded the entire actionable backlog and the task always exited with "no eligible issue" even with dozens of ready-to-work issues open. The prompt now treatsplanas the claimable-queue label (matching the/do:next --issuesflow) and skips only true epics (anepiclabel or a "(epic)" title, which need per-slice shipping). Non-customized installs auto-upgrade to the corrected prompt on the next schedule load. (server/services/taskPromptDefaults/)A late failure while finishing a local video render now fails the job cleanly instead of crashing the server (or leaving the job stuck "running"). When a render's child process exited and the final bookkeeping step (saving the clip to history, writing its thumbnail) threw, the error escaped the process-close handler as an unhandled rejection — which on modern Node can take down the whole server, and in any case left the media job wedged at "running" forever with no error ever reaching the UI. Both of
videoGen's child-close handlers (the main render finalizer and the last-frame extractor used by chained/extend renders) now catch such failures and surface them as a normal terminal error on the job, so the render is reported as failed and the next one proceeds. This path is newly exercised by LoRA-fused renders. (server/services/videoGen/local.js, #1334)The comic-panel and storyboard "AI: refine" image-prompt buttons no longer throw "Stage not found" on pm2-restart-only upgrades. Both stage prompts (
pipeline-comic-panel-image-prompt,pipeline-storyboard-image-prompt) ship indata.reference/and are wired to the comic-panel / storyboard image-prompt refine buttons, but they were added without a seed migration. Boot runs migrations but notsetup-data.js, so an install that upgraded by pulling +pm2 restart(instead of runningupdate.sh) never received them —buildPrompt('pipeline-comic-panel-image-prompt')then threw "Stage not found" the first time the user clicked "AI: refine." A new first-shipment seed migration (mirrors 090) copies each.mdintodata/prompts/stages/and merges itsstage-config.jsonentry, only when missing — never clobbering a customized install. (scripts/migrations/091-seed-image-prompt-stages.js)Imported ChatGPT conversations now sort by their original recency in the Brain ▸ Memory list, instead of arbitrary export order. A ChatGPT export isn't ordered chronologically, and a bulk import stamps every entry's
createdAt/updatedAtwith the same import time — so the memory list (which returned records in insertion order and showed "Updated {import time}" on every card) left imports jumbled and indistinguishable. The importer now persists both source clocks (sourceCreatedAtand the previously-droppedsourceUpdatedAt, the conversation's last-activity time),getMemoryEntries()orders entries newest-first by an effective recency timestamp (memoryRecencyMs: prefers the source clock for imports, falls back to the storage clock for hand-written notes), and the card footer shows "Conversation {N ago}" using the source date for imported entries (matching the sort) rather than the misleading bulk-import time. Existing imports (which already carrysourceCreatedAt) sort correctly without a migration. The memory create/update Zod schema (memoryInputSchema) gains the provenance fields (source,sourceRef,sourceCreatedAt,sourceUpdatedAt) for schema parity with whatcreateMemoryEntrypersists. (server/services/brainStorage.js,server/services/chatgptImport.js,server/lib/brainValidation.js,client/src/components/brain/tabs/MemoryTab.jsx)The pipeline Nouns stage showed "No description yet" for characters that are actually described. Characters store their renderable text in
physicalDescription, butNounsStage's per-kind config omitteddescField, soCanonCardfell back to reading the (usually empty)descriptionfield — making a fully-described character likeASTER-9 CHANDELIER(457 chars ofphysicalDescription) read as undescribed, and also leaving its description un-editable inline (the editor gates ondescField). WiredNounsStage'sKINDSto the samedescField/descFieldFallback/descFieldMaxthe universe view (UniverseCanonSection) already uses — characters →physicalDescription(fallbackdescription), objects →description(fallbacksignificance), places →description— so the pipeline and universe canon views render and edit identically. (client/src/components/pipeline/stages/NounsStage.jsx)A TUI run whose model id is rejected by the backend now fails (and falls back) instead of returning a screen-scrape of the error. When a Claude Code TUI run hit a non-recoverable model-id rejection — e.g. a bare Anthropic id like
claude-opus-4-8passed to a Bedrock-backed Claude Code, which answersAPI Error (…): 400 The provided model identifier is invalidand suggestsglobal.anthropic.…— the TUI just sat at an unanswered prompt. The one-shot runner saw output go idle, marked the runsuccess, and (notui-response.txthaving been written) scraped the error screen and returned it as the model's "response." Downstream that surfaced as a baffling failure: AI manuscript Reformat reportedAI reformat changed the wording(its integrity guard correctly rejecting the screen garbage), while other TUI-backed stages silently consumed the noise. The one-shot TUI runner now recognizes Claude Code's terminal model-id rejection (Bedrock 400 "model identifier is invalid" and Anthropic 404not_found_error) and fails the run asMODEL_NOT_FOUND, sorunPromptThroughProviderbenches the provider and retries its configured fallback (e.g.claude-code-tui→claude-code-bedrock, whose Bedrock ids are valid) — turning a silent corruption into a transparent recovery, or, with no fallback, an actionable error. The check is line-anchored, requires the 400/404 to immediately follow theAPI Errorprefix (so a retryable 429/500 Claude Code auto-retries is left alone), and is deliberately scoped to the one-shot runner — not the shared fallback detector the long-running agent spawn paths use, so an agent that merely echoes the error line in its own output (cat-ing a log, running the tests, investigating this very failure) can't have its run killed and misclassified. (server/lib/aiToolkit/errorDetection.js,server/lib/tuiPromptRunner.js)The "Verify arc" hover tooltip on the series arc page no longer renders clipped behind the nav and other cards. The
VerifyScopeTooltippanel sat in the arc-header's button row as anabsolute-positioned child. That row scrolls horizontally (the "Derive from manuscript" button overflows on narrow widths), so itsoverflowclipped the popover and trapped it in an ancestor stacking context — noz-indexcould lift it above the sidebar nav or the cards below. Rewrote it as a portal-rendered (createPortalto<body>),position: fixedpopover anchored below-right of its trigger via the livegetBoundingClientRect(), so it floats above everything and is clamped on-screen on narrow viewports. (A prior pass bumped the z-index toz-[60], which didn't help because the clip was anoverflow/stacking-context problem, not a layering one.)aria-describedbywiring is preserved. (client/src/components/pipeline/ArcCanvas.jsx)[issue-1383] Chunked LLM editorial checks now carry cross-chapter continuity between chunks. When a manuscript is too long for the provider's context window, the manuscript-consuming LLM checks review it chunk-by-chunk and merge findings first-wins (#1340). But a per-chunk view is blind to problems that span chapters:
style.conformancecouldn't see that chapter 1 established past-tense when judging chapter 3, andobjects.unmotivated-interactioncould flag a "missing setup" for an object that an earlier chunk already accounted for. Those two checks now opt into a rolling prior-findings digest (editorialPriorFindingsDigest) — each chunk after the first is prefixed with a capped, first-wins summary of the findings gathered so far, riding INSIDE the manuscript var so no stage-prompt template changes (mirrors the completeness pass'spriorFindingsDigest). The digest instructs the model not to repeat prior findings and to flag only new problems plus cross-chapter continuity issues the earlier findings reveal; exact repeats are still deduped byeditorialFindingKey. The chunk planner reservesEDITORIAL_PRIOR_DIGEST_TOKENSso prepending the digest can't overrun the window, andprose.info-dumpingdeliberately stays per-chunk (its problems are localized). The shared chunk loop is factored into onerunChunkedManuscriptCheckhelper used by both the staged and custom-check paths. (server/lib/editorial/checkRegistry.js, #1383)[issue-1395] Universe canon section-local renders now persist durably even if the page unmounts mid-render. A single reference/clean-plate render fired from the Universe canon section round-tripped a client
updateUniversePATCH to append the new filename onto the entry'simageRefs[]— so a render that completed after the user navigated away, refreshed, or switched universes silently lost its attachment (the image reached the media library, but noimageRefs[]row was ever written). These renders now carry the same durableuniverseRun.entryRefjob tag the batch path uses, so the server-side completion hook (universeBuilderCollectionHook) appendsimageRefs[]independent of any mounted client — converging the section-local and batch surfaces onto one durable path (mirrors the catalog hook from #1359). The hook fires theappendEntryImageRefeven when the render carries no collection (and the route preservesentryRefthrough a gallery-collection provisioning failure, so the imageRefs append never depends on the collection existing). The clienthandleRefCompletedkeeps its optimistic/immediate-refresh role (no PATCH); the hook is idempotent against it (mapAppendImageRefdedupes by filename). Backbone the durable path depends on:updateUniversenow preserves canon-entryimageRefs[]per-id across a stale whole-array PATCH (an inline canon edit/add/lock that round-trips a snapshot loaded before the render landed no longer clobbers the freshly-appended filename — the same guard variations and composite sheets already had);purgeImageRefFromAllUniversesswitches to the trusted mutator form so its intentional ref-removal isn't undone by that guard; and the route rejects anentryRefmissing its locating key (canon→kindKey, variation→categoryKey) instead of silently no-opping the append. (server/services/universeBuilderCollectionHook.js,server/routes/imageGen.js,server/services/universeBuilder.js,server/services/universeCanon.js,client/src/components/universe/UniverseCanonSection.jsx, #1395)[issue-1403] Chunked LLM editorial checks now also carry clean cross-chapter setup between chunks, not just prior findings. The #1383 prior-findings digest stops a later chunk from re-flagging a problem an earlier chunk recorded — but clean setup produces no finding, so a payoff in chunk 2 could still be mis-flagged "missing setup" when chunk 1 cleanly established it, and
style.conformancehad no signal of which tense/POV chapter 1 set when judging chapter 3.objects.unmotivated-interactionandstyle.conformancenow additionally opt into a cross-chunk clean-setup digest (crossChunkSetup+ a per-checksetupFocus): after each non-final chunk, one extra stage-scoped inline summarization call (ctx.callStageScopedInlineLLM, taggedpipeline-editorial-setup-digest, built bybuildSetupDigestPrompt) rolls a short "setup so far" summary forward, andeditorialSetupDigestprepends it to later chunks alongside the findings digest — riding INSIDE the manuscript var (no stage-prompt change). The summary call resolves the same provider the check's stage is pinned to (a newrunStageScopedInlineLLMinstageRunner.js), so manuscript text never routes to a different (e.g. cloud) provider than the stage chose. Both digests yield to manuscript coverage: the setup digest is fitted after the findings digest into whatever spare room remains, so a tight chunk drops the digest rather than the manuscript. A single-chunk (whole-fits) run never summarizes, so the common case pays nothing; the stored summary is capped (so a verbose response can't compound across chunks) and a summarizer failure keeps the prior summary and never aborts the check. When the reverse-outline (#1349) or continuity-bible (#1305) artifacts land, either could feed this context more cheaply than a per-chunk call. (server/lib/editorial/checkRegistry.js, #1403)[issue-1329] The mflux LoRA trainer now logs a one-line runtime fingerprint at startup, so every run log (and any future GPU-watchdog paniclog) self-documents the exact numerical stack it ran on. The macOS GPU watchdog kernel panics that hard-reboot the box during long mflux runs (
docs/research/2026-06-13-mflux-training-watchdog-panic.md) are version-specific to the mflux/mlx/mlx-metal/mlx-lm trio, and PortOS installsmflux>=0.17as a floor (scripts/setup-image-video.sh) — so the stack can drift silently and a paniclog couldn't say which versions were live.train_mflux_lora.pynow emits a singleSTATUS:line at the top ofmain()(runtime · mflux X · mlx Y · mlx-metal Z · mlx-lm W · <chip> · <os> · python <v>) reusing the shared_runner_common.build_runtime_fingerprint(the same definition the video-gen/statusprobe uses, so the two never drift). Best-effort: a fingerprint failure logs an "unavailable" line and never aborts a training run. This is the code half of #1329; the bisect + pin a validated trio half is a human M5 bench session (each failing candidate hard-reboots the machine) and stays open. (scripts/train_mflux_lora.py, #1329)[issue-1207] Messages, Wiki, Feature Agents, and Creative Director now use the shared
PageHeadertitle bar. These four tabbed/top-level pages still hand-rolled the same icon +<h1>+ subtitle +border-b border-port-borderbar with their own padding and title scale, so navigating between them and the already-adopted pages (Brain, MeatSpace, Settings, Goals, Calendar, Insights — #1182) produced visual jitter. Each now rendersPageHeaderwith its stats/controls moved into theactionsslot: Messages' account count, Wiki's page/source counts + vault<select>, Feature Agents' refresh button + "New Agent" link, and Creative Director's smoke-test + "New project" buttons. Creative Director's subtitle token reconciles fromtext-port-text-mutedtoPageHeader'stext-gray-500(and its title fromfont-semiboldto the sharedfont-bold) as called out in the issue. AIProviders/PromptManager were correctly left alone — they render inside the Settings shell, not a standalone bar. (client/src/pages/Messages.jsx,client/src/pages/Wiki.jsx,client/src/pages/FeatureAgents.jsx,client/src/pages/CreativeDirector.jsx, #1207)[issue-1362] The pipeline Nouns stage and the Story Builder characters step now auto-file their reference renders server-side instead of round-tripping a follow-up PATCH. Both surfaces used the generate-then-attach anti-pattern that #1395 already removed from the Universe canon section: they POSTed an untagged render, then on completion made a second full-array
updateUniversePATCH purely to append the new filename onto the entry'simageRefs[](Story Builder even refetched the universe first to avoid clobbering a sibling'simageRefs[]— work the server-side append does atomically). The render carried nouniverseRuntag, so the existingappendEntryImageRefcompletion hook never fired and a render that finished after the page unmounted lost its attachment. Both call sites now thread a durableuniverseRun.entryReftag through the generate call (canon →kindKey+ id, the same shape the batch path uses), souniverseBuilderCollectionHookfiles the finished render into the universe collection AND appends it to the entry'simageRefs[]independent of any mounted client. The client keeps only an optimistic, dedup-guarded + last-N-capped local stamp for an instant thumbnail (no PATCH; no refetch-before-PATCH race). The tag builder shared by all three call sites is extracted toclient/src/lib/universeRunTag.js(buildUniverseSectionRenderTag), replacing UniverseCanonSection's inline copy. (client/src/lib/universeRunTag.js,client/src/components/pipeline/stages/NounsStage.jsx,client/src/pages/StoryBuilder.jsx,client/src/components/universe/UniverseCanonSection.jsx, #1362)[issue-1363] Writers-Room storyboard scene renders now attach durably server-side instead of via a generate-then-attach round-trip. Both render entry points — the per-scene
SceneCard"Image" button and the cursor-drivenLiveRenderPanel"Render scene" — fired an untagged image render, then on theimage-gen:completedsocket event made a second call (attachWritersRoomSceneImage) to file the rendered filename onto the analysis snapshot'ssceneImages[sceneId]. That second call lost the image whenever the render finished after the editor unmounted / the user navigated away. The render now threads a durablewritersRoom: { workId, analysisId, sceneId }job tag, and a new completion hook (writersRoomSceneImageHook) files the finished render onto the snapshot AND mirrors it into the work's auto-collection independent of any mounted client — converging this surface onto the same durable hook path the universe (#1395/#1362) and catalog (#1359) renders use. The hook serializes attaches per analysis file so two scenes completing back-to-back can't clobber each other'ssceneImagesentry, and emits awriters-room:scene-imagesocket event so the storyboard boards still update reactively without a refetch. The shared attach+mirror logic the route and hook both run is extracted topersistSceneImage(evaluator). Only the async local/Codex lanes ride the media-job queue the hook listens to; the synchronous external SD-API lane (which returns its filename inline) still attaches via thescene-imageroute, so it keeps working. (server/routes/imageGen.js,server/services/writersRoomSceneImageHook.js,server/services/writersRoomEvents.js,server/services/writersRoom/evaluator.js,server/routes/writersRoom.js,server/services/socket.js,server/index.js,client/src/lib/wrImageDefaults.js,client/src/components/writers-room/{SceneCard,LiveRenderPanel}.jsx, #1363)[issue-1392] The three server call sites that resolve a universe media collection and build a
universeRunjob tag now share onebuildUniverseRunTaghelper. The base-style probe (imageGen.js), character reference sheets (universeCharacterSheet.js), and batch renders (universeBuilderRender.js) each independently calledfindOrCreateUniverseCollectionand assembled the same{ runId, universeId, collectionId, label, category, entryRef? }tag shape. Extracted toserver/services/universeRunTag.js(buildUniverseRunTag), which provisions the collection best-effort (logs a caller-suppliederrorContextand drops the collection portion on failure), mints or reuses arunId, preservesentryRefthrough a provisioning failure (#1395), and returnsundefinedwhen there's nothing left to file. The batch path (which mints onerunIdoutside its per-item loop and reuses it across every compiled item) passes its pre-resolvedcollection+ sharedrunIdso each per-item tag reuses them without re-provisioning — supported via the helper's optionalcollection/runIdparams. Quality/DRY only — no behavior change. (server/services/universeRunTag.js,server/routes/imageGen.js,server/services/universeCharacterSheet.js,server/services/universeBuilderRender.js, #1392)
Internal
- Removed a stray
.changelogs/(plural) directory created by an earlier commit alongside the real.changelog/(singular); its lone entry was already superseded in the canonical changelog. (.changelogs/) - Updated the bundled slashdo submodule from v3.15.0 to v3.16.0. (
lib/slashdo) - Bumped dependencies to current releases:
pg,sharp,vitest+@vitest/coverage-v8,tailwindcss+@tailwindcss/postcss,react-router-dom,recharts,jsdom,rollup-plugin-visualizer,eslint-plugin-react-hooks(v7), andlucide-react(v1). Pinnedjs-yamlto4.2.0via packageoverridesto resolve a moderate quadratic-complexity (ReDoS) advisory it carries transitively throughpm2.eslint/@eslint/jsare held at 9.x becauseeslint-plugin-reacthas no eslint-10-compatible release yet. (package.json,server/package.json,client/package.json) - Reworked the client ESLint policy to be strictly binary — every rule is
errororoff, neverwarn(a warning nobody acts on is just noise that hides real errors).no-unused-varsis now enforced (and existing violations cleared); the React-Compiler rule set newly enabled byeslint-plugin-react-hooksv7 is disabled (PortOS doesn't run the React Compiler, and those rules flag intentional idioms en masse), as isexhaustive-deps;rules-of-hooksstays enforced. Now-dead inlineeslint-disabledirectives were removed. (client/eslint.config.js)
Full Changelog
Full Diff: https://github.com/atomantic/PortOS/compare/v2.21.0...v2.22.0