Skip to content

Add OpenDev video presets and NextLabs image references - #685

Draft
yelinyao2007 wants to merge 11 commits into
ThinkFlowLab:mainfrom
yelinyao2007:dock-20-opendev-magi-2
Draft

yelinyao2007 wants to merge 11 commits into
ThinkFlowLab:mainfrom
yelinyao2007:dock-20-opendev-magi-2

Conversation

@yelinyao2007

@yelinyao2007 yelinyao2007 commented Dec 4, 2026 •

Copy link
Copy Markdown

Summary

Add OpenDev MAGI-2 generation and an OpenDev Seedance connection preset. MAGI-2 supports text prompts and public HTTPS image/video/audio references through shared UI and Agent commands; a separate NextLabs token enables local image references. Preserve accepted inputs, task identity, adopted output and recovery state without automatically repeating unknown submissions. Fix public reference links being lost when editing another canvas generation parameter. Includes Chinese and English settings, errors and setup documentation. This implements the user-requested provider integration; no closing issue is linked.

Main integration and complete inventory

Candidate: 8c380c14c6dd43fd84f919b54250c59a2711a826.
Target main merged: 322f98c317322c1ac12541093719c890507b51b0.

Latest main is incorporated with normal merges, including Ark coverage and #700 automatic default-core discovery. Explicitly assign test_trace_job_queries.py and test_wait_outcome.py to agent-cli; MAGI/NextLabs resolve automatically into core. All 171 Python modules resolve exactly once (core 110, agent-cli 28, media 33). Bilingual validation guidance now distinguishes automatic discovery from explicit assignments.

Final collection: 3877 cases; layer accounting passed (3797 ready, 68 merge, 12 nightly). Focused inventory/scope/trace/wait execution: 124 passed. The complete locked-dependency run finished: 3752 passed, 121 skipped, 4 failed (3877 collected; 23m18s). Inventory completeness passed; full execution did not pass.

Validation

Final-candidate complete frontend suite: 1121 passed. Production build and four architecture import contracts passed. Whole-PR static hooks passed. Generated contracts, i18n and browser manifests passed. The isolated wheel build, clean-venv dependency check and installed-app smoke passed without Node on PATH (CLI, bundled OpenCode, skills, web assets and project create/read). Final bilingual Chromium workflow: 6 scenarios passed, with CJK fonts enabled and screenshots visually inspected. Full Python execution has four failures; triage is recorded below. Earlier runtime validation and evidence remain attributed to 526afd6b4d0ef152169b1f78dc219111a1a60ac6, not silently relabeled as current.

An intermediate full run on cebdeb7c was interrupted when main advanced: 1406 passed, 15 skipped, one filelock.Timeout in test_turn_jobs_route_order_does_not_depend_on_stored_order during task submission. The isolated module (12 cases) and its preceding file group (60 cases) passed; the cause is not established and this is not concealed as a clean run.

A final-head run using the mounted development environment was interrupted after 2608 passed, 46 skipped and one native UTF-8 bridge timeout. Measured CLI import/setup took about 7.4 seconds, exceeding the test listener's five-second window; the unchanged focused test passed in 1.57 seconds in a native Linux temporary environment with repository-locked dependencies. The complete suite was rerun there with the available Chromium enabled. No test deadline or assertion was relaxed.

The complete run failed in the assistant project-switch lease assertion, cold-open benchmark lease, paused-capability recovery precondition, and real Chromium motion export deadline. The cold-open failure reproduces on exact target main. Same-environment follow-up of both complete assistant/capability modules plus the Chrome case: candidate 73 passed/2 failed; exact main 73 passed/2 failed. Chrome reproduces the identical 30-second deadline failure on both. Capability failures occur on different parameters: candidate remote-unsupported returns unknown; main paused-agent accepts instead of rejecting. These are baseline instability signals, not proof that the original download-paused failure has the same cause. Assistant passes focused on both; its full-run expiry decreased by 17.8323 seconds and the cause remains unresolved. No assertions or deadlines were relaxed. Isolated passes do not erase the failed full run. The 121 skips cover native Windows APIs and unavailable/opt-in external harnesses.

No new paid provider calls were made during this update. Full hosted Release checks, desktop installers, other browser engines and independent real-service quality evaluation remain separate gates.

Full test results and candidate/main comparison logs retain the failed run and exact environment. Full-profile layer audit passes; all 152 required representative cases passed, while the complete suite still failed.

Workflow evidence

Final-SHA bilingual browser recordings, output fixtures and persisted snapshots. Earlier Seedance preset recordings remain pinned to their original tested revision.

These show actual OpenDirector using mock provider HTTP and synthetic media. The six browser output MP4s are four-second 320×180 patterns; 1080P is checked in the submitted payload and audio is disabled. Public references use the link editor; local inputs use the file picker and shared creation client. Generation, adoption, reload and single submission are checked. The earlier public-link review comment is covered by adding a link, changing audio, checking transmitted media and reopening the project. Seedance has bilingual preset recordings and mocked Ark wire tests; no live Seedance generation is claimed.

Real sample and source evidence

User's unmodified sample and media verification: H.264, 1920×1080, 25 fps, 5.2 seconds, 4,380,242 bytes, AAC stereo at 44.1 kHz. Complete audio/video decoding passed; audio is non-silent (mean −19.3 dBFS, peak −0.5 dBFS). SHA-256: 74387d655bcd5e6374c1a8525c6dc6d1aed98b7e25be5e63048bc75c9eb0a9b0.

Local investigation matched the exact sample bytes to a persisted generated asset. Its local job f8118502-6fd1-54f1-99f3-f5156d8c79cc was created 2026-12-05T04:52:13.813151Z, records MAGI-2 with 1080P, five seconds and generate_audio=true, and succeeded with external task ID task_i1Yd8l6JwAFvx4ZRSjNYH1F3L22MHfuc. Seven ordered project checkpoints and the two reference-image hashes connect accepted input to this output. Sanitized same-run summary publishes input/output hashes, job identifiers, execution parameters and checkpoint hashes. Original creative images, prompt and raw records remain private pending explicit approval. The summary reflects local application records, not signed provider receipts.

Two gaps remain and are not reconstructed: the run did not record an exact application SHA/dirty-tree state, and the successful task's NextLabs upload/completion receipt is no longer present after recovery-cache cleanup. The current PR SHA is not assigned to this earlier run; other tasks' upload caches are not substituted. The project records connect requested audio to the matching generated output, but do not establish independently assessed dialogue accuracy/audio quality or a complete same-run NextLabs receipt chain.

Review and readiness

Independent candidate review: 87/100, ratings scope3/correctness3/validation1/claim-evidence3/simplicity3, against base 322f98c317322c1ac12541093719c890507b51b0 and head 8c380c14c6dd43fd84f919b54250c59a2711a826. Verdict WITHHOLD for formal readiness; reviewer permits updating this existing Draft and identifies no implementation blocker. The #700 documentation finding is fixed. Material gaps: failed local full suite, unresolved assistant/capability root causes, outstanding hosted/platform checks, and historical application-SHA/NextLabs-receipt gaps. PR remains Draft. Maintainer approval of fork workflows is required; wait for Release checks and all required statuses on the final head before Ready and formal re-review. No merge approval is claimed.

@yelinyao2007
yelinyao2007 marked this pull request as draft December 4, 2026 14:06

@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 55d699f No linked issue supplied

这版接入了 OpenDev MAGI-2,同时加了 Seedance preset。我核对了参数、提交/轮询、下载与采纳/重开测试。fixture 覆盖了带素材的 Agent 路径,但 UI 分支直接调用 backend 且不带链接,不能证明画布里添加链接后,请求和重开状态都一致。

Ran: 静态 diff / fixture 走查。Not run: CI(该 head 未见检查)、浏览器或真实 provider。当前证据暂定 43/100,非批准分(范围 2、正确性 2、验证 2、证据 0、简洁性 3)。请补同版可播放的画布录屏和生成产物,并注明哪些是 fixture、哪些是实际 provider;从添加链接到采用结果、重开项目走一遍。Dot,代表 @david6666666。

(projects, pid, session), model, runner = configured(tmp_path)
assert model['inputRules']['outputResolutions'] == ['1080P']
assert model['inputRules']['generateAudioOptions'] == [True, False]
remote_links = LINKS if source == 'agent' else []

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.

这里的 ui 分支会把素材置空,并直接调用 runner.execute。所以即使画布里的链接没进 payload,这条测试也能绿。建议用 browser fixture 加一条参考链接,核对 POST 的媒体项,再重开项目确认链接或相应历史输入可恢复。

@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 55d699f No linked issue supplied

更正上条总评的加权总分:2/2/2/0/3 应为 50/100,不是 43/100。技术意见与证据缺口不变;未批准。Dot,代表 @david6666666。

@yelinyao2007

Copy link
Copy Markdown
Author

@david6666666 Thanks for the comments. 我这个还没做完。会参考你的comments继续的。做完后我会把状态改成'ready for reivew' 多谢多谢

@yelinyao2007 yelinyao2007 changed the title Add OpenDev MAGI-2 video generation Add OpenDev video presets and NextLabs image references Dec 5, 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.

WITHHOLD 526afd6 No linked issue

当前证据暂定 77/100,非批准分(范围 3、正确性 3、验证 1、主张证据 2、简洁度 3)。我下载检查了中英文 MAGI-2 流程、Seedance 配置录像和 4 秒采纳结果。现在能看到带引用的 OpenDirector 工作流与产物,不再把可打开的素材当缺失;这些是 mock HTTP 和 320×180 彩条,不是实际 MAGI-2 的 1080p 输出、原生音频或 NextLabs 上传证明。

先留一条 Draft 阶段有用的检查:当前树有 169 个 Python 测试模块,shard 清单只有 166 项,少了本 PR 新增的两个模块,以及主线已知缺项 test_ark_availability.py。同版 Release 仍等待 fork 放行,我未触发也未跑真实 provider。建议 Ready 前先把本 PR 两个模块登记进去,真实 provider 验证另留结果和 receipt。

English: 77/100 provisional. The mock recordings are viewable; both new Python test modules are missing from the shard inventory.

Dot,代表 @david6666666。非表决评审。

from opendirector.infrastructure.generation_results import GenerationResults
from opendirector.integrations.nextlabs_upload import upload_reference

pytestmark = pytest.mark.cpu

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.

这份测试和 test_opendev_magi.py 都是新模块,但目前没有登记进 scripts/ci/python_shards.json。即使本地定向通过,Release 的清单校验也会因这两项缺失失败。建议 Ready 前把两个模块放进合适的 shard;主线的 Ark 缺项另跟 #695。

## summary

- Record the PR review lesson that passing local tests does not
  establish CI shard registration.
- Add bilingual, reusable inventory and shard selection commands
  with explicit baseline failure reporting.

## validation

- git diff --staged --check

@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 51e3637 No linked issue

当前证据暂定 83/100,非批准分(范围 3、正确性 3、验证 2、主张证据 2、简洁度 3)。之前漏掉的 test_nextlabs_upload.py 和 test_opendev_magi.py 已登记;候选树 169 个模块、清单 168 项,剩下的是基线本来就漏掉的 Ark 测试。两个新提交只改清单和验证文档,上一版下载核验的录像仍能说明 mock 流程,不证明真实 MAGI-2 / NextLabs、1080p 或音频产出。当前 Release 仍等 fork 放行,PR 还是 Draft。

已核对变更和清单,没有运行真实 provider、触发 workflow 或投票。Dot,代表 @david6666666,非表决复审。

@yelinyao2007
yelinyao2007 marked this pull request as ready for review December 5, 2026 08:43
## summary

- Register the two test modules introduced by main so the complete
  Python module inventory is covered exactly once after integration.

## validation

- Full collection: 3875 cases; layer inventory audit passed.
- CI inventory/scope and trace/wait focused suite: 122 passed.
- Before registration, module inventory failed on these two paths.
…opendev-magi-2

# Conflicts:
#	scripts/ci/python_shards.json
@yelinyao2007
yelinyao2007 marked this pull request as draft December 5, 2026 09:04
@yelinyao2007

yelinyao2007 commented Dec 5, 2026 •

Copy link
Copy Markdown
Author

Maintainers: please approve the fork workflows for final head 8c380c14c6dd43fd84f919b54250c59a2711a826:

This head merges main 322f98c317322c1ac12541093719c890507b51b0. All 171 Python modules resolve exactly once, including explicit trace/wait assignments. Full 3877-case layer accounting passes; 152 required representatives pass. Independent candidate review scored 87/100 and permits this Draft update, with formal verdict WITHHOLD.

Local full execution is not green: 3752 passed, 121 skipped, 4 failed. Permanent results and baseline comparisons track the outstanding failures here: cold-open session expiry and Chrome 30-second export deadline reproduce on exact main; capability negative-evidence failures occur on both revisions but different parameters; assistant lease expiry decreased 17.8323 seconds in the full run and its cause remains unresolved despite focused passes. No assertion/deadline was relaxed; these results must not be treated as full-suite success.

The PR body links final-head bilingual mock workflows and the real sample's sanitized same-job correlation summary. The earlier real run still lacks its exact generating application SHA and same-job NextLabs completion receipt; neither is claimed verified.

Please approve the workflows rather than bypassing checks. This PR stays Draft until final-head Release checks and every required status pass, with remaining failures and evidence gaps resolved or explicitly accepted in review. Formal re-review has not been requested.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants