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

docs([issue-1312]): log cast representation & balance check to changelog

Adam Eivyca79b13f8559
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 6cbdcaa45b..1dfd811c10 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -6,6 +6,7 @@
- **[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 `Continuity` notes 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 `digitalTwin` sync category only ever transferred `identity` / `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 under `data/digital-twin/`: the **taste profile** (responses union per section by `questionId`, LWW — answers given on either machine survive), **meta.json** (documents/test-histories/personas union by id, enrichment deep-unioned, settings fill-missing), the **`.md` documents** 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 `Casting` notes in the manuscript editor. (#1312)
- **[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 structure` notes 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 `Lettering` notes 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)