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
address review (claude): declare canon source on chekhov + wire finalPart on premature-reveal
[._.]/ Adam Eivy4707d4ec9661
diff --git a/server/lib/editorial/checkRegistry.test.js b/server/lib/editorial/checkRegistry.test.jsindex 2d75d6e741..d5c85de2ff 100644--- a/server/lib/editorial/checkRegistry.test.js+++ b/server/lib/editorial/checkRegistry.test.js@@ -797,12 +797,14 @@ describe('chekhov.setups-payoffs — LLM check (#1299)', () => {...overrides,});- it('is registered as a series-scoped LLM check reading manuscript + reader-map + foreshadowing ledger', () => {+ it('is registered as a series-scoped LLM check reading manuscript + canon + reader-map + foreshadowing ledger', () => {const check = getCheck(CHEKHOV);expect(check.kind).toBe('llm');expect(check.scope).toBe('series');expect(check.category).toBe('continuity');- expect(check.sources).toEqual(['manuscript', 'series.arc.readerMap', 'series.arc.foreshadowing']);+ // `canon` is a source since #2178 — reveal-gated canon folds into the+ // authored-payoffs block, so a canon edit must re-fingerprint this check.+ expect(check.sources).toEqual(['manuscript', 'canon', 'series.arc.readerMap', 'series.arc.foreshadowing']);expect(check.needsManuscript).toBe(true);});diff --git a/server/lib/editorial/checks/continuity.js b/server/lib/editorial/checks/continuity.jsindex 4936329e4d..e7d18ed7c4 100644--- a/server/lib/editorial/checks/continuity.js+++ b/server/lib/editorial/checks/continuity.js@@ -393,7 +393,12 @@ export const continuityChecks = [},{id: 'chekhov.setups-payoffs',- sources: ['manuscript', 'series.arc.readerMap', 'series.arc.foreshadowing'],+ // `canon` is a real source here (#2178): reveal-gated canon folds into the+ // authored-payoffs block via `revealGatedPayoffsSummary(ctx.canon)`, so a+ // canon edit (adding/removing a reveal gate, retitling a gated fact) must+ // re-fingerprint this check — otherwise an obsolete orphaned-payoff finding+ // never goes stale after the gate is edited away.+ sources: ['manuscript', 'canon', 'series.arc.readerMap', 'series.arc.foreshadowing'],label: "Chekhov's guns (setups & payoffs)",description:'Classifies each setup/payoff thread as paired, false-setup (planted, never fired — cut it), orphaned-payoff (fired, never planted — unearned), or distant (paid off so many issues after the setup the reader may have forgotten). Reconciles its detected setups/payoffs against the authored reader-map hooks/payoffs.',@@ -528,7 +533,15 @@ export const continuityChecks = [stage: PREMATURE_REVEAL_STAGE,category: 'continuity',context: { revealGatedCanon },- buildVars: (manuscript, _meta, c) => ({ manuscript, revealGatedCanon: c.revealGatedCanon }),+ // `finalPart` gates the shipped prompt's part-vs-whole guidance (a single-+ // chunk run is its own final part). Without it the prompt always renders+ // the "reading in PARTS" branch and points at a setup digest that doesn't+ // exist on a one-chunk run — mirror the sibling checks' meta.isFinal wiring.+ buildVars: (manuscript, meta, c) => ({+ manuscript,+ revealGatedCanon: c.revealGatedCanon,+ finalPart: meta?.isFinal ? 'true' : '',+ }),// A reveal can leak in an early issue for a fact due much later; the// findings digest keeps prior leaks in view so a later chunk doesn't// re-flag, and the setup digest rolls forward which gated facts have