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-1303
[._.]/ Adam Eivy70fecd2e60a1
diff --cc .changelog/NEXT.mdindex 99aa37fe93,85ecedf2b3..b21339cd05--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@@ -2,10 -2,12 +2,14 @@@## Added+- **[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-rewrites` and `DELETE …/: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 `significance` field 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 `relationships` field is untouched; `relationshipLinks` is 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)diff --cc data.reference/prompts/stage-config.jsonindex 5ab5ad449b,5086dae5f5..c0c0b6e9f8--- a/data.reference/prompts/stage-config.json+++ b/data.reference/prompts/stage-config.json@@@ -492,12 -492,19 +492,26 @@@"returnsJson": true,"variables": []},+ "pipeline-editorial-style-conformance": {+ "name": "Pipeline — Editorial Check: Style-guide conformance",+ "description": "Editorial check (#1303): flags prose that drifts from the series style guide — wrong narrative tense, point-of-view person drift, or content/profanity beyond the configured rating ceiling. Reads the stitched manuscript plus the declared style-guide expectations. Returns issue-anchored findings.",+ "model": "default",+ "returnsJson": true,+ "variables": []++ },+ "pipeline-pov-rewrite": {+ "name": "Pipeline — Perspective Rewrite (alternate POV)",+ "description": "Rewrite one issue's drafted passage (prose, comic script, or teleplay) from a different cast character's point of view — the same events re-lensed through another character's interiority, wants, and blind spots. A non-destructive revision exercise; the canonical draft is untouched. Runs at `heavy` tier — re-renders the full passage.",+ "model": "heavy",+ "returnsJson": false,+ "variables": []+ },+ "pipeline-pov-analysis": {+ "name": "Pipeline — Perspective Rewrite Analysis (what we learn)",+ "description": "Compare an original passage with its alternate-POV rewrite and report what the exercise reveals: new interiority surfaced, information the original POV was hiding, whether the new POV has a stronger claim to the scene, and concrete fold-back edits. Runs at `heavy` tier — reads both passages.",+ "model": "heavy",+ "returnsJson": true,+ "variables": []}}}