Skip to content

[feat] pipeline (8/N): assemble adopted video segments and reuse unchanged jobs - #619

Draft
FayeSpica wants to merge 6 commits into
ThinkFlowLab:mainfrom
FayeSpica:feat/character-replacement-8n-pipeline-assembly
Draft

FayeSpica wants to merge 6 commits into
ThinkFlowLab:mainfrom
FayeSpica:feat/character-replacement-8n-pipeline-assembly

Conversation

@FayeSpica

Copy link
Copy Markdown
Collaborator

Summary

  • Add a final assembly step to the existing Pipeline DAG. It waits for the recipe's adopted segment jobs, renders the saved frame windows, and publishes a timeline and stable output node with the original soundtrack.
  • Preserve the assembly command ID across executor recovery. Changing one segment starts a new execution in the same group and reuses the unchanged peer job.
  • Stacked on [feat] character-replacement (6/N): submit FastH3 segments with native guides #618 because assembly verifies guide references from frozen segment snapshots. Review the 8/N-only diff from 3bd1c89f2f3bce4d8569201ea1d55a78be8b3d32. This Draft targets upstream main, so GitHub shows the 6/N prerequisite until it lands.

Linked issue

Labels

  • type:feat, area:timeline, area:agent.

Test plan

  • Local: 161 focused tests passed across Pipeline, frame-window and guide-binding, generated contract, FastH3 and reference-path checks. Frontend build, i18n checks, MP4 decode and decoded audio equality.
  • Left to CI: Release and browser matrix.
  • Independent pre-review: PASS for draft submission, 90/100, no blockers. Target base cf566d4941b059b03686370f7dc97a819865d2bc, candidate db366197c3d2a0b393ce584c0fc04bdebe44ad0e.
  • Regression coverage rejects recipe edits made during an active generation and replays the same durable assembly receipt after pause or cancel from a post-commit checkpoint. The browser recording covers the successful rerun and reload.

Evidence that it works

  • OpenDirector rerun and reopen continuously records an isolated canvas around actual API submission and reload.
  • Durable Pipeline receipt records a new S1 job, the original S2 job reused as cached, and the succeeded assembly step.
  • Actual assembled MP4 uses two 24-frame windows from synthetic 24 FPS video fixtures and preserves the two-second 523 Hz soundtrack. It decodes to 48 frames and its decoded audio SHA-256 matches the original.
  • The browser records a new execution and reads its status after reload. Stopping when active and reopening during a real-model Goodnight run remains separate validation.

Provider verification

  • The test provider returns a playable synthetic clip. Trimming, assembly, soundtrack muxing and decoding use real FFmpeg. No real model was called.

Bilingual UI

  • Assembly HTTP errors and CLI usage have English and Simplified Chinese coverage.

@FayeSpica FayeSpica added type:feat New capability or behaviour area:agent Agent runtime, assistant chat and tools area:timeline Timeline, subtitles and export labels Dec 1, 2026

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REQUEST CHANGES bf8bef0 Refs #555, #618

当前证据暂定 67/100,非批准分:范围 2/3、正确性 2/3、验证 2/3、主张证据 2/3、简洁度 2/3。

已下载并解码重跑录像和成片;确认 48 帧/24 fps、2 秒且有可解码音轨。回执显示 S1 新跑、S2 复用、组装成功。没有原声输入可独立重算音频等同,不把作者的比对当成我复现。已核对本 head 确实包含 #618 最新 head;从它起算仍有 18 个文件需要一起验证。恢复测试目前证明的是已提交回执的重放,尚未覆盖取消发生于提交前且回执不存在的恢复窗口,详见行内。Release checks 尚未确认全绿。

English: Distinguish replay of a committed assembly from a new render on a cancelled recovery with no receipt.

Dot,代表 @david6666666 作非表决审查。

await self._persist(record)
command = parse_command(step['command'])
replay = await asyncio.to_thread(self.projects.replay, command)
receipt = replay if replay is not None else await asyncio.to_thread(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里恢复时没找到持久回执,就会直接调用组装。如果进程只落盘了 running 命令、还没组装就中断,之后用户取消并恢复,仍可能新渲染、发布成片,最终运行却标成 cancelled。建议分开处理:有旧回执就重放,已取消且无回执则不要启动新组装,并补一条提交前中断再取消的用例。

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WITHHOLD 13e89a7 Refs #555, #618

当前证据暂定 75/100,非批准分:范围 2/3、正确性 3/3、验证 2/3、主张证据 2/3、简洁度 2/3。上轮指出的取消恢复问题已修:先查持久回执;有则重放,没有则重新读取消标记,已取消就不启动新组装。回归覆盖了有和无回执,并检查没调用渲染、工程快照不变。这里确认的是重启恢复路径,不是运行中强制打断渲染。

新提交未修改演示、媒体或组装渲染器。前一轮实际解码的 48 帧成片和重开录像仍支持这部分行为。同一提交的 Release Python 常规套件 3291 通过、121 跳过;OpenCode 实际图像/文本接入超时使 Release 未通过。PR 仍为草稿,未独立运行 PR 代码或实时模型。

English: The no-receipt recovery path now observes cancellation and does not start a fresh render. Required Release checks remain red.

Dot,代表 @david6666666 作非表决复审。

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent runtime, assistant chat and tools area:timeline Timeline, subtitles and export type:feat New capability or behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants