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.

Merge feature/motion and narrow installation checks to read-only rechecks

luogao4abf4757c9c9
diff --cc .github/scripts/motion-registry.mjs
index 679920a9,00000000..b53c0921
mode 100644,000000..100644
--- a/.github/scripts/motion-registry.mjs
+++ b/.github/scripts/motion-registry.mjs
@@@ -1,73 -1,0 +1,66 @@@
+import assert from 'node:assert/strict';
+import { createHash } from 'node:crypto';
+import { mkdtemp, readFile, rm, writeFile } from 'node:fs/promises';
+import os from 'node:os';
+import path from 'node:path';
+import { checkReleaseVersion } from '../../scripts/release-version.mjs';
+import { writeJSON } from '../../scripts/runtime-assets.mjs';
+
+// Bound propagation/network retries; invalid bytes and authorization errors never retry.
+export async function registryRead(url, consume, { fetcher = fetch, timeout = 15 * 60_000,
+ now = Date.now, sleep = ms => new Promise(resolve => setTimeout(resolve, ms)), log = console.log } = {}) {
+ const started = now(), deadline = started + timeout;
+ for (let attempt = 1; ; attempt++) {
+ let response, retry;
+ try {
+ response = await fetcher(url, { redirect: 'error', headers: { 'cache-control': 'no-cache' },
+ signal: AbortSignal.timeout(Math.max(1, Math.min(30_000, deadline - now()))) });
+ retry = [404, 408, 429].includes(response.status) || response.status >= 500;
+ log(`Registry attempt ${attempt}: HTTP ${response.status}, ${Math.round((now() - started) / 1000)}s elapsed`);
+ if (!retry) {
+ assert(response.ok, `Registry request failed: HTTP ${response.status}`);
+ return await consume(response);
+ }
+ } catch (error) {
+ if (!(error instanceof TypeError) && !['TimeoutError', 'AbortError'].includes(error.name)) throw error;
+ retry = true;
+ log(`Registry attempt ${attempt}: network unavailable, ${Math.round((now() - started) / 1000)}s elapsed`);
+ }
+ await response?.body?.cancel().catch(() => {});
+ const remaining = deadline - now();
+ assert(remaining > 0, 'REGISTRY_NOT_READY: public download did not become available before the deadline');
+ await sleep(Math.min(10_000, remaining));
+ }
+}
+
+export async function verifyRegistryDownload(directory, { destination, ...options } = {}) {
+ await rm(path.join(directory, 'registry-package.json'), { force: true });
+ const c = JSON.parse(await readFile(path.join(directory, 'candidate.json')));
+ assert.equal(c.packageName, '@openmotion/app');
+ checkReleaseVersion(c.version); assert(c.version.includes('-test.'));
+ assert.equal(c.tgz, `openmotion-app-${c.version}.tgz`);
+ assert.match(c.tgzSHA256, /^[a-f0-9]{64}$/);
+ const temporary = destination || await mkdtemp(path.join(os.tmpdir(), 'om-download-'));
+ try {
+ const metadata = await registryRead(`https://registry.npmjs.org/@openmotion%2fapp/${c.version}`, r => r.json(), options);
+ assert.equal(metadata.name, c.packageName); assert.equal(metadata.version, c.version);
+ assert.equal(metadata.dist.integrity, c.integrity, 'Published npm version has different bytes');
+ const url = new URL(metadata.dist.tarball);
+ assert(url.protocol === 'https:' && url.hostname === 'registry.npmjs.org' && !url.username && !url.password, 'Require the public npm tarball origin');
+ const bytes = await registryRead(url, async response => {
+ assert(Number(response.headers.get('content-length') || 0) < 150 * 1024 * 1024);
+ const buffer = Buffer.from(await response.arrayBuffer());
+ assert(buffer.length < 150 * 1024 * 1024);
+ return buffer;
+ }, options);
+ assert.equal(createHash('sha256').update(bytes).digest('hex'), c.tgzSHA256, 'Registry tgz SHA256 mismatch');
+ assert.equal('sha512-' + createHash('sha512').update(bytes).digest('base64'), c.integrity, 'Registry tgz integrity mismatch');
+ const tgz = path.join(temporary, c.tgz);
+ await writeFile(tgz, bytes);
+ const report = { schemaVersion: 1, status: 'passed', version: c.version, sourceCommit: c.sourceCommit,
+ tgzSHA256: c.tgzSHA256, integrity: c.integrity, registryDownload: 'passed', nativeInstallation: 'not-run' };
+ await writeJSON(path.join(directory, 'registry-package.json'), report);
+ return { tgz, report };
+ } finally { if (!destination) await rm(temporary, { recursive: true, force: true }); }
+}
+
- export async function registryReport(directory, candidate) {
- const report = JSON.parse(await readFile(path.join(directory, 'registry-package.json')));
- assert.equal(report.schemaVersion, 1);
- assert.equal(report.status, 'passed'); assert.equal(report.registryDownload, 'passed');
- for (const key of ['version', 'sourceCommit', 'tgzSHA256', 'integrity']) assert.equal(report[key], candidate[key], 'Registry report mismatch: ' + key);
- return report;
- }
diff --cc AGENTS.md
index c59629b1,1be0ad54..32b4d43a
--- a/AGENTS.md
+++ b/AGENTS.md
@@@ -53,6 -53,6 +53,6 @@@ Phase one exposes eleven motion_ Tools
## Candidate and publication controls
- Follow [the release workflow manual](docs/release-workflows.md): separate manual candidate-build and test-publication entries, plus snapshot-only recovery. Select `feature/motion` for all three entries; `main` only registers them and is rejected as an execution ref. Blank candidate versions use short workflow-counter `test.N` numbering; keep full run/source identities in the records. Download and accept the local tgz using candidate-install.md; keep completed acceptance.md private. The publication operator enters the accepted version and explicitly confirms acceptance, without manually copying hashes. No independent approval environment is enabled at this stage. Public candidates must use an exact reviewed source SHA integrated into `feature/motion`, a new test version and DEV template defaults. Scan tracked source plus the outer npm tgz and inner application; preserve the positive distribution list and licenses. Keep candidate, native registry installation, real Agent creation and human acceptance evidence separate.
+ Follow [the release workflow manual](docs/release-workflows.md): separate manual candidate-build and test-publication entries, plus snapshot-only recovery. Select `feature/motion` for all three entries; `main` only registers them and is rejected as an execution ref. Blank candidate versions use short workflow-counter `test.N` numbering; keep full run/source identities in the records. Use candidate-install.md for local testing and keep results private. The publication operator enters the exact version and starts the manual workflow; no acceptance checkbox or manual testing gate is required. Record failed and unrun checks honestly. No independent approval environment is enabled at this stage. Public candidates must use an exact reviewed source SHA integrated into `feature/motion`, a new test version and DEV template defaults. Scan tracked source plus the outer npm tgz and inner application; preserve the positive distribution list and licenses. Keep candidate, native registry installation, real Agent creation and human acceptance evidence separate.
- Publication uses the accepted candidate bytes, never a rebuild. Publish under `candidate` first; only the credential-isolated promotion job may move npm `test` after the exact anonymous public download matches the accepted candidate hashes. Mac/Windows installation runs independently through motion-install-check.yml without publishing, tag or storage access; platform results are recorded separately and are not test-publication gates. Stable publication, npm `latest` promotion and platform/marketplace Skills distribution are not implemented by these entries. Only the separately authorized manual test publication workflow may use npm OIDC or R2 credentials; validate candidate provenance and hashes first, archive immutable version records, and update the moving guide last. Archive-only work must not move tags or default entries. Never overwrite published versions, put private template payloads/internal acceptance material into public artifacts, or infer merge/publication authorization from green CI. Main registration, npm trust, main cutover and repository rename remain separate operations.
-Publication uses the accepted candidate bytes, never a rebuild. Publish under `candidate` first; the credential-isolated promotion job moves npm `test` after registry propagation, then archives and updates the guide. Mac/Windows cold installs run afterward as non-blocking checks with visible warnings. Stable publication, npm `latest` promotion and platform/marketplace Skills distribution are not implemented by these entries. Only the separately authorized manual test publication workflow may use npm OIDC or R2 credentials; validate candidate provenance and hashes first, archive immutable version records, and update the moving guide last. Archive-only work must not move tags or default entries. Never overwrite published versions, put private template payloads/internal acceptance material into public artifacts, or infer merge/publication authorization from green CI. Main registration, npm trust, main cutover and repository rename remain separate operations.
++Publication uses the accepted candidate bytes, never a rebuild. Publish under `candidate` first; the credential-isolated promotion job moves npm `test` after registry propagation, then archives and updates the guide. Mac/Windows cold installs run afterward as non-blocking checks with visible warnings. Stable publication, npm `latest` promotion and platform/marketplace Skills distribution are not implemented by these entries. Only the separately authorized manual test publication workflow may use npm OIDC or R2 credentials; validate candidate provenance and hashes first, archive immutable version records, and update the moving guide last. Archive-only work must not move tags or default entries. The read-only Motion installation check (motion-install-check.yml) can recheck an exact public test version independently, without publishing, changing npm tags or writing storage. Never overwrite published versions, put private template payloads/internal acceptance material into public artifacts, or infer merge/publication authorization from green CI. Main registration, npm trust, main cutover and repository rename remain separate operations.
diff --cc CLAUDE.md
index a523b7fd,62e43fc9..b86aa27d
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@@ -4,9 -4,9 +4,9 @@@ Read and follow [AGENTS.md](AGENTS.md)
## Candidate and publication controls
- Follow [the release workflow manual](docs/release-workflows.md): separate manual candidate-build and test-publication entries, plus snapshot-only recovery. Select `feature/motion` for all three entries; `main` only registers them and is rejected as an execution ref. Blank candidate versions use short workflow-counter `test.N` numbering; keep full run/source identities in the records. Download and accept the local tgz using candidate-install.md; keep completed acceptance.md private. The publication operator enters the accepted version and explicitly confirms acceptance, without manually copying hashes. No independent approval environment is enabled at this stage. Public candidates must use an exact reviewed source SHA integrated into `feature/motion`, a new test version and DEV template defaults. Scan tracked source plus the outer npm tgz and inner application; preserve the positive distribution list and licenses. Keep candidate, native registry installation, real Agent creation and human acceptance evidence separate.
+ Follow [the release workflow manual](docs/release-workflows.md): separate manual candidate-build and test-publication entries, plus snapshot-only recovery. Select `feature/motion` for all three entries; `main` only registers them and is rejected as an execution ref. Blank candidate versions use short workflow-counter `test.N` numbering; keep full run/source identities in the records. Use candidate-install.md for local testing and keep results private. The publication operator enters the exact version and starts the manual workflow; no acceptance checkbox or manual testing gate is required. Record failed and unrun checks honestly. No independent approval environment is enabled at this stage. Public candidates must use an exact reviewed source SHA integrated into `feature/motion`, a new test version and DEV template defaults. Scan tracked source plus the outer npm tgz and inner application; preserve the positive distribution list and licenses. Keep candidate, native registry installation, real Agent creation and human acceptance evidence separate.
- Publication uses the accepted candidate bytes, never a rebuild. Publish under `candidate` first; only the credential-isolated promotion job may move npm `test` after the exact anonymous public download matches the accepted candidate hashes. Mac/Windows installation runs independently through motion-install-check.yml without publishing, tag or storage access; platform results are recorded separately and are not test-publication gates. Stable publication, npm `latest` promotion and platform/marketplace Skills distribution are not implemented by these entries. Only the separately authorized manual test publication workflow may use npm OIDC or R2 credentials; validate candidate provenance and hashes first, archive immutable version records, and update the moving guide last. Archive-only work must not move tags or default entries. Never overwrite published versions, put private template payloads/internal acceptance material into public artifacts, or infer merge/publication authorization from green CI. Main registration, npm trust, main cutover and repository rename remain separate operations.
-Publication uses the accepted candidate bytes, never a rebuild. Publish under `candidate` first; the credential-isolated promotion job moves npm `test` after registry propagation, then archives and updates the guide. Mac/Windows cold installs run afterward as non-blocking checks with visible warnings. Stable publication, npm `latest` promotion and platform/marketplace Skills distribution are not implemented by these entries. Only the separately authorized manual test publication workflow may use npm OIDC or R2 credentials; validate candidate provenance and hashes first, archive immutable version records, and update the moving guide last. Archive-only work must not move tags or default entries. Never overwrite published versions, put private template payloads/internal acceptance material into public artifacts, or infer merge/publication authorization from green CI. Main registration, npm trust, main cutover and repository rename remain separate operations.
++Publication uses the accepted candidate bytes, never a rebuild. Publish under `candidate` first; the credential-isolated promotion job moves npm `test` after registry propagation, then archives and updates the guide. Mac/Windows cold installs run afterward as non-blocking checks with visible warnings. Stable publication, npm `latest` promotion and platform/marketplace Skills distribution are not implemented by these entries. Only the separately authorized manual test publication workflow may use npm OIDC or R2 credentials; validate candidate provenance and hashes first, archive immutable version records, and update the moving guide last. Archive-only work must not move tags or default entries. The read-only Motion installation check (motion-install-check.yml) can recheck an exact public test version independently, without publishing, changing npm tags or writing storage. Never overwrite published versions, put private template payloads/internal acceptance material into public artifacts, or infer merge/publication authorization from green CI. Main registration, npm trust, main cutover and repository rename remain separate operations.
## Product documentation
diff --cc docs/product/architecture.md
index 7e16b98a,1dc8a08d..a537ad7c
--- a/docs/product/architecture.md
+++ b/docs/product/architecture.md
@@@ -266,9 -266,9 +266,9 @@@ Explicit test/DEV and stable/prod build
## 演进约束
- The application npm format is the default; complete platform ZIPs are backups. Ordinary PR CI scans tracked source and both npm archive layers without publication credentials. Separate manual candidate-build and test-publication entries implement build → download/accept → publish. Candidate build, test publication and snapshot recovery run only from feature/motion; main registers their manual entries without aliasing Motion operations. The build freezes the selected dispatch commit (or an explicitly integrated source SHA) and automatically numbers an empty version as the next source patch plus short test.N using the candidate workflow counter with its historical offset, without rewriting the source baseline. Reruns add an attempt suffix; an explicit test-version override remains available. It builds one immutable DEV candidate and generates a local candidate-install.md plus an identity-filled acceptance checklist. Publication resolves a unique unexpired versioned artifact from a completed successful build, validates official ZIP/file hashes and source integration, and requires explicit operator acceptance. No independent approval environment is enabled; the manual operator receipt is not proof of private tests or independent review. The same tgz is published under npm candidate, downloaded anonymously and checked against the frozen hashes without execution, then promoted to test in an npm-OIDC-only job before archiving and conditionally advancing the default guide. Failed public-download/hash checks leave test unchanged; the exact candidate version is already public. Mac/Windows native installation is a separate read-only workflow and does not block test publication; its actual platform results remain separate acceptance evidence. R2 failure after tag promotion can leave the guide on the earlier accepted version. Builds can continue during acceptance; publication-only serialization, version checks and ETag writes prevent late older candidates from rolling the moving entry backward. Snapshot-only recovery requires an existing identical npm version and does not move the default. DEV configuration is public; private template contents and credentials remain outside the artifacts. Stable publication is a separate authorized process. Trusted default-branch registration and npm OIDC setup remain separate prerequisites, not enabled by this feature PR. Build, native installation, real Agent creation and human playback remain separate evidence. See [release workflows](../release-workflows.md) and [package checks](../test-packages.md).
-The application npm format is the default; complete platform ZIPs are backups. Ordinary PR CI scans tracked source and both npm archive layers without publication credentials. Separate manual candidate-build and test-publication entries implement build → optional local testing → manual publish. Candidate build, test publication and snapshot recovery run only from feature/motion; main registers their manual entries without aliasing Motion operations. The build freezes the selected dispatch commit (or an explicitly integrated source SHA) and automatically numbers an empty version as the next source patch plus short test.N using the candidate workflow counter with its historical offset, without rewriting the source baseline. Reruns add an attempt suffix; an explicit test-version override remains available. It builds one immutable DEV candidate and generates a local candidate-install.md plus an identity-filled acceptance checklist. Publication resolves a unique unexpired versioned artifact from a completed successful build, validates official ZIP/file hashes and source integration, and records the manual publication operator without requiring an acceptance checkbox. No independent approval environment is enabled; the manual operator receipt is not proof of private tests or independent review. The same tgz is published under npm candidate, promoted to test in an npm-OIDC-only job with bounded propagation retries, then archived before conditionally advancing the default guide. Anonymous Mac/Windows cold installs run afterward as non-blocking checks. Failed native checks report warnings without undoing publication. R2 failure after tag promotion can leave the guide on the earlier accepted version. Builds can continue during acceptance; publication-only serialization, version checks and ETag writes prevent late older candidates from rolling the moving entry backward. Snapshot-only recovery requires an existing identical npm version and does not move the default. DEV configuration is public; private template contents and credentials remain outside the artifacts. Stable publication is a separate authorized process. Trusted default-branch registration and npm OIDC setup remain separate prerequisites, not enabled by this feature PR. Build, native installation, real Agent creation and human playback remain separate evidence. See [release workflows](../release-workflows.md) and [package checks](../test-packages.md).
++The application npm format is the default; complete platform ZIPs are backups. Ordinary PR CI scans tracked source and both npm archive layers without publication credentials. Separate manual candidate-build and test-publication entries implement build → optional local testing → manual publish. Candidate build, test publication and snapshot recovery run only from feature/motion; main registers their manual entries without aliasing Motion operations. The build freezes the selected dispatch commit (or an explicitly integrated source SHA) and automatically numbers an empty version as the next source patch plus short test.N using the candidate workflow counter with its historical offset, without rewriting the source baseline. Reruns add an attempt suffix; an explicit test-version override remains available. It builds one immutable DEV candidate and generates a local candidate-install.md plus an identity-filled acceptance checklist. Publication resolves a unique unexpired versioned artifact from a completed successful build, validates official ZIP/file hashes and source integration, and records the manual publication operator without requiring an acceptance checkbox. No independent approval environment is enabled; the manual operator receipt is not proof of private tests or independent review. The same tgz is published under npm candidate, promoted to test in an npm-OIDC-only job with bounded propagation retries, then archived before conditionally advancing the default guide. Anonymous Mac/Windows cold installs run afterward as non-blocking checks. Failed native checks report warnings without undoing publication. A separate read-only installation workflow can recheck the exact public test version without entering publication; it shares bounded registry-download retries with the post-publication checks. R2 failure after tag promotion can leave the guide on the earlier accepted version. Builds can continue during acceptance; publication-only serialization, version checks and ETag writes prevent late older candidates from rolling the moving entry backward. Snapshot-only recovery requires an existing identical npm version and does not move the default. DEV configuration is public; private template contents and credentials remain outside the artifacts. Stable publication is a separate authorized process. Trusted default-branch registration and npm OIDC setup remain separate prerequisites, not enabled by this feature PR. Build, native installation, real Agent creation and human playback remain separate evidence. See [release workflows](../release-workflows.md) and [package checks](../test-packages.md).
- Downstream publication jobs consume immutable producer artifact IDs retained across partial retries; public-download verification exposes its own retained report identity. Independent Mac and Windows checks retain separate reports, without publication credentials or a tag/storage mutation path. OIDC authenticates publication, but automatic npm provenance is disabled for prebuilt candidates because the publication workflow SHA differs from the application source. Candidate/manifest/hash records provide traceability without claiming a signed build attestation. Stable version construction and URL contracts exist; stable candidate/publication, npm latest promotion and Skills marketplace/platform publication are not implemented. The bundled Skills are installed into local hosts only.
+ Downstream publication jobs consume immutable producer artifact IDs retained across partial retries; native Mac and Windows jobs expose separate report identities. OIDC authenticates publication, but automatic npm provenance is disabled for prebuilt candidates because the publication workflow SHA differs from the application source. Candidate/manifest/hash records provide traceability without claiming a signed build attestation. Stable version construction and URL contracts exist; stable candidate/publication, npm latest promotion and Skills marketplace/platform publication are not implemented. The bundled Skills are installed into local hosts only.
已确认方向是继续支持多 Agent 接入、可编辑工程与一个工作区内的发现/制作闭环。
diff --cc docs/release-workflows.md
index 5c9d4b3c,0255a908..40379d51
--- a/docs/release-workflows.md
+++ b/docs/release-workflows.md
@@@ -18,13 -18,13 +18,13 @@@ The default `main` currently contains t
Register these files together:
- - `.github/workflows/motion-candidate.yml`, `motion-publish-test.yml`, `motion-publication-recovery.yml` and `motion-install-check.yml`. The installation check is read-only, but its manual entry appears only after the same default-branch registration.
-- `.github/workflows/motion-candidate.yml`, `motion-publish-test.yml` and `motion-publication-recovery.yml`.
-- `.github/scripts/motion-release.mjs`, `motion-scan.mjs`, `motion-registry-smoke.mjs`, `publish-install-guide.mjs` and `.github/gitleaks.toml`.
++- `.github/workflows/motion-candidate.yml`, `motion-publish-test.yml`, `motion-publication-recovery.yml` and `motion-install-check.yml` (read-only manual rechecks).
+- `.github/scripts/motion-release.mjs`, `motion-scan.mjs`, `motion-registry.mjs`, `motion-registry-smoke.mjs`, `publish-install-guide.mjs` and `.github/gitleaks.toml`.
- `scripts/runtime-assets.mjs`, `release-version.mjs`, `install-guide.mjs`, `docs/install.md`, `docs/templates/release-record.md` and `docs/templates/candidate-install.md`.
Protect changes to the trusted control files and `feature/motion`; keep default-branch registration aligned. There is no `motion-test-publish` GitHub Environment prerequisite or Review deployments step in this version.
- For `@openmotion/app`, open npm **Settings → Trusted publishing → Add trusted publisher → GitHub Actions**. Set owner **`nexu-io`**, repository **`html-anything`**, workflow filename **`motion-publish-test.yml`** (no directory), **leave Environment blank**, and allow **npm publish** plus **Allow npm dist-tag**. The latter is separately required to advance `test` after public-package integrity verification; enabling publish alone is insufficient. If an older entry names an environment, it must be updated to match this workflow before publication. GitHub-hosted runners use Node 26.11.1; credentialed npm jobs explicitly install npm 11.21.2 for OIDC dist-tag support and `id-token: write`; no stored npm token is needed. The recovery caller never calls npm publish or dist-tag. npm does not support a dist-tag dry-run; do not test that command against the real registry without channel-write authorization. See [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/).
-For `@openmotion/app`, open npm **Settings → Trusted publishing → Add trusted publisher → GitHub Actions**. Set owner **`nexu-io`**, repository **`html-anything`**, workflow filename **`motion-publish-test.yml`** (no directory), **leave Environment blank**, and allow **npm publish** plus **Allow npm dist-tag**. The latter is separately required to advance `test` after native acceptance; enabling publish alone is insufficient. If an older entry names an environment, it must be updated to match this workflow before publication. GitHub-hosted runners use Node 26.11.1; credentialed npm jobs explicitly install npm 11.21.2 for OIDC dist-tag support and `id-token: write`; no stored npm token is needed. The recovery caller never calls npm publish or dist-tag. npm does not support a dist-tag dry-run; do not test that command against the real registry without channel-write authorization. See [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/).
++For `@openmotion/app`, open npm **Settings → Trusted publishing → Add trusted publisher → GitHub Actions**. Set owner **`nexu-io`**, repository **`html-anything`**, workflow filename **`motion-publish-test.yml`** (no directory), **leave Environment blank**, and allow **npm publish** plus **Allow npm dist-tag**. The latter is separately required to advance `test` after registry propagation; enabling publish alone is insufficient. If an older entry names an environment, it must be updated to match this workflow before publication. GitHub-hosted runners use Node 26.11.1; credentialed npm jobs explicitly install npm 11.21.2 for OIDC dist-tag support and `id-token: write`; no stored npm token is needed. The recovery caller never calls npm publish or dist-tag. npm does not support a dist-tag dry-run; do not test that command against the real registry without channel-write authorization. See [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/).
Reuse the existing R2 settings. Only the final snapshot step receives the storage credentials:
@@@ -58,18 -58,18 +58,18 @@@ The artifact contains nine files: `open
1. Open the successful build summary, download `motion-candidate-<version>` and extract the ZIP.
2. Give that directory to your Agent and copy this instruction:
-- > Read candidate-install.md in this folder. Read candidate.json, verify the local tgz SHA256, and install this exact local OpenMotion candidate. Use a separate test host profile/configuration, application home, data directory and Skills directory; preserve my daily environment. Complete prepare, then verify actual MCP/Skills loading and the requested template, editing and export checks. Record actual results in a private copy of acceptance.md; mark unrun checks NOT RUN. Do not publish.
++ > Read candidate-install.md in this folder. Read candidate.json, verify the local tgz SHA256, and install this exact local OpenMotion candidate. Use a separate test host profile/configuration, application home, data directory and Skills directory; preserve my daily environment. Verify actual MCP/Skills loading without waiting for background video-component preparation. Run prepare only when explicitly asked to wait or before requested media/capture/export acceptance checks. Record actual results in a private copy of acceptance.md; mark unrun checks NOT RUN. Do not publish.
--3. Follow the actual supported host/platform isolation recipe in [npm installation](npm-installation.md). Setup and prepare must use the same explicit application home; `--home` alone does not isolate the host profile. The application is embedded: no source checkout or sidecar application/manifest download is needed. Native dependencies still need network access.
++3. Follow the actual supported host/platform isolation recipe in [npm installation](npm-installation.md). Setup starts video-component preparation in the background; MCP connection, project creation/editing and ordinary preview do not wait for it. When prepare is needed, reuse setup's explicit application home; `--home` alone does not isolate the host profile. The application is embedded: no source checkout or sidecar application/manifest download is needed. Native dependencies still need network access. Report installation/host loading separately from video-component readiness; installation alone does not authorize video creation or export.
4. Complete **`acceptance.md` privately** with PASS / FAIL / NOT RUN, supported OS/host, template/catalog identity, existing-data preservation, real Agent creation/edit/export, normal-speed human audio/video playback, known issues and recovery. [The acceptance guide](release-guide.md) defines the checks. Build success cannot fill human results.
- Keep completed evidence against the generated candidate identity. Do not edit/re-upload the frozen candidate artifact or place private test results in public Actions artifacts. Stop on failed or incomplete required acceptance; code changes need a new candidate version. No run ID, tgz hash or private-record hash needs to be copied into the publication form.
+ Keep completed evidence against the generated candidate identity. Do not edit/re-upload the frozen candidate artifact or place private test results in public Actions artifacts. Record failed and unrun checks honestly; they are not a manual workflow gate. Code changes need a new candidate version. No run ID, tgz hash or private-record hash needs to be copied into the publication form.
- ## 3. Publish the accepted version
+ ## 3. Publish the candidate version
- Open **Actions → Motion test publication → Run workflow**, select **`feature/motion`**, enter the exact accepted **version**, and tick **accepted** only after its required acceptance passes. Click **Run workflow**. This is the explicit publication action; there is no later independent approval dialog. Leaving the checkbox false fails before any publication.
+ Open **Actions → Motion test publication → Run workflow**, select **`feature/motion`**, enter the exact candidate **version**, and click **Run workflow**. No acceptance checkbox or later independent approval dialog is required.
- The workflow searches GitHub artifacts by the exact versioned name and requires exactly one unexpired match from a completed successful registered candidate build on `main` or `feature/motion` in this repository. Missing, ambiguous, expired or failed candidates stop instead of choosing a different run. Copy the exact version from the successful build summary. Entering `0.6.4-test.7` cannot rename an existing `0.6.4-test.42818506484.1` candidate: build `test.7` separately and accept its new bytes first. The official ZIP digest, frozen file hashes and source integration are checked; source and package scans run again. The current manual run's actual operator, candidate identity and acceptance confirmation are retained in `authorization.json`.
+ The workflow searches GitHub artifacts by the exact versioned name and requires exactly one unexpired match from a completed successful registered candidate build on `main` or `feature/motion` in this repository. Missing, ambiguous, expired or failed candidates stop instead of choosing a different run. Copy the exact version from the successful build summary. Entering `0.6.4-test.7` cannot rename an existing `0.6.4-test.42818506484.1` candidate: build `test.7` separately and accept its new bytes first. The official ZIP digest, frozen file hashes and source integration are checked; source and package scans run again. The current manual run's actual operator, candidate identity and publication action are retained in `authorization.json`.
It then automatically:
@@@ -81,16 -81,6 +81,16 @@@
OIDC authenticates the publisher. Automatic npm provenance remains disabled because the trusted publication workflow SHA may differ from the selected prebuilt application source SHA. Candidate/manifest/lock/hash records provide traceability, not a signed build attestation.
- ## Independent Mac/Windows installation checks
++## Independent installation rechecks
+
- **Motion installation check** (`motion-install-check.yml`) only reads an existing public test version. It cannot publish npm, change tags or access R2/install.md writes. The candidate-resolution job alone receives a read-only GitHub token; consumer processes receive an allowlisted, isolated environment without CI credentials or browser/Agent IPC access.
++Use **Motion installation check** (`motion-install-check.yml`) to check an existing public test version without starting publication. After its manual entry is registered on the default branch, select `feature/motion`, enter the exact version, and run. This entry has only `contents: read` and `actions: read`; it has no npm OIDC or R2 credentials and cannot publish, move tags or write install.md. Only candidate resolution receives the read-only GitHub token; installed consumer processes receive an allowlisted environment and isolated application/data/Skills/host directories.
+
- After its manual entry is registered on the default branch, select the intended check-code ref, enter an existing version (initial default `0.6.4-test.7`) and run. Before registration, a same-repository PR to `feature/motion` changing the installation workflow, registry helpers or their tests automatically checks the fixed test.7 regression version; fork PRs are skipped. PR execution does not publish or enable a manual entry on main.
++The workflow verifies the original successful candidate's ZIP/file hashes and integrated source, then downloads the exact npm bytes on macOS ARM64 and Windows x64. It checks fresh/repeated setup, unrelated MCP-setting preservation, DEV configuration, Chromium/FFmpeg/ffprobe preparation, eleven Tools, five Skills and resources. Both platforms complete independently (`fail-fast: false`). Metadata/tarball requests retry 404/408/429/5xx and transient network errors for up to 15 minutes per request. Authorization errors, malformed metadata and hash mismatches fail immediately. A failed retry cannot retain an old successful download report.
+
- The workflow resolves the unique original successful candidate and its source integration/hashes, then independently downloads the exact npm bytes on macOS ARM64 and Windows x64. Both runners perform setup, repeated setup, DEV configuration checks, Chromium/FFmpeg/ffprobe preparation and MCP discovery/resources/Skills checks. No model account, GUI login or model API key is needed. The matrix has `fail-fast: false`: one platform failure cannot cancel the other. Registry requests log attempt/status/elapsed time; installation reports retain the last phase even on failure. Network retries are bounded, and integrity failures remain failures.
++Read each platform's job summary and `installation-<platform>-<run>-<attempt>` artifacts. Failure stays visible in this independent run and cannot resume publishing. The existing post-publication jobs still run and remain non-blocking. Reports record the tested package source/SHA256 separately from the check-code SHA; registry download alone does not certify native installation. Real model creation, template service access, Windows 11 desktop behavior and human playback remain separate acceptance checks.
+
- Read the run summary and `installation-<platform>-<run>-<attempt>` artifacts. Results bind the package version/source/SHA256, separately from the check workflow SHA. Rerunning this workflow cannot resume publication. Windows Server runner results do not certify Windows 11 desktop behavior; real template service access, a model turn, editor/export use and human audiovisual acceptance remain separate checks. Failed/NOT RUN platform results must be disclosed in internal test handoffs and resolved before stable acceptance. Stable publication is not implemented here.
++A same-repository PR changing this workflow, registry helpers or their tests runs the fixed test.7 regression case without publication; fork PRs are skipped. This PR regression must be refreshed before its original candidate artifact expires. Production operation requires the separately reviewed default-branch entry registration; this change does not register or run anything on main.
+
## Versions and records
| Channel | Moving guide, updated last | Immutable guide |
diff --cc tests/registry-download.test.mjs
index 29e9e784,00000000..38399bef
mode 100644,000000..100644
--- a/tests/registry-download.test.mjs
+++ b/tests/registry-download.test.mjs
@@@ -1,79 -1,0 +1,68 @@@
+import test from 'node:test';
+import assert from 'node:assert/strict';
+import { readFile, writeFile } from 'node:fs/promises';
+import path from 'node:path';
+import { candidateFixture } from './release-fixture.mjs';
- import { registryRead, registryReport, verifyRegistryDownload } from '../.github/scripts/motion-registry.mjs';
- import { promoteTest } from '../.github/scripts/motion-release.mjs';
++import { registryRead, verifyRegistryDownload } from '../.github/scripts/motion-registry.mjs';
+
+function clock(fetcher) {
+ let time = 0;
+ return { fetcher, timeout: 20_000, now: () => time, sleep: async ms => { time += ms; }, log: () => {} };
+}
+
+test('registry propagation, rate limits, server errors and interrupted reads retry within a deadline', async () => {
+ for (const unavailable of [404, 408, 429, 503, 'network', 'body']) {
+ let calls = 0;
+ const options = clock(async (_, request) => {
+ assert.equal(request.headers['cache-control'], 'no-cache');
+ assert(!request.headers.Authorization);
+ if (++calls > 1) return Response.json({ ready: true });
+ if (unavailable === 'network') throw new TypeError('fetch failed');
+ if (unavailable === 'body') return { ok: true, status: 200, json: async () => { throw new TypeError('terminated'); } };
+ return new Response('', { status: unavailable });
+ });
+ assert.deepEqual(await registryRead('https://registry.npmjs.org/example', r => r.json(), options), { ready: true });
+ assert.equal(calls, 2);
+ }
+ let calls = 0;
+ await assert.rejects(registryRead('https://registry.npmjs.org/example', r => r.json(), clock(async () => { calls++; return new Response('', { status: 404 }); })), /REGISTRY_NOT_READY/);
+ assert.equal(calls, 3);
+ for (const status of [401, 403, 400]) {
+ calls = 0;
+ await assert.rejects(registryRead('https://registry.npmjs.org/example', r => r.json(), clock(async () => { calls++; return new Response('', { status }); })), new RegExp('HTTP ' + status));
+ assert.equal(calls, 1);
+ }
+});
+
+test('public download verifies both hashes against the frozen candidate without executing or publishing', async t => {
+ const f = await candidateFixture(t), bytes = await readFile(path.join(f.directory, f.candidate.tgz));
+ const metadata = { name: f.candidate.packageName, version: f.candidate.version,
+ dist: { integrity: f.candidate.integrity, tarball: 'https://registry.npmjs.org/@openmotion/app/-/app.tgz' } };
+ let wrongBytes = false, downloads = 0;
+ const options = clock(async url => {
+ if (String(url).endsWith('.tgz')) { downloads++; return new Response(wrongBytes ? 'different bytes' : bytes); }
+ return Response.json(metadata);
+ });
+ const { report } = await verifyRegistryDownload(f.directory, options);
+ assert.equal(report.nativeInstallation, 'not-run');
- assert.equal((await registryReport(f.directory, f.candidate)).tgzSHA256, f.candidate.tgzSHA256);
++ assert.equal(JSON.parse(await readFile(path.join(f.directory, 'registry-package.json'), 'utf8')).tgzSHA256, f.candidate.tgzSHA256);
+ wrongBytes = true;
+ await assert.rejects(verifyRegistryDownload(f.directory, options), /SHA256 mismatch/);
- await assert.rejects(registryReport(f.directory, f.candidate), /ENOENT/, 'A failed download invalidates any stale success report');
++ await assert.rejects(readFile(path.join(f.directory, 'registry-package.json')), /ENOENT/, 'A failed download invalidates any stale success report');
+ assert.equal(downloads, 2, 'Corrupt bytes must not be retried or passed');
+ metadata.dist.integrity = 'different';
+ await assert.rejects(verifyRegistryDownload(f.directory, options), /different bytes/);
+ assert.equal(downloads, 2);
+ metadata.dist.integrity = f.candidate.integrity;
+ metadata.dist.tarball = 'https://private.invalid/app.tgz';
+ await assert.rejects(verifyRegistryDownload(f.directory, options), /public npm tarball origin/);
+ assert.equal(downloads, 2);
+});
+
- test('independent platform results do not gate test promotion or masquerade as platform acceptance', async t => {
- const f = await candidateFixture(t);
- await writeFile(path.join(f.directory, 'registry-win32-x64.json'), JSON.stringify({ status: 'failed' }));
- const result = await promoteTest(f.directory, f.inputs, { env: f.env,
- fetcher: async () => Response.json({ versions: { [f.candidate.version]: { dist: { integrity: f.candidate.integrity } } }, 'dist-tags': { test: f.candidate.version, latest: '0.5.0' } }),
- run: async () => { throw Error('Already promoted: no write permitted'); } });
- assert.equal(result.registryVerification.registryDownload, 'passed');
- assert.equal(result.platformVerification.status, 'independent-not-attached');
- });
-
+test('standalone installation workflow is read-only and exercises both platforms against test.7 on PRs', async () => {
+ const workflow = await readFile(new URL('../.github/workflows/motion-install-check.yml', import.meta.url), 'utf8');
+ for (const expected of ['pull_request:', 'workflow_dispatch:', '0.6.4-test.7', 'macos-26', 'windows-2025', 'fail-fast: false', 'downloadCandidate', 'validateSource', 'motion-registry-smoke.mjs', 'if: always()']) assert(workflow.includes(expected), expected);
+ assert(!/id-token:|secrets\.|secrets:|npm publish|dist-tag add|s3api|motion-release\.mjs (?:npm|promote-test|archive)/.test(workflow.replace('No npm publish,', 'No publication,')));
+ const smoke = workflow.split(' - name: Install the public version')[1].split(' - name: Retain')[0];
+ assert(!smoke.includes('GH_TOKEN') && !smoke.includes('github.token'));
+});
diff --cc tests/release-workflows.test.mjs
index 8c3eb23c,3f605f09..5e71d92a
--- a/tests/release-workflows.test.mjs
+++ b/tests/release-workflows.test.mjs
@@@ -112,6 -111,6 +111,11 @@@ test('the sealed candidate detects tgz
const instructions = await readFile(path.join(directory, 'candidate-install.md'), 'utf8');
assert(instructions.includes(candidate.tgz) && instructions.includes(candidate.tgzSHA256) && instructions.includes(candidate.sourceCommit));
assert(instructions.includes('npx --yes --package "./' + candidate.tgz + '"'));
++ const [installation, acceptance] = instructions.split('\n## Video preparation and requested acceptance\n');
++ assert.deepEqual([...installation.matchAll(/^\s*npx[^\n]+/gm)].map(match => match[0].trim()),
++ [`npx --yes --package "./${candidate.tgz}" -- openmotion setup --host HOST`], 'Default installation must not block on prepare');
++ assert(acceptance?.includes(`npx --yes --package "./${candidate.tgz}" -- openmotion prepare`), 'Requested video acceptance retains the exact local prepare command');
++ assert(instructions.includes('Repeat the same explicit `--home` used for setup'));
assert(!instructions.includes('{{'));
assert(!checklist.includes('<!-- CANDIDATE_IDENTITY -->'));
await assert.rejects(verifyDownloaded(directory, candidate.tgzSHA256, '0.6.4-test.100'), /version/);
@@@ -286,8 -281,8 +286,14 @@@ test('daily build and publication are s
assert.match(build, /version:\n(?:[^\n]*\n)*? required: false\n default: ''/);
assert(build.includes('MOTION_VERSION: ${{ steps.source.outputs.version }}'));
assert(build.includes('name: motion-candidate-${{ steps.source.outputs.version }}') && build.includes('candidate-install.md'));
++ for (const guide of [build, await readFile(new URL('../docs/release-workflows.md', import.meta.url), 'utf8')]) {
++ assert(guide.includes('without waiting for background video-component preparation'));
++ assert(guide.includes('Run prepare only when explicitly asked to wait or before requested media/capture/export acceptance checks'));
++ assert(!guide.includes('Complete prepare'), 'Copyable tester instructions must not restore a blocking installation prerequisite');
++ assert(guide.toLowerCase().includes('no acceptance checkbox'), 'Keep the current publication instructions when syncing the installation guide');
++ }
assert(!build.includes('concurrency:') && !build.includes('secrets.') && !build.includes('id-token:'));
- assert(header.includes('version:') && header.includes('accepted:') && header.includes('default: false'));
+ assert(header.includes('version:') && !header.includes('accepted:'));
assert.match(header, /version:\n(?:[^\n]*\n)*? required: true/);
for (const manualField of ['candidate_run_id:', 'source_sha:', 'tgz_sha256:', 'acceptance_sha256:', 'approved:', 'action:']) assert(!header.includes(manualField));
assert(!workflow.includes(' candidate:') && !workflow.includes('environment:'));