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: list dialogue.reported-speech alongside its LLM siblings in the editorial catalog (#3592)

[._.]/ Adam Eivy65668548aef3
diff --git a/server/lib/editorial/README.md b/server/lib/editorial/README.md
index 5841710c38..015b879bd6 100644
--- a/server/lib/editorial/README.md
+++ b/server/lib/editorial/README.md
@@ -206,7 +206,7 @@ runner-injected `ctx.callInlineLLM` (an inline-prompt sibling of
| `voiceFingerprint.js` | Pure, dependency-free statistical voice-fingerprint primitives for the deterministic `style.voice-drift` check (#2166 — CWQE Phase 2), the cheap sibling of the LLM `style.voice-consistency`. Reuses `tokenizeWords`/`splitSentences` (proseTics.js) + `splitParagraphs`/`emDashDensityPer1000` (slopScore.js) rather than re-implementing them. `computeFingerprint(text)` measures one issue's metric vector (sentence mean/σ/CV, fragment %, long-sentence %, paragraph mean/σ, dialogue ratio, em-dash rate, abstract-noun & simile density per 1k, dominant sentence-opener %, plus optional `well:*` vocabulary coverage); `splitManuscriptByIssue` / `voiceFingerprintMatrix` fingerprint every `# Issue N` section; `computeVoiceDrift` computes series mean/σ per metric and flags issues > threshold·σ out (small-N gated below `minIssues`), and — under an exemplar/blended baseline (#2248) — emits a `seriesFindings[]` of series-level "the whole corpus is uniformly off the chosen voice" mismatches for metrics whose drafted σ≈0 but whose shared value sits a scale-free relative distance from the chosen-voice center; `parseVoiceWells` parses the `name: word, word; …` config spec; `describeDrift` renders a per-issue finding sentence and `describeSeriesDrift` the series-level one; `renderFingerprintTable` renders the issues×metrics matrix (outliers marked); `describeMetricColumn(key)` / `metricUnit(key)` give the self-describing column header (label/unit/higher/lower/isWell) shared by the finding text and the deep-linkable matrix view (#2194). `VOICE_METRICS` is the static metric descriptor list. |
| `comicPacing.js` | Pure, dependency-free comic-pacing primitives for the #1314 comic-pacing group: `isSplashPage`, `comicSpreadLayout` (recto/verso + spread + `beginsSpread` page-turn map), `summarizeComicPages`, `analyzePanelRhythm` (`comic.panel-rhythm` — splash overuse / back-to-back splashes / overcrowded pages / grid monotony), `comicPageTurnSummary` + `authoredRevealSummary` (LLM-context renderers for `comic.page-turn-beats`). Operates on already-parsed comic pages (the runner parses each issue's stored comic script and injects them as the `comicScript` source) so the editorial dir stays import-pure. |
| `shotContinuity.js` | Pure, dependency-free storyboard shot-continuity primitives for the deterministic `visual.shot-continuity` check (#1315): `findAxisReversals` (180°-rule axis flips across a continuity-linked shot pair using `screenDirection`) and `findShotTypeMonotony` (a scene whose classified shots all share one `shotType`). Also `summarizeStoryboardShots` (#1466) — renders the collected `{ issueNumber, scene }` storyboard list into a compact per-scene shot block shared by the LLM siblings `visual.eyeline-match` (gaze reciprocity / eyeline-vs-screen-direction) and `visual.appearance-continuity` (#1467 — diffs the same entity's wardrobe/prop/setting descriptions across shots for contradictions). Reads the shot-grammar fields from `server/lib/shotGrammar.js`. |
-| `dialogue.js` | Pure, dependency-free dialogue-tag primitives for the #1307 dialogue-craft group: `findSaidBookisms` (`dialogue.said-bookisms` — ornate speech tags like *expostulated*/*opined* and non-speech tags like "she smiled", matched only when adjacent to a double-quote span) and `findUnattributedDialogueRuns` (`dialogue.attribution-clarity` — runs of consecutive untagged/unbeated dialogue lines where the speaker can't be tracked), plus `attributeDialogueByOwner` (the coarse per-character dialogue-line tally behind `cast.representation-balance`'s dialogue-share signal, #1312 — credits each quoted paragraph to the first owner named in its beat) and the seed `SAID_BOOKISMS` / `NON_SPEECH_TAGS` lists. Also `inventoryDialogueTags` + `splitScenes` + `findDialogueTagVariety` (`dialogue.tag-variety`, #1587 — per-scene tag inventory flagging within-scene **monotony** (one verb dominates) and **over-variation** (a fresh verb on nearly every line); collapses inflections onto a base lemma via `PLAIN_SPEECH_TAG_GROUPS`). The LLM siblings `dialogue.on-the-nose` (subtext-free / "as you know, Bob" dialogue) and `dialogue.voice-distinctiveness` (per-character voice against canon `speechPattern`/`speechAccent`) handle the judgment cases. |
+| `dialogue.js` | Pure, dependency-free dialogue-tag primitives for the #1307 dialogue-craft group: `findSaidBookisms` (`dialogue.said-bookisms` — ornate speech tags like *expostulated*/*opined* and non-speech tags like "she smiled", matched only when adjacent to a double-quote span) and `findUnattributedDialogueRuns` (`dialogue.attribution-clarity` — runs of consecutive untagged/unbeated dialogue lines where the speaker can't be tracked), plus `attributeDialogueByOwner` (the coarse per-character dialogue-line tally behind `cast.representation-balance`'s dialogue-share signal, #1312 — credits each quoted paragraph to the first owner named in its beat) and the seed `SAID_BOOKISMS` / `NON_SPEECH_TAGS` lists. Also `inventoryDialogueTags` + `splitScenes` + `findDialogueTagVariety` (`dialogue.tag-variety`, #1587 — per-scene tag inventory flagging within-scene **monotony** (one verb dominates) and **over-variation** (a fresh verb on nearly every line); collapses inflections onto a base lemma via `PLAIN_SPEECH_TAG_GROUPS`). The LLM siblings `dialogue.on-the-nose` (subtext-free / "as you know, Bob" dialogue), `dialogue.voice-distinctiveness` (per-character voice against canon `speechPattern`/`speechAccent`) and `dialogue.reported-speech` (#3592 — a decisive utterance narrated as reported speech instead of quoted, which no quote-delimited scan can see because there is no quote on the page) handle the judgment cases. |
| `letteringDensity.js` | Pure, dependency-free comic lettering-density primitives for `comic.lettering-density` (#1313): `countWords`, `panelLetteringMetrics` (per-panel balloon/caption/SFX word + balloon tally over the `comicScriptParser` output), `analyzeComicLettering` (flags balloons/panels/pages over the configurable thresholds in `DEFAULT_LETTERING_THRESHOLDS`), `overflowSeverity` (severity scaled by how far over the limit), and `sanitizeLetteringThresholds`. Mirrored to `client/src/lib/letteringDensity.js` for the comic-script stage's inline warnings — keep the two in sync. |
| `balloonAttribution.js` | Pure, dependency-free comic speech-balloon attribution primitives for `comic.balloon-attribution`: `analyzeBalloonAttribution` (flags a dialogue line whose speaker isn't shown in the panel description and carries no off-panel/broadcast cue — the case the image model mis-attributes to a visible character), `splitSpeaker`, `nameInText`, and `OFFPANEL_OK_MODIFIER` (the broadcast/off-panel/V.O./transmission modifier vocabulary — mirrors `visualStages.js` `BALLOON_STYLE_HINTS`, keep in sync). Severity scales `medium`/`low` by whether another canon character is visibly named in the panel. |
| `panelDisagreement.js` | Pure reader-panel disagreement-mining primitives for the four-persona reader panel (#2170 — CWQE Phase 6): the `PANEL_PERSONAS` / `PANEL_QUESTIONS` vocabulary, `sanitizePersonaResponse` (one persona's raw LLM answer → stable `{ persona, answers:{<qid>:{text,issues[]}}, verdict }` shape), `minePanelDisagreements` (cross-persona `consensus` ≥3-persona concern citations / `attention` some-but-not-all / `polarizing` best-vs-worst-scene splits), and `consensusToFindings` (consensus entries → `seedReviewFromFindings` finding shapes). Pure — all I/O (digest build, per-persona LLM calls, snapshot storage, review seeding) lives in `server/services/pipeline/readerPanel.js`. |
diff --git a/server/lib/editorial/checks/dialogue.js b/server/lib/editorial/checks/dialogue.js
index a77c870c15..03c851d99b 100644
--- a/server/lib/editorial/checks/dialogue.js
+++ b/server/lib/editorial/checks/dialogue.js
@@ -289,7 +289,7 @@ export const dialogueChecks = [
sources: ['manuscript'],
label: 'Reported speech where a quoted line belongs (LLM)',
description:
- 'LLM scan for a character\'s decisive utterance delivered as narrated report instead of a quoted line — summarized speech at a turning point ("she told him she was leaving"), reported reaction to speech ("my friend was furious about it"), and confrontations narrated indirectly with no line ever quoted. The inverse of the other dialogue checks: they judge the dialogue that is on the page, this one flags the line that never made it there. Skips deliberate compression of routine exchanges (that is dialogue.pleasantries\' job), between-scene bridges, POV constraints where the character did not hear the words, and free-indirect-discourse voices. Findings name which moment to quote rather than drafting the line.',
+ "LLM scan for a character's decisive utterance delivered as narrated report instead of a quoted line — summarized speech at a turning point (\"she told him she was leaving\"), reported reaction to speech (\"my friend was furious about it\"), and confrontations narrated indirectly with no line ever quoted. The inverse of the other dialogue checks: they judge the dialogue that is on the page, this one flags the line that never made it there. Skips deliberate compression of routine exchanges (that is what dialogue.pleasantries cuts), between-scene bridges, POV constraints where the character did not hear the words, and free-indirect-discourse voices. Findings name which moment to quote rather than drafting the line.",
scope: 'issue',
kind: 'llm',
category: 'dialogue',
diff --git a/server/lib/editorial/dialogue.js b/server/lib/editorial/dialogue.js
index 0ce76e1cbb..b5082ad923 100644
--- a/server/lib/editorial/dialogue.js
+++ b/server/lib/editorial/dialogue.js
@@ -7,9 +7,12 @@
* - findSaidBookisms() → `dialogue.said-bookisms` (ornate / non-speech tags)
* - findUnattributedDialogueRuns() → `dialogue.attribution-clarity` (untrackable speakers)
*
- * Their LLM siblings (`dialogue.on-the-nose`, `dialogue.voice-distinctiveness`)
- * handle the judgment cases these pure scanners can't: subtext-free / "as you
- * know, Bob" dialogue, and per-character voice distinctiveness against canon.
+ * Their LLM siblings (`dialogue.on-the-nose`, `dialogue.voice-distinctiveness`,
+ * `dialogue.reported-speech`) handle the judgment cases these pure scanners
+ * can't: subtext-free / "as you know, Bob" dialogue, per-character voice
+ * distinctiveness against canon, and the decisive line that was narrated as
+ * reported speech instead of quoted (which no quote-delimited scan can see,
+ * because there is no quote on the page to find).
*
* Quote handling: only DOUBLE quotes (straight " and curly “ ”) are treated as
* dialogue delimiters. Single quotes are deliberately excluded — they collide