Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Merge remote-tracking branch 'origin/main' into next/issue-2786

[._.]/ Adam Eivy8198d94f3396
diff --cc .changelog/NEXT.md
index 42a36644cd,9c780aa623..453774550a
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@@ -197,7 -197,6 +197,10 @@@
- **[issue-3566] The Writers Room synced review no longer hides its Script and Media panes on a phone.** The three panes were laid out as a grid that only ever split into columns at desktop widths; below that they stacked into one column inside a fixed-height, `overflow-hidden` container with nothing to scroll, so on a ~375px screen the Prose pane filled the view and Script and Media sat past the bottom edge, unreachable — the cross-link highlighting the panel exists for was invisible on half of it. Narrow widths now show one pane at a time, picked from a 44px-tall selector that replaces the desktop "which panes sit side by side" toggles in the same spot on the toolbar; each pane keeps its own scroller, so selecting a prose segment still scrolls the linked scene into view when you switch to it. Picking a pane on the phone selector also re-enables it, so a pane switched off on a desktop session isn't stranded, and if the pane you were viewing is switched off the view falls back to one that's still on rather than going blank. Desktop layout is unchanged.
- **[issue-3586] The Writers Room synced review now shows which card you actually clicked.** All three panes drew their cards through a helper that had four states — selected, linked, dimmed, plain — but every caller passed "not selected" as a constant, so the strongest of the four was unreachable code. Because the mapping deliberately includes the selected item in its own pane's highlight set, the card you clicked came out styled exactly like the cards it links to: with a prose segment selected, the segment itself and the scene it maps to were the same faint accent border, and nothing on screen said which end of the cross-link you were standing on. The real selection is now threaded into each pane, so the anchor card takes the full accent ring and its linked counterparts keep the lighter treatment, in the prose, script and media panes alike.
- **[issue-3569] The Writers Room library's header buttons are now big enough to hit on a phone.** "New folder", "New work" and "Hide library" each wrapped a 14px icon in nothing but `p-1`, giving them roughly 22x22px of tappable area sitting side by side in a 260px sidebar — close enough together that a thumb aiming for "New work" landed on "New folder" instead, which is the one control the whole pane exists to reach. All three now clear the 44px floor the rest of the app uses, as do the create-folder and create-work forms they open: the name/title inputs, the kind dropdown, and the Add/Create/Cancel buttons were all ~24px tall, so getting past the header only landed you on a second row of targets just as easy to miss. Unlike the bible and snapshot rows in #3565, the header row has no padding of its own for the extra height to bleed back into, so it grows to 44px rather than clawing it back with a negative margin that would collide with the pane's top edge. "Hide library" stays desktop-only and is centred with `inline-flex` rather than `flex`, since the two are the same Tailwind layer and a bare `flex` would race the `md:` variant that hides it.
+ - **[issue-3590] Lengthening a perpetual task's recheck cadence no longer delays a recheck that was already due.** When the recheck cadence changes, the schedule re-derives the park timestamp of every currently-parked execution record from the new cadence, so the edit takes effect on the next slot instead of waiting out the old timestamp. The guard was "does this record carry a park at all" — but an elapsed park is never cleared when it expires (the task simply reports itself as due for a recheck, and the dispatch gate clears the park when it actually runs), so a record that was ready to run right now was matched by that guard too and stamped with a fresh future timestamp. Shortening the cadence was harmless, since the new timestamp was sooner; lengthening it pushed the pending recheck back out by the new interval, and the drain the user was waiting on silently went quiet again. Only parks still in the future are re-derived now — a record whose park has already elapsed is left exactly as it is, so it rechecks on the very next tick.
+ - **[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)
+
+## 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.
++