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-1295

[._.]/ Adam Eivyfdc0c46e663a
diff --cc .changelog/NEXT.md
index 6a5a765de6,4696f15010..a6794d6c1a
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@@ -2,8 -2,8 +2,10 @@@
## Added
+- **[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-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)
diff --cc server/lib/editorial/README.md
index 76682b5616,26d3d45896..85f1555a61
--- a/server/lib/editorial/README.md
+++ b/server/lib/editorial/README.md
@@@ -56,8 -56,8 +56,8 @@@ it. To add a new built-in check, appen
Declare every input the check's `run(ctx)` reads in its `sources` array (a
non-empty subset of `EDITORIAL_SOURCES`: `manuscript`, `canon`,
- `series.styleGuide`, `series.arc.tickingClock`, `reverseOutline`,
- `editorialArcs`). The staleness
+ `series.styleGuide`, `series.arc.tickingClock`, `series.arc.readerMap`,
-`reverseOutline`). The staleness
++`reverseOutline`, `editorialArcs`). The staleness
runner fingerprints exactly those sources, so a finding goes stale only when
content the check actually analyzed drifts — declare too few and a finding stays
falsely fresh; a `manuscript` source must pair with `needsManuscript: true`, and
diff --cc server/lib/editorial/checkRegistry.js
index adfddd5d8f,94123a34eb..5b45a640ab
--- a/server/lib/editorial/checkRegistry.js
+++ b/server/lib/editorial/checkRegistry.js
@@@ -48,19 -48,17 +48,24 @@@ const SEVERITIES = CHECK_SEVERITIES
// scenes carry components/povCharacter/charactersPresent.
// The runner fetches it (gated on this source) and injects
// `ctx.reverseOutline` (the scenes array).
+ // - 'series.arc.readerMap' — the series arc's authored reader-map (#1299): the
+ // writer-logged hooks (questions planted) and payoffs
+ // (their resolutions). The Chekhov check reconciles its
+ // detected setups/payoffs against these authored ones.
+// - 'editorialArcs' — the detected per-character arc directions from the series
+// editorial analysis aggregate (#1295). The runner fetches it
+// (gated on this source) and injects `ctx.editorialArcs`
+// (`[{ name, arcDirection, issueCount, isProtagonist }]`). This
+// is the graceful-degradation fallback for the dedicated arc
+// model (#arc-transitions) until that lands.
export const EDITORIAL_SOURCES = Object.freeze([
'manuscript',
'canon',
'series.styleGuide',
'series.arc.tickingClock',
+ 'series.arc.readerMap',
'reverseOutline',
+ 'editorialArcs',
]);
// Default per-run finding cap for user-defined checks (#1346) — mirrors the