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
fix(music-video): unify automation concept naming (#10166)
Adam Eivy67bc7914c4b6
diff --git a/client/src/components/musicVideo/AutoReviewPanel.jsx b/client/src/components/musicVideo/AutoReviewPanel.jsxindex bc5129bca2..b9d3b24794 100644--- a/client/src/components/musicVideo/AutoReviewPanel.jsx+++ b/client/src/components/musicVideo/AutoReviewPanel.jsx@@ -126,9 +126,24 @@ export default function AutoReviewPanel({ project, startSec, endSec, rangeValid,});};+ const isStartedByAutonomous = Boolean(+ (run && (run.startedBy === 'autonomous' || run.autonomousRunId)) ||+ (project?.autonomousRun && (+ (run && (run.productionRunId === project.autonomousRun.output?.productionRunId || project.autonomousRun.output?.autoReviewRunId === run.id)) ||+ project.autonomousRun+ ))+ );+return (<div className="rounded border border-port-border p-2 space-y-2 text-xs" aria-label="Automatic review">- <span className="font-medium flex items-center gap-1"><Bot size={12} /> Auto-review (opt-in)</span>+ <span className="font-medium flex flex-wrap items-center gap-2">+ <span className="flex items-center gap-1"><Bot size={12} /> Auto-review{isStartedByAutonomous ? '' : ' (opt-in)'}</span>+ {isStartedByAutonomous && (+ <span className="text-xs text-port-text-muted font-normal">+ · <a href={project?.id ? `/music-video/${project.id}/setup#mv-autonomous-run` : '#mv-autonomous-run'} className="text-port-accent hover:underline">Started by the autonomous run</a>+ </span>+ )}+ </span>{!active && (<div className="space-y-2"><p className="text-port-text-muted">diff --git a/client/src/components/musicVideo/AutonomousRunPanel.jsx b/client/src/components/musicVideo/AutonomousRunPanel.jsxindex 558ee12609..1b2875af0f 100644--- a/client/src/components/musicVideo/AutonomousRunPanel.jsx+++ b/client/src/components/musicVideo/AutonomousRunPanel.jsx@@ -91,7 +91,7 @@ export default function AutonomousRunPanel({ project, auto, readiness, selectedS};return (- <section className={`${framed ? 'bg-port-card border border-port-border rounded-lg p-3 ' : ''}space-y-3 min-w-0`} aria-label="Autonomous run">+ <section id="mv-autonomous-run" className={`${framed ? 'bg-port-card border border-port-border rounded-lg p-3 ' : ''}space-y-3 min-w-0`} aria-label="Autonomous run"><div className="flex flex-wrap items-center gap-x-3 gap-y-1">{framed && <span className="flex items-center gap-1 text-sm font-medium"><Wand2 size={15} className="text-port-accent" aria-hidden="true" /> Autonomous run</span>}<span className={`text-sm ${tone}`}>{run.interrupted ? 'Interrupted — resume to continue' : AUTONOMOUS_STATUS_LABELS[run.status] || run.status}</span>diff --git a/client/src/components/musicVideo/AutopilotPanel.jsx b/client/src/components/musicVideo/AutopilotPanel.jsxindex 69741cf40f..c7f1dbf3f5 100644--- a/client/src/components/musicVideo/AutopilotPanel.jsx+++ b/client/src/components/musicVideo/AutopilotPanel.jsx@@ -373,7 +373,7 @@ function BriefSection({ project, onSave, onKickoff, onCancelKickoff, kickoffBusy);} else {header = (- <button type="button" onClick={() => setDraft(automationDraftFrom(null))} className={`ml-auto ${actionClass}`}>Set up autopilot</button>+ <button type="button" onClick={() => setDraft(automationDraftFrom(null))} className={`ml-auto ${actionClass}`}>Set up automation brief</button>);body = <p className="text-xs text-port-text-muted">Hand this video to the agent: pick the tools it may use, give it guidance and a budget.</p>;}@@ -382,7 +382,7 @@ function BriefSection({ project, onSave, onKickoff, onCancelKickoff, kickoffBusy<div className="space-y-2"><div className="flex flex-wrap items-center gap-2"><Bot size={16} className="text-port-accent shrink-0" aria-hidden="true" />- <h3 className="text-sm font-medium">Autopilot</h3>+ <h3 className="text-sm font-medium">Automation brief</h3>{header}</div>{body}@@ -398,12 +398,27 @@ function BriefSection({ project, onSave, onKickoff, onCancelKickoff, kickoffBusyfunction ProductionSection({ project, production, readiness }) {const run = currentProductionRun(project);const active = run && RESUMABLE_RUN_STATUSES.has(run.status);+ const isStartedByAutonomous = Boolean(+ (run && (run.startedBy === 'autonomous' || run.autonomousRunId)) ||+ (project?.autonomousRun && (+ (run && project.autonomousRun.output?.productionRunId === run.id) ||+ (!run && project.autonomousRun.stage === 'produce') ||+ project.autonomousRun.output?.productionRunId+ ))+ );const codeFirst = project.productionPolicy?.strategy === 'code-first';const assets = codeFirst ? codeFirstProductionAssets(project) : null;const count = (action) => formatCount(assets.steps.filter((step) => step.action === action).length);return (<div className="rounded border border-port-border p-2 space-y-2 text-xs" aria-label="Production run">- <span className="font-medium flex items-center gap-1"><Clapperboard size={12} /> Autonomous production (opt-in)</span>+ <span className="font-medium flex flex-wrap items-center gap-2">+ <span className="flex items-center gap-1"><Clapperboard size={12} /> Production run{isStartedByAutonomous ? '' : ' (opt-in)'}</span>+ {isStartedByAutonomous && (+ <span className="text-xs text-port-text-muted font-normal">+ · <a href={project?.id ? `/music-video/${project.id}/setup#mv-autonomous-run` : '#mv-autonomous-run'} className="text-port-accent hover:underline">Started by the autonomous run</a>+ </span>+ )}+ </span>{run && <RunView key={run.id} run={run} production={production} codeFirst={codeFirst} project={project} readiness={readiness} />}{codeFirst && <><MediumPlanSummary project={project} />@@ -436,7 +451,7 @@ export default function AutopilotPanel({project, production, readiness, onSave, onKickoff, onCancelKickoff, kickoffBusy, kickoffStep = null, kickoffBlockedReason,}) {return (- <section className="bg-port-card border border-port-border rounded-lg p-3 space-y-3 min-w-0" aria-label="Autopilot">+ <section className="bg-port-card border border-port-border rounded-lg p-3 space-y-3 min-w-0" aria-label="Automation brief"><BriefSectionproject={project}onSave={onSave}diff --git a/client/src/components/musicVideo/MusicVideoAutomationNaming.test.jsx b/client/src/components/musicVideo/MusicVideoAutomationNaming.test.jsxnew file mode 100644index 0000000000..e1052673b2--- /dev/null+++ b/client/src/components/musicVideo/MusicVideoAutomationNaming.test.jsx@@ -0,0 +1,214 @@+import { describe, it, expect, vi } from 'vitest';+import fs from 'node:fs';+import path from 'node:path';+import { fileURLToPath } from 'node:url';+import { render, screen } from '@testing-library/react';++vi.mock('../../services/socket', () => ({+ default: { on: vi.fn(), off: vi.fn() },+}));+vi.mock('../../services/apiMusicVideo.js', () => ({+ startMusicVideoProduction: vi.fn(),+ resumeMusicVideoProduction: vi.fn(),+ stopMusicVideoProduction: vi.fn(),+ cancelMusicVideoProduction: vi.fn(),+ startAutoReview: vi.fn(),+ resumeAutoReview: vi.fn(),+ stopAutoReview: vi.fn(),+ cancelAutoReview: vi.fn(),+}));+vi.mock('../ui/Toast', () => ({ default: { success: vi.fn(), info: vi.fn(), error: vi.fn() } }));+vi.mock('../../hooks/useProviderModels.js', () => ({+ default: () => ({+ providers: [], selectedProviderId: '', selectedModel: '', availableModels: [],+ setSelectedProviderId: () => {}, setSelectedModel: () => {},+ }),+}));++import AutopilotPanel from './AutopilotPanel.jsx';+import AutoReviewPanel from './AutoReviewPanel.jsx';+import ProductionReviewPanel from './ProductionReviewPanel.jsx';+import { deriveNextAction } from '../../lib/musicVideoStages.js';++const __filename = fileURLToPath(import.meta.url);+const __dirname = path.dirname(__filename);++const RETIRED_LABELS = [+ 'Autopilot run',+ 'Autonomous production',+ 'Prepare planning draft with autopilot',+ 'Resume autopilot',+ 'Retry autopilot',+ 'Set up autopilot',+];++describe('Music Video Automation Naming Canonical Conventions (#10166)', () => {+ it('greps music-video components for the retired labels to ensure none are used', () => {+ const componentFiles = fs.readdirSync(__dirname)+ .filter((file) => file.endsWith('.jsx') && !file.includes('.test.'));++ expect(componentFiles.length).toBeGreaterThan(0);++ const findings = [];+ for (const file of componentFiles) {+ const content = fs.readFileSync(path.join(__dirname, file), 'utf8');+ for (const retired of RETIRED_LABELS) {+ if (content.toLowerCase().includes(retired.toLowerCase())) {+ findings.push(`${file} contains retired label "${retired}"`);+ }+ }+ }++ expect(findings).toEqual([]);+ });++ it('renders Automation brief and Production run (opt-in) on the brief panel when independent', () => {+ const project = { id: 'p1', scenes: [], automation: null, productionRuns: [] };+ render(+ <AutopilotPanel+ project={project}+ production={{ busy: false }}+ readiness={{}}+ onSave={vi.fn()}+ onKickoff={vi.fn()}+ />+ );++ expect(screen.getByRole('heading', { level: 3, name: 'Automation brief' })).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Set up automation brief' })).toBeInTheDocument();+ expect(screen.getByText(/Production run \(opt-in\)/)).toBeInTheDocument();+ });++ it('labels production run as "Started by the autonomous run" with link back when started by autonomous run', () => {+ const project = {+ id: 'p1',+ scenes: [],+ autonomousRun: { id: 'auto-1', output: { productionRunId: 'pr-1' } },+ productionRuns: [{+ id: 'pr-1',+ status: 'running',+ directive: '',+ pool: [],+ limits: { maxGenerations: 10, maxReviewAttempts: 2 },+ usage: { generations: 0, reviews: 0, costUsd: 0 },+ steps: [],+ }],+ };+ render(+ <AutopilotPanel+ project={project}+ production={{ busy: false }}+ readiness={{}}+ onSave={vi.fn()}+ onKickoff={vi.fn()}+ />+ );++ expect(screen.queryByText(/Production run \(opt-in\)/)).toBeNull();+ expect(screen.getByText('Production run')).toBeInTheDocument();+ const link = screen.getByRole('link', { name: 'Started by the autonomous run' });+ expect(link).toBeInTheDocument();+ expect(link).toHaveAttribute('href', '/music-video/p1/setup#mv-autonomous-run');+ });++ it('renders Auto-review (opt-in) on Review when not started by autonomous run', () => {+ const project = { id: 'p1', autoReviews: [] };+ render(+ <AutoReviewPanel+ project={project}+ startSec={0}+ endSec={5}+ rangeValid={true}+ rendering={false}+ autoReview={{ busy: false }}+ />+ );++ expect(screen.getByText(/Auto-review \(opt-in\)/)).toBeInTheDocument();+ });++ it('labels auto-review as "Started by the autonomous run" with link back when started by autonomous run', () => {+ const project = {+ id: 'p1',+ autonomousRun: { id: 'auto-1', output: { productionRunId: 'pr-1' } },+ autoReviews: [{+ id: 'ar-1',+ status: 'running',+ productionRunId: 'pr-1',+ startSec: 0,+ endSec: 5,+ limits: { maxAttempts: 3, maxGenerations: 4 },+ usage: { reviews: 0, generations: 0 },+ attempts: [],+ }],+ };+ render(+ <AutoReviewPanel+ project={project}+ startSec={0}+ endSec={5}+ rangeValid={true}+ rendering={false}+ autoReview={{ busy: false }}+ />+ );++ expect(screen.queryByText(/Auto-review \(opt-in\)/)).toBeNull();+ expect(screen.getByText('Auto-review')).toBeInTheDocument();+ const link = screen.getByRole('link', { name: 'Started by the autonomous run' });+ expect(link).toBeInTheDocument();+ expect(link).toHaveAttribute('href', '/music-video/p1/setup#mv-autonomous-run');+ });++ it('renders "Draft art direction and shots" in Production approvals', () => {+ const project = {+ id: 'p1',+ scenes: [],+ productionReview: {+ draft: {+ cast: '', environments: '', visualLanguage: '', motionLanguage: '', implementationPlan: '', storyboard: [],+ },+ },+ };+ const review = {+ readiness: {+ basis: {},+ art: { approved: false, problems: [] },+ storyboard: { approved: false, problems: [] },+ proof: { approved: false, problems: [] },+ },+ busy: false,+ proof: { active: false, occupied: false },+ prepare: vi.fn(),+ save: vi.fn(),+ reset: vi.fn(),+ approve: vi.fn(),+ };+ render(+ <ProductionReviewPanel+ project={project}+ review={review}+ onOpenArtifact={vi.fn()}+ />+ );++ expect(screen.getByRole('button', { name: 'Draft art direction and shots' })).toBeInTheDocument();+ expect(screen.queryByText(/Prepare planning draft with autopilot/i)).toBeNull();+ });++ it('derives next actions using Autonomous run canonical name', () => {+ const stopped = { id: 'p', autonomousRun: { status: 'stopped' } };+ expect(deriveNextAction(stopped)).toMatchObject({+ id: 'resume-autonomous',+ kind: 'run',+ label: 'Resume autonomous run',+ });++ const failed = { id: 'p', autonomousRun: { status: 'failed' } };+ expect(deriveNextAction(failed)).toMatchObject({+ id: 'retry-autonomous',+ kind: 'run',+ label: 'Retry autonomous run',+ });+ });+});diff --git a/client/src/components/musicVideo/ProductionReviewPanel.jsx b/client/src/components/musicVideo/ProductionReviewPanel.jsxindex 6ecc95a8dc..eb742ce0fb 100644--- a/client/src/components/musicVideo/ProductionReviewPanel.jsx+++ b/client/src/components/musicVideo/ProductionReviewPanel.jsx@@ -216,7 +216,7 @@ export default function ProductionReviewPanel({ project, review, onOpenArtifact,</div>}{importError && <p role="alert">{importError}</p>}{draft.sourceArtifactId && <button type="button" className={buttonClass} onClick={() => onOpenArtifact(draft.sourceArtifactId)}>Read preserved original planning draft</button>}- <button type="button" className={buttonClass} disabled={dirty || review.busy || documentShots} onClick={review.prepare}>Prepare planning draft with autopilot</button>+ <button type="button" className={buttonClass} disabled={dirty || review.busy || documentShots} onClick={review.prepare}>Draft art direction and shots</button><p className="text-xs text-port-text-muted">Uses the saved authoring provider and allowed tools. Builds Cast & Sets first, then pauses for art approval before planning shots. Existing edits are retained.</p><div className="grid gap-3 sm:grid-cols-2">{Object.entries({ cast: 'Cast guide', environments: 'Environment guide', visualLanguage: 'Visual language and mood board' }).map(([key, label]) =>diff --git a/client/src/lib/musicVideoStages.js b/client/src/lib/musicVideoStages.jsindex c73221359c..325a12fcee 100644--- a/client/src/lib/musicVideoStages.js+++ b/client/src/lib/musicVideoStages.js@@ -154,10 +154,10 @@ export function describeProjectStatus(project, { progress, nextAction = null, reconst stepDetail = (auto.stage === 'lyrics' && AUTONOMOUS_LYRICS_STEP_LABELS[step])|| (auto.stage === 'song' && AUTONOMOUS_SONG_STEP_LABELS[step])|| (AUTONOMOUS_CHECKPOINT_LABELS[auto.stage] ? AUTONOMOUS_CHECKPOINT_LABELS[auto.stage].toLowerCase() : null);- label = stepDetail ? `Autopilot: ${stepDetail.toLowerCase()}` : 'Autopilot running';+ label = stepDetail ? `Autonomous run: ${stepDetail.toLowerCase()}` : 'Autonomous run running';} else {const statusLabel = auto.interrupted ? 'interrupted' : (AUTONOMOUS_STATUS_LABELS[auto.status] || auto.status).toLowerCase();- label = `Autopilot ${statusLabel}`;+ label = `Autonomous run ${statusLabel}`;}const tone = auto.status === 'completed' ? 'ok' : auto.status === 'running' && !auto.interrupted ? 'muted' : 'warn';facts.push({ id: 'autopilot', label, tone });@@ -290,7 +290,7 @@ export function deriveNextAction(project, {const step = auto.stages?.[auto.stage]?.step;const stepText = (auto.stage === 'lyrics' && AUTONOMOUS_LYRICS_STEP_LABELS[step])|| (auto.stage === 'song' && AUTONOMOUS_SONG_STEP_LABELS[step])- || (AUTONOMOUS_CHECKPOINT_LABELS[auto.stage] ? `${AUTONOMOUS_CHECKPOINT_LABELS[auto.stage]}…` : 'Autopilot running…');+ || (AUTONOMOUS_CHECKPOINT_LABELS[auto.stage] ? `${AUTONOMOUS_CHECKPOINT_LABELS[auto.stage]}…` : 'Autonomous run running…');return { id: 'busy', kind: 'run', label: stepText.endsWith('…') ? stepText : `${stepText}…`, disabled: true };}if (auto.status === 'awaiting-approval') {@@ -298,10 +298,10 @@ export function deriveNextAction(project, {return { id: 'review-autonomous', kind: 'goto', stage: 'setup', anchor: 'mv-auto-edit', label: `Review ${target}` };}if (auto.interrupted || auto.status === 'stopped' || auto.status === 'needs-human') {- return { id: 'resume-autonomous', kind: 'run', label: 'Resume autopilot' };+ return { id: 'resume-autonomous', kind: 'run', label: 'Resume autonomous run' };}if (auto.status === 'failed') {- return { id: 'retry-autonomous', kind: 'run', label: 'Retry autopilot' };+ return { id: 'retry-autonomous', kind: 'run', label: 'Retry autonomous run' };}}@@ -374,7 +374,7 @@ export function stageChecklist(stageId, project, readiness = project?.productionconst autoSong = !!project.autonomousRun && !['completed', 'canceled', 'failed'].includes(project.autonomousRun.status);const hasAudio = projectHasAudio(project);return [- { id: 'track', label: 'Track attached', done: hasAudio, detail: !hasAudio && autoSong ? 'The autopilot run is making the song.' : null,+ { id: 'track', label: 'Track attached', done: hasAudio, detail: !hasAudio && autoSong ? 'The autonomous run is making the song.' : null,action: hasAudio || autoSong ? null : { label: 'Attach a track', anchor: 'mv-track' } },{ id: 'analysis', label: 'Song analyzed', done: !!project.audioAnalysis, detail: project.audioAnalysis ? null : 'Analyze the song from the header or Song & lyrics.' },];diff --git a/client/src/lib/musicVideoStages.test.js b/client/src/lib/musicVideoStages.test.jsindex a695d98d3f..b0d901c724 100644--- a/client/src/lib/musicVideoStages.test.js+++ b/client/src/lib/musicVideoStages.test.js@@ -33,10 +33,10 @@ describe('deriveStages / deriveNextAction', () => {expect(deriveNextAction(autoAwaiting)).toMatchObject({ id: 'review-autonomous', kind: 'goto', stage: 'setup', anchor: 'mv-auto-edit', label: 'Review Lyrics' });const autoStopped = { id: 'p', autonomousRun: { status: 'stopped' } };- expect(deriveNextAction(autoStopped)).toMatchObject({ id: 'resume-autonomous', kind: 'run', label: 'Resume autopilot' });+ expect(deriveNextAction(autoStopped)).toMatchObject({ id: 'resume-autonomous', kind: 'run', label: 'Resume autonomous run' });const autoFailed = { id: 'p', autonomousRun: { status: 'failed' } };- expect(deriveNextAction(autoFailed)).toMatchObject({ id: 'retry-autonomous', kind: 'run', label: 'Retry autopilot' });+ expect(deriveNextAction(autoFailed)).toMatchObject({ id: 'retry-autonomous', kind: 'run', label: 'Retry autonomous run' });});it('a project waiting on Cast & Sets approval offers the approval, and a stopped check-in offers to resume', () => {@@ -228,7 +228,7 @@ describe('describeProjectStatus', () => {);expect(status.headline).toBe('Stage 1 of 7: Setup');expect(status.facts.map((fact) => fact.label)).toEqual([- 'Autopilot: writing the lyric draft', 'Nothing rendered yet',+ 'Autonomous run: writing the lyric draft', 'Nothing rendered yet',]);});});@@ -279,7 +279,7 @@ describe('stageChecklist', () => {expect(stageChecklist('setup', { id: 'p' }).map((i) => i.done)).toEqual([false, false]);expect(stageChecklist('setup', { id: 'p' })[0].action).toEqual({ label: 'Attach a track', anchor: 'mv-track' });// A running autonomous run writes the song itself, so there is nothing to attach.- expect(stageChecklist('setup', { id: 'p', autonomousRun: { status: 'running' } })[0]).toMatchObject({ action: null, detail: 'The autopilot run is making the song.' });+ expect(stageChecklist('setup', { id: 'p', autonomousRun: { status: 'running' } })[0]).toMatchObject({ action: null, detail: 'The autonomous run is making the song.' });expect(stageChecklist('board', castProject({ scenes: [scene()] }), NOT_APPROVED).map((i) => [i.id, i.done])).toEqual([['shots', true], ['approve-storyboard', false]]);expect(stageChecklist('produce', castProject({ scenes: [scene(), scene({ sceneId: 's2', videoHistoryId: null })] }), APPROVED)[0])diff --git a/client/src/pages/MusicVideo.jsx b/client/src/pages/MusicVideo.jsxindex a1ec966898..2c46066192 100644--- a/client/src/pages/MusicVideo.jsx+++ b/client/src/pages/MusicVideo.jsx@@ -510,7 +510,7 @@ export default function MusicVideo() {// Saving a brief hands the project to autopilot, so mode follows it.const saveAutomation = (automation) => updateMusicVideoProject(selected.id, { automation, mode: 'autonomous' }, { silent: true }).then((proj) => patchProject(proj.id, { automation: proj.automation, mode: proj.mode, updatedAt: proj.updatedAt }))- .catch((err) => { toast.error(err?.message || 'Failed to save autopilot brief'); throw err; });+ .catch((err) => { toast.error(err?.message || 'Failed to save automation brief'); throw err; });// Auto-arrange (#1915): distribute every scene across the analyzed song// sections weighted by each section's energy, writing the same persisted@@ -1281,8 +1281,9 @@ export default function MusicVideo() {projectPanels={<div className="space-y-3 min-w-0">{autopilotRun && activeStage !== 'setup' && (<StageSection+ id="mv-autonomous-run"key={`autonomous-${selected.id}`}- title="Autopilot run"+ title="Autonomous run"summary={autopilotSummary(autopilotRun, productionReview.readiness)}defaultOpen={!!runStage || autopilotRun.interrupted || ['running', 'awaiting-approval', 'needs-human', 'failed'].includes(autopilotRun.status)}>diff --git a/client/src/pages/MusicVideo.test.jsx b/client/src/pages/MusicVideo.test.jsxindex 2af0e208cc..9e3ab23af1 100644--- a/client/src/pages/MusicVideo.test.jsx+++ b/client/src/pages/MusicVideo.test.jsx@@ -1334,7 +1334,7 @@ describe('MusicVideo autonomous mode setup experience', () => {expect(screen.getByRole('button', { name: 'Writing the lyric draft…' })).toBeDisabled();expect(screen.queryByText(/Approvals: 0 of 3 approved/)).toBeNull();- expect(screen.getByText(/Autopilot: writing the lyric draft/i)).toBeInTheDocument();+ expect(screen.getByText(/Autonomous run: writing the lyric draft/i)).toBeInTheDocument();});});@@ -2338,7 +2338,7 @@ describe('MusicVideo stage tabs (#9243)', () => {renderAt('/music-video/mv-1/produce');await screen.findByRole('heading', { level: 2, name: PROJECT_WITH_CLIP.name });expect(selectedTab()).toHaveTextContent(/^Produce/);- expect(screen.getByRole('button', { name: 'Set up autopilot' })).toBeTruthy();+ expect(screen.getByRole('button', { name: 'Set up automation brief' })).toBeTruthy();fireEvent.click(screen.getByRole('tab', { name: STAGE_TABS.board }));await waitFor(() => expect(screen.getByTestId('loc').textContent).toBe('/music-video/mv-1/board'));@@ -2379,7 +2379,7 @@ describe('MusicVideo stage tabs (#9243)', () => {},'cast-sets': { 'Cast & Sets check-in': () => screen.queryByLabelText('Cast & Sets check-in') },board: { 'AI Plan': () => screen.queryByRole('button', { name: /AI Plan/ }), 'Add scene': () => screen.queryByRole('button', { name: /Add scene/ }), 'Shot prompt': () => screen.queryByLabelText('Shot prompt') },- produce: { 'Autopilot': () => screen.queryByLabelText('Autopilot'), 'Start production': () => screen.queryByRole('button', { name: /Start production/ }) },+ produce: { 'Automation brief': () => screen.queryByLabelText('Automation brief'), 'Start production': () => screen.queryByRole('button', { name: /Start production/ }) },compose: { Typography: () => screen.queryByText(/^Typography —/) },review: { 'Render final': () => screen.queryByRole('button', { name: /^Render final$/ }), 'Render excerpt': () => screen.queryByRole('button', { name: /Render excerpt/ }), 'Import development file': () => screen.queryByLabelText('Import development file') },};@@ -2726,7 +2726,7 @@ describe('Autopilot collapsed review summary', () => {listMusicVideoProjects.mockResolvedValue([project]);render(<MemoryRouter initialEntries={['/music-video/mv-3/review']}>{MV_ROUTES}</MemoryRouter>);await screen.findByText(`Historical stop reason: ${error}`);- const summary = screen.getByText('Autopilot run').closest('summary');+ const summary = screen.getByText('Autonomous run').closest('summary');fireEvent.click(summary);expect(summary).toHaveTextContent('Render and watch a current animated chorus proof');expect(summary.textContent).not.toContain(error);diff --git a/server/services/taskSchedule.js b/server/services/taskSchedule.jsindex 9d46f599ab..0aff94c61a 100644--- a/server/services/taskSchedule.js+++ b/server/services/taskSchedule.js@@ -1434,9 +1434,11 @@ export async function getScheduleStatus() {// this on a schedule you can't see here".const appSchedules = await resolveHiddenAppSchedules(taskType, interval, activeApps, allOverrides, featureEnabled, schedule);+ const auditMeta = getAuditScheduleMetadata(taskType);const taskStatus = {...interval,- ...getAuditScheduleMetadata(taskType),+ ...auditMeta,+ displayName: interval.displayName || (auditMeta.displayName !== taskType ? auditMeta.displayName : (DEFAULT_TASK_INTERVALS[taskType]?.displayName || taskType)),labels: interval.labels || [],// Advisory ordering: WHICH tasks to run first, named by task type. Never// a dispatch gate — that is `runAfter`, spread in from `interval` above.diff --git a/server/services/taskSchedule.test.js b/server/services/taskSchedule.test.jsindex a94502ec02..f4ea08c9a3 100644--- a/server/services/taskSchedule.test.js+++ b/server/services/taskSchedule.test.js@@ -2423,6 +2423,7 @@ describe('taskSchedule', () => {expect(status.tasks['better-complexity'].suggestedAfter).toEqual(['module-hygiene'])expect(status.tasks['module-hygiene'].runGuidance).toContain('module boundaries')expect(status.tasks['claim-issue']).toMatchObject({ displayName: 'claim-issue', defaultLabels: [] })+ expect(status.tasks['music-video-autopilot']).toMatchObject({ displayName: 'Autonomous run' })})it('projects task summaries and explains hook-owned prompts', async () => {diff --git a/server/services/taskScheduleRegistry.js b/server/services/taskScheduleRegistry.jsindex 8b7005329b..14685d1291 100644--- a/server/services/taskScheduleRegistry.js+++ b/server/services/taskScheduleRegistry.js@@ -442,7 +442,7 @@ const TASK_INTERVAL_DEFAULTS = {// budget, checkpoints, idea tags); the shipped default is the free/local tool// set so nothing metered is spent until the operator opts in. It has no Quota// Burn form: image/video spend is bounded by its own budget and limits.- 'music-video-autopilot': { type: INTERVAL_TYPES.ON_DEMAND, enabled: true, providerId: null, model: null, prompt: null, taskMetadata: { musicVideoAutopilot: normalizeAutopilotParams({}) } },+ 'music-video-autopilot': { type: INTERVAL_TYPES.ON_DEMAND, enabled: true, displayName: 'Autonomous run', providerId: null, model: null, prompt: null, taskMetadata: { musicVideoAutopilot: normalizeAutopilotParams({}) } },'universe-bible-describe': { type: INTERVAL_TYPES.ON_DEMAND, enabled: true, providerId: null, model: null, prompt: null, taskMetadata: { universeId: 'all', scope: 'all', depth: 'full', maxEntries: 10 } },'universe-bible-images': { type: INTERVAL_TYPES.ON_DEMAND, enabled: true, providerId: null, model: null, prompt: null, taskMetadata: { universeId: 'all', scope: 'all', maxEntries: 10, requireDescribed: false } }};