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

address review (codex,claude): reserve setup digest for the final pacing chunk (#1618)

[._.]/ Adam Eivybc661775346b
diff --git a/server/lib/editorial/checkRegistry.js b/server/lib/editorial/checkRegistry.js
index c0e7f87c25..026007f48d 100644
--- a/server/lib/editorial/checkRegistry.js
+++ b/server/lib/editorial/checkRegistry.js
@@ -4134,6 +4134,13 @@ export const EDITORIAL_CHECKS = [
// climax isn't mis-read as a flat or front-loaded curve.
crossChunkDigest: true,
crossChunkSetup: true,
+ // #1667: this check's whole-curve verdict is gated to the final part AND
+ // anchored on the carried per-issue intensity digest — without it the final
+ // call would judge only the last chunk plus the crude tally. So the digest
+ // must reach the final chunk even when it's packed to the window — reserve
+ // room by trimming the final chunk's manuscript tail rather than silently
+ // dropping it (mirrors arc.climax-agency / emotion.reaction-proportionality).
+ reserveSetupDigest: true,
setupFocus: 'For each issue/part seen so far, note the level of dramatic intensity '
+ '(stakes, conflict, tension) and whether it has been rising, holding flat, or '
+ 'falling, so a later chunk can judge the WHOLE escalation curve and tell a genuinely '