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

refactor([wardrobe-appearance-id-route-validation]): reattach enqueueVisualImage doc, document request-boundary scope

[._.]/ Adam Eivy8d6970681e51
diff --git a/server/services/pipeline/visualStages.js b/server/services/pipeline/visualStages.js
index dccb4238fe..19ad6d9405 100644
--- a/server/services/pipeline/visualStages.js
+++ b/server/services/pipeline/visualStages.js
@@ -772,13 +772,6 @@ export async function enqueueVisualComicPage(issueId, options = {}) {
return { jobId, mode, prompt, pageIndex, variant, fromProof };
}
-/**
- * Enqueue one image render for a pipeline issue's visual stage. The caller
- * records the returned jobId on the issue's stage artifact list
- * (e.g. stages.comicPages.pages[i].panels[j].imageJobId).
- *
- * Returns { jobId, mode, prompt }.
- */
/**
* Validate per-scene wardrobe picks at the request boundary. The generic
* visual-image route accepts `characterAppearances` ([{ characterId,
@@ -792,6 +785,12 @@ export async function enqueueVisualComicPage(issueId, options = {}) {
* character) worth surfacing — not a no-op. A null/absent `wardrobeId` is
* valid (the character renders on their canonical body description); only a
* non-empty wardrobeId is resolved against the character's wardrobes.
+ *
+ * Scoped to the request boundary on purpose: the persisted-scene paths
+ * (`enqueueStoryboardSceneVideo`, `enqueueStoryboardShotStartFrame`) and the
+ * shared `composeVisualPrompt` primitive — also used by episode-video batch
+ * stitching — keep `buildScenePrompt`'s resilient silent-drop convention so a
+ * single dangling pick can't abort a whole batch render.
*/
export function assertCharacterAppearancesResolve(characterAppearances, characters) {
const picks = Array.isArray(characterAppearances) ? characterAppearances : [];
@@ -822,6 +821,13 @@ export function assertCharacterAppearancesResolve(characterAppearances, characte
}
}
+/**
+ * Enqueue one image render for a pipeline issue's visual stage. The caller
+ * records the returned jobId on the issue's stage artifact list
+ * (e.g. stages.comicPages.pages[i].panels[j].imageJobId).
+ *
+ * Returns { jobId, mode, prompt }.
+ */
export async function enqueueVisualImage(issueId, stageId, options = {}) {
if (!VISUAL_STAGE_IDS.includes(stageId)) {
throw new ServerError(`not a visual stage: ${stageId}`, {