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

feat: broaden prose.telling-emotion beyond named emotions (#1590)

[._.]/ Adam Eivyd874b68721a7
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index a795a5e695..6de1b58a17 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -67,6 +67,8 @@
- **[issue-1589] A new editorial check catches comic↔prose drift in hybrid issues — a plot beat the prose narrates that no panel shows, panel dialogue that contradicts the prose, or events ordered differently across the two media.** The existing `comic.*` checks validate comic content *in isolation* (lettering load, balloon attribution, panel rhythm), but for an issue told as **both prose and comic** nothing checked that the two media tell the *same* story — so a character the prose stabs could stand unharmed in the panels, a line could be put in a different character's mouth on the page, or the comic could reorder events the prose places in a fixed sequence, all unflagged. The new **Comic ↔ prose synchronization** check (`comic.prose-sync`) pairs each hybrid issue's prose narration with its authoritative comic pages (each panel's visual description, dialogue, captions, and SFX) and flags three substantive divergences: an **unshown beat** (a consequential event the prose narrates that no panel depicts), **contradicted dialogue** (a line said with materially different meaning or attributed to a different speaker), and a **chronology disagreement** (the two media ordering the same events incompatibly). It is deliberately tuned to *ignore* ordinary medium translation — comics legitimately compress, cut, reorder for page rhythm, and externalize interior narration into image — so a faithful adaptation that simply differs in density isn't flagged. It runs one model call per issue that has both prose and comic content (capped per run), reading each issue's **`prose`-stage** text (specifically, not the stitched manuscript — which prefers the comic script for a hybrid issue) plus the `comicScript.pacing` comic content, and anchors every finding to its issue; its findings go stale and re-run when either the prose or the comic for that issue drifts. It's a default-on, issue-scope check that surfaces in the existing editorial-review UI and Series Autopilot like every other check, marking a flat contradiction or a dropped consequential beat medium-severity. (`server/lib/editorial/checkRegistry.js`, `data.reference/prompts/stages/pipeline-editorial-comic-prose-sync.md`, `scripts/migrations/136-editorial-comic-prose-sync-stage.js`)
+- **[issue-1590] The telling-not-showing emotion check now catches the whole show-vs-tell family, not just named emotions.** `prose.telling-emotion` previously flagged only outright emotion labels ("she was sad", "he felt nervous"), missing three sibling forms of telling that weaken prose the same way: **agency-removing constructions** where the situation narrates itself with no one acting ("the story unfolded", "tension filled the room", "the argument escalated"), **reported-sensation filtering** where a feeling is routed through a perceiving verb instead of dramatized ("she saw the anger in his face" → "his jaw clenched"), and **asserted / unearned knowledge** handed to the reader with no grounding ("somehow she knew", "he just knew it was over"). The LLM stage prompt now covers all four, and explicitly defers purely mechanical filter words ("she saw the bus pull up") to the deterministic `prose.filter-words` check so the two don't double-flag the same line. Existing installs auto-upgrade the prompt via a hash-driven migration (customized copies are left intact and warned about). (`data.reference/prompts/stages/pipeline-editorial-telling-emotion.md`, `scripts/migrations/137-editorial-telling-emotion-broaden.js`)
+
## Series Autopilot
- **[issue-1510] Series Autopilot now catches whole-book continuity problems at the cheap beat stage, before it generates full scripts.** The autopilot reviewed continuity at two altitudes — the cross-volume synopsis pass (before beats exist) and the full-text editorial pass (after every issue's script is written, the most expensive stage) — leaving a gap in between. So structural defects spanning the whole book (a cliffhanger raised in one issue and never resolved, a finale that drifts onto a new subplot instead of landing the arc's intended ending, a promised through-line that never pays off, an event staged as the "first" in two different issues, a broken volume-to-volume hand-off) were only caught *after* all the scripts already existed — or not until a human read it. The autopilot now runs a **whole-manuscript beat-continuity pass over every issue's beat sheet, between beat generation and script generation**. Blocking findings are auto-resolved by rewriting just the affected issues' beats and re-checking (bounded, then it pauses for review with the residual findings), so the fix lands before any script is generated. The full-text editorial pass is unchanged and still catches what only the verbatim script can show (pacing, repeated/looping passages, dialogue craft). A new **Beat continuity rounds** control in the autopilot Options tunes how many auto-resolve rounds it attempts (0 skips the pass), saved as a per-install default like the existing Arc-verify and Editorial round knobs.
diff --git a/data.reference/prompts/stages/pipeline-editorial-telling-emotion.md b/data.reference/prompts/stages/pipeline-editorial-telling-emotion.md
index 71dccaf0af..3a9911a2e9 100644
--- a/data.reference/prompts/stages/pipeline-editorial-telling-emotion.md
+++ b/data.reference/prompts/stages/pipeline-editorial-telling-emotion.md
@@ -1,19 +1,39 @@
# Pipeline — Editorial Check: Telling-not-showing emotion
-You are a line editor doing a single focused pass for ONE problem: **emotion
-that is named/told rather than dramatized**. You are the judgment layer that a
-keyword scan can't be — flagging only the *strong* candidates worth converting
-to showing, and leaving alone the cases where telling is the right, efficient
-choice.
+You are a line editor doing a single focused pass for ONE problem: **emotion and
+interiority that is named, reported, or asserted rather than dramatized**. This
+is the foundational show-vs-tell craft rule, and it is broader than just named
+feelings — it also covers prose that *removes a character's agency*, *filters
+sensation through a perceiving verb*, or *asserts unearned knowledge*. You are
+the judgment layer that a keyword scan can't be — flagging only the *strong*
+candidates worth converting to showing, and leaving alone the cases where
+telling is the right, efficient choice.
-Flag a passage when it **states a character's emotion outright** in a way that
+Flag a passage when it tells the reader what to feel or know — in a way that
would land harder if dramatized through action, sensation, body language, or
subtext:
-- Named-emotion statements: "she was sad", "he felt nervous", "they were
+- **Named-emotion statements**: "she was sad", "he felt nervous", "they were
afraid", "anger filled her", "a wave of grief washed over him".
-- Emotion explained to the reader instead of shown: "he was so angry he could
- barely speak" (then nothing in the prose shows it).
+- **Emotion explained to the reader instead of shown**: "he was so angry he
+ could barely speak" (then nothing in the prose shows it).
+- **Agency-removing constructions** — events that "happen to" the scene with no
+ one acting, draining tension: "the story unfolded", "the argument escalated",
+ "tension filled the room", "things took a turn", "the moment passed between
+ them". Prefer a character *doing* something concrete over the situation
+ narrating itself.
+- **Reported-sensation filtering** — emotion routed through a perceiving verb
+ (saw, felt, noticed, sensed, watched, realized, could tell) so the reader is
+ told *about* the observation instead of shown the thing itself: "she saw the
+ anger in his face" / "he could feel the fear in the room" → drop the filter
+ and dramatize the source ("his jaw clenched"; "no one would meet her eyes").
+ This is the same family as the deterministic `prose.filter-words` check —
+ flag the cases where the filter buries a *showable emotional beat*, not every
+ stray "he saw".
+- **Asserted / unearned knowledge** — interiority handed to the reader with no
+ grounding: "somehow she knew", "he just knew it was over", "she understood
+ then that he would never come back". Ask what on the page *lets* the character
+ know it, and dramatize that instead.
Do NOT flag:
@@ -24,12 +44,16 @@ Do NOT flag:
is natural speech, not narration.
- A named emotion that is **already shown** alongside the telling (the prose
earns it; redundant naming is a lighter touch, flag at most `low`).
+- **Purely mechanical filter words** that carry no buried emotional beat ("she
+ saw the bus pull up", "he noticed the time") — those belong to the
+ deterministic `prose.filter-words` check, not here. Only flag a filtered
+ sensation when removing the filter would dramatize a *feeling*.
- Strong, deliberate stylistic choices in a consistent narrative voice.
Severity is **advisory**: most findings are `low`; reserve `medium` for a told
-emotion at a pivotal beat where showing would clearly raise the stakes, and
-`high` only when a key emotional turn is flatly narrated with no dramatization
-at all.
+emotion, agency-removal, or asserted insight at a pivotal beat where showing
+would clearly raise the stakes, and `high` only when a key emotional turn is
+flatly narrated with no dramatization at all.
## Manuscript
@@ -43,14 +67,15 @@ in each section header to attribute every finding to its `issueNumber`.
## Task
-Find the told emotions worth dramatizing. For each one, quote a short verbatim
-anchor from the text (≤ 200 characters) so the editor can jump to it, name the
-issue number it appears in, explain why showing would land harder here, and
-suggest a concrete way to dramatize it (an action, a physical sensation, a beat
-of subtext) — without rewriting the whole passage for the author.
+Find the told emotions, agency-removing constructions, filtered sensations, and
+asserted-knowledge moments worth dramatizing. For each one, quote a short
+verbatim anchor from the text (≤ 200 characters) so the editor can jump to it,
+name the issue number it appears in, explain why showing would land harder here,
+and suggest a concrete way to dramatize it (an action, a physical sensation, a
+beat of subtext) — without rewriting the whole passage for the author.
-Be specific and cite the text. If the prose already shows its emotions, return
-an empty `findings` array — do not invent problems.
+Be specific and cite the text. If the prose already dramatizes its emotions and
+interiority, return an empty `findings` array — do not invent problems.
## Output contract
diff --git a/scripts/migrations/137-editorial-telling-emotion-broaden.js b/scripts/migrations/137-editorial-telling-emotion-broaden.js
new file mode 100644
index 0000000000..0ec971bf78
--- /dev/null
+++ b/scripts/migrations/137-editorial-telling-emotion-broaden.js
@@ -0,0 +1,60 @@
+/**
+ * Broaden the `prose.telling-emotion` editorial check beyond named emotions (#1590).
+ *
+ * The original telling-emotion stage prompt only flagged named-emotion
+ * statements ("she was sad", "he felt nervous"). That misses the rest of the
+ * show-vs-tell family: agency-removing constructions ("the story unfolded",
+ * "tension filled the room"), reported-sensation filtering ("she saw the anger
+ * in his face" vs "his jaw clenched"), and asserted/unearned knowledge
+ * ("somehow she knew"). This migration rewrites the stage prompt to cover all
+ * four, and adds a coordination note so the LLM defers purely mechanical filter
+ * words to the deterministic `prose.filter-words` check rather than
+ * double-flagging them.
+ *
+ * `scripts/setup-data.js` only copies *missing* prompts, so existing installs
+ * keep their old telling-emotion template until this migration rewrites it.
+ * Migration 110 seeds the file but never tracks its hash, so this is the first
+ * hash-driven update for it — no earlier migration's MD5 tables need resyncing.
+ * Customization-safe: only installs whose copy still hashes to the prior shipped
+ * version are auto-updated; customized prompts are left intact and warned about.
+ *
+ * Strategy: hash-driven prompt-replace via `./_lib.js`. Idempotent.
+ */
+
+import { makePromptReplaceMigration } from './_lib.js';
+
+// Pre-change shipped hash: the original #1306 telling-emotion body (seeded by
+// migration 110).
+export const ACCEPTED_OLD_MD5 = {
+ 'pipeline-editorial-telling-emotion.md': ['2c5c33709732fe7ffa319d32b8755354'],
+};
+
+// Post-change shipped hash (agency-removal + reported-sensation filtering +
+// asserted-knowledge coverage). This file's only prior migration (110) is a
+// seed that tracks no hash, so there are no earlier MD5 tables to mirror into.
+export const NEW_SHIPPED_MD5 = {
+ 'pipeline-editorial-telling-emotion.md': '871f7e8bea2a2d95f28875ab45a318e2',
+};
+
+const { applyMigration, up } = makePromptReplaceMigration({
+ accepted: ACCEPTED_OLD_MD5,
+ current: NEW_SHIPPED_MD5,
+ label: 'editorial telling-emotion broaden',
+ customizedHint: (filename) =>
+ ` To broaden it manually, diff:\n` +
+ ` data.reference/prompts/stages/${filename}\n` +
+ ` against your current:\n` +
+ ` data/prompts/stages/${filename}\n` +
+ ` and add the agency-removal, reported-sensation-filtering, and\n` +
+ ` asserted-knowledge categories (plus the prose.filter-words coordination\n` +
+ ` note) to the "Flag a passage when..." list.`,
+ skipFooter: (count) =>
+ `⚠️ ${count} telling-emotion prompt(s) could not be auto-updated because\n` +
+ ` they were customized. The check still runs, but will keep flagging only\n` +
+ ` named emotions until you broaden it to cover agency-removal, reported\n` +
+ ` sensation, and asserted knowledge.\n` +
+ ` See data.reference/prompts/stages/pipeline-editorial-telling-emotion.md.`,
+});
+
+export { applyMigration };
+export default { up };
diff --git a/scripts/migrations/137-editorial-telling-emotion-broaden.test.js b/scripts/migrations/137-editorial-telling-emotion-broaden.test.js
new file mode 100644
index 0000000000..99e99a59f3
--- /dev/null
+++ b/scripts/migrations/137-editorial-telling-emotion-broaden.test.js
@@ -0,0 +1,14 @@
+import { describe } from 'vitest';
+
+import { runPromptMigrationTests } from './_testHelpers.js';
+import migration, { applyMigration, ACCEPTED_OLD_MD5, NEW_SHIPPED_MD5 } from './137-editorial-telling-emotion-broaden.js';
+
+describe('migration 137 — broaden editorial telling-emotion', () => {
+ runPromptMigrationTests({
+ migration,
+ applyMigration,
+ ACCEPTED_OLD_MD5,
+ NEW_SHIPPED_MD5,
+ prefix: 'migration-137-',
+ });
+});
diff --git a/scripts/setup-data-drift.test.js b/scripts/setup-data-drift.test.js
index 65a5f079b2..75824e1a31 100644
--- a/scripts/setup-data-drift.test.js
+++ b/scripts/setup-data-drift.test.js
@@ -42,6 +42,7 @@ const EXPECTED_STAGE_OLD = {
'pipeline-manuscript-completeness.md': ['4f2b95778aed85f5fc461d71eb461b79', 'e6858c74ab2cead752d388e3f428406c', '1ee5ac936fbf1d365e0eaea99bcf1e77', 'cec8faeb75dfff74e41b8221145c2e92'],
'pipeline-manuscript-fix.md': ['196625952f4a36f3cb962c729f60f0ee', 'c88a56304eb5e290ae0de9dadd20b310', '88199bf7b5b50155bd2e1624bd920ebd'],
'cos-agent-briefing.md': ['181b26838e526427173e4dccfc884d01', '3e1ca7f7b14b799f89a193c568003624', '699d053875472df455258724a0162bd5', '9bcd3a0167dd4aed7cfff7f404494dfb', 'af73fd50d6f29d561772474c12346e53', 'd761133753da290a0c02eca1c87709e4'],
+ 'pipeline-editorial-telling-emotion.md': ['2c5c33709732fe7ffa319d32b8755354'],
'pipeline-tv-script.md': ['3f6fecc25573ed054b47db392250034a'],
};
const EXPECTED_STAGE_NEW = {
@@ -63,6 +64,7 @@ const EXPECTED_STAGE_NEW = {
'pipeline-editorial-analysis.md': 'daeb02bd54b0c099b21af659c6298cfe',
'pipeline-manuscript-completeness.md': 'fd26f928c33803c12878a1bfb8561ece',
'pipeline-manuscript-fix.md': 'e2baaf0f2f53c8aa1e934a428c0ca583',
+ 'pipeline-editorial-telling-emotion.md': '871f7e8bea2a2d95f28875ab45a318e2',
'pipeline-tv-script.md': '376f779f4687b598f1c92ca4e770fd5a',
};
const EXPECTED_PARTIAL_OLD = {