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): preserve season synopsis from arc backfill extraction

[._.]/ Adam Eivyfb4dc991fd98
diff --git a/server/services/pipeline/arcPlanner.js b/server/services/pipeline/arcPlanner.js
index 33a911e3c0..4cc73c0a86 100644
--- a/server/services/pipeline/arcPlanner.js
+++ b/server/services/pipeline/arcPlanner.js
@@ -234,6 +234,7 @@ function shapeSeasonOutlines(rawOutlines) {
number: raw?.number,
title: raw?.title,
logline: raw?.logline,
+ synopsis: raw?.synopsis,
endingHook: raw?.endingHook,
episodeCountTarget: raw?.episodeCountTarget,
});
@@ -346,8 +347,7 @@ export async function generateArcFromSource(seriesId, {
status: 'draft',
});
// importer-arc-extract returns `seasons` (number/title/logline/synopsis/
- // endingHook); shapeSeasonOutlines reads the fields buildSeason needs
- // (number/title/logline/endingHook/episodeCountTarget); synopsis is dropped.
+ // endingHook); shapeSeasonOutlines forwards all fields buildSeason accepts.
const seasons = shapeSeasonOutlines(content?.seasons);
return { arc, seasons, raw: content, runId, providerId, model };
}
diff --git a/server/services/storyBuilder.test.js b/server/services/storyBuilder.test.js
index 2d6f4ca155..06a5636048 100644
--- a/server/services/storyBuilder.test.js
+++ b/server/services/storyBuilder.test.js
@@ -288,6 +288,7 @@ describe('generateStep backfill (fromDownstream)', () => {
const updated = await seriesSvc.getSeries(session.seriesId);
expect(updated.arc?.logline).toBe('Backfilled arc logline');
expect(updated.seasons?.length).toBe(1);
+ expect(updated.seasons[0].synopsis).toBe('s1');
expect(res.runId).toBe('run-x');
});