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: preserve action contracts while validating music video evidence (#9349)

Adam Eivy46f47e891332
diff --git a/server/lib/musicVideoDependencies.js b/server/lib/musicVideoDependencies.js
index b83e31342b..ceab1de2aa 100644
--- a/server/lib/musicVideoDependencies.js
+++ b/server/lib/musicVideoDependencies.js
@@ -12,7 +12,7 @@ const assetRef = (scene, role, assetId = scene?.[slots[role]]) => ({
});
const layerRef = (scene) => ({ role: 'layer', sceneId: scene.sceneId, assetId: scene.sceneId,
revision: checksum(Object.fromEntries(['startSec', 'endSec', 'visualLayer', 'stillMove', 'cardText', 'cardColor', 'shotMode', 'loop']
- .map((key) => [key, scene[key] ?? null]))) });
+ .map((key) => [key, scene[key] ?? null]).concat([['actionContract', scene.direction?.actionContract || null]]))) });
const snapshot = (references) => ({ version: MUSIC_VIDEO_DEPENDENCY_VERSION, references });
/** Capture the actual submitted plate, including optional crop/mask provenance. */
diff --git a/server/services/musicVideo/productionService.test.js b/server/services/musicVideo/productionService.test.js
index aac60463ad..9f0b8c7534 100644
--- a/server/services/musicVideo/productionService.test.js
+++ b/server/services/musicVideo/productionService.test.js
@@ -173,7 +173,7 @@ describe('music video production run (#9066)', () => {
expect(theRun().steps.every((s) => s.status === 'completed' && s.rationale)).toBe(true);
// Only a passed continuous review completes the run — never the frames alone.
- store.get('mv-example').autoReviews[0].status = 'passed';
+ passOwnedReview();
musicVideoEvents.emit('auto-review', { projectId: 'mv-example', run: { ...store.get('mv-example').autoReviews[0] }, action: { type: 'idle' } });
await settle();
expect(theRun().status).toBe('completed');