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: correct the stale episode-immutability claim on resolveVerifyIssues

[._.]/ Adam Eivycadaf38a9a4f
diff --git a/server/services/pipeline/arcPlanner/arcCore.js b/server/services/pipeline/arcPlanner/arcCore.js
index 800b526cd1..878e584b07 100644
--- a/server/services/pipeline/arcPlanner/arcCore.js
+++ b/server/services/pipeline/arcPlanner/arcCore.js
@@ -405,10 +405,11 @@ export function selectFindingKeyedEdits(content, findings, { spineOnly = false }
};
}
-// Per-episode (issue) records are NOT touched — those are user-owned scripts
-// and shouldn't get clobbered by a structural fix. If a finding's only
-// actionable resolution would require deleting issues, the LLM is told to
-// flag that in the response's `notes` field rather than executing it.
+// Episode (issue) records are never CREATED or DELETED here, and their drafted
+// scripts are never clobbered — a full-arc round may rewrite an episode's
+// planning synopsis (see `applyEpisodeResolutions`), and nothing else. If a
+// finding's only actionable resolution would require deleting issues, the LLM
+// is told to flag that in the response's `notes` field rather than executing it.
// `options.findings` empty / omitted = re-run verify first and resolve
// everything it returns. `options.avoid` is the optional "a previous attempt at
// these same findings authored THESE and was reverted" list (see
diff --git a/server/services/pipeline/arcPlanner/context.js b/server/services/pipeline/arcPlanner/context.js
index 13250d128d..9e0f36ff34 100644
--- a/server/services/pipeline/arcPlanner/context.js
+++ b/server/services/pipeline/arcPlanner/context.js
@@ -509,9 +509,9 @@ export function groupIssuesBySeasonTree(seasons, issues, { renderLeaf, seasonFie
export async function buildVerifyContext(series, preloadedWorld, { spineOnly = false } = {}) {
const seasons = sanitizeSeasonList(series.seasons || []);
const [issues, base, canon] = await Promise.all([
- // Spine mode renders no episode leaves, so don't pay for the load — every
- // issue's full record (stage run history included) fetched and sanitized to
- // be thrown away one line later.
+ // Spine mode renders no episode leaves, so skip the load rather than fetch
+ // and sanitize every issue's full record (stage run history included) only
+ // for `groupIssuesBySeasonTree` to drop it.
spineOnly ? [] : listIssues({ seriesId: series.id }),
buildArcBaseContext(series, preloadedWorld),
getSeriesPlanningCanon(series),