Skip to content

The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.

docs: remove workstation-specific browser-lock requirements

罗高1956b6ec8b2b
diff --git a/AGENTS.md b/AGENTS.md
index 115e4269..6fc0c34d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -2,7 +2,7 @@
OpenMotion is a standalone npm application at the repository root. Run commands here with the Node version pinned in `.github/workflows/ci.yml`. Preserve `package-lock.json` and `scripts/runtime-lock.json`; do not introduce workspace-only dependencies. Follow the [migration guide](docs/repository-migration.md), keep user data and credentials outside the checkout, and preserve third-party licenses.
-Before publishing a branch, run `npm ci`, `npm run check`, `npm run typecheck:studio`, `npm run build:studio`, affected deterministic tests and the applicable packaging/installation checks. Browser tests on shared machines use the existing browser-lock lanes. Distinguish CI, target-machine installation, model creation and human content acceptance. This feature migration must not merge or publish packages unless separately authorized.
+Before publishing a branch, run `npm ci`, `npm run check`, `npm run typecheck:studio`, `npm run build:studio`, affected deterministic tests and the applicable packaging/installation checks. Distinguish CI, target-machine installation, model creation and human content acceptance. This feature migration must not merge or publish packages unless separately authorized.
## Repository collaboration instructions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 27b468af..63d9c60b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -4,7 +4,7 @@
Work from the repository root; read [AGENTS.md](AGENTS.md) and the [architecture](docs/product/architecture.md). Use the pinned CI Node version and `npm ci`. Keep `package-lock.json` and `scripts/runtime-lock.json` in sync with any intentional dependency change.
-Before opening a PR, run `npm run check`, `npm run typecheck:studio`, `npm run build:studio` and focused deterministic tests for the changed boundary. Studio unit tests use `npm run test:studio`. Use the shared browser-lock wrapper on shared machines; model creation and visual acceptance require separate evidence. Do not overwrite real user data or host configuration to test an installer.
+Before opening a PR, run `npm run check`, `npm run typecheck:studio`, `npm run build:studio` and focused deterministic tests for the changed boundary. Studio unit tests use `npm run test:studio`. Model creation and visual acceptance require separate evidence. Do not overwrite real user data or host configuration to test an installer.
Keep PRs focused and describe the user-visible behavior and actual validation. Open an issue first for substantial changes. Review the entire product architecture for each change and update it only when needed, following the [shared guidance](AGENTS.md#product-architecture-review); documentation edits are not required in every PR. Preserve existing Git history and push follow-up commits during review; do not force-push a shared branch.
diff --git a/CONTRIBUTING.zh-CN.md b/CONTRIBUTING.zh-CN.md
index e5ad48cf..afe6274c 100644
--- a/CONTRIBUTING.zh-CN.md
+++ b/CONTRIBUTING.zh-CN.md
@@ -4,7 +4,7 @@
从仓库根目录开发,先读 [AGENTS.md](AGENTS.md)、[产品架构](docs/product/architecture.md) 和相关专题。使用 CI 固定的 Node 版本及 `npm ci`;依赖变更需同步维护 `package-lock.json` 与 `scripts/runtime-lock.json`。
-提交 PR 前运行 `npm run check`、`npm run typecheck:studio`、`npm run build:studio` 与受影响的确定性测试。Studio 单测用 `npm run test:studio`。共享机器的浏览器验收沿用 browser-lock;模型创作与人工视觉验收单独记录,不覆盖真实工程或日常宿主配置。
+提交 PR 前运行 `npm run check`、`npm run typecheck:studio`、`npm run build:studio` 与受影响的确定性测试。Studio 单测用 `npm run test:studio`。模型创作与人工视觉验收单独记录,不覆盖真实工程或日常宿主配置。
PR 聚焦一个问题,说明实际变化和验证结果,较大改动先建 issue。每次变更整体审视产品架构,按[共同准则](AGENTS.md#product-architecture-review)判断是否需要更新,不要求每个 PR 修改文档。保留历史,用后续提交响应评审,不强推共享分支。
diff --git a/docs/mcp-phase1-tools.md b/docs/mcp-phase1-tools.md
index b84a3c82..ff66edfd 100644
--- a/docs/mcp-phase1-tools.md
+++ b/docs/mcp-phase1-tools.md
@@ -142,7 +142,7 @@ Protocol 1 preserves existing request/response shapes and semantics. New Tools a
| motion_restore_version | v5恢复v3产生v6并保留v4/v5;历史音视频;中断恢复及外部第三种内容保护 | tests/phase1.test.ts |
| motion_export_cancel | 排队取消、运行中确认停止、跨项目拒绝、已完成不改状态、旧结果保留 | tests/phase1.test.ts、tests/phase1-runtime.test.ts、tests/phase1-package.mjs |
-复测命令:后端 `node --experimental-strip-types --test --test-concurrency=1 tests/*.test.ts`;实际包 `node tests/phase1-package.mjs /absolute/path/motion-0.6.2-phase1.zip /absolute/path/evidence`。涉及真实浏览器/渲染时按团队browser-lock包装器执行。完整测试包和四宿主真实模型任务另行验收。
+复测命令:后端 `node --experimental-strip-types --test --test-concurrency=1 tests/*.test.ts`;实际包 `node tests/phase1-package.mjs /absolute/path/motion-0.6.2-phase1.zip /absolute/path/evidence`。完整测试包和四宿主真实模型任务另行验收。
### 测试代码与CI范围
@@ -155,7 +155,7 @@ Protocol 1 preserves existing request/response shapes and semantics. New Tools a
各Tool的用例按用户场景复用,不要求每项单独一个文件。原九个工程工具及两个模板工具均进入ZIP端到端链路;预览部分检查实际服务和URL,尚未覆盖完整GUI点击操作。宿主模型对话、Windows实机、播放器人工听看和所有参数组合不在当前完成范围。独立ZIP E2E已加入普通PR CI;完整GUI点击和macOS共享后台集成仍是单独验证范围。
-CI不按路径过滤、不跳过渲染、无失败重试或continue-on-error;缺浏览器、依赖安装失败、任一Tool失败或视频校验失败均使任务失败。每次在独立临时数据目录安装,使用Linux临时容器与自带Chromium,不接入宿主共享浏览器;本地复测继续使用团队browser-lock包装器。CI保留14天的HEAD、ZIP校验和、Tool调用结果、MCP/预览日志及通过时的MP4。基础构建失败时以该任务日志为准。
+CI不按路径过滤、不跳过渲染、无失败重试或continue-on-error;缺浏览器、依赖安装失败、任一Tool失败或视频校验失败均使任务失败。每次在独立临时数据目录安装,使用Linux临时容器与自带Chromium,不接入宿主共享浏览器。CI保留14天的HEAD、ZIP校验和、Tool调用结果、MCP/预览日志及通过时的MP4。基础构建失败时以该任务日志为准。
**合并门禁还依赖仓库配置:** 管理员需为main开启分支保护,启用必需状态检查,并将实际CI产生的phase1-package-e2e检查上下文(以及现有assemble检查)设为必需;禁止跳过检查合并。工作流文件不能自行修改仓库权限。2026-11-05用户确认先不配置分支保护:本期先交付自动E2E与失败标红,按CI全绿才合并执行;平台暂不会强制锁住合并按钮。后续启用硬门禁仍需管理员配置,不能把CI接入等同于“服务端已禁止失败合并”。
diff --git a/docs/repository-migration.md b/docs/repository-migration.md
index 81f31823..f2125fe9 100644
--- a/docs/repository-migration.md
+++ b/docs/repository-migration.md
@@ -45,4 +45,4 @@ Upstream Studio/template attribution and font notices remain intact. Motion remo
`.github/workflows/ci.yml` installs locked dependencies, checks/builds Studio, runs focused packaging/workflow/recreation tests and Studio regression, and exercises the phase-one ZIP through all nine public Tools. npm is the default manual artifact format; complete Mac/Windows ZIP assembly remains available. Both formats reject publication. There are no artifact uploads, npm releases, storage publication or automatic merges.
-Build success does not prove target-machine installation, loaded host Skills/MCP, model creation or visual acceptance. Validate exact artifacts independently, using isolated profiles and the shared browser lock where applicable. Current platform limits and instructions are in [test packages](test-packages.md).
+Build success does not prove target-machine installation, loaded host Skills/MCP, model creation or visual acceptance. Validate exact artifacts independently, using isolated profiles. Current platform limits and instructions are in [test packages](test-packages.md).
diff --git a/docs/shared-editor.md b/docs/shared-editor.md
index 9b308c9a..1a7f8ddb 100644
--- a/docs/shared-editor.md
+++ b/docs/shared-editor.md
@@ -113,7 +113,7 @@ sequenceDiagram
| UI/MCP 同时多文件写入的完整事务、并行后台导出 | 未实现 |
| 长时间压力、自动升级、旧数据自动迁移、正式安装包目标机验收 | 未验证 |
-运行本项目检查使用 `npm test`、`npm run check`、`npm run typecheck:studio`、`npm run test:studio`。真实 Chrome 相关检查必须经过团队 browser-lock 的 lane 和 real 锁;新增故障脚本 `tests/shared-editor-crash.mjs` 和媒体脚本 `tests/shared-editor-media.mjs` 也遵守该要求。验收结论只覆盖实际执行命令,实际结果以当前提交的测试及 CI 为准。
+运行本项目检查使用 `npm test`、`npm run check`、`npm run typecheck:studio`、`npm run test:studio`。真实 Chrome 检查包括故障脚本 `tests/shared-editor-crash.mjs` 和媒体脚本 `tests/shared-editor-media.mjs`。验收结论只覆盖实际执行命令,实际结果以当前提交的测试及 CI 为准。
## 多工程宿主的依赖与恢复边界
@@ -121,4 +121,4 @@ sequenceDiagram
已打开工程的上下文保留到服务退出;退出关闭所有监听、历史与子任务。不同页面编辑同一工程仍使用原生 If-Match 和工具 revision/version 冲突保护,不提供多人文本合并;工程 ID 也不代表同工程两个页面的独立选区身份。
-验证入口:`tests/multi-project.test.ts` 覆盖同进程双工程、文件/预览/历史/通知和重启;`tests/multi-project-browser.mjs` 在共享 browser-lock 的 lane 与 real 锁下使用两个真实 MCP 客户端和浏览器页面。公开 MCP Tool、冷启动导出、原生媒体和守卫强杀仍单独回归。
+验证入口:`tests/multi-project.test.ts` 覆盖同进程双工程、文件/预览/历史/通知和重启;`tests/multi-project-browser.mjs` 使用两个真实 MCP 客户端和浏览器页面。公开 MCP Tool、冷启动导出、原生媒体和守卫强杀仍单独回归。
diff --git a/docs/test-packages.md b/docs/test-packages.md
index 984f02db..f5d50293 100644
--- a/docs/test-packages.md
+++ b/docs/test-packages.md
@@ -67,7 +67,7 @@ node scripts/package-npm.mjs "dist/$version" "$version"
node scripts/smoke-npm-package.mjs "dist/$version/release-npm.json" /absolute/path/to/codex/bin/codex.js
```
-须在支持的目标系统执行 smoke;Linux 只装配,不代表支持 Linux 原生运行。共享机器的浏览器验收继续使用 browser-lock 的真实锁和分配端口。实际目标机检查还会自动从公开源下载原生依赖,无需公司仓库读取权限。以下为完整 ZIP 的原复现入口:
+须在支持的目标系统执行 smoke;Linux 只装配,不代表支持 Linux 原生运行。实际目标机检查还会自动从公开源下载原生依赖,无需公司仓库读取权限。以下为完整 ZIP 的原复现入口:
构建机需要 Node 26.11.1、Git、tar、zip 和 unzip;CI 使用工作流中固定的 Node 版本。Node、浏览器、FFmpeg 和 ffprobe 均从固定公开 HTTPS 地址下载并校验 SHA256;构建原生运行时不使用仓库 Token、额外 Secret 或私有源码 checkout。
diff --git a/tests/multi-project-browser.mjs b/tests/multi-project-browser.mjs
index a4580746..9031eb7d 100644
--- a/tests/multi-project-browser.mjs
+++ b/tests/multi-project-browser.mjs
@@ -7,7 +7,6 @@ import { Client } from './shared-editor-client.mjs';
import { closeFixtureEditor, fixture } from './fixtures.ts';
import { ensureEditor } from '../editor-runtime.ts';
-assert.ok(process.env.D4_LANE && process.env.D4_LOCK_PID, 'Run with the shared browser-lock lane and real lock');
const out = process.argv[2]; assert.ok(out && path.isAbsolute(out), 'Pass an absolute evidence directory');
await mkdir(out, { recursive: true });
const data = await mkdtemp(path.join(tmpdir(), 'motion-multi-browser-'));