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
Let board stills generate once art direction is approved
Claudec23d11f77355
diff --git a/docs/features/music-video-autonomous.md b/docs/features/music-video-autonomous.mdindex 17a5f0886f..fbd25aa790 100644--- a/docs/features/music-video-autonomous.md+++ b/docs/features/music-video-autonomous.md@@ -78,7 +78,7 @@ Imported storyboard shots may remain unbound. Bind each to an existing Board sceArt, storyboard and proof decisions bind to exact content. Changes invalidate affected downstream approvals. Targeted comments and requests for changes retain the original reviewed draft and scene snapshot; unresolved requests block the affected stage. Accepting structure records organizational agreement only. Regeneration receives unresolved feedback; an authenticated reviewer must resolve it and approve the revised content.-After art and storyboard approval you may render a 10–45 second chorus proof, watch it with audio and approve that revision; the composition preview usually makes this unnecessary. A footage production run still pauses on its pilot proof before paid bulk generation. Queued provider work and final renders recheck the storyboard approval before dispatch.+After art and storyboard approval you may render a 10–45 second chorus proof, watch it with audio and approve that revision; the composition preview usually makes this unnecessary. A footage production run still pauses on its pilot proof before paid bulk generation. Queued provider work and final renders recheck the storyboard approval before dispatch. A still for a planned shot needs only the art direction approval, because stills are how the storyboard is reviewed; clips and production-run work still wait for the storyboard.Approval and feedback resolution use an existing authenticated PortOS session: browser cookies and agent bearer sessions have the same creative-review authority, without password re-entry. Missing, invalid, expired or revoked sessions cannot approve; auth-off and peer/Basic access do not confer creative-review authority. The server records the verified session ID and label, never the credential, along with revision-bound decision history. A shared agent session identifies the credential, not an individual agent or a human. Older clients may send a password, but it is discarded rather than used as approval authority.diff --git a/server/routes/musicVideoProductionReview.test.js b/server/routes/musicVideoProductionReview.test.jsindex 87f03dbd89..e1b70a60e4 100644--- a/server/routes/musicVideoProductionReview.test.js+++ b/server/routes/musicVideoProductionReview.test.js@@ -191,6 +191,19 @@ describe('human-reviewed Music Video workflow', () => {expect((await request(app).post(`${base}/render`).send({})).status).toBe(409);});+ it('lets a planned shot take stills once art is approved, keeping clips and production runs behind the storyboard', async () => {+ const { assertMusicVideoSceneReview } = await import('../services/musicVideo/productionReviewService.js');+ const tag = { projectId: project.id, sceneId: (await store.getProject(project.id)).scenes[0].sceneId };+ await expect(assertMusicVideoSceneReview(tag, 'image')).rejects.toMatchObject({ code: 'MUSIC_VIDEO_APPROVAL_REQUIRED' });+ expect((await approve('art')).status).toBe(200);+ await expect(assertMusicVideoSceneReview(tag, 'image')).resolves.toBeUndefined();+ await expect(assertMusicVideoSceneReview(tag, 'video')).rejects.toMatchObject({ code: 'MUSIC_VIDEO_APPROVAL_REQUIRED' });+ await expect(assertMusicVideoSceneReview({ ...tag, productionRunId: 'run-example' }, 'image')).rejects.toMatchObject({ code: 'MUSIC_VIDEO_APPROVAL_REQUIRED' });+ await expect(assertMusicVideoSceneReview({ ...tag, sceneId: 'scene-missing' }, 'image')).rejects.toMatchObject({ code: 'MUSIC_VIDEO_APPROVAL_REQUIRED' });+ expect((await approve('storyboard')).status).toBe(200);+ await expect(assertMusicVideoSceneReview(tag, 'video')).resolves.toBeUndefined();+ });+it('records substantive machine proof evidence without claiming human playback and refuses automatic waivers', async () => {await approve('art'); await approve('storyboard');await request(app).post(`${base}/production-review/proof`).send({ startSec: 0, endSec: 20 });diff --git a/server/services/mediaJobQueue/index.js b/server/services/mediaJobQueue/index.jsindex 4542716c02..19e967ea78 100644--- a/server/services/mediaJobQueue/index.js+++ b/server/services/mediaJobQueue/index.js@@ -1541,7 +1541,7 @@ async function runJobLifecycle(job, markDispatched, permit) {}if (job.params?.musicVideo?.sceneId && !(job.cancelRequested && isRemoteMediaJob(job))) {const { assertMusicVideoSceneReview } = await import('../musicVideo/productionReviewService.js');- await assertMusicVideoSceneReview(job.params.musicVideo);+ await assertMusicVideoSceneReview(job.params.musicVideo, job.kind);}// Remote recovery must still reach its adapter to cancel an existing render.// Local cancellation before dispatch owns no provider process to stop.@@ -1652,7 +1652,7 @@ export async function enqueueJob({ kind, params, owner = null }) {await assertMusicVideoJobPolicy(kind, params);if (params?.musicVideo?.sceneId) {const { assertMusicVideoSceneReview } = await import('../musicVideo/productionReviewService.js');- await assertMusicVideoSceneReview(params.musicVideo);+ await assertMusicVideoSceneReview(params.musicVideo, kind);}if (!JOB_KINDS.includes(kind)) {throw new Error(`enqueueJob: invalid kind '${kind}'`);diff --git a/server/services/musicVideo/productionReviewService.js b/server/services/musicVideo/productionReviewService.jsindex eed8574b36..40e56dbeb3 100644--- a/server/services/musicVideo/productionReviewService.js+++ b/server/services/musicVideo/productionReviewService.js@@ -22,10 +22,16 @@ function changed(project) {export const getProductionReview = async id => present(await requireProject(id));-export async function assertMusicVideoSceneReview(tag) {+/**+ * The approval a scene's media job needs. A still is how the director reviews+ * the storyboard, so a still for a planned shot needs only the art direction;+ * clips, and anything a production run submits, wait for the storyboard.+ */+export async function assertMusicVideoSceneReview(tag, kind = null) {if (!tag?.projectId || !tag.sceneId) return;const project = await requireProject(tag.projectId);- assertProductionApproval(project, 'storyboard');+ const boardStill = kind === 'image' && !tag.productionRunId && (project.scenes || []).some(scene => scene.sceneId === tag.sceneId);+ assertProductionApproval(project, boardStill ? 'art' : 'storyboard');if (tag.productionRunId) {const run = project.productionRuns?.find(r => r.id === tag.productionRunId);if (!run?.pilot?.scenes?.some(scene => scene.sceneId === tag.sceneId)) assertProductionApproval(project, 'proof');