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

ignore a skipped Cast & Sets sheet's world when drafting storyboard shots, matching the planner

[._.]/ Adam Eivy839370158aac
diff --git a/server/routes/musicVideoProductionReview.test.js b/server/routes/musicVideoProductionReview.test.js
index 0117785cbb..9a97bd7014 100644
--- a/server/routes/musicVideoProductionReview.test.js
+++ b/server/routes/musicVideoProductionReview.test.js
@@ -89,6 +89,15 @@ describe('human-reviewed Music Video workflow', () => {
lyricCueIds: ['line-a'], action: 'A paper figure opens a painted doorway.', camera: 'Chase cam behind the plane', transition: 'Warp streaks' })]);
});
+ it('ignores a skipped Cast & Sets sheet''s world when drafting storyboard shots', async () => {
+ await save({ ...draft, storyboard: [] });
+ await store.mutateProjectRecord(project.id, current => ({ project: { ...current,
+ castAndSets: { status: 'skipped', direction: { world: { camera: 'Stale chase cam', transitions: 'Stale streaks' } } } } }));
+ expect((await approve('art')).status).toBe(200);
+ const prepared = await request(app).post(`${base}/production-review/prepare`).send({});
+ expect(prepared.body.project.productionReview.draft.storyboard).toEqual([expect.objectContaining({ camera: '', transition: '' })]);
+ });
+
it('prepares an absent code-first medium plan before human storyboard approval and real authoring admission', async () => {
await store.updateProject(project.id, { mediaMode: 'code-only', composition: { mode: 'document', authoringRenderer: 'canvas' },
productionPolicy: { strategy: 'code-first', maxGeneratedVideoPercent: 0 } });
diff --git a/server/services/musicVideo/productionReviewService.js b/server/services/musicVideo/productionReviewService.js
index db226565df..c189f713f4 100644
--- a/server/services/musicVideo/productionReviewService.js
+++ b/server/services/musicVideo/productionReviewService.js
@@ -225,8 +225,9 @@ export async function prepareProductionReview(id, options = {}) {
const { project: planned } = await mutateProjectRecord(id, current => {
const latest = current.productionReview.draft;
if (latest.storyboardSource === 'document') return { project: current };
- // New shots borrow the Cast & Sets world's camera and transition language when the scene has none.
- const world = current.castAndSets?.direction?.world || {};
+ // New shots borrow the Cast & Sets world's camera and transition language when the scene has
+ // none, unless the sheet was skipped (the planner ignores a skipped direction too).
+ const world = (current.castAndSets?.status !== 'skipped' && current.castAndSets?.direction?.world) || {};
const storyboard = [...latest.storyboard, ...current.scenes.filter(scene => !latest.storyboard.some(shot => shot.sceneId === scene.sceneId)).map(scene => ({
sceneId: scene.sceneId,
lyricCueIds: (current.lyricCues || []).filter(c => c.startSec < scene.endSec && c.endSec > scene.startSec).map(c => c.id),