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: align creative commissions with media capabilities

[._.]/ Adam Eivy55d734cfc2fd
diff --git a/data.reference/prompts/stages/cd-plan.md b/data.reference/prompts/stages/cd-plan.md
index 4b1c3d4dba..0eab1f09d5 100644
--- a/data.reference/prompts/stages/cd-plan.md
+++ b/data.reference/prompts/stages/cd-plan.md
@@ -16,6 +16,8 @@ You are the Creative Director acting as a general creative ORCHESTRATOR. Your jo
**Constraints (JSON):** {{directive.constraintsJson}}
+For a Creative Commission, these constraints contain the user's authoritative `targetAbility` and sanitized `generation` form choices. Start from them. Do not substitute a different output type, backend, model, duration, count, quality, or aspect ratio.
+
{{#hasCurrentPlan}}
## Current plan (revise this)
@@ -38,7 +40,9 @@ Parameters (JSON schema): {{parametersJson}}
## Locked render settings
-This project is locked to **{{render.aspectRatio}}** ({{render.width}}×{{render.height}}), **{{render.quality}}** quality, target ~{{render.targetDurationSeconds}}s. For any `media_enqueueVideoJob` step, set ONLY the creative params (`prompt`, `negativePrompt`, `style`, and optionally a shorter per-beat `durationSeconds`). Do NOT set `aspectRatio`, `width`, `height`, `fps`, or `steps` — the server forces the locked geometry onto every render, so any values you supply for those are ignored.
+This project is locked to **{{render.aspectRatio}}** ({{render.width}}×{{render.height}}), **{{render.quality}}** quality, target ~{{render.targetDurationSeconds}}s, using **{{render.modelName}}** (`{{render.modelId}}`). The selected model exposes these same options in the Video Gen UI: {{render.modelOptionsJson}}.
+
+For any `media_enqueueVideoJob` step, set only `prompt`, `style`, and optionally a shorter per-beat `durationSeconds`.{{#render.supportsNegativePrompt}} You may also set `negativePrompt`.{{/render.supportsNegativePrompt}}{{^render.supportsNegativePrompt}} Do NOT set `negativePrompt`; this model does not expose it in the UI.{{/render.supportsNegativePrompt}} Do not set or override backend, model, aspect ratio, width, height, FPS, frame count, steps, guidance, tiling, or audio controls. The server derives them from the user's commission and snaps them to the selected model's advertised options.
## Referencing a prior step's result
diff --git a/scripts/migrations/277-cd-plan-commission-controls.js b/scripts/migrations/277-cd-plan-commission-controls.js
new file mode 100644
index 0000000000..0333b7f207
--- /dev/null
+++ b/scripts/migrations/277-cd-plan-commission-controls.js
@@ -0,0 +1,25 @@
+/**
+ * Keep Creative Commission planning anchored to the user's selected output and
+ * model capabilities. Hash replacement preserves customized stage prompts.
+ */
+
+import { makePromptReplaceMigration } from './_lib.js';
+
+export const ACCEPTED_OLD_MD5 = {
+ 'cd-plan.md': ['ef0d96f6ebde43af6c4579969d31cfb7'],
+};
+
+export const NEW_SHIPPED_MD5 = {
+ 'cd-plan.md': '41a61590896d1327df2c6915557361de',
+};
+
+const { applyMigration, up } = makePromptReplaceMigration({
+ accepted: ACCEPTED_OLD_MD5,
+ current: NEW_SHIPPED_MD5,
+ label: 'Creative Director commission controls',
+ customizedHint: () =>
+ ' Compare data.reference/prompts/stages/cd-plan.md with data/prompts/stages/cd-plan.md and merge the commission/model-control guidance.',
+});
+
+export { applyMigration };
+export default { up };
diff --git a/scripts/migrations/277-cd-plan-commission-controls.test.js b/scripts/migrations/277-cd-plan-commission-controls.test.js
new file mode 100644
index 0000000000..696c8341ba
--- /dev/null
+++ b/scripts/migrations/277-cd-plan-commission-controls.test.js
@@ -0,0 +1,26 @@
+import { readFileSync } from 'fs';
+import { describe, expect, it } from 'vitest';
+
+import { repoRoot, runPromptMigrationTests } from './_testHelpers.js';
+import migration, {
+ ACCEPTED_OLD_MD5,
+ NEW_SHIPPED_MD5,
+ applyMigration,
+} from './277-cd-plan-commission-controls.js';
+
+describe('migration 277 — Creative Director commission controls', () => {
+ runPromptMigrationTests({
+ migration,
+ applyMigration,
+ ACCEPTED_OLD_MD5,
+ NEW_SHIPPED_MD5,
+ prefix: 'migration-277-cd-plan-controls-',
+ });
+
+ it('keeps the planner anchored to commission and model capabilities', () => {
+ const prompt = readFileSync(`${repoRoot}/data.reference/prompts/stages/cd-plan.md`, 'utf8');
+ expect(prompt).toContain("authoritative `targetAbility`");
+ expect(prompt).toContain('does not expose it in the UI');
+ expect(prompt).toContain("snaps them to the selected model's advertised options");
+ });
+});
diff --git a/server/lib/creativeDirectorPrompts.js b/server/lib/creativeDirectorPrompts.js
index 012728c6ee..ae18da0b1a 100644
--- a/server/lib/creativeDirectorPrompts.js
+++ b/server/lib/creativeDirectorPrompts.js
@@ -25,6 +25,7 @@ import {
presetToRenderParams,
} from './creativeDirectorPresets.js';
import { PORTOS_API_URL } from './ports.js';
+import { getVideoModels } from './mediaModels.js';
import { buildPrompt } from '../services/promptService.js';
// Shared project-block view used by both prompt stages. Defaults out
@@ -99,12 +100,22 @@ function buildPlanView(project, toolSpecs) {
// server forces these onto every video render (see media.js
// enforceVideoRenderPreset). `width`/`height` degrade to 0 on an unknown ratio.
const aspect = resolveAspectDimensions(project.aspectRatio, { width: 0, height: 0 });
+ const videoModel = getVideoModels().find((model) => model.id === project.modelId) || null;
const render = {
aspectRatio: project.aspectRatio,
quality: project.quality,
width: aspect.width,
height: aspect.height,
targetDurationSeconds: project.targetDurationSeconds,
+ modelId: project.modelId,
+ modelName: videoModel?.name || project.modelId,
+ supportsNegativePrompt: videoModel?.supportsNegativePrompt !== false,
+ modelOptionsJson: JSON.stringify({
+ resolutions: videoModel?.resolutionOptions || [],
+ frameCounts: videoModel?.frameOptions || [],
+ fps: videoModel?.fpsOptions || [],
+ samplerLocked: videoModel?.samplerLocked === true,
+ }),
};
return {
project: buildProjectView(project),
diff --git a/server/lib/creativeDirectorPrompts.test.js b/server/lib/creativeDirectorPrompts.test.js
index e1aeb14d7d..facdb632db 100644
--- a/server/lib/creativeDirectorPrompts.test.js
+++ b/server/lib/creativeDirectorPrompts.test.js
@@ -73,7 +73,7 @@ describe('buildPlanPrompt — locked render settings', () => {
expect(out).toContain('**9:16** (432×768)');
expect(out).toContain('**high** quality');
// Instructs the planner not to author the enforced params.
- expect(out).toMatch(/Do NOT set `aspectRatio`, `width`, `height`, `fps`, or `steps`/);
+ expect(out).toContain('Do not set or override backend, model, aspect ratio, width, height, FPS, frame count, steps');
});
});
diff --git a/server/lib/creativeDirectorValidation.js b/server/lib/creativeDirectorValidation.js
index b8492581a1..1d0764cda4 100644
--- a/server/lib/creativeDirectorValidation.js
+++ b/server/lib/creativeDirectorValidation.js
@@ -66,6 +66,12 @@ export const creativeDirectorDirectiveSchema = z.object({
seriesId: z.string().max(120).nullable().optional(),
formats: z.array(z.string().min(1).max(64)).max(20).optional(),
budgetCap: z.number().int().min(0).max(100000).nullable().optional(),
+ // Structured commission provenance for the planner. The output type is the
+ // same enum the commission form selected; generation is the already-
+ // sanitized set of form choices. They are context/locking inputs, not a
+ // second mutable configuration surface.
+ targetAbility: z.enum(['video', 'image', 'music', 'music-video', 'series']).optional(),
+ generation: z.record(z.union([z.string(), z.number(), z.boolean(), z.null()])).optional(),
}).default({}),
});
@@ -517,4 +523,3 @@ export const importerCommitSchema = z.object({
// Defaults to false to preserve the additive merge behavior.
replaceMode: z.boolean().optional().default(false),
}).strict();
-
diff --git a/server/services/creative/toolRegistry.js b/server/services/creative/toolRegistry.js
index 25f0650f7d..c449de0207 100644
--- a/server/services/creative/toolRegistry.js
+++ b/server/services/creative/toolRegistry.js
@@ -134,8 +134,28 @@ const toSpec = (t) => {
export const filterDestructive = (tools, includeDestructive) =>
tools.filter((t) => includeDestructive || !t.destructive);
-export const getToolSpecs = ({ includeDestructive = false } = {}) =>
- filterDestructive(CREATIVE_TOOLS, includeDestructive).map(toSpec);
+// A commission has already chosen its output type in the UI. Give its planner
+// only the tools capable of producing that output, instead of asking the LLM to
+// rediscover the choice from prose while staring at the entire creative suite.
+// Hand-created/general Creative Director projects have no targetAbility and
+// retain the full registry.
+const ABILITY_TOOL_NAMES = Object.freeze({
+ video: new Set(['media_enqueueVideoJob']),
+ image: new Set(['media_enqueueImageJob']),
+ music: new Set(['media_enqueueAudioJob']),
+ 'music-video': new Set(['media_enqueueAudioJob', 'media_enqueueImageJob', 'media_enqueueVideoJob']),
+});
+
+export const filterForTargetAbility = (tools, targetAbility) => {
+ if (targetAbility === 'series') {
+ return tools.filter((tool) => tool.name.startsWith('pipeline_') || tool.name.startsWith('universe_'));
+ }
+ const allowed = ABILITY_TOOL_NAMES[targetAbility];
+ return allowed ? tools.filter((tool) => allowed.has(tool.name)) : tools;
+};
+
+export const getToolSpecs = ({ includeDestructive = false, targetAbility = null } = {}) =>
+ filterForTargetAbility(filterDestructive(CREATIVE_TOOLS, includeDestructive), targetAbility).map(toSpec);
export const getAllCreativeToolNames = () => CREATIVE_TOOLS.map((t) => t.name);
diff --git a/server/services/creative/toolRegistry.test.js b/server/services/creative/toolRegistry.test.js
index f2c0960d71..f91ed6736b 100644
--- a/server/services/creative/toolRegistry.test.js
+++ b/server/services/creative/toolRegistry.test.js
@@ -137,6 +137,19 @@ describe('registry shape', () => {
}
});
+ it('limits a commission planner to tools for the selected UI output type', () => {
+ expect(getToolSpecs({ targetAbility: 'video' }).map((s) => s.function.name))
+ .toEqual(['media_enqueueVideoJob']);
+ expect(getToolSpecs({ targetAbility: 'image' }).map((s) => s.function.name))
+ .toEqual(['media_enqueueImageJob']);
+ expect(getToolSpecs({ targetAbility: 'music' }).map((s) => s.function.name))
+ .toEqual(['media_enqueueAudioJob']);
+ expect(getToolSpecs({ targetAbility: 'music-video' }).map((s) => s.function.name).sort())
+ .toEqual(['media_enqueueAudioJob', 'media_enqueueImageJob', 'media_enqueueVideoJob']);
+ expect(getToolSpecs({ targetAbility: 'series' }).every((s) =>
+ s.function.name.startsWith('pipeline_') || s.function.name.startsWith('universe_'))).toBe(true);
+ });
+
it('hydrates catalog_searchIngredients from the voice tool\'s RESOLVED spec (custom types survive)', () => {
const meta = getCreativeToolMetadata('catalog_searchIngredients');
expect(meta.description).toBe('VOICE catalog search description');
diff --git a/server/services/creative/tools/media.js b/server/services/creative/tools/media.js
index f41cc1632a..695845bd4f 100644
--- a/server/services/creative/tools/media.js
+++ b/server/services/creative/tools/media.js
@@ -13,6 +13,7 @@ import { renderTargetDefaults, resolveRenderTargetConfig } from '../../imageGen/
import { RENDER_TARGET } from '../../../lib/renderTargets.js';
import { VIDEO_GEN_MODE, VIDEO_GEN_MODES } from '../../videoGen/modes.js';
import { grokVideoJobParams, resolveVideoBackendPin } from '../../videoGen/backendPin.js';
+import { getDefaultVideoModelId, getVideoModels } from '../../../lib/mediaModels.js';
import { COST_RENDER, resolveOwner } from './shared.js';
const paramsSchema = z.object({ params: z.record(z.any()).default({}), owner: z.string().optional() });
@@ -34,7 +35,7 @@ const paramsSchema = z.object({ params: z.record(z.any()).default({}), owner: z.
* unrecognized aspect/quality (hand-edited/legacy project) falls through to the
* LLM's params untouched — best-effort, never throws.
*/
-async function enforceVideoRenderPreset(params, project) {
+function enforceVideoRenderPreset(params, project) {
// Only a directive-driven CD project locks a preset; a bare enqueue (no
// recognized aspect/quality) keeps the caller's params as-is.
if (!project || !ASPECT_PRESETS[project.aspectRatio] || !QUALITY_PRESETS[project.quality]) {
@@ -63,6 +64,45 @@ async function enforceVideoRenderPreset(params, project) {
};
}
+export function reconcileVideoParamsWithModel(params, project, models = getVideoModels()) {
+ const locked = enforceVideoRenderPreset(params, project);
+ if (locked === params) return params;
+ const requestedModelId = locked.modelId || project.modelId || getDefaultVideoModelId();
+ const model = models.find((entry) => entry.id === requestedModelId) || null;
+ const aspectValue = locked.width / locked.height;
+ const resolution = Array.isArray(model?.resolutionOptions) && model.resolutionOptions.length
+ ? model.resolutionOptions.reduce((best, option) => {
+ const distance = Math.abs((Number(option.w) / Number(option.h)) - aspectValue);
+ return !best || distance < best.distance ? { option, distance } : best;
+ }, null)?.option
+ : null;
+ const fpsOptions = Array.isArray(model?.fpsOptions) ? model.fpsOptions.filter(Number.isFinite) : [];
+ const fps = fpsOptions.includes(locked.fps) ? locked.fps : (fpsOptions[0] || locked.fps);
+ const requestedFrames = Math.max(1, Math.round((locked.numFrames / locked.fps) * fps));
+ const frameOptions = Array.isArray(model?.frameOptions) ? model.frameOptions.filter(Number.isFinite) : [];
+ const numFrames = frameOptions.length
+ ? frameOptions.reduce((best, value) => (
+ Math.abs(value - requestedFrames) < Math.abs(best - requestedFrames) ? value : best
+ ))
+ : locked.numFrames;
+ const reconciled = {
+ ...locked,
+ modelId: requestedModelId,
+ width: Number(resolution?.w) || locked.width,
+ height: Number(resolution?.h) || locked.height,
+ fps,
+ numFrames,
+ };
+ if (model?.samplerLocked) {
+ delete reconciled.steps;
+ delete reconciled.guidanceScale;
+ }
+ if (model?.supportsNegativePrompt === false) delete reconciled.negativePrompt;
+ if (model?.supportsDisableAudio === false) delete reconciled.disableAudio;
+ if (model?.supportsTiling === false) delete reconciled.tiling;
+ return reconciled;
+}
+
/**
* Tag a planner-enqueued audio job so the durable `creativeDirectorMusicBedHook`
* files the finished track onto the owning project's `musicBed` field (#2772).
@@ -261,8 +301,16 @@ const mediaTool = (kind, label) => ({
// Image + video both consult the owning project: video for its locked
// geometry preset, both for a pinned render backend (#3135).
const project = await loadOwningProject(ctx);
- if (kind === 'video') params = await enforceVideoRenderPreset(params, project);
+ if (kind === 'video') params = enforceVideoRenderPreset(params, project);
params = await enforceRenderBackendPin(kind, params, project);
+ // Resolve the selected local model AFTER the backend ladder has applied
+ // project/install pins. The same model-catalog fields that drive Video
+ // Gen's visible controls then snap the autonomous job onto that model's
+ // canvas/FPS/frame options and remove controls the UI disables (for
+ // example MiniMax H3's negative prompt and sampler knobs).
+ if (kind === 'video' && params?.mode !== VIDEO_GEN_MODE.GROK) {
+ params = reconcileVideoParamsWithModel(params, project);
+ }
}
return enqueueJob({ kind, params, owner: resolveOwner(args, ctx) });
},
diff --git a/server/services/creative/tools/media.test.js b/server/services/creative/tools/media.test.js
index cdc35dbe1b..34f5a795ac 100644
--- a/server/services/creative/tools/media.test.js
+++ b/server/services/creative/tools/media.test.js
@@ -14,7 +14,7 @@ vi.mock('../../creativeCommissions/store.js', () => ({
import { enqueueJob } from '../../mediaJobQueue/index.js';
import { getSettings } from '../../settings.js';
import { getProject } from '../../creativeDirector/local.js';
-import { MEDIA_TOOLS } from './media.js';
+import { MEDIA_TOOLS, reconcileVideoParamsWithModel } from './media.js';
const tool = (name) => MEDIA_TOOLS.find((t) => t.name === name);
const run = (name, params, ctx = {}) => tool(name).execute({ params }, ctx);
@@ -31,6 +31,39 @@ beforeEach(() => {
getCommissionMusicContextForProject.mockResolvedValue(null);
});
+describe('model-aware autonomous video controls', () => {
+ it('uses the same H3 options as Video Gen and drops controls its UI disables', () => {
+ const params = reconcileVideoParamsWithModel({
+ prompt: 'an example shot',
+ negativePrompt: 'blur',
+ disableAudio: true,
+ tiling: 'spatial',
+ }, {
+ aspectRatio: '16:9', quality: 'standard', targetDurationSeconds: 10,
+ modelId: 'minimax-h3-example',
+ }, [{
+ id: 'minimax-h3-example',
+ resolutionOptions: [{ w: 1344, h: 768 }, { w: 768, h: 1344 }],
+ fpsOptions: [24],
+ frameOptions: [226, 243],
+ samplerLocked: true,
+ supportsNegativePrompt: false,
+ supportsDisableAudio: false,
+ supportsTiling: false,
+ }]);
+
+ expect(params).toMatchObject({
+ prompt: 'an example shot', modelId: 'minimax-h3-example',
+ width: 1344, height: 768, fps: 24, numFrames: 243,
+ });
+ expect(params).not.toHaveProperty('negativePrompt');
+ expect(params).not.toHaveProperty('disableAudio');
+ expect(params).not.toHaveProperty('tiling');
+ expect(params).not.toHaveProperty('steps');
+ expect(params).not.toHaveProperty('guidanceScale');
+ });
+});
+
describe('render-backend pin — the auto/unpinned path is a strict no-op (#3135)', () => {
// Note (#3231): the image lane now reads settings even without a project pin
// — the install-wide creative-agent renderDefaults pin is a second pin
diff --git a/server/services/creativeCommissions/abilityAdapters.js b/server/services/creativeCommissions/abilityAdapters.js
index f62b080c9b..3957057765 100644
--- a/server/services/creativeCommissions/abilityAdapters.js
+++ b/server/services/creativeCommissions/abilityAdapters.js
@@ -79,7 +79,17 @@ function briefContext(commission, leadSentence) {
if (brief.category) lines.push(`Category: ${brief.category}.`);
if (brief.styleSpec) lines.push(`Style: ${brief.styleSpec}.`);
const digest = renderFeedbackDigest(commission?.feedback, commission?.feedbackWindow ?? 5);
- const constraints = {};
+ // Preserve the user's structured form choices alongside the prose brief.
+ // The planner uses targetAbility to receive a matching tool subset and sees
+ // generation as authoritative starting configuration rather than guessing
+ // renderer/model controls from the intent text.
+ const constraints = {
+ targetAbility: commission?.targetAbility,
+ generation: sanitizeGenerationFor(
+ CREATIVE_COMMISSION_ABILITIES.includes(commission?.targetAbility) ? commission.targetAbility : 'video',
+ commission?.generation,
+ ),
+ };
if (brief.constraints?.universeId) constraints.universeId = brief.constraints.universeId;
if (brief.constraints?.seriesId) constraints.seriesId = brief.constraints.seriesId;
return { lines, digest, constraints };
diff --git a/server/services/creativeCommissions/abilityAdapters.test.js b/server/services/creativeCommissions/abilityAdapters.test.js
index 22e790453e..e58a0bf8b6 100644
--- a/server/services/creativeCommissions/abilityAdapters.test.js
+++ b/server/services/creativeCommissions/abilityAdapters.test.js
@@ -33,7 +33,8 @@ describe('buildCommissionDirective — video (unchanged brief/feedback fold)', (
expect(directive.goal).toContain('Genre: surrealism.');
expect(directive.goal).toContain('Style: flat color, Magritte.');
expect(directive.deliverables).toEqual(['One rendered video matching the brief']);
- expect(directive.constraints).toEqual({ universeId: 'u-123' });
+ expect(directive.constraints).toMatchObject({ universeId: 'u-123', targetAbility: 'video' });
+ expect(directive.constraints.generation).toMatchObject({ quality: 'standard', videoMode: 'auto' });
});
it('folds recent feedback into the goal', () => {
@@ -47,8 +48,9 @@ describe('buildCommissionDirective — video (unchanged brief/feedback fold)', (
expect(directive.goal).toContain('Recent dislikes: less horror.');
});
- it('omits absent constraints', () => {
- expect(buildCommissionDirective({ targetAbility: 'video', brief: { intent: 'x' } }).constraints).toEqual({});
+ it('always carries the selected output and sanitized generation starting point', () => {
+ expect(buildCommissionDirective({ targetAbility: 'video', brief: { intent: 'x' } }).constraints)
+ .toMatchObject({ targetAbility: 'video', generation: { quality: 'standard', videoMode: 'auto' } });
});
it('clamps the goal under the CD 5000-char cap with a large feedback window + long notes', () => {
@@ -124,7 +126,7 @@ describe('per-ability directives steer the planner to the right tools', () => {
const withU = buildCommissionDirective({ targetAbility: 'series', brief: { intent: 'noir', constraints: { universeId: 'u-9' } }, generation: { episodeCount: 2 } });
expect(withU.goal).toContain('Create the series within the provided universe');
expect(withU.goal).toContain('first 2 issues/episodes');
- expect(withU.constraints).toEqual({ universeId: 'u-9' });
+ expect(withU.constraints).toMatchObject({ universeId: 'u-9', targetAbility: 'series', generation: { episodeCount: 2 } });
const noU = buildCommissionDirective({ targetAbility: 'series', brief: { intent: 'noir' }, generation: { episodeCount: 1 } });
expect(noU.goal).toContain('Invent a fitting universe');
diff --git a/server/services/creativeDirector/agentBridge.js b/server/services/creativeDirector/agentBridge.js
index 1ac4e31755..0d021998cf 100644
--- a/server/services/creativeDirector/agentBridge.js
+++ b/server/services/creativeDirector/agentBridge.js
@@ -175,7 +175,8 @@ export async function enqueueTreatmentTask(project) {
// builder never imports the registry. Malformed plan output retries like the
// treatment stage — the agent reads the 4xx error body and re-PATCHes.
export async function enqueuePlanTask(project) {
- const context = await buildPlanPrompt(project, { toolSpecs: getToolSpecs() });
+ const targetAbility = project?.directive?.constraints?.targetAbility || null;
+ const context = await buildPlanPrompt(project, { toolSpecs: getToolSpecs({ targetAbility }) });
const built = await buildTaskRecord(project, 'plan', null, context);
return persistAndEmit(built, project, 'plan', null);
}
diff --git a/server/services/creativeDirector/agentBridge.test.js b/server/services/creativeDirector/agentBridge.test.js
index 0911cdfa69..91d3b37d80 100644
--- a/server/services/creativeDirector/agentBridge.test.js
+++ b/server/services/creativeDirector/agentBridge.test.js
@@ -68,6 +68,15 @@ describe('Creative Director agent bridge model assignments', () => {
expect(task.metadata.noCodeOutput).toBe(true);
});
+ it('requests only the tool set matching a commission project output type', async () => {
+ await enqueuePlanTask({
+ ...project,
+ directive: { constraints: { targetAbility: 'image' } },
+ });
+
+ expect(mocks.getToolSpecs).toHaveBeenCalledWith({ targetAbility: 'image' });
+ });
+
it('prefers the project-level override over the global assignment', async () => {
mocks.getSettings.mockResolvedValue({
creativeDirector: { treatment: { providerId: 'global-agent', model: 'global-model' } },