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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
send the editable shot prompt to the reviewer, with the shared phrase intent alongside
[._.]/ Adam Eivyb5d25d080849
diff --git a/server/routes/musicVideoAutoReview.test.js b/server/routes/musicVideoAutoReview.test.jsindex 92c2a7449c..71c5ace951 100644--- a/server/routes/musicVideoAutoReview.test.js+++ b/server/routes/musicVideoAutoReview.test.js@@ -220,7 +220,7 @@ describe('opt-in automatic review/retries (#8988)', () => {await projects.updateProject(p.id, { scenes: p.scenes.map((scene) => scene.sceneId === 's1'? { ...scene, startSec: 0, endSec: 10, direction: { actionContract: { version: 1, purpose: 'The listener decides to stay',reactions: [{ startSec: 6, endSec: 8, subject: 'Listener', description: 'Turns back' }], acceptanceCriteria: ['Both people remain visible'] } } }- : scene.sceneId === 's2' ? { ...scene, startSec: 10, endSec: 20 } : scene) });+ : scene.sceneId === 's2' ? { ...scene, startSec: 10, endSec: 20, visualIntent: 'The chorus lifts off' } : scene) });h.verdicts.push(FAIL_S2, PASS);const r = await start(p.id, { maxAttempts: 2, maxGenerations: 1 });expect(r.status).toBe(201);@@ -238,6 +238,7 @@ describe('opt-in automatic review/retries (#8988)', () => {expect(reviewerPrompt).toContain('Still frames cannot prove completion');// A shot without an action contract still carries its own prompt, so it is judged on it.expect(reviewerPrompt).toContain('"shotPrompt":"shot s2"');+ expect(reviewerPrompt).toContain('"phraseIntent":"The chorus lifts off"');expect(attempt1.review).toMatchObject({ verdict: 'revise', checks: { composition: 'fail', audioSync: 'pass', motion: 'pass' } });expect(attempt1.review.evidence).toMatchObject({ continuous: true, continuousFrames: 12 });const draft = current.excerpts.find((e) => e.id === attempt1.excerptId);diff --git a/server/services/musicVideo/autoReviewService.js b/server/services/musicVideo/autoReviewService.jsindex c3e4b8cf08..334aa7520e 100644--- a/server/services/musicVideo/autoReviewService.js+++ b/server/services/musicVideo/autoReviewService.js@@ -222,8 +222,8 @@ async function reviewDraft(project, run, excerpt) {const shotIntents = (project.scenes || []).filter((scene) => scene.startSec < excerpt.endSec && scene.endSec > excerpt.startSec).map((scene) => ({ sceneId: scene.sceneId, sceneStartSec: scene.startSec - excerpt.startSec,...(scene.direction?.actionContract != null ? { actionContract: scene.direction.actionContract }- : { shotPrompt: trimTo(scene.visualIntent || scene.prompt || '', 1000) }) }))- .filter((intent) => intent.actionContract || intent.shotPrompt);+ : { shotPrompt: trimTo(scene.prompt || '', 1000), ...(scene.visualIntent ? { phraseIntent: trimTo(scene.visualIntent, 300) } : {}) }) }))+ .filter((intent) => intent.actionContract || intent.shotPrompt || intent.phraseIntent);const prompt = buildAutoReviewPrompt({ spanSec, sections, frameTimes, hasContactSheet: hasSheet, tiled: true, concept: project.concept, shotIntents });try {const reply = await callReviewer(run, prompt, screenshots, project.id);