Repository navigation
fix(release): repair 2026.9.6 plugin shard and FaceTime manifest validation - #155892
Conversation
|
Codex review: blocked before merge. Reviewed September 22, 2026, 2:46 PM ET / 18:46 UTC. ClawSweeper reviewWhat this changesSeparates native plugin-loader tests from workers using the TypeScript preload and keeps FaceTime’s minimum host-version expectation fixed across release bumps. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 3 items remain Keep open: the release-validation repair remains useful, but direct project selection silently omits the native-loader tests. The FaceTime correction matches the release controller. Priority: P2 Review scores
Verification
How this fits togetherRelease validation runs plugin tests through scoped Vitest configurations. These configurations select test files and worker loading behavior, while the FaceTime manifest test checks package compatibility metadata. flowchart TD
A[Release validation or focused test command] --> B[Plugin test configuration]
B --> C[Ordinary plugin suites]
B --> D[Native loader suites]
C --> E[Workers with TypeScript preload]
D --> F[Workers without preload]
G[Release package metadata] --> H[FaceTime compatibility checks]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +49. Total +49 across 3 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Preserve plugins as a selector for both worker groups using the existing file-backed container pattern, while retaining the corrected FaceTime compatibility-floor assertion. Do we have a high-confidence way to reproduce the issue? Yes, from source: directly selecting the plugins config with --project plugins excludes the differently named native-loader leaf. This was traced through Vitest’s project resolver but not executed. Is this the best way to solve the issue? The split and fixed FaceTime floor are appropriate, but the split needs the file-backed container already used by Gateway tests to preserve direct project selection. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 065eb1f58f13. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…dation (#155892) ## Problem Full Release Validation run 35760444831 for 2026.9.6 fails two release-only lanes that regular PR CI never runs: 1. `checks-node-agentic-plugins` (Plugin Prerelease, `test/vitest/vitest.plugins.config.ts`): 12 files / 40 tests in `src/plugins/` fail with symptoms such as `Plugin fixture-speech capabilityCatalogEntry failed: Unexpected token 'export'`, `expected { values: [ undefined, 'javascript' ] } to match object { values: [ 'typescript', ... ] }`, and `expected undefined to be 'overloaded'`, alongside Node warnings `Failed to load the ES module: .../capability-catalog.js`. 2. `extensions shard 8`: `extensions/facetime/tests/package-manifest.test.ts` fails once the release version controller bumps the package to 2026.9.6 (`minHostVersion` expected `>=2026.9.6`, received `>=2026.9.4`). ## Root causes **Plugins shard.** #153508 added a `--import tsx/esm` `execArgv` preload to every Node Vitest fork worker (`test/vitest/vitest.shared.config.ts`). The `src/plugins` suites exercise the plugin loader's own native `require()`/`import()` of `.ts`/`.js` fixtures (TS/JS peers, CJS/ESM interop, built capability catalogs, public surfaces). With the tsx hooks installed in the worker, Node's own module semantics under test change: a `.ts` peer in a `commonjs` package requires as an empty namespace, ESM `.js` catalogs in fixture packages fall through the CJS path, and loader ownership assertions fail. The shard is `RELEASE_ONLY_PLUGIN_SHARDS`, so the breakage surfaced only in Full Release Validation. A standalone probe (`createRequire(...)("./native.cjs")` requiring `peer.ts` + `peer.js`) returns `["typescript","javascript"]` on plain Node 24 and 26 and `[null,"javascript"]` with `--import scripts/tsx.mjs`. **FaceTime manifest.** #155818 derived every host-contract field from `package.json#version`, but `scripts/sync-plugin-versions.ts` deliberately leaves `openclaw.install.minHostVersion` alone ("a compatibility floor, not release alignment metadata") while rewriting `peerDependencies.openclaw`, `compat.pluginApi`, and `build.openclawVersion`. The derived expectation therefore breaks on every release bump. ## Solution - `test/vitest/vitest.scoped-config.ts`: accept an `execArgv` override. - `test/vitest/vitest.plugins.config.ts`: split the shard into two inline projects (same pattern as `vitest.gateway-server.config.ts`): `plugins` keeps the shared preload (its suites load bundled plugins from source and need tsx's `.js` to `.ts` SDK resolution), and `plugins-native-loader` runs the eight loader-semantics suites (`plugin-module-generation*`, `capability-provider-runtime.generation`, `bundled-plugin-metadata.public-surfaces`, `manifest-registry`, `public-surface-loader`, `plugin-runtime-artifact-resolution`, `stage-bundled-plugin-runtime`) with `execArgv: []`. The root config keeps the complete inventory so planner discovery and `--project` routing are unchanged. - `extensions/facetime/tests/package-manifest.test.ts`: expect the literal `>=2026.9.4` floor for `install.minHostVersion`; the controller-synced fields stay derived from the package version. ## Impact Release-only validation lanes match what the runtime does in production for the loader suites (no tsx hooks in a Gateway process). No product code changes. Regular CI shards are unaffected; only the eight native-loader suites drop the preload. ## Evidence - Baseline, exact job command (`pnpm test -- test/vitest/vitest.plugins.config.ts --`, Node 24.21.0, `OPENCLAW_VITEST_MAX_WORKERS=2`): 13 failed files / 41 failed tests (CI's 12 plus `plugin-graceful-init-failure`), matching FRV run 35760444831 job `checks-node-agentic-plugins` (also red in runs 35743778013 and 35761282770). - Planner/routing owners with the split config: `test/scripts/ci-node-test-plan.test.ts`, `test-projects.test.ts`, `test-projects-routing.test.ts`, `plugin-prerelease-test-plan.test.ts`: 1811/1811 pass. - Fixed, same command and Node: 5 failed files / 10 failed tests, 375 passed files / 6101 passed tests. All eight loader-semantics files are green. Dropping the preload for the whole shard instead (probe run) fixes the same eight files but breaks 11 other files on `Cannot find module '.../src/agents/defaults.js' imported from .../src/plugin-sdk/provider-model-metadata.ts`, which is why the shard is split rather than de-preloaded. - Remaining red files are independent of the preload (identical failures with and without it, and with `providers.runtime-core.ts`, `provider-hook-runtime-core.ts`, `plugin-instance*.ts`, `host-hook-state.ts` reverted to their pre-#155711/#155250/#154625/#155714 versions): `provider-runtime.test.ts` (6: `resolveProviderPluginsForHooks`/`classifyProviderFailoverSignalWithPlugin` no longer read the `withPluginRuntimeRegistryScope` registry), `native-session-catalog-registration.test.ts` (1: abort surfaces `PluginInstanceUnavailableError` instead of the caller's retirement error), `plugin-instance-invocation.test.ts` (1), `provider-public-artifacts.test.ts` (1: listener count after bundled policy load), `plugin-graceful-init-failure.test.ts` (1: `Maximum call stack size exceeded`, local only). These are product/test contract drift from the plugin runtime refactors and need their owners; they are called out in the landing report. - `extensions/facetime/tests/package-manifest.test.ts`: 2/2 pass at 2026.9.4 and 2/2 pass after a local `pnpm release:prepare -- --version 2026.9.6 --write` (bump reverted, not committed). - `OPENCLAW_TESTBOX=1 pnpm check:changed`: in progress at PR creation; result recorded in the landing report. Co-authored-by: Peter Steinberger <[email protected]>
…dule graphs (#155925) ## Summary Repairs the four residual red files in the release-only `checks-node-agentic-plugins` lane for 2026.9.6 (after #155892 split the native-loader project). **Product regression (7 tests in 3 files):** #153508 turned `PluginRuntimeExecutionFrame` (`src/plugins/runtime/execution-frame.ts`) into a plain class while the plugin execution frame store stayed a process-wide `resolveGlobalSingleton`. Any second module instance of that file (a reloaded test graph, a duplicated chunk) fails the `instanceof` narrowing in `getPluginRuntimeExecutionFrame` and silently drops the Gateway request scope: `withPluginRuntimeRegistryScope` registries stopped reaching `resolveProviderPluginsForHooks` / `classifyProviderFailoverSignalWithPlugin`, and the reload-identity contract in `plugin-instance-invocation.test.ts` (added with the singleton in #146219) broke. This restores the shared constructor next to the shared store. **Test fixture (1 test):** the `provider-public-artifacts` bundled scenario loads an ESM `provider-policy-api.js` from a fixture package with no module type through the bundled owners' native `require()` path. Under the tsx/esm worker preload the ambiguous file is compiled as CommonJS (`Unexpected token 'export'`), which the test's `finally` assertion masked as a listener-count mismatch. Shipped bundled artifacts (`dist/extensions/*`) are ESM under a `"type": "module"` package, so the fixture now declares that. Files: `src/plugins/provider-runtime.test.ts` (6), `src/plugins/plugin-instance-invocation.test.ts` (1), `src/plugins/native-session-catalog-registration.test.ts` (green in the fixed run), `src/plugins/provider-public-artifacts.test.ts` (1). `plugin-graceful-init-failure.test.ts` ("Maximum call stack size exceeded") reproduces locally with and without the preload and is a host stack-size artifact, not part of the CI residual; unchanged here. ## Validation - Baseline on main tip (Node 24, `scripts/run-vitest.mjs run --config test/vitest/vitest.plugins.config.ts <files>`): 8 failed across the 4 files (plus the local-only stack-limit case). - After the fix: the 4 files pass (`provider-runtime` 6/6, invocation 1/1, catalog 1/1, artifacts 33/33; 148/148 tests). - Full `pnpm test -- test/vitest/vitest.plugins.config.ts --` shard on Node 24, run as four file chunks under the local 10-minute command cap: 105 + 88 + 94 + 91 test files green, 6109 tests passed; the only failure is the host-local `plugin-graceful-init-failure` stack-limit case (fails with and without the preload, not in the CI residual). - `OPENCLAW_TESTBOX=1 pnpm check:changed`: all lanes pass except the dead-export scan, which flags `scripts/lib/tsgo-core-test-shards.mts: TSGO_CORE_TEST_MAX_ROOTS`; that export is untouched by this PR and was already made internal on main by `1619aff4781` after this branch's base. - Hosted CI on the exact head `cea3da31abcb`: 143 checks passed, 0 pending. Co-authored-by: Peter Steinberger <[email protected]>
) ## Summary Full Release Validation 35775979903 (CI child 35776854264, candidate `release/2026.9.6` = main `814a7e752afc` + locale refresh + #155892) failed `subagent-registry.persistence.test.ts`, `subagent-spawn.authority.test.ts`, `chat.abort-errors.test.ts` and `chat.abort-incarnation.test.ts` in `settleSubagentRegistryPersistenceWork` with `residual registry roots: tasks:delivery (2|4|6): expected N to be +0`. All were green in the two previous validation runs. Bisected to #151917 (`68b724b355e`, move terminal notification writes off the Gateway thread): `subagent-registry.persistence.test.ts` passes 30/30 at `68b724b355e^` and fails at `68b724b355e` with the exact CI signature; on current main it fails 5/5 locally. The `tasks:delivery` roots are not leaked: with a 20 s fence the same test passes (3.3 s), i.e. uncaptured deliveries settle 1–2 s after the test body, while the shared helper used `vi.waitFor`'s 1 s default. #155910 and #155888 already fixed individual fixtures by capturing deliveries; this widens the shared fence so the remaining callers (persistence, timing, resume, task-replacement, chat.abort-*) stop racing it. Test contract change only; no product change. The related `build-artifacts` failure (`sqlite-sessions-transcripts-flip-proof` rejecting the delete-drain `stopReason`) was fixed on main in parallel by `8ba18cf19ad`; this branch merged that and carries no change of its own for it. ## Change - `src/agents/subagents/registry/subagent-registry.persistence.test-support.ts`: `vi.waitFor(..., { timeout: 10_000 })` in `settleSubagentRegistryPersistenceWork`. ## Proof - The four affected files green in one local vitest run with the change (`Tests 26 passed`, `Tests 36 passed`). - `oxfmt --check` / `oxlint` clean on the changed file; exact-head hosted gates via `scripts/pr`.
…dule graphs (#155925) ## Summary Repairs the four residual red files in the release-only `checks-node-agentic-plugins` lane for 2026.9.6 (after #155892 split the native-loader project). **Product regression (7 tests in 3 files):** #153508 turned `PluginRuntimeExecutionFrame` (`src/plugins/runtime/execution-frame.ts`) into a plain class while the plugin execution frame store stayed a process-wide `resolveGlobalSingleton`. Any second module instance of that file (a reloaded test graph, a duplicated chunk) fails the `instanceof` narrowing in `getPluginRuntimeExecutionFrame` and silently drops the Gateway request scope: `withPluginRuntimeRegistryScope` registries stopped reaching `resolveProviderPluginsForHooks` / `classifyProviderFailoverSignalWithPlugin`, and the reload-identity contract in `plugin-instance-invocation.test.ts` (added with the singleton in #146219) broke. This restores the shared constructor next to the shared store. **Test fixture (1 test):** the `provider-public-artifacts` bundled scenario loads an ESM `provider-policy-api.js` from a fixture package with no module type through the bundled owners' native `require()` path. Under the tsx/esm worker preload the ambiguous file is compiled as CommonJS (`Unexpected token 'export'`), which the test's `finally` assertion masked as a listener-count mismatch. Shipped bundled artifacts (`dist/extensions/*`) are ESM under a `"type": "module"` package, so the fixture now declares that. Files: `src/plugins/provider-runtime.test.ts` (6), `src/plugins/plugin-instance-invocation.test.ts` (1), `src/plugins/native-session-catalog-registration.test.ts` (green in the fixed run), `src/plugins/provider-public-artifacts.test.ts` (1). `plugin-graceful-init-failure.test.ts` ("Maximum call stack size exceeded") reproduces locally with and without the preload and is a host stack-size artifact, not part of the CI residual; unchanged here. ## Validation - Baseline on main tip (Node 24, `scripts/run-vitest.mjs run --config test/vitest/vitest.plugins.config.ts <files>`): 8 failed across the 4 files (plus the local-only stack-limit case). - After the fix: the 4 files pass (`provider-runtime` 6/6, invocation 1/1, catalog 1/1, artifacts 33/33; 148/148 tests). - Full `pnpm test -- test/vitest/vitest.plugins.config.ts --` shard on Node 24, run as four file chunks under the local 10-minute command cap: 105 + 88 + 94 + 91 test files green, 6109 tests passed; the only failure is the host-local `plugin-graceful-init-failure` stack-limit case (fails with and without the preload, not in the CI residual). - `OPENCLAW_TESTBOX=1 pnpm check:changed`: all lanes pass except the dead-export scan, which flags `scripts/lib/tsgo-core-test-shards.mts: TSGO_CORE_TEST_MAX_ROOTS`; that export is untouched by this PR and was already made internal on main by `1619aff4781` after this branch's base. - Hosted CI on the exact head `cea3da31abcb`: 143 checks passed, 0 pending. Co-authored-by: Peter Steinberger <[email protected]>
) ## Summary Full Release Validation 35775979903 (CI child 35776854264, candidate `release/2026.9.6` = main `814a7e752afc` + locale refresh + #155892) failed `subagent-registry.persistence.test.ts`, `subagent-spawn.authority.test.ts`, `chat.abort-errors.test.ts` and `chat.abort-incarnation.test.ts` in `settleSubagentRegistryPersistenceWork` with `residual registry roots: tasks:delivery (2|4|6): expected N to be +0`. All were green in the two previous validation runs. Bisected to #151917 (`68b724b355e`, move terminal notification writes off the Gateway thread): `subagent-registry.persistence.test.ts` passes 30/30 at `68b724b355e^` and fails at `68b724b355e` with the exact CI signature; on current main it fails 5/5 locally. The `tasks:delivery` roots are not leaked: with a 20 s fence the same test passes (3.3 s), i.e. uncaptured deliveries settle 1–2 s after the test body, while the shared helper used `vi.waitFor`'s 1 s default. #155910 and #155888 already fixed individual fixtures by capturing deliveries; this widens the shared fence so the remaining callers (persistence, timing, resume, task-replacement, chat.abort-*) stop racing it. Test contract change only; no product change. The related `build-artifacts` failure (`sqlite-sessions-transcripts-flip-proof` rejecting the delete-drain `stopReason`) was fixed on main in parallel by `8ba18cf19ad`; this branch merged that and carries no change of its own for it. ## Change - `src/agents/subagents/registry/subagent-registry.persistence.test-support.ts`: `vi.waitFor(..., { timeout: 10_000 })` in `settleSubagentRegistryPersistenceWork`. ## Proof - The four affected files green in one local vitest run with the change (`Tests 26 passed`, `Tests 36 passed`). - `oxfmt --check` / `oxlint` clean on the changed file; exact-head hosted gates via `scripts/pr`.
…dation (openclaw#155892) ## Problem Full Release Validation run 35760444831 for 2026.9.6 fails two release-only lanes that regular PR CI never runs: 1. `checks-node-agentic-plugins` (Plugin Prerelease, `test/vitest/vitest.plugins.config.ts`): 12 files / 40 tests in `src/plugins/` fail with symptoms such as `Plugin fixture-speech capabilityCatalogEntry failed: Unexpected token 'export'`, `expected { values: [ undefined, 'javascript' ] } to match object { values: [ 'typescript', ... ] }`, and `expected undefined to be 'overloaded'`, alongside Node warnings `Failed to load the ES module: .../capability-catalog.js`. 2. `extensions shard 8`: `extensions/facetime/tests/package-manifest.test.ts` fails once the release version controller bumps the package to 2026.9.6 (`minHostVersion` expected `>=2026.9.6`, received `>=2026.9.4`). ## Root causes **Plugins shard.** openclaw#153508 added a `--import tsx/esm` `execArgv` preload to every Node Vitest fork worker (`test/vitest/vitest.shared.config.ts`). The `src/plugins` suites exercise the plugin loader's own native `require()`/`import()` of `.ts`/`.js` fixtures (TS/JS peers, CJS/ESM interop, built capability catalogs, public surfaces). With the tsx hooks installed in the worker, Node's own module semantics under test change: a `.ts` peer in a `commonjs` package requires as an empty namespace, ESM `.js` catalogs in fixture packages fall through the CJS path, and loader ownership assertions fail. The shard is `RELEASE_ONLY_PLUGIN_SHARDS`, so the breakage surfaced only in Full Release Validation. A standalone probe (`createRequire(...)("./native.cjs")` requiring `peer.ts` + `peer.js`) returns `["typescript","javascript"]` on plain Node 24 and 26 and `[null,"javascript"]` with `--import scripts/tsx.mjs`. **FaceTime manifest.** openclaw#155818 derived every host-contract field from `package.json#version`, but `scripts/sync-plugin-versions.ts` deliberately leaves `openclaw.install.minHostVersion` alone ("a compatibility floor, not release alignment metadata") while rewriting `peerDependencies.openclaw`, `compat.pluginApi`, and `build.openclawVersion`. The derived expectation therefore breaks on every release bump. ## Solution - `test/vitest/vitest.scoped-config.ts`: accept an `execArgv` override. - `test/vitest/vitest.plugins.config.ts`: split the shard into two inline projects (same pattern as `vitest.gateway-server.config.ts`): `plugins` keeps the shared preload (its suites load bundled plugins from source and need tsx's `.js` to `.ts` SDK resolution), and `plugins-native-loader` runs the eight loader-semantics suites (`plugin-module-generation*`, `capability-provider-runtime.generation`, `bundled-plugin-metadata.public-surfaces`, `manifest-registry`, `public-surface-loader`, `plugin-runtime-artifact-resolution`, `stage-bundled-plugin-runtime`) with `execArgv: []`. The root config keeps the complete inventory so planner discovery and `--project` routing are unchanged. - `extensions/facetime/tests/package-manifest.test.ts`: expect the literal `>=2026.9.4` floor for `install.minHostVersion`; the controller-synced fields stay derived from the package version. ## Impact Release-only validation lanes match what the runtime does in production for the loader suites (no tsx hooks in a Gateway process). No product code changes. Regular CI shards are unaffected; only the eight native-loader suites drop the preload. ## Evidence - Baseline, exact job command (`pnpm test -- test/vitest/vitest.plugins.config.ts --`, Node 24.21.0, `OPENCLAW_VITEST_MAX_WORKERS=2`): 13 failed files / 41 failed tests (CI's 12 plus `plugin-graceful-init-failure`), matching FRV run 35760444831 job `checks-node-agentic-plugins` (also red in runs 35743778013 and 35761282770). - Planner/routing owners with the split config: `test/scripts/ci-node-test-plan.test.ts`, `test-projects.test.ts`, `test-projects-routing.test.ts`, `plugin-prerelease-test-plan.test.ts`: 1811/1811 pass. - Fixed, same command and Node: 5 failed files / 10 failed tests, 375 passed files / 6101 passed tests. All eight loader-semantics files are green. Dropping the preload for the whole shard instead (probe run) fixes the same eight files but breaks 11 other files on `Cannot find module '.../src/agents/defaults.js' imported from .../src/plugin-sdk/provider-model-metadata.ts`, which is why the shard is split rather than de-preloaded. - Remaining red files are independent of the preload (identical failures with and without it, and with `providers.runtime-core.ts`, `provider-hook-runtime-core.ts`, `plugin-instance*.ts`, `host-hook-state.ts` reverted to their pre-openclaw#155711/openclaw#155250/openclaw#154625/openclaw#155714 versions): `provider-runtime.test.ts` (6: `resolveProviderPluginsForHooks`/`classifyProviderFailoverSignalWithPlugin` no longer read the `withPluginRuntimeRegistryScope` registry), `native-session-catalog-registration.test.ts` (1: abort surfaces `PluginInstanceUnavailableError` instead of the caller's retirement error), `plugin-instance-invocation.test.ts` (1), `provider-public-artifacts.test.ts` (1: listener count after bundled policy load), `plugin-graceful-init-failure.test.ts` (1: `Maximum call stack size exceeded`, local only). These are product/test contract drift from the plugin runtime refactors and need their owners; they are called out in the landing report. - `extensions/facetime/tests/package-manifest.test.ts`: 2/2 pass at 2026.9.4 and 2/2 pass after a local `pnpm release:prepare -- --version 2026.9.6 --write` (bump reverted, not committed). - `OPENCLAW_TESTBOX=1 pnpm check:changed`: in progress at PR creation; result recorded in the landing report. Co-authored-by: Peter Steinberger <[email protected]>
…dule graphs (openclaw#155925) ## Summary Repairs the four residual red files in the release-only `checks-node-agentic-plugins` lane for 2026.9.6 (after openclaw#155892 split the native-loader project). **Product regression (7 tests in 3 files):** openclaw#153508 turned `PluginRuntimeExecutionFrame` (`src/plugins/runtime/execution-frame.ts`) into a plain class while the plugin execution frame store stayed a process-wide `resolveGlobalSingleton`. Any second module instance of that file (a reloaded test graph, a duplicated chunk) fails the `instanceof` narrowing in `getPluginRuntimeExecutionFrame` and silently drops the Gateway request scope: `withPluginRuntimeRegistryScope` registries stopped reaching `resolveProviderPluginsForHooks` / `classifyProviderFailoverSignalWithPlugin`, and the reload-identity contract in `plugin-instance-invocation.test.ts` (added with the singleton in openclaw#146219) broke. This restores the shared constructor next to the shared store. **Test fixture (1 test):** the `provider-public-artifacts` bundled scenario loads an ESM `provider-policy-api.js` from a fixture package with no module type through the bundled owners' native `require()` path. Under the tsx/esm worker preload the ambiguous file is compiled as CommonJS (`Unexpected token 'export'`), which the test's `finally` assertion masked as a listener-count mismatch. Shipped bundled artifacts (`dist/extensions/*`) are ESM under a `"type": "module"` package, so the fixture now declares that. Files: `src/plugins/provider-runtime.test.ts` (6), `src/plugins/plugin-instance-invocation.test.ts` (1), `src/plugins/native-session-catalog-registration.test.ts` (green in the fixed run), `src/plugins/provider-public-artifacts.test.ts` (1). `plugin-graceful-init-failure.test.ts` ("Maximum call stack size exceeded") reproduces locally with and without the preload and is a host stack-size artifact, not part of the CI residual; unchanged here. ## Validation - Baseline on main tip (Node 24, `scripts/run-vitest.mjs run --config test/vitest/vitest.plugins.config.ts <files>`): 8 failed across the 4 files (plus the local-only stack-limit case). - After the fix: the 4 files pass (`provider-runtime` 6/6, invocation 1/1, catalog 1/1, artifacts 33/33; 148/148 tests). - Full `pnpm test -- test/vitest/vitest.plugins.config.ts --` shard on Node 24, run as four file chunks under the local 10-minute command cap: 105 + 88 + 94 + 91 test files green, 6109 tests passed; the only failure is the host-local `plugin-graceful-init-failure` stack-limit case (fails with and without the preload, not in the CI residual). - `OPENCLAW_TESTBOX=1 pnpm check:changed`: all lanes pass except the dead-export scan, which flags `scripts/lib/tsgo-core-test-shards.mts: TSGO_CORE_TEST_MAX_ROOTS`; that export is untouched by this PR and was already made internal on main by `802e5125157` after this branch's base. - Hosted CI on the exact head `cea3da31abcb`: 143 checks passed, 0 pending. Co-authored-by: Peter Steinberger <[email protected]>
…claw#155960) ## Summary Full Release Validation 35775979903 (CI child 35776854264, candidate `release/2026.9.6` = main `4064209d089c` + locale refresh + openclaw#155892) failed `subagent-registry.persistence.test.ts`, `subagent-spawn.authority.test.ts`, `chat.abort-errors.test.ts` and `chat.abort-incarnation.test.ts` in `settleSubagentRegistryPersistenceWork` with `residual registry roots: tasks:delivery (2|4|6): expected N to be +0`. All were green in the two previous validation runs. Bisected to openclaw#151917 (`63729428338`, move terminal notification writes off the Gateway thread): `subagent-registry.persistence.test.ts` passes 30/30 at `63729428338^` and fails at `63729428338` with the exact CI signature; on current main it fails 5/5 locally. The `tasks:delivery` roots are not leaked: with a 20 s fence the same test passes (3.3 s), i.e. uncaptured deliveries settle 1–2 s after the test body, while the shared helper used `vi.waitFor`'s 1 s default. openclaw#155910 and openclaw#155888 already fixed individual fixtures by capturing deliveries; this widens the shared fence so the remaining callers (persistence, timing, resume, task-replacement, chat.abort-*) stop racing it. Test contract change only; no product change. The related `build-artifacts` failure (`sqlite-sessions-transcripts-flip-proof` rejecting the delete-drain `stopReason`) was fixed on main in parallel by `9b877337ffb`; this branch merged that and carries no change of its own for it. ## Change - `src/agents/subagents/registry/subagent-registry.persistence.test-support.ts`: `vi.waitFor(..., { timeout: 10_000 })` in `settleSubagentRegistryPersistenceWork`. ## Proof - The four affected files green in one local vitest run with the change (`Tests 26 passed`, `Tests 36 passed`). - `oxfmt --check` / `oxlint` clean on the changed file; exact-head hosted gates via `scripts/pr`.
Problem
Full Release Validation run 35760444831 for 2026.9.6 fails two release-only lanes that regular PR CI never runs:
checks-node-agentic-plugins(Plugin Prerelease,test/vitest/vitest.plugins.config.ts): 12 files / 40 tests insrc/plugins/fail with symptoms such asPlugin fixture-speech capabilityCatalogEntry failed: Unexpected token 'export',expected { values: [ undefined, 'javascript' ] } to match object { values: [ 'typescript', ... ] }, andexpected undefined to be 'overloaded', alongside Node warningsFailed to load the ES module: .../capability-catalog.js.extensions shard 8:extensions/facetime/tests/package-manifest.test.tsfails once the release version controller bumps the package to 2026.9.6 (minHostVersionexpected>=2026.9.6, received>=2026.9.4).Root causes
Plugins shard. #153508 added a
--import tsx/esmexecArgvpreload to every Node Vitest fork worker (test/vitest/vitest.shared.config.ts). Thesrc/pluginssuites exercise the plugin loader's own nativerequire()/import()of.ts/.jsfixtures (TS/JS peers, CJS/ESM interop, built capability catalogs, public surfaces). With the tsx hooks installed in the worker, Node's own module semantics under test change: a.tspeer in acommonjspackage requires as an empty namespace, ESM.jscatalogs in fixture packages fall through the CJS path, and loader ownership assertions fail. The shard isRELEASE_ONLY_PLUGIN_SHARDS, so the breakage surfaced only in Full Release Validation. A standalone probe (createRequire(...)("./native.cjs")requiringpeer.ts+peer.js) returns["typescript","javascript"]on plain Node 24 and 26 and[null,"javascript"]with--import scripts/tsx.mjs.FaceTime manifest. #155818 derived every host-contract field from
package.json#version, butscripts/sync-plugin-versions.tsdeliberately leavesopenclaw.install.minHostVersionalone ("a compatibility floor, not release alignment metadata") while rewritingpeerDependencies.openclaw,compat.pluginApi, andbuild.openclawVersion. The derived expectation therefore breaks on every release bump.Solution
test/vitest/vitest.scoped-config.ts: accept anexecArgvoverride.test/vitest/vitest.plugins.config.ts: split the shard into two inline projects (same pattern asvitest.gateway-server.config.ts):pluginskeeps the shared preload (its suites load bundled plugins from source and need tsx's.jsto.tsSDK resolution), andplugins-native-loaderruns the eight loader-semantics suites (plugin-module-generation*,capability-provider-runtime.generation,bundled-plugin-metadata.public-surfaces,manifest-registry,public-surface-loader,plugin-runtime-artifact-resolution,stage-bundled-plugin-runtime) withexecArgv: []. The root config keeps the complete inventory so planner discovery and--projectrouting are unchanged.extensions/facetime/tests/package-manifest.test.ts: expect the literal>=2026.9.4floor forinstall.minHostVersion; the controller-synced fields stay derived from the package version.Impact
Release-only validation lanes match what the runtime does in production for the loader suites (no tsx hooks in a Gateway process). No product code changes. Regular CI shards are unaffected; only the eight native-loader suites drop the preload.
Evidence
pnpm test -- test/vitest/vitest.plugins.config.ts --, Node 24.21.0,OPENCLAW_VITEST_MAX_WORKERS=2): 13 failed files / 41 failed tests (CI's 12 plusplugin-graceful-init-failure), matching FRV run 35760444831 jobchecks-node-agentic-plugins(also red in runs 35743778013 and 35761282770).test/scripts/ci-node-test-plan.test.ts,test-projects.test.ts,test-projects-routing.test.ts,plugin-prerelease-test-plan.test.ts: 1811/1811 pass.Cannot find module '.../src/agents/defaults.js' imported from .../src/plugin-sdk/provider-model-metadata.ts, which is why the shard is split rather than de-preloaded.providers.runtime-core.ts,provider-hook-runtime-core.ts,plugin-instance*.ts,host-hook-state.tsreverted to their pre-improve(plugins): skip activation planning for retained provider owners #155711/fix(models): reduce repeated provider lookup overhead #155250/perf(plugins): reduce callback scope overhead #154625/fix: keep plugin queues bound to their selected session #155714 versions):provider-runtime.test.ts(6:resolveProviderPluginsForHooks/classifyProviderFailoverSignalWithPluginno longer read thewithPluginRuntimeRegistryScoperegistry),native-session-catalog-registration.test.ts(1: abort surfacesPluginInstanceUnavailableErrorinstead of the caller's retirement error),plugin-instance-invocation.test.ts(1),provider-public-artifacts.test.ts(1: listener count after bundled policy load),plugin-graceful-init-failure.test.ts(1:Maximum call stack size exceeded, local only). These are product/test contract drift from the plugin runtime refactors and need their owners; they are called out in the landing report.extensions/facetime/tests/package-manifest.test.ts: 2/2 pass at 2026.9.4 and 2/2 pass after a localpnpm release:prepare -- --version 2026.9.6 --write(bump reverted, not committed).OPENCLAW_TESTBOX=1 pnpm check:changed: in progress at PR creation; result recorded in the landing report.