← MaxfusionCONTENT HISTORY
WHAT CHANGED
Update to Maxfusion
Snapshot Nov 27, 2026 · 12:24 UTC · version 1.0.4
Collection source: downloaded plugin package.
First saved snapshot
No earlier snapshot is available to establish a change.
Save Maxfusion and check future changes in Following.
Up to 3 plugins free · no card required.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"description": "Turn one source ad video (4-30 seconds) into N ordered, independently edited versions with Seedance 2.5 video editing on MaxFusion, preserving the source's motion, framing, cuts, timing, exact duration, aspect and original audio. Edits per output: replace a person's identity (reference image or AI-generated replacement actor), change clothing or an attribute, replace the background or location, swap a product or object, add or remove an element, or edit one targeted on-screen text or graphic. Several simultaneous edits per output allowed; N counts finished videos. Use for \"ad mutator\", \"mutate my ad\", \"make me N versions of my ad\", \"replace the person in this video with N different people\", \"swap the product and background in this clip\". NOT for sources outside 4-30 seconds, new videos from scratch, translation or dubbing, caption generation, or Cartesian combinations of asset lists. Requires the MaxFusion AI MCP.",
"included_files": [
{
"relative_path": "agents/openai.yaml",
"size_in_bytes": 161
}
],
"name": "ad-mutator",
"skill_md_contents": "---\nname: ad-mutator\ndescription: \"Turn one source ad video (4-30 seconds) into N ordered, independently edited versions with Seedance 2.5 video editing on MaxFusion, preserving the source's motion, framing, cuts, timing, exact duration, aspect and original audio. Edits per output: replace a person's identity (reference image or AI-generated replacement actor), change clothing or an attribute, replace the background or location, swap a product or object, add or remove an element, or edit one targeted on-screen text or graphic. Several simultaneous edits per output allowed; N counts finished videos. Use for \\\"ad mutator\\\", \\\"mutate my ad\\\", \\\"make me N versions of my ad\\\", \\\"replace the person in this video with N different people\\\", \\\"swap the product and background in this clip\\\". NOT for sources outside 4-30 seconds, new videos from scratch, translation or dubbing, caption generation, or Cartesian combinations of asset lists. Requires the MaxFusion AI MCP.\"\n---\n\n# Ad Mutator\n\nTurn one source ad clip into `N` ordered, independent edited videos. Upload and analyze the source once. One output may carry several simultaneous edits; `N` always counts final videos, never people, assets, operations, or takes.\n\nEverything runs through direct MaxFusion MCP tools. The editing engine is Seedance 2.5 in reference-to-video mode with the source clip attached as a video reference. Because that mode auto-detects intent, every prompt this skill writes states explicitly, up front, that the task is an EDIT of the attached source video: same duration, same shots, same timing, same audio. Never rely on the model to infer this.\n\n## Runtime rules\n\n- **MaxFusion AI MCP** connected and authenticated. If it is not connected, stop and walk the user through connecting before doing anything else.\n- **Verify the catalog live, never from memory.** Before the first generation of a run, call `maxfusion_list_video_models` and confirm `seedance-2.5` is available; read its real durations, aspect ratios, resolutions, and reference limits from the response. For generated replacement actors, confirm `gpt-image-2` via `maxfusion_list_image_models` the same way. If a locked model is missing or a needed value is unsupported, stop and report; never silently substitute.\n- **Fresh named project per run.** Create one with `maxfusion_create_project` (for example \"Ad Mutator - <source name>\") and attach every generation of the run to it — `project_id` on image calls, `project_group_id` on video, caption, and audio-extraction calls; the parameter names differ and a wrong one is rejected. Uploads are organization-level and take no project. Never generate into a default API project.\n- **Widgets are the delivery.** Generation calls render their results in chat as self-updating widgets; that IS the delivery. Never paste raw S3/CDN/asset URLs into chat. Re-surface an earlier result only with `maxfusion_display_generation`. If a widget is still pending, say so and stop; never resubmit a pending job.\n- **Credits.** Generations happen as the pipeline reaches them; the approval gates defined below are the only confirmation points. Nothing is ever REgenerated silently: if an output has defects, deliver it, report the issue in one line, and ask. A job that failed server-side with no output may be resubmitted once. An insufficient-credits error is a hard stop, reported in one line; because auto-duration generations reserve the model's maximum price up front and refund the unused part when the job completes, mention in that line that the final cost of a completed edit is the source length, not the reserved maximum. No cost estimates in chat beyond the per-second rates stated in the Stage 1 resolution question, the Stage 7 1080p offer, and the caption offer.\n- **Member credit limit.** A call that comes back not executed because of the user's monthly credit limit is a different stop: that limit does not cover the call (it is used up, or less is left than the call costs), not the workspace's credits. An auto-duration edit is checked against the reserved maximum price, not the final source-length cost. `maxfusion_get_me` shows the limit, what is used and left, and the day it starts again. Say so in one line: offer a cheaper run that fits what is left (a lower resolution or a shorter source) if there is one, otherwise tell the user to ask the workspace owner or an admin for more credits in Maxfusion; buying credits does not help.\n- **Asking the user.** Use the client's structured question UI when available; otherwise one concise chat question. Bundle all open points of a stage into a single question. Never re-ask what is already explicit.\n\n## Supported operations\n\n| Operation | Needs a reference? | Scope | Key rule |\n|---|---|---|---|\n| Person identity replace | Image, or one is generated | Global - every appearance | The source person must never appear in any frame. The reference owns the complete look, including clothing. |\n| Clothing change | Optional garment or outfit image | The named garment only | Does not trigger identity exclusion; the source person is preserved. |\n| Attribute change | No | The named property only | Changes only that property. Person preserved. |\n| Background / location | Optional location image | Environment | Environment replacement, not style transfer. |\n| Product / object replace | Product image | Same-category focal object | Maps to the matching category; never silently dropped. |\n| Add | Optional | Stated placement and window | Must state placement, scale, motion, interaction. |\n| Remove | No | Named target | Reconstructs only the revealed area. |\n| Targeted text / graphic edit | No | One named element | Preserves source typography, placement, animation, timing unless explicitly changed. |\n\nIdentity replacement is the only operation with global exclusion machinery: a mandated clause that the source person never appears in any frame, extended through cuts, entrances, exits, occlusions, motion blur, transitions, reflections, and shadows, plus complete-look authority handed to the reference image. Clothing, hair, and attribute changes explicitly do not trigger it. If the user only wants a different outfit, do not treat it as an identity replacement.\n\n## Non-negotiable output contract\n\n- Accept exactly one measured source video of **4.0-30.0 seconds inclusive**. Do not trim, split, loop, freeze, or clamp an out-of-range source to fit.\n- Every edit prompt opens by declaring the task an edit of the attached source video with the output duration stated exactly, and demands the source's original audio track unchanged. The `duration` parameter is always `\"auto\"`: Seedance classifies these prompts as video-editing tasks, and for that task type the provider rejects an explicit duration — the output length follows the source video, which the prompt already pins exactly. For the same reason the source clip must fit Seedance 2.5's output duration range (`durations_seconds` in `maxfusion_list_video_models`); a shorter or longer source fails the edit.\n- Keep source motion, performance, choreography, camera, cuts, lighting, pacing, display aspect ratio, exact final duration, and the original audio.\n- Preserve every caption, subtitle, UI element, motion-design graphic, label, branding mark, and other on-screen text unless the user explicitly targets it or it is physically attached to a replaced target. One exception: at intake the user explicitly chooses whether baked-in captions and subtitles are kept or removed (Stage 1), and a chosen removal is executed inside the edit prompt. Never remove or regenerate captions without that explicit choice, and a removal choice never touches non-caption text: logos, brand marks, product label text, watermarks, and functional UI stay protected.\n- A person replacement covers every appearance of that mapped source person. Preserve every unmapped person.\n- For a person identity replacement, its mapped reference image is authoritative for the complete visible look: face, head, hair, skin tone, body, build, grooming, clothing, footwear, and worn accessories. The replaced person's clothes do not survive. Override only the clothing portion when a separately attached garment or full-outfit image maps to that person, or the user explicitly requests different clothing (including retaining named source clothing). A wardrobe description inferred from the source video is never a user instruction. A generated or studio-background actor image follows the same whole-look rule.\n- `N` counts finished videos. Preserve an explicit `N`; otherwise infer it from an ordered output list, or use one for a single edit request. Preserve output order end to end and label deliveries Output 1, Output 2, and so on.\n- Ordered lists pair by output position only (person 1 with output 1, and so on). Shared assets may repeat across outputs. Never create a Cartesian product of independent lists and never build a persistent variant registry. If each of `N` outputs replaces two people and neither has a reference, generate `2N` distinct people and pair two per output; generated people in one request set must remain visibly distinct from one another, not merely from the source.\n- Submit exactly one output at a time. Retry each failed position at most once. Continue with independent successes and report every failed output.\n\n## Stage 1 - Resolve intake once\n\nAs soon as a source is supplied, collect all still-missing fields in one turn:\n\n1. the requested edit and ordered output list or explicit `N`;\n2. whether replacement reference images exist: all, some, or none;\n3. final resolution: `720p` (recommended, faster), `1080p`, or `draft` — a 480p draft of every output at the 480p reference-video rate (the source video is a reference), after which the user picks the keepers and each is turned into 1080p at the 1080p reference-video rate per second of its duration. Read both rates from `maxfusion_list_video_models` (`seedance-2.5` → `capabilities.pricing.reference_video_credits_per_second_by_resolution`): they are the workspace's own rates. Drafts can be turned into 1080p for 7 days; a draft never turned into 1080p stays a 480p video;\n4. caption handling, whenever the source has or may have baked-in captions or subtitles: **keep them or remove them**. Warn the user in the same question that Seedance 2.5 is notoriously unreliable with small baked-in caption text during video edits (captions often come out mistimed or mangled), so removal usually produces the cleaner result, and that removed captions can be re-added with clean, correctly timed styling at the end of the run. If the user is unsure whether the source has captions, resolve it from the Stage 2 analysis and ask this question once then.\n\nIf references are promised, wait for them before any paid generation. If a target, time range, reference mapping, or list-to-output assignment is ambiguous, ask one bundled mapping question rather than guessing.\n\n## Stage 2 - Register, measure, and analyze the source once\n\n1. **Resolve one source video in the Maxfusion library.** Create the run's project with `maxfusion_create_project` before the first job. A file attached to the chat goes through `maxfusion_upload_asset_from_url` (purpose `video_reference`) with its auto-hydrated `file` parameter. A local file goes through `maxfusion_upload_asset` (purpose `video_reference`): build the multipart form exactly as returned and POST the bytes. `source_url` accepts only platform-allowlisted hosts, not arbitrary links — for any other hosted URL, download the file and run the `maxfusion_upload_asset` flow, or ask the user to attach the video directly. Use a returned `file_id` only after its upload completes. If the user refers to a video already in their library, find it with `maxfusion_search_assets` (`type: \"video\"`; add `origin: \"uploaded\"` for a file they uploaded earlier) instead of re-uploading.\n2. **Measure it.** Call `maxfusion_extract_audio` on the source (free; pass the run's `project_group_id`). Success means the source has an audio track, and the job's `result.audio.duration_seconds` (via `maxfusion_get_job`) is the measured duration. The call is refused with \"The video file does not contain an audio stream.\" when the source has none — that refusal is the silence signal, not a run-stopper: mark the source silent and take the duration from the analysis in step 3 instead (its required output includes it). Enforce the 4.0-30.0s gate on the measured duration: if the source is out of range, stop and report the measured duration and the accepted range. When the only available duration is analysis-reported and it sits within about one second of either bound, confirm the real duration with the user before deciding the gate. Retain `SOURCE_DURATION` and the audio status.\n3. **Analyze it.** Call `maxfusion_analyze_content` on the source (purpose `video_reference`) with a custom prompt requesting exactly this, as structured text: a numbered list of scenes with start and end timestamps in seconds; per scene the shot type, camera movement, a precise visual description, every visible person with appearance, wardrobe, and actions, every prominent product or object, and every on-screen text or graphic element with its wording, style, position, and timing; the exact total video duration in seconds; the overall display aspect ratio and orientation; and, for every person, two observable casting descriptors: apparent casting presentation, and hairstyle length, texture, and shape. Poll `maxfusion_get_job` (about every 10 seconds) until it completes. Do not start a second analysis while one is pending.\n4. **Transcribe it.** If the source has audio, call `maxfusion_transcribe_media` (free) for the spoken transcript. Use the analysis scenes plus the transcript as the timed source description that grounds every later decision.\n5. **Retry rule.** Retry the analysis once only if it fails, returns no usable scenes or timing, omits the total duration when no other measurement exists, omits a requested target, or lacks observable evidence for either required casting axis of a person who will be replaced. If the second result is unusable, stop before generation. Missing stature or build never justifies a retry: that trait is optional, non-gating context, carried only when the user supplies it or the analysis states it unambiguously.\n\nFor every source person that will be replaced, derive a two-axis source casting profile only from observable evidence in the analysis: apparent casting presentation plus hairstyle length, texture, and shape. These are fictional visual casting descriptors, not claims about real identity. If either axis is still unclear after the one retry, ask for a clearer source or for both the visible source trait and the desired replacement trait; do not guess.\n\n## Stage 3 - Plan ordered outputs\n\n- Fix `N` and the output order. Map each edit on existing content to an analysis target description plus a unique plain-language anchor and its natural visible time range. An `add` uses an analysis-grounded placement and timing instead.\n- A person identity replacement is global across that person's appearances, even if a shorter window was requested. If the user asks for a partial person replacement, ask them to choose either a full identity replacement or a non-identity attribute edit.\n- Resolve each person reference's appearance authority before prompt writing. Default to complete look; record a clothing override only for a separately mapped garment or full-outfit image or an explicit user clothing instruction. A clothing override inside an identity replacement does not cancel the global exclusion of the original person.\n- `remove` needs no asset and describes the revealed background. `add` states placement, scale, motion, and interaction. Attribute edits change only the named property.\n- A requested text or graphic edit becomes one explicit operation scoped to the named element; every other text element stays protected by the text-handling block. A caption removal chosen at intake is not a text edit operation: it is carried entirely by the caption-removal variant of that block, and it never expands beyond captions and subtitles. Do not introduce any other blanket text cleanup or caption generation.\n- Temporal scoping: an exact numeric range from the user wins verbatim; an approximate event resolves to the matching scene boundary from the analysis; otherwise the target's visible range applies, and whole-clip targets use the whole clip. Momentary occlusion does not fragment a range. All timings come from the analysis only, in whole seconds unless a real boundary needs one decimal.\n- Resolve every user-dependent choice during planning. A final edit prompt states only the resolved edit and contains no branches, alternatives, or meta-conditions.\n\n## Stage 4 - Acquire replacement references\n\n### User-supplied images\n\nResolve each image to a completed upload (`maxfusion_upload_asset` or `maxfusion_upload_asset_from_url`, purpose `image_reference`) in one fixed order. That order is the manifest order used in the prompt and in the generation call's `ref_image_file_ids`; it never changes between them.\n\n### Missing adult replacement people - generated actors\n\nWhen a person replacement has no supplied image, generate one replacement actor portrait per missing slot with `maxfusion_generate_image`: model `gpt-image-2`, `aspect_ratio: \"3_4\"`, `quality: \"high\"`, `image_count: 1`, no reference images, one call per slot, one at a time. Actor generation is only for a requested adult human replacement that lacks a user image. It is never a fallback for animals, creatures, robots, products, objects, backgrounds, removals, attribute edits, text edits, children, or teens. If the source person appears under 20, require a user reference or explicit consent to recast the role as an adult.\n\nBefore each request, build a positive two-axis contrast plan against that slot's source person. Every generated replacement must have both: a clearly different apparent casting presentation and a different hairstyle (length, texture, and shape). Do not force a different body type, body proportions, face shape, or facial geometry; those come naturally from the generated image. Stature and build never gate this plan. Generated people in the same request set must also remain visibly distinct from one another.\n\nWrite each actor prompt as one cohesive **140-190 word natural-language paragraph**, not a tag list or fragment stack. Resolve every field before writing; never submit placeholders or alternatives. The replacement must be strikingly beautiful, strikingly handsome, or otherwise conventionally attractive (use the matching concrete phrase for the requested presentation), and the paragraph must include these anchors or close positive paraphrases in fluent prose: \"with high model facial features\", \"symmetrical features\", \"well-proportioned figure\", and \"natural skin texture\". Describe the selected casting presentation through concrete visible traits; never write only \"different\" or \"contrasting\", and never mention the source person's traits in the actor prompt. Beauty and realism are quality floors, not contrast axes.\n\nBuild the paragraph in this order:\n\n1. **Subject and pose:** a straight-on, eye-level, full-body portrait of exactly one adult age 20+, with the positive replacement casting traits, skin tone, hairstyle length/texture/shape, facial quality, posture, expression, and a direct camera gaze.\n2. **Wardrobe:** a complete stylish outfit from top through footwear in opaque, well-structured fabrics, plus at most two restrained accessories. The entire outfit and both feet visible.\n3. **Studio and composition:** the subject alone against a seamless matte-white studio backdrop whose floor blends into the wall, centered with generous negative space, no props, furniture, text, logos, or clutter.\n4. **Lighting and palette:** soft, evenly diffused high-key studio lighting, gentle grounded shadows, controlled highlights, no harsh contrast; a restrained outfit-led color palette.\n5. **Capture and finish:** a professional high-resolution digital camera, deep depth of field, minimal noise, razor-sharp head-to-toe focus; authentic skin detail, realistic anatomy, natural hands and limbs, no plastic retouching or exaggerated traits, a crisp modern editorial mood.\n\nExample of the form only (rebuild every subject detail from the slot's own contrast plan; never copy this subject):\n\n> A straight-on, eye-level full-body portrait features a strikingly handsome 28-year-old Scandinavian man with high model facial features, symmetrical features, a well-proportioned figure, cool fair skin with natural skin texture, and short, dense, tightly cropped ash-blond hair with a clean fade. He stands relaxed with squared shoulders, hands loose at his sides, and a calm direct gaze. He wears a charcoal merino crewneck, tailored graphite wool trousers, polished black leather derbies, a matte steel watch, and no other accessories, with his complete outfit and both feet visible. A seamless matte-white studio backdrop and matching floor hold no props, furniture, text, or clutter, leaving generous negative space around his centered figure. Soft, evenly diffused high-key studio lighting produces gentle grounded shadows, authentic skin detail, and controlled highlights without harsh contrast. A restrained charcoal, graphite, and steel palette supports a crisp modern editorial mood. Captured on a professional high-resolution digital camera with deep depth of field, ample dynamic range, minimal noise, and razor-sharp focus from face to footwear, preserving realistic anatomy, natural hands, and an unretouched finish without distortion.\n\nLet the generation widget display the result. Inspect each completed portrait against its contrast plan and the quality floors. Regenerate a named position once if either required axis is unchanged, vague, or missing, or if the person is not attractive, photogenic, natural-looking, and anatomically realistic. Never offer a failed candidate for approval.\n\n**Approval gate:** ask the user to approve each generated actor before any video generation. Continue only after approval; regenerate named people or stop as requested. An approved actor's image id (`result.images[0].id` from its job via `maxfusion_get_job`) is used directly in `ref_image_file_ids`; no re-upload. It takes the next manifest position after all user-supplied references and follows the same complete-look rule as a user image.\n\n## Stage 5 - Write one edit prompt per output\n\nBuild one in-memory manifest per output: user-supplied references first, in their fixed upload order, then approved generated-actor images. Position `k` in the manifest is \"reference image `k`\" in the prompt and position `k` in `ref_image_file_ids`. Never emit a file id, job id, URL, or any other transport identifier inside a prompt; refer to attachments only as \"the source video\" and \"reference image 1\", \"reference image 2\", and so on. Do not write manifests or prompts to disk. If a reference cannot be visually inspected, use an authoritative user description or ask; never invent identity details.\n\n### The mandatory opening block\n\nEvery prompt begins with this edit declaration:\n\n> Video edit: edit the attached source video. This is an edit of that exact video, not a new generation and not an extension. The output duration matches the source video exactly. Keep the source's shots, cuts, camera moves, framing, composition, pacing, and timing. Keep the source video's original audio track completely unchanged: the same speech, music, and sound effects at the same timing. Do not generate new audio.\n\nFor a silent source, replace the audio sentences with: \"The source video has no audio; the output has no audio. Do not generate any audio.\"\n\n### The mandatory text-handling block\n\nExactly one of these two blocks appears exactly once per prompt, matching the user's Stage 1 caption choice.\n\n**Captions kept** (also the form used when the source has no captions):\n\n> Preserve every caption, subtitle, and other untargeted on-screen text element from the source video exactly as it appears, including its wording, styling, placement, animation, and timing. Text physically attached to a replaced target follows that replacement.\n\n**Captions removed:**\n\n> Remove every baked-in caption and subtitle text overlay from the source video completely: no caption, subtitle, or transcript text may appear in any frame of the output. Reconstruct the areas beneath them consistently with their immediate surroundings. Preserve every other on-screen element that is not a caption or subtitle, including logos, brand marks, product label text, watermarks, and functional UI, exactly as it appears, with its wording, styling, placement, animation, and timing unchanged. Text physically attached to a replaced target follows that replacement.\n\n### The mandatory exclusion clause (identity replacements only)\n\nOnce per replaced person, with this target-specific meaning:\n\n> The original source person identified as [target] in the source video must never appear in any frame of the output. Replace that person completely with [ALIAS] from reference image [k] in every appearance, transferring the complete reference-defined look and retaining only the original performance, pose, blocking, interactions, and timing.\n\nExtend the exclusion through cuts, entrances, exits, occlusions, motion blur, transitions, reflections, and shadows. Name each mapping separately; never write \"replace everyone\". Multiple replacements also forbid identities from crossing, merging, exchanging, or duplicating onto another figure.\n\n### Reference classification and mapping\n\nClassify every supplied asset as person, character sheet, animal or creature, garment, full outfit, product, location, prop, logo, or complementary view. A character sheet counts as one person. Group complementary views of one subject. Mapping precedence, in order: explicit user or manifest mapping; declared asset role; unique visual or functional match in the analysis; attribute match ahead of prominence; primary subject; stable supplied order. Common mappings: person image to complete person and outfit; garment image to its clothing category on the wearer; several outfits to chronological swaps at real scene boundaries in supplied order; product to same-category focal product; location to environment replacement, not style; prop or logo to its matching surface. A white-studio or catalog presentation never demotes a person image to identity-only. Never silently drop a declared reference.\n\n### Choose one template\n\nUse **DETAILED** when any person identity replacement is requested, when there are multiple identity swaps, when the swapped subject spans multiple shots or interacts with props, reflections, or shadows, when changes span three or more categories, or on request. Otherwise use **COMPACT**. COMPACT is forbidden for a person identity replacement. Never announce the selected mode.\n\n**COMPACT** - after the opening block and the text-handling block, tile the full measured duration with no gaps or overlaps, one operation sentence per changed segment, consecutive identical segments merged; a whole-clip edit has one change line and no keep line:\n\n```text\n[opening block]\n[text-handling block]\n<start>-<end>s: keep everything exactly the same\n<start>-<end>s: <one operation sentence>. Keep every unrequested element, camera motion, lighting treatment, and overall color grading from the source video exactly the same.\n```\n\nOperation sentence forms: \"Replace only [target] in the source video with [replacement] from reference image [k]\" / \"Replace only [target] in the source video with [description]\" (text-only) / \"Modify only [target] in the source video so that [change]\" / \"Remove only [target] from the source video and reconstruct the revealed area consistently with its immediate surroundings\" / \"Add only [element] at [analysis-grounded placement] in the source video\".\n\n**DETAILED** - write these blocks in order; the numbered edit blocks are the only list:\n\n```text\n[opening block]\nReference image [k] - [ALIAS], the complete replacement look for [TARGET]: [complete visible identity, hair, outfit, footwear, headwear, eyewear, jewelry, and accessories; build or stature only when discernible]. Transfer this entire look from reference image [k], including the full outfit and all worn accessories.\n[text-handling block]\nKeep everything in the source video exactly as it is: the same shots and cuts, camera moves, framing, composition, unmapped performers, setting, untargeted held and environmental props, lighting, pacing, and timing. Change only [complete scope], keeping source blocking, poses, motion, position, screen placement, and timing while rendering each replacement person's complete image-defined look.\n1. [REPLACE | MODIFY | REMOVE | ADD] - [mapped target and operation, complete-look reference binding when present, resolved clothing override when present, temporal scope, source-person exclusion when required, and interaction/reflection handling].\n[IDENTITY | REFERENCE | EDIT] lock: [every mapping, untouched-content protection, anti-bleed rules, and the generated two-axis profile when present].\nRender [one imperative summary transferring each replacement's complete reference-defined look, including clothing and accessories, while inheriting only source performance and timing].\nEverything else - [untouched people, objects, untargeted wardrobe, text, environment, lighting, the camera moves and all timing] - stays exactly the same.\n```\n\nOne reference declaration per distinct asset, before the text-handling block. Each numbered edit names exactly one operation and one target; several operations may share a time window but stay separately numbered. The lock names important untouched content and states that no other person, object, untargeted wardrobe, text, environment, action, cut, camera move, lighting treatment, or timing changes. Never protect the mapped source person's wardrobe when the person reference owns the complete look. For a generated actor, copy both values of its approved two-axis profile into the reference declaration and the render instruction.\n\n### Validation\n\nReject and rewrite once if any check fails; after the one rewrite, fail only that output:\n\n- non-empty and at most 3900 characters;\n- the opening edit declaration appears first, states that the output duration matches the source exactly, and carries the correct audio sentence for the source's audio status;\n- every manifest reference (\"reference image 1..k\") occurs at least once, and no undeclared reference, file id, job id, URL, or other transport identifier appears;\n- every requested operation is covered and every timing is grounded in the analysis;\n- the text-handling block matching the user's caption choice appears exactly once, no other blanket text-removal or caption-generation instruction appears, and every explicit text edit is scoped to its named target;\n- every mapped person reference transfers its complete visible look including clothing and accessories, except under a resolved clothing override; no mapped source wardrobe is retained by default or protected as untargeted;\n- each replaced source person has its target-specific global exclusion, and every replacement's look is described as coming from its reference image, never from the source video;\n- every generated actor's two-axis profile and complete visible look are carried through positively;\n- no unresolved conditional, branch, or alternative survives.\n\nPreserve each validated prompt byte-for-byte through submission.\n\n## Stage 6 - Generate\n\nFor each output, in order, one at a time, call `maxfusion_generate_video` with:\n\n- `video_model: \"seedance-2.5\"`\n- `prompt`: the validated prompt, verbatim\n- `duration`: `\"auto\"` - the editing task type derives the output length from the source video and rejects an explicit duration; the prompt's edit declaration already pins the expected length\n- `aspect_ratio`: the supported value closest to the source's measured display aspect (from the live catalog); tell the user once if the source ratio is non-standard\n- `resolution`: the choice from Stage 1; for `draft`, omit `resolution` and pass `generation_mode: \"draft\"` instead (drafts are always 480p) — the draft's reference images (not the source video) must be between 0.4 and 2.5 width-to-height, or the run is refused before charging\n- `ref_video_file_ids`: `[<source file id>]`\n- `ref_image_file_ids`: the manifest's ids in manifest order (uploaded file ids and approved generated-image ids mixed as needed)\n- `ref_image_mode: \"ingredients\"` - set explicitly rather than trusting any default; frames mode would treat attached images as literal start/end frames\n- `project_group_id`: the run's project\n- `tags`: `[\"ad-mutator\", \"<run slug>\", \"output-<n>\"]` - the run slug short and lowercase, no commas, at most 60 characters\n\nLet each call's widget poll and display its own result; continue to the next output only after the current position is terminal. Retry only a rejected or terminal-failed position once, with the same approved identity and scope; never retry a pending position. Retain each job id under its output index. While a generation job is `running`, `maxfusion_get_job` also returns `progress_estimate` (`percent` is how far along it is, 0-99; `mode: indeterminate` means no estimate; null once the job finishes) — report the percentage to the user, never a remaining time.\n\n## Stage 7 - Verify and deliver\n\nThe generation widgets are the delivery. For each completed output read the generation job's measured top-level `duration` from `maxfusion_get_job` and confirm it is within about one second of the source. For an audible source additionally run one free check: `maxfusion_extract_audio` on the output video (into the run's project) — success confirms the audio track survived. For a silent source skip the extraction; there is no track to confirm and the call would only be refused. If a check fails, or the user reports the audio or duration came back wrong, report it in one line, name the fix (a single retried generation with the same prompt), and ask; never regenerate silently.\n\n**Draft runs: turning keepers into 1080p.** When the Stage 1 choice was `draft`, after verification ask once which outputs to turn into 1080p, stating its price (the draft's `upgrade_price`). For each chosen output call `maxfusion_generate_video_from_draft` with that output's video id (`result.video.id` from `maxfusion_get_job`) as `video_id` and nothing else — the 1080p keeps the draft's prompt, references, duration, aspect ratio and audio, so there is nothing to re-validate, and it renders as its own widget. One at a time, same retry rule as Stage 6. The same draft can be turned into 1080p again later (each run is charged). If the user presses a draft widget's \"1080p\" button, their prompt reads \"Generate the 1080p version of draft @video:<id>\" — treat that as the approval for that output and pass the bare id. After this step, the 1080p video replaces the draft as that output for captions and the closing summary.\n\n**Closing the loop on removed captions.** If the user chose caption removal at intake, then after the outputs are delivered and the user has confirmed they are happy with them, offer once to burn fresh, correctly timed captions onto any or all of the finished outputs with `maxfusion_add_captions`: transcription, language detection, timing, and placement are fully automatic, and the user only picks one of its 19 named styles (`sprout`, the word-by-word highlight, is the default). State in the same offer that it costs 4 credits per second of video (rounded up), charged at dispatch and refunded in full if the job fails. On yes, run it per chosen output in the run's project and let each result render as its own widget. Never run it uninvited, and never run it on an output that kept its source captions.\n\nClose the run with a summary in original output order: Output 1..N with completed/failed/pending counts, the selected resolution (for a draft run, which outputs were turned into 1080p), the exact source duration, and the caption choice. Never expose raw asset URLs, prompts, manifests, or job ids as deliverables.\n\n## Failure boundaries\n\n| Failure | Required response |\n|---|---|\n| Source outside 4.0-30.0s | Stop; report the measured duration and the accepted range |\n| Source upload fails, or no duration can be established | Retry once when safe; otherwise stop before any spend |\n| Audio extraction on the source is refused for a missing audio stream | Not a failure: the source is silent; the analysis carries the duration |\n| Analysis invalid twice | Stop before generation |\n| Ambiguous mapping | Ask one bundled mapping question |\n| Generated-actor position fails twice | Fail each dependent output, or stop |\n| User rejects generated actors | Regenerate named people, or stop |\n| Approved reference unavailable | Fail every dependent output before submission |\n| Prompt validation fails twice | Fail only that output |\n| Edit position fails | Retry that position once |\n| Source is silent | Deliver silent outputs; state it once |\n| Output audio or duration mismatch | Report in one line, offer one retry, wait for the user |\n| Kept captions come out mistimed or mangled | Report in one line; offer one re-run of that output with the same validated prompt switched to the caption-removal block, plus the end-of-run caption re-add |\n| Insufficient credits | Hard stop, one line |\n| Member credit limit does not cover the call | Stop, one line: offer a cheaper run that fits what is left, otherwise ask the workspace owner or an admin for more credits in Maxfusion |\n| Some outputs still pending | Report pending; never duplicate them |\n"
}SHA-256 of public snapshot: ec5ac5f272081fb52180e96059f88757afdee212ae25f7b3934c68f671d2e0f9