Repository navigation
Description
Goal and scope
C1.T3, tracked under #351 (roadmap #263). Long-video replacement planning.
Work
- Inspect the whole source and references visually. Build linked shot and person-visibility timelines, examining cuts, entrances, exits, interactions and occlusion more densely.
- Create a frame-consistent working copy while preserving timing and audio. Plan coherent segments using roughly five seconds as an initial quality heuristic, adjusted for action and backend constraints.
- Record each segment's source range, tracks → pictures, boundary reason, direction/dependencies, guide source/range, output frames, keep range and assembly order.
- Use half-open ranges with explicit frame coordinate systems; derive alignment, overlap and trim arithmetic from the selected backend and FPS.
Deliverables and acceptance cases
An Agent-produced, reviewable and persisted segment plan containing source intervals, person mappings, generation directions, dependencies, guide/keep ranges and assembly order.
All three cases — What a Day #358 (five people), STORM #359 (single-person continuation), and Goodnight #360 (two people across shots). Check full excerpt coverage and reopen the saved plan.
Deliver the applicable built-in /character-replacement skill guidance, required capability fixes and case evidence. Existing capabilities may satisfy the task when verified; record any skill changes or the no-change verification result. The same case run may provide evidence for several capability tasks.
Acceptance criteria
- Verify the agreed edit has complete coverage with no missing or duplicated retained frames, including the tail.
- Check every selected track has a supported mapping, guides are in bounds, and generation dependencies are distinct from assembly order.
- Review the plan against actual footage; persist user corrections and recalculate frame arithmetic after FPS or boundary changes.
- Verify UI/Agent use of the same saved project objects, with locks and revision conflicts respected.
Workflow stages and validation
Each stage has its own inputs and acceptance checks. Stage 1 is the planning deliverable tracked by this issue. Stages 2–4 define how the saved plan is used and how downstream failures are diagnosed.
| Stage | Inputs and deliverable | Acceptance checks |
|---|---|---|
| 1. Plan the replacement from source assets | Use the original user request, source video, and portraits to produce a visible, saved segment plan. Record person-to-portrait bindings, replacement scope, source frame ranges, passthrough ranges, and joins that need guide frames. | Start with the original Goodnight request and its three source assets. Check that portraits are assigned to the correct people, source frame coverage is complete, and guide frames come from suitable source times. Accept any segmentation that meets these checks. |
| 2. Write prompts for the approved segments | Use the approved plan and the actual inputs for each segment to produce segment prompts and ordered asset references. | Freeze the segment boundaries and references while evaluating prompts. Check identity mappings, replacement scope, and occlusion instructions. Generate short samples and review whether the source actions and backgrounds are preserved. |
| 3. Publish and execute the Run | Use the approved plan, prompts, asset versions, and generation settings to publish an executable Run and produce execution receipts and the final video. | Replay a fixed configuration and verify the submitted inputs, guide slots, trim ranges, audio track, and final video. The validated Goodnight run (try0056) can serve as an execution baseline. When the user explicitly asks for a reproduction, read the saved example Run and start at this stage. |
| 4. Diagnose failures and retry the affected segment | Use the execution receipts, source footage, and failed output to identify the affected segment, record the evidence, and apply the smallest correction. | Exercise incorrect generation, incorrect trimming, and unknown submission status separately. For a generation defect, validate the affected segment first. For a trim defect, adjust only the trim. For unknown submission status, check the original task first. After adopting a replacement result, continue only the steps that depend on it. |
Built-in skill
Review and update /character-replacement instructions and examples for this capability where needed. Validate through a corresponding C1 case and include skill changes, effective inputs, output comparisons and remaining defects in the implementation PR. Record verification if no skill change is needed.
Reference: #9194 skill — video-segment.md. Coordinate shared implementation with #261, #262, #264 and #212.
Activity