Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Merge remote-tracking branch 'origin/main' into next/issue-2786
[._.]/ Adam Eivy870d74be103c
diff --cc .changelog/NEXT.mdindex 0960a5994c,62e0cb35fe..3a1a7f741b--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -201,7 -201,5 +201,9 @@@- **[issue-3594] The drafting prompt now teaches how to write a scene, not just how much scene to write.** The craft doctrine injected into both drafting stages — the prose pipeline and Writers Room live continuation — was entirely negative: eleven "avoid X" rules plus the Stability Trap countermeasures. One of those rules carries a measurable target with no technique attached ("at least 70% in-scene, not summary"), and a model told to dramatize more with no construction recipe reaches for longer description, which is exactly the white-room, zero-interiority draft the editorial checks then have to catch. A new "Zoom into the moment" section — the first positive-instruction block in the partial, placed right after the rule it operationalizes — gives it the recipe in five elements: name the location with one concrete noun rather than an inventory, say what the character is doing in present-moment verbs, render thoughts raw in the character's own diction instead of essay register, show emotion on the body rather than naming the feeling, and quote dialogue that is worth quoting instead of narrating that someone spoke. Each element ships with the failure mode that makes it a rule rather than a suggestion. Because the partial is a file on disk that existing installs already have, and both `setup-data.js` and the original seed migration only ever copy it when it is *missing*, the section arrives through a hash-gated migration: an install still running the shipped version is upgraded in place, and a hand-edited partial is left exactly as it is and told what to merge.- **[issue-3591] Editorial checks now catch a pivotal moment that got narrated instead of played out.** The drafting prompts have long carried the rule that a draft should be at least 70% in-scene, not summary — but nothing on the review side ever checked it, so the most common structural failure in a draft went unflagged: a decision, confrontation or reveal delivered from helicopter altitude ("Over the next week they argued about it, and eventually she agreed to go") where the scene would have landed. The new **Narrated summary where a scene belongs** check reads your drafted manuscript and names four modes of it — a compressed-away turning point, reported action the reader never physically enters, habitual mode ("every night she would…") wrapped around what was really a single decisive event, and result-first narration that states the outcome and skips the scene. Each finding quotes a verbatim anchor and, rather than just saying "dramatize this", names the concrete moment to zoom into. It reads the reverse-outline scene segmentation as context so honest between-scene compression is left alone — the target is a beat that never became a scene at all, which is invisible to the existing scene checks precisely because they only judge scenes that exist. Deliberate montages, brief time-skips, backstory summary (that belongs to info-dumping) and beats too minor to be worth the words are explicitly out of scope. Enabled by default at medium severity under Create → Editorial Checks; the new `pipeline-editorial-summary-not-scene` stage prompt ships and migrates for existing installs. (#3591)- **[issue-3574] A parked perpetual task now reports the same park state to the schedule UI and to the daemon's wake-up planner.** "Which scopes of a perpetual task are parked, and when does the soonest one recheck?" was answered by three separate walks of the same records: one for the Schedule page's parked/draining badge, one for the upcoming-tasks eligibility that decides when the daemon wakes, and a third inline read of a single record's `parkedUntil` in the due check. They had already drifted — the badge only ever folded the top-level execution record in when its park hadn't elapsed, while the wake-up planner folded in any top-level record carrying a park at all — so a global park that had just come due could read as "nothing parked" in one and "due now" in the other. All of it now projects from one aggregate whose global-record inclusion rule is written down in exactly one place: every per-app record is a tracked scope, and the top-level record is a tracked scope only when it carries its own park. Each caller's existing behavior is unchanged; the two are pinned to the same fixtures by tests so they can't diverge again.+ - **[issue-3592] Editorial checks now catch the line a character should have said out loud.** Six dialogue checks judge the dialogue that is already on the page — its subtext, its tags, its attribution, whether the cast sounds different — and none of them could see the opposite problem: a character's decisive utterance handed to the reader as narrated report instead of a quoted line. "My manager was very happy with my work" lands nowhere near "My manager looked up from the deck and said, 'That's the best presentation you've ever given.'", and nothing in PortOS flagged the first one. `prose.telling-emotion` is the nearest neighbour and explicitly carves dialogue out of its scope, so "he told me he was leaving" sailed past it too. The new **Reported speech where a quoted line belongs** check reads your drafted manuscript and names three modes of it: speech summarized at a turning point ("she told him she was leaving", "the doctor gave them the news"), a reaction to speech reported where the words themselves were the beat, and a confrontation narrated in the third person with no line ever quoted. Each finding quotes a verbatim anchor and names *which* moment to quote rather than drafting the dialogue for you. Deliberate compression of routine exchanges is left alone — quoting those is exactly what the pleasantries check cuts — as are reported speech used to bridge between scenes, a POV where the character genuinely did not hear the words, a scene that already quotes its decisive line, and free-indirect-discourse voices where reported speech is the consistent mode. Enabled by default at low (advisory) severity under Create → Editorial Checks; the new `pipeline-editorial-reported-speech` stage prompt ships and migrates for existing installs. (#3592)+ - **[issue-3593] Editorial checks now catch interiority that sounds written rather than thought.** Three checks already judged a character's inner life and every one of them judged quantity or placement: whether the four POV dimensions are developed at all, whether description swamps interiority inside a scene, whether rendered thought is italicized consistently. So a manuscript could pass all three while its thoughts read *"I thought: this represents a supreme opportunity"* — present, well-proportioned, correctly formatted, and completely unbelievable as something a human being thought. Real interiority is raw, fragmentary, self-interrupting and often petty; polished-essay interiority is a distinct and common failure mode that nothing in PortOS could see. The new **Interiority register** check reads your drafted manuscript for four modes of it: thought composed in balanced subordinate-clause sentences where a character under pressure would think in fragments, author intrusion articulating a theme the character would never consciously articulate, a register mismatch measured against how that character actually *speaks* elsewhere in the manuscript — a plain-spoken character thinking in literary prose is the strongest signal there is — and an inner voice indistinguishable across the entire cast, flagged once rather than per passage. A genuinely erudite POV character whose formality is consistent and characterized is left alone, as are deliberate free indirect discourse, calm reflective beats where measured thought is what the moment calls for, and transitional summary interiority. Each finding quotes the thought and names the register shift instead of rewriting the line for you. The prompt states its borders with `prose.telling-emotion` and the two other interiority checks explicitly, so four checks reading the same paragraph don't return four findings on it. Enabled by default at low (advisory) severity under Create → Editorial Checks; the new `pipeline-editorial-interiority-register` stage prompt ships and migrates for existing installs. (#3593)++## Character LoRA training+- **[issue-2786] Training a character LoRA on an NVIDIA GPU now works.** The torch/diffusers trainer is the path every non-Apple machine takes, but it had only ever been exercised on a 128 GB Mac — where two memory faults did no visible harm, and where the run died at an unrelated Metal limitation before it could reach one of them. On a 24 GB card both were fatal. Preparing the dataset held on to roughly 2.6 GB of scratch memory for every distinct caption it read, so a six-image set exhausted the card before training began; depending on how the driver reacted, that surfaced either as a run that sat at "precompute" for twenty minutes doing nothing visible, or as an out-of-memory abort blaming an allocation far smaller than the space that should have been free. Separately, the preview image the trainer renders at each checkpoint was being decoded on the CPU in a numeric format no CPU has a fast path for, which read as a hang — a single 512-pixel preview took over eighteen minutes. Both are fixed, and a run that previously never finished now trains, checkpoints, previews, resumes from a checkpoint, and produces an adapter that loads cleanly for image generation; a 20-step smoke run completes in about twenty seconds and peaks at 8.8 GB of the card's 24 GB. Apple Silicon behaviour is unchanged — it still refuses up front and points at the mflux runtime, which remains the right choice there.+