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(pipeline): preserve arc limit rationale

[._.]/ Adam Eivye93194b8e2f1
diff --git a/server/lib/storyArcLimits.js b/server/lib/storyArcLimits.js
index 5488e067d3..6cb142dba9 100644
--- a/server/lib/storyArcLimits.js
+++ b/server/lib/storyArcLimits.js
@@ -7,11 +7,23 @@ export const ARC_LIMITS = Object.freeze({
THEMES_PER_ARC_MAX: 20,
SEASON_TITLE_MAX: 200,
SEASON_LOGLINE_MAX: 500,
+ // A season synopsis covers a whole season's worth of episodes (8+ issues on a
+ // multi-season series), so it needs the same room as the arc-level SUMMARY_MAX
+ // (8000). The old 4000 cap clipped a full synopsis mid-sentence — and because
+ // the arc-verify→resolve loop re-flags a mid-sentence truncation and the
+ // resolver regenerates a >4000 synopsis that gets re-clipped, the loop could
+ // never converge (it burned all its rounds and paused). See arc-verify
+ // "truncated mid-sentence" finding, 2026-06-21.
SEASON_SYNOPSIS_MAX: 8000,
SEASON_ENDING_HOOK_MAX: 1000,
SEASON_NUMBER_MAX: 99,
SEASON_EPISODE_COUNT_MAX: 999,
SEASONS_PER_SERIES_MAX: 50,
+ // One issue/episode planning synopsis. This is deliberately smaller than a
+ // whole-volume synopsis: it is a drafting seed, not a place to accumulate
+ // every continuity exception the verifier has ever raised. Keep the value in
+ // the shared arc limits so initial episode generation and later arc repairs
+ // cannot silently disagree about how much text one episode may own.
EPISODE_LOGLINE_MAX: 500,
EPISODE_SYNOPSIS_MAX: 4000,
});