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

fix: repeat global audio constraints in standalone shot prompts

[._.]/ Adam Eivy4a21631dd2a8
diff --git a/server/services/creativeDirector/agentBridge.js b/server/services/creativeDirector/agentBridge.js
index 9bfd0930db..baca31bde4 100644
--- a/server/services/creativeDirector/agentBridge.js
+++ b/server/services/creativeDirector/agentBridge.js
@@ -93,7 +93,7 @@ async function buildTaskRecord(project, kind, scene, context) {
if (project.workspace === 'video') {
const { reserveVideoAttempt, assertVideoAttemptDispatch } = await import('./videoExecution.js');
const audio = project.videoExecution?.choices?.audio || project.videoDraft?.audio || { mode: 'native' };
- context = `${context}\n\nSaved Video audio contract: ${JSON.stringify(audio)}. Native means the audio generated inside each video clip; there is NO separate dialogue, narration, voice casting, or lip-sync pass. Imported/generated means one assembled soundtrack replacing clip audio, not per-character speech synthesis. Silent means no final audio. Never promise an unconfigured later soundtrack or dialogue pass. Put every intended audible event in its shot prompt when using native audio, and keep any spoken line short enough for that shot. Speech must finish at least one second before the saved shot duration: put a speaking-time window and quiet closing hold in the prompt, prefer 6-9 words for a six-second shot, and allow fewer words for a slow voice or preceding action. Assembly trims any extra frames returned by the renderer, so never rely on that extra time to finish a sentence. Plan visual storytelling to fit this audio choice. Repeat stable character appearance, wardrobe, and voice descriptions whenever they recur; names alone are not conditioning. Reference images must be existing supplied files, never invented filenames. Shot joins: ${project.videoDraft?.transition || 'cut'}; joins do not overlap or shorten the saved shot timing. Derive act timestamps from the actual summed shot durations. Latest revision requests: ${JSON.stringify(project.videoReview?.revisionRequests || [])}.`;
+ context = `${context}\n\nSaved Video audio contract: ${JSON.stringify(audio)}. Native means the audio generated inside each video clip; there is NO separate dialogue, narration, voice casting, or lip-sync pass. Imported/generated means one assembled soundtrack replacing clip audio, not per-character speech synthesis. Silent means no final audio. Never promise an unconfigured later soundtrack or dialogue pass. Each render prompt stands alone: repeat applicable project-wide audio rules there, including any no-music or no-speech rule, rather than leaving them only in script notes. Put every intended audible event in its shot prompt when using native audio, and keep any spoken line short enough for that shot. Speech must finish at least one second before the saved shot duration: put a speaking-time window and quiet closing hold in the prompt, prefer 6-9 words for a six-second shot, and allow fewer words for a slow voice or preceding action. Assembly trims any extra frames returned by the renderer, so never rely on that extra time to finish a sentence. Plan visual storytelling to fit this audio choice. Repeat stable character appearance, wardrobe, and voice descriptions whenever they recur; names alone are not conditioning. Reference images must be existing supplied files, never invented filenames. Shot joins: ${project.videoDraft?.transition || 'cut'}; joins do not overlap or shorten the saved shot timing. Derive act timestamps from the actual summed shot durations. Latest revision requests: ${JSON.stringify(project.videoReview?.revisionRequests || [])}.`;
attempt = await reserveVideoAttempt(project.id, { kind, expectedProductionRevision: project.videoWorkRevision || 0, key: `${kind}:${scene?.sceneId || 'project'}`, ...(scene ? { sceneId: scene.sceneId, workRevision: scene.workRevision || 0 } : {}) });
if (!attempt) return null;
await assertVideoAttemptDispatch(project.id, attempt.id).catch(async error => {