From bb63087e03b6e52e8db6d932b63aac75a06808a3 Mon Sep 17 00:00:00 2001 From: Prekshi Vyas Date: Thu, 17 Sep 2026 11:21:23 -0700 Subject: [PATCH 001/143] feat(windows): add native installer and agent runtimes Build the Windows ARM64 native installer and runtimes for OpenClaw, Hermes, and Pi. Add packaging, onboarding, migration, diagnostics, recovery, and qualification flows. Harden filesystem, process, browser, credential, and publication boundaries. Co-authored-by: Aaron Erickson Signed-off-by: Prekshi Vyas --- .../workflows/windows-native-installer.yaml | 1902 +++++++++++ bin/nemoclaw.js | 2 + packaging/windows/Bundle.wxs | 127 + packaging/windows/CONPTY-LICENSE.txt | 21 + packaging/windows/License.rtf | 14 + packaging/windows/MXC-LICENSE.txt | 21 + packaging/windows/NATIVE-PREVIEW.txt | 77 + packaging/windows/NemoClaw.Bundle.wixproj | 48 + packaging/windows/NemoClaw.wixproj | 39 + packaging/windows/Product.wxs | 74 + packaging/windows/README.md | 194 ++ packaging/windows/RequiredPayload.props | 92 + packaging/windows/SIGNING.md | 28 + packaging/windows/Theme.wxl | 69 + packaging/windows/agent-support.json | 59 + packaging/windows/app/build-openclaw-app.mts | 403 +++ .../windows/app/materialize-openclaw-build.py | 151 + .../windows/app/openclaw-app-resources.mts | 522 +++ packaging/windows/app/prepare-app-node.ps1 | 85 + .../app/test-compiled-openclaw-gateway.mts | 469 +++ .../test-compiled-openclaw-model-tools.mts | 287 ++ .../windows/app/test-compiled-openclaw.mts | 211 ++ .../app/test-prebuilt-choice-plugins.mts | 292 ++ ...test-windows-configured-plugin-install.mts | 128 + .../app/test-windows-plugin-file-url.mts | 118 + .../windows/app/test-windows-update-owner.mts | 191 ++ .../windows/app/windows-app-build.lock.json | 77 + packaging/windows/assets/NemoClaw.ico | Bin 0 -> 9771 bytes packaging/windows/assets/NemoClawLogo.png | Bin 0 -> 3644 bytes packaging/windows/assets/NemoClawSidebar.png | Bin 0 -> 16929 bytes .../windows/assets/desktop-icons/NemoClaw.ico | Bin 0 -> 9771 bytes .../windows/assets/desktop-icons/README.md | 13 + .../windows/assets/desktop-icons/hermes.ico | Bin 0 -> 8482 bytes .../langchain-deepagents-code.ico | Bin 0 -> 1614 bytes .../windows/assets/desktop-icons/nemocua.ico | Bin 0 -> 3666 bytes .../windows/assets/desktop-icons/openclaw.ico | Bin 0 -> 5942 bytes packaging/windows/assets/desktop-icons/pi.ico | Bin 0 -> 1295 bytes .../bootstrapper/DownstreamOptions.xaml | 43 + .../bootstrapper/DownstreamOptions.xaml.cs | 90 + .../windows/bootstrapper/MainWindow.xaml | 149 + .../windows/bootstrapper/MainWindow.xaml.cs | 592 ++++ .../bootstrapper/NativeDesktopIntegration.cs | 139 + .../bootstrapper/NativeExpressSetup.cs | 127 + .../bootstrapper/NativeHostPreparation.cs | 102 + .../NativeHostPreparationDiagnostics.cs | 124 + .../windows/bootstrapper/NativeMaintenance.cs | 212 ++ .../windows/bootstrapper/NativeOnboarding.cs | 79 + .../NativeProgressPresentation.cs | 186 ++ .../bootstrapper/NativeRemovalOptions.xaml | 17 + .../bootstrapper/NativeRemovalOptions.xaml.cs | 42 + .../bootstrapper/NativeRuntimeAvailability.cs | 83 + .../bootstrapper/NativeSetupConfiguration.cs | 101 + .../bootstrapper/NativeSetupOperations.cs | 180 + .../bootstrapper/NativeSetupOptions.cs | 65 + .../windows/bootstrapper/NativeWebSession.cs | 301 ++ .../bootstrapper/NemoClaw.Bootstrapper.csproj | 44 + .../NemoClawBootstrapperApplication.cs | 580 ++++ packaging/windows/bootstrapper/Program.cs | 58 + packaging/windows/bootstrapper/app.manifest | 15 + .../distribution/build-native-workers.mts | 429 +++ .../windows/distribution/compile-pi-sdks.mts | 204 ++ .../distribution/compile-pi-sdks.test.mts | 124 + .../distribution/native-build-tools.lock.json | 39 + .../distribution/native-tools.lock.json | 11 + .../distribution/prebuilt-runtime.patch | 2288 +++++++++++++ .../distribution/prepare-executable-tools.py | 41 + .../prepare-native-build-tools.py | 81 + .../prepare-native-executable.mts | 124 + .../distribution/prepare-python-bytecode.py | 247 ++ .../distribution/prepare-runtime-source.mts | 161 + .../prepare-selected-node-agent.py | 180 + .../test_prepare_python_bytecode.py | 92 + .../test_prepare_selected_node_agent.py | 102 + packaging/windows/global.json | 8 + .../hermes/PERSONAL-MXC-QUALIFICATION.md | 105 + .../hermes/browser-use-win-arm64.lock.json | 1843 ++++++++++ .../browser-use-win-arm64.requirements.txt | 2226 +++++++++++++ .../windows/hermes/build-official-node.py | 245 ++ .../windows/hermes/build-registry-path.ps1 | 65 + .../hermes/build-renderer-context-helper.ps1 | 163 + .../hermes/build-renderer-wer-observer.ps1 | 192 ++ .../hermes/complete-official-python.ps1 | 303 ++ .../hermes/component-probe-baseline.ps1 | 155 + .../windows/hermes/export-official-runtime.py | 495 +++ .../windows/hermes/nemoclaw_browser_use.py | 89 + .../windows/hermes/nemoclaw_native_windows.py | 493 +++ .../hermes/official-components.lock.json | 66 + .../windows/hermes/official-openssl.lock.json | 78 + .../windows/hermes/official-openssl.test.mts | 139 + .../official-python-build.requirements.txt | 29 + .../windows/hermes/official-python.lock.json | 97 + .../hermes/official-runtime-export.test.mts | 138 + .../hermes/official-runtime-inventory.py | 448 +++ .../windows/hermes/official-runtime.lock.json | 514 +++ .../windows/hermes/parse-chrome-minidump.py | 358 ++ .../hermes/personal-candidate.test.mts | 1806 ++++++++++ .../windows/hermes/personal-workload.test.mts | 135 + packaging/windows/hermes/personal-wpr.mts | 221 ++ .../windows/hermes/personal-wpr.test.mts | 151 + .../hermes/portable-git-arguments-fixture.ps1 | 23 + .../hermes/portable-git-arguments.test.mts | 138 + .../windows/hermes/prefetch-official-npm.mts | 192 ++ .../hermes/prefetch-official-npm.test.mts | 194 ++ .../windows/hermes/prepare-canonical-git.mts | 135 + .../windows/hermes/prepare-native-runtime.py | 819 +++++ .../hermes/prepare-official-bytecode.py | 326 ++ .../hermes/prepare-official-components.ps1 | 343 ++ .../hermes/prepare-official-openssl.py | 431 +++ .../hermes/prepare-official-python.ps1 | 274 ++ .../hermes/prepare-official-runtime.ps1 | 95 + .../hermes/prepare-production-runtime.py | 348 ++ .../hermes/prepare-public-runtime-acl.py | 281 ++ .../hermes/prepare-renderer-postmortem.py | 974 ++++++ .../windows/hermes/prepare-renderer-wer.py | 916 +++++ .../windows/hermes/prepare-reused-runtime.ps1 | 106 + .../hermes/probe-component-workload.mts | 292 ++ .../windows/hermes/probe-components.test.mts | 135 + .../windows/hermes/probe-desktop-absence.py | 305 ++ .../windows/hermes/probe-host-browser.py | 616 ++++ .../hermes/probe-official-components.mts | 373 +++ .../hermes/probe-official-npm-shims.mts | 254 ++ .../hermes/probe-official-npm-shims.ps1 | 51 + .../hermes/probe-official-npm-shims.test.mts | 103 + .../hermes/probe-official-python-adapter.mts | 206 ++ .../hermes/probe-personal-candidate.mts | 2848 ++++++++++++++++ .../hermes/probe-personal-candidate.ps1 | 283 ++ .../windows/hermes/probe-personal-python.py | 2081 ++++++++++++ .../hermes/probe-personal-workload.mts | 467 +++ .../hermes/probe-python-temp-workload.mts | 122 + .../windows/hermes/probe-python-temp.test.mts | 121 + .../hermes/probe-stock-browser-debug.py | 2357 +++++++++++++ .../hermes/provision-official-runtime.py | 1097 ++++++ packaging/windows/hermes/pywinpty-conpty.py | 246 ++ .../windows/hermes/rebuild-pywinpty-conpty.py | 899 +++++ .../windows/hermes/renderer-aedebug-gate.py | 949 ++++++ .../hermes/renderer-aedebug-registry.py | 370 +++ .../hermes/renderer-context-helper.cpp | 264 ++ .../windows/hermes/renderer-wer-observer.cpp | 281 ++ .../windows/hermes/renderer-wer-registry.py | 201 ++ .../windows/hermes/replay-personal-runtime.py | 233 ++ .../hermes/test-native-adapter-paths.py | 424 +++ .../hermes/test-native-browser-inheritance.py | 193 ++ .../hermes/test-official-msvc-tools.ps1 | 51 + .../hermes/test-official-native-dispatch.ps1 | 57 + .../hermes/test-official-python-process.ps1 | 66 + .../hermes/test-official-python-semantics.ps1 | 106 + .../windows/hermes/test-official-python.ps1 | 49 + .../hermes/test-official-registry-path.ps1 | 123 + .../hermes/test-official-runtime-export.ps1 | 70 + .../hermes/test_generated_finder_paths.py | 498 +++ .../hermes/test_official_runtime_build.py | 791 +++++ .../hermes/test_parse_chrome_minidump.py | 310 ++ .../hermes/test_prepare_official_bytecode.py | 107 + .../hermes/test_prepare_production_runtime.py | 226 ++ .../test_prepare_renderer_postmortem.py | 328 ++ .../hermes/test_prepare_renderer_wer.py | 266 ++ .../hermes/test_probe_browser_diagnostics.py | 1247 +++++++ .../windows/hermes/test_probe_host_browser.py | 237 ++ .../hermes/test_probe_stock_browser_debug.py | 1397 ++++++++ .../windows/hermes/test_pywinpty_conpty.py | 235 ++ .../hermes/test_rebuild_pywinpty_conpty.py | 612 ++++ .../hermes/test_renderer_aedebug_gate.py | 390 +++ .../hermes/test_replay_personal_runtime.py | 254 ++ .../hermes/verify-personal-candidate.py | 476 +++ packaging/windows/host-preparation/Cargo.lock | 7 + packaging/windows/host-preparation/Cargo.toml | 19 + .../windows/host-preparation/build-helper.ps1 | 40 + .../windows/host-preparation/diagnostics.rs | 277 ++ packaging/windows/host-preparation/main.rs | 54 + .../windows/host-preparation/metadata_acl.rs | 195 ++ .../host-preparation/metadata_acl_tests.rs | 194 ++ .../host-preparation/test-system-root-mxc.ps1 | 335 ++ .../host-preparation/windows_metadata.rs | 563 ++++ packaging/windows/installer/Cargo.lock | 7 + packaging/windows/installer/Cargo.toml | 22 + .../installer/InstalledConsoleObserver.cs | 176 + .../installer/InstalledStopSnapshot.cs | 149 + .../windows/installer/assemble_runtime.py | 1643 +++++++++ .../installer/assign_runtime_namespace.py | 69 + .../windows/installer/audit-runtime-msi.ps1 | 229 ++ .../windows/installer/author_runtime_msi.py | 222 ++ .../build-burn-diagnostics-fixture.ps1 | 77 + .../build-finished-runtime-image.ps1 | 221 ++ .../installer/build-immutable-package.ps1 | 283 ++ .../windows/installer/build_msi_fixtures.py | 212 ++ .../installer/build_runtime_manifest.py | 181 + .../control-installed-hermes-onboarding.ps1 | 127 + .../control-installed-openclaw-input.test.mts | 87 + .../installer/control-installed-openclaw.ps1 | 155 + .../control-installed-pi-console.ps1 | 86 + .../installer/download-published-preview.ps1 | 131 + .../installer/finalize_agent_python.py | 195 ++ .../installer/finished-hermes-inputs.json | 32 + .../installed-console-observer.test.mts | 180 + .../installer/installed-pi-session.mts | 190 ++ .../installer/installed-pi-session.test.mts | 457 +++ .../materialize-compiled-executable.py | 172 + .../windows/installer/package_runtime.py | 521 +++ .../installer/prepare-finished-hermes.py | 705 ++++ .../installer/prepare-finished-host.py | 258 ++ .../windows/installer/preview-ui-controls.ps1 | 170 + .../installer/qualify-finished-package.mts | 336 ++ .../qualify-finished-package.test.mts | 493 +++ .../installer/qualify-installed-hermes.mts | 1067 ++++++ .../qualify-installed-hermes.test.mts | 350 ++ .../installer/qualify-installed-openclaw.mts | 1020 ++++++ .../qualify-installed-openclaw.test.mts | 477 +++ .../installer/qualify-installed-pi.mts | 535 +++ .../installer/run-installed-acceptance.ps1 | 223 ++ .../run-installed-acceptance.test.mts | 531 +++ .../installer/run-preview-migration.ps1 | 246 ++ .../windows/installer/runtime_manifest.rs | 199 ++ .../windows/installer/runtime_transaction.rs | 391 +++ .../installer/runtime_transaction_tests.rs | 394 +++ .../installer/test-burn-diagnostics.ps1 | 126 + .../installer/test-runtime-msi-process.ps1 | 110 + .../test-runtime-msi-repair-snapshot.ps1 | 46 + .../test-runtime-msi-rollback-snapshot.ps1 | 86 + .../windows/installer/test-runtime-msi.ps1 | 421 +++ .../installer/test_assemble_runtime.py | 1201 +++++++ .../installer/test_author_runtime_msi.py | 210 ++ .../installer/test_build_msi_fixtures.py | 67 + .../installer/test_build_runtime_manifest.py | 115 + .../test_materialize_compiled_executable.py | 103 + .../windows/installer/test_package_runtime.py | 278 ++ .../installer/test_prepare_finished_hermes.py | 490 +++ .../installer/test_prepare_finished_host.py | 77 + .../installer/test_runtime_namespace.py | 38 + .../test_verify_system_drive_proof.py | 705 ++++ .../windows/installer/transaction_main.rs | 330 ++ .../installer/verify-system-drive-proof.py | 489 +++ .../installer/windows_runtime_store.rs | 1075 ++++++ packaging/windows/installer/windows_sha256.rs | 141 + packaging/windows/launcher/Cargo.lock | 7 + packaging/windows/launcher/Cargo.toml | 23 + packaging/windows/launcher/src/edge_trust.rs | 494 +++ .../windows/launcher/src/inference_job.rs | 76 + packaging/windows/launcher/src/main.rs | 833 +++++ .../launcher/src/native_ui_file_owner.rs | 1145 +++++++ .../src/native_ui_file_owner_windows_tests.rs | 458 +++ .../windows/launcher/src/runtime_browser.rs | 216 ++ .../src/runtime_browser_http_fixture.rs | 209 ++ .../windows/launcher/src/runtime_host.rs | 616 ++++ .../src/runtime_host_windows_tests.rs | 647 ++++ .../launcher/src/runtime_inference_owner.rs | 417 +++ .../windows/launcher/src/runtime_lease.rs | 1462 ++++++++ .../src/runtime_lease_windows_tests.rs | 436 +++ .../launcher/src/runtime_service_startup.rs | 128 + .../windows/launcher/src/state_session.rs | 679 ++++ .../src/state_session_windows_tests.rs | 288 ++ packaging/windows/mxc-bash/bash-compat.mts | 1452 ++++++++ .../windows/mxc-bash/bash-compat.test.mts | 892 +++++ .../mxc-bash/build-creation-sentinels.ps1 | 138 + .../windows/mxc-bash/build-msys-compat.ps1 | 109 + .../mxc-bash/build-mxc-token-inspection.ps1 | 108 + .../windows/mxc-bash/build-object-probe.ps1 | 61 + .../windows/mxc-bash/compat-launcher.cpp | 69 + packaging/windows/mxc-bash/compat.def | 2 + packaging/windows/mxc-bash/creation-matrix.h | 126 + .../windows/mxc-bash/creation-sentinel.cpp | 9 + .../mxc-bash/mxc-token-inspection.patch | 2100 ++++++++++++ .../windows/mxc-bash/namespace-compat.cpp | 2239 +++++++++++++ .../windows/mxc-bash/namespace-controls.cpp | 303 ++ packaging/windows/mxc-bash/namespace-path.h | 220 ++ .../windows/mxc-bash/namespace-security.h | 297 ++ packaging/windows/mxc-bash/object-probe.cpp | 705 ++++ .../windows/mxc-bash/prepare-msys-aslr.mts | 389 +++ .../mxc-bash/prepare-msys-aslr.test.mts | 186 ++ .../windows/mxc-bash/process-propagation.cpp | 1124 +++++++ .../windows/mxc-bash/process-propagation.h | 29 + .../windows/mxc-bash/reuse-qualified-proof.py | 92 + .../windows/mxc-bash/run-bash-compat.ps1 | 187 ++ .../windows/mxc-bash/test-owned-runner.ps1 | 41 + packaging/windows/onboarding/ASSET-SOURCES.md | 16 + packaging/windows/onboarding/app.ts | 225 ++ .../windows/onboarding/assets/deepagents.png | Bin 0 -> 1592 bytes .../windows/onboarding/assets/hermes.png | Bin 0 -> 12333 bytes .../windows/onboarding/assets/nemocua.png | Bin 0 -> 3644 bytes .../windows/onboarding/assets/nvidia.svg | 26 + .../windows/onboarding/assets/openclaw.png | Bin 0 -> 5920 bytes packaging/windows/onboarding/assets/pi.svg | 28 + packaging/windows/onboarding/index.html | 329 ++ packaging/windows/onboarding/styles.css | 525 +++ .../windows/openshell-2721-node-ui.patch | 813 +++++ packaging/windows/performance/README.md | 130 + .../windows/performance/acl-snapshot.ps1 | 24 + .../windows/performance/acl-snapshot.test.ps1 | 88 + .../performance/analyze-personal-wpr.ps1 | 162 + .../performance/audit-python-bytecode.py | 131 + .../windows/performance/comparison-plan.mts | 177 + .../performance/comparison-plan.test.mts | 87 + .../performance/compile-cache-experiment.mts | 244 ++ .../compile-cache-experiment.test.mts | 135 + .../windows/performance/measure-command.mts | 172 + .../performance/measurement-tracing.ps1 | 125 + packaging/windows/performance/measurement.mts | 359 ++ .../windows/performance/measurement.test.mts | 214 ++ .../performance/native-output-capture.ps1 | 90 + .../partition-development-assets.mts | 614 ++++ .../partition-development-assets.test.mts | 606 ++++ .../windows/performance/partition-payload.mts | 52 + .../performance/probe-installed-readonly.mts | 572 ++++ .../performance/process-sample-summary.mts | 101 + .../process-sample-summary.test.mts | 67 + .../windows/performance/process-start.ps1 | 20 + .../profile-installed-openclaw.mts | 244 ++ .../windows/performance/profile-replay.mts | 313 ++ .../performance/profile-replay.test.mts | 308 ++ .../performance/profiling-baseline.lock.json | 74 + .../windows/performance/readonly-workload.mts | 123 + .../performance/record-personal-wpr.ps1 | 79 + .../performance/recording-lifecycle.test.mts | 105 + .../performance/relay-measurements.test.mts | 194 ++ .../performance/run-profiling-phase.ps1 | 144 + .../performance/run-windows-measurement.ps1 | 166 + .../performance/test-recording-lifecycle.ps1 | 163 + .../windows/performance/windows-observer.ps1 | 164 + packaging/windows/performance/wpr-trace.ps1 | 192 ++ .../deepagents-code-0.1.55-windows-dacl.patch | 9 + .../python/deepagents-sitecustomize.py | 75 + .../python/deepagents-windows-arm64.lock | 2956 +++++++++++++++++ .../windows/python/hermes-windows-arm64.in | 44 + .../windows/python/hermes-windows-arm64.lock | 1701 ++++++++++ .../langchain-quickjs-0.3.5-no-bsdiff.patch | 16 + ...aph-api-0.14.0.dev3-inmemory-no-grpc.patch | 34 + .../langgraph-api-0.14.0.dev3-python313.patch | 34 + .../windows/python/native-hermes-preflight.py | 230 ++ .../windows/python/tiktoken-0.13.0.Cargo.lock | 255 ++ packaging/windows/runtime/native-assets.mts | 47 + .../runtime/native-broker-relay-protocol.mts | 678 ++++ .../windows/runtime/native-broker-relay.mts | 126 + .../windows/runtime/native-broker-tunnel.mts | 155 + .../runtime/native-configured-inference.mts | 53 + packaging/windows/runtime/native-dispatch.mts | 31 + .../windows/runtime/native-edge-browser.mts | 380 +++ .../runtime/native-edge-browser.test.mts | 127 + .../runtime/native-hermes-dashboard.mts | 24 + .../runtime/native-inference-broker.mts | 113 + .../windows/runtime/native-inference-cli.mts | 125 + .../runtime/native-inference-download.mts | 237 ++ .../runtime/native-inference-guard.mts | 144 + .../windows/runtime/native-inference-host.mts | 331 ++ .../runtime/native-inference-install.mts | 87 + .../runtime/native-inference-manifest.json | 38 + .../runtime/native-inference-manifest.mts | 265 ++ .../runtime/native-inference-unpack.py | 80 + .../windows/runtime/native-inference.mts | 615 ++++ packaging/windows/runtime/native-main.mts | 18 + .../windows/runtime/native-nemocua-relay.mts | 264 ++ packaging/windows/runtime/native-options.mts | 241 ++ .../runtime/native-prebuilt-inference.mts | 127 + .../native-prebuilt-inference.test.mts | 123 + .../windows/runtime/native-remove-data.mts | 64 + .../runtime/native-runtime-browser.mts | 105 + .../runtime/native-runtime-browser.test.mts | 120 + .../runtime/native-runtime-inference.mts | 124 + packaging/windows/runtime/native-runtime.mts | 420 +++ packaging/windows/runtime/native-security.mts | 377 +++ .../runtime/native-session-diagnostics.mts | 314 ++ .../runtime/native-setup-configuration.mts | 371 +++ .../native-setup-configuration.test.mts | 904 +++++ packaging/windows/runtime/native-state.mts | 137 + .../windows/runtime/native-ui-file-owner.mts | 257 ++ .../windows/runtime/native-ui-lifecycle.mts | 178 + packaging/windows/runtime/native-ui-relay.mts | 195 ++ .../windows/runtime/native-ui-tunnel.mts | 268 ++ .../windows/runtime/native-web-session.mts | 309 ++ .../runtime/nemocua/run_with_harness.py | 221 ++ .../run-installed-native-console-agent.mts | 1688 ++++++++++ .../run-installed-native-hermes-ui.mts | 43 + .../runtime/run-installed-native-nemocua.mts | 875 +++++ .../runtime/run-installed-native-pi.mts | 1240 +++++++ .../runtime/run-installed-native-turn.mts | 729 ++++ .../runtime/run-installed-native-web-ui.mts | 1736 ++++++++++ .../availability/Availability.Controls.csproj | 14 + .../windows/tests/availability/Program.cs | 37 + ...ostPreparation.Diagnostics.Controls.csproj | 14 + .../host-preparation-diagnostics/Program.cs | 136 + .../failure-fixture.rs | 22 + .../AclControlPolicyTests.cs | 41 + .../AclControlTransition.cs | 27 + .../tests/host-prerequisites/DirectoryAcl.cs | 152 + .../HandleAcl.Controls.csproj | 11 + .../LargeTreeMeasurement.cs | 136 + .../tests/host-prerequisites/Program.cs | 177 + .../measure-directory-enumeration.ps1 | 180 + .../test-capture-process.ps1 | 34 + .../Maintenance.Wait.Controls.csproj | 15 + .../windows/tests/maintenance-wait/Program.cs | 78 + .../windows/tests/native-progress.test.mts | 121 + .../tests/native-session-timing.test.mts | 459 +++ .../tests/performance/InstalledIdleCounter.cs | 75 + .../tests/performance/installed-idle.mts | 559 ++++ .../tests/performance/installed-idle.test.mts | 316 ++ .../performance/sample-installed-idle.ps1 | 208 ++ .../PrebuiltConfiguration.csproj | 18 + .../tests/prebuilt-configuration/Program.cs | 102 + .../checks/build-windows-native-package.ps1 | 602 ++++ .../check-windows-native-desktop-links.ps1 | 47 + .../control-windows-native-hermes-console.ps1 | 201 ++ ...ontrol-windows-native-hermes-dashboard.mts | 227 ++ .../create-windows-native-proof-video.ps1 | 1047 ++++++ ...prepare-windows-native-package-payload.ps1 | 1025 ++++++ .../qualify-windows-native-tester-reset.ps1 | 201 ++ ...windows-native-installer-qualification.ps1 | 1216 +++++++ ...un-windows-native-interactive-provider.mts | 161 + ...n-windows-native-package-console-proof.ps1 | 112 + ...n-windows-native-package-qualification.ps1 | 2416 ++++++++++++++ scripts/install-windows-native.ps1 | 786 +++++ src/lib/agent/manifest-readers.test.ts | 37 + .../serving/host-local-vllm-selection.test.ts | 11 +- .../hermes/hermes-image-build-probes.test.ts | 14 + .../cli/top-level-error.test.ts | 34 + .../windows-native-agent-result.test.ts | 181 + .../windows-native-broker-relay.test.ts | 394 +++ .../windows-native-gateway-config.test.ts | 162 + .../windows-native-hermes-ready.test.ts | 251 ++ .../windows-native-host-build.test.ts | 117 + .../windows-native-inference-failures.test.ts | 202 ++ .../security/windows-native-inference.test.ts | 654 ++++ .../windows-native-mxc-completion.test.ts | 105 + .../windows-native-openclaw-stop.test.ts | 90 + test/security/windows-native-options.test.ts | 159 + test/security/windows-native-security.test.ts | 313 ++ ...windows-native-session-diagnostics.test.ts | 301 ++ .../windows-native-state-protocol.test.ts | 135 + .../windows-native-turn-result.test.ts | 101 + .../windows-native-ui-file-protocol.test.ts | 109 + .../windows-native-ui-lifecycle.test.ts | 434 +++ test/security/windows-native-ui-relay.test.ts | 214 ++ .../windows-native-agent-result-fixtures.ts | 230 ++ .../windows-native-broker-relay-fixtures.ts | 242 ++ .../windows-native-hermes-ready-fixtures.ts | 207 ++ .../windows-native-openclaw-stop-fixtures.ts | 169 + .../windows-native-turn-result-fixtures.ts | 162 + 435 files changed, 137872 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/windows-native-installer.yaml create mode 100644 packaging/windows/Bundle.wxs create mode 100644 packaging/windows/CONPTY-LICENSE.txt create mode 100644 packaging/windows/License.rtf create mode 100644 packaging/windows/MXC-LICENSE.txt create mode 100644 packaging/windows/NATIVE-PREVIEW.txt create mode 100644 packaging/windows/NemoClaw.Bundle.wixproj create mode 100644 packaging/windows/NemoClaw.wixproj create mode 100644 packaging/windows/Product.wxs create mode 100644 packaging/windows/README.md create mode 100644 packaging/windows/RequiredPayload.props create mode 100644 packaging/windows/SIGNING.md create mode 100644 packaging/windows/Theme.wxl create mode 100644 packaging/windows/agent-support.json create mode 100644 packaging/windows/app/build-openclaw-app.mts create mode 100644 packaging/windows/app/materialize-openclaw-build.py create mode 100644 packaging/windows/app/openclaw-app-resources.mts create mode 100644 packaging/windows/app/prepare-app-node.ps1 create mode 100644 packaging/windows/app/test-compiled-openclaw-gateway.mts create mode 100644 packaging/windows/app/test-compiled-openclaw-model-tools.mts create mode 100644 packaging/windows/app/test-compiled-openclaw.mts create mode 100644 packaging/windows/app/test-prebuilt-choice-plugins.mts create mode 100644 packaging/windows/app/test-windows-configured-plugin-install.mts create mode 100644 packaging/windows/app/test-windows-plugin-file-url.mts create mode 100644 packaging/windows/app/test-windows-update-owner.mts create mode 100644 packaging/windows/app/windows-app-build.lock.json create mode 100644 packaging/windows/assets/NemoClaw.ico create mode 100644 packaging/windows/assets/NemoClawLogo.png create mode 100644 packaging/windows/assets/NemoClawSidebar.png create mode 100644 packaging/windows/assets/desktop-icons/NemoClaw.ico create mode 100644 packaging/windows/assets/desktop-icons/README.md create mode 100644 packaging/windows/assets/desktop-icons/hermes.ico create mode 100644 packaging/windows/assets/desktop-icons/langchain-deepagents-code.ico create mode 100644 packaging/windows/assets/desktop-icons/nemocua.ico create mode 100644 packaging/windows/assets/desktop-icons/openclaw.ico create mode 100644 packaging/windows/assets/desktop-icons/pi.ico create mode 100644 packaging/windows/bootstrapper/DownstreamOptions.xaml create mode 100644 packaging/windows/bootstrapper/DownstreamOptions.xaml.cs create mode 100644 packaging/windows/bootstrapper/MainWindow.xaml create mode 100644 packaging/windows/bootstrapper/MainWindow.xaml.cs create mode 100644 packaging/windows/bootstrapper/NativeDesktopIntegration.cs create mode 100644 packaging/windows/bootstrapper/NativeExpressSetup.cs create mode 100644 packaging/windows/bootstrapper/NativeHostPreparation.cs create mode 100644 packaging/windows/bootstrapper/NativeHostPreparationDiagnostics.cs create mode 100644 packaging/windows/bootstrapper/NativeMaintenance.cs create mode 100644 packaging/windows/bootstrapper/NativeOnboarding.cs create mode 100644 packaging/windows/bootstrapper/NativeProgressPresentation.cs create mode 100644 packaging/windows/bootstrapper/NativeRemovalOptions.xaml create mode 100644 packaging/windows/bootstrapper/NativeRemovalOptions.xaml.cs create mode 100644 packaging/windows/bootstrapper/NativeRuntimeAvailability.cs create mode 100644 packaging/windows/bootstrapper/NativeSetupConfiguration.cs create mode 100644 packaging/windows/bootstrapper/NativeSetupOperations.cs create mode 100644 packaging/windows/bootstrapper/NativeSetupOptions.cs create mode 100644 packaging/windows/bootstrapper/NativeWebSession.cs create mode 100644 packaging/windows/bootstrapper/NemoClaw.Bootstrapper.csproj create mode 100644 packaging/windows/bootstrapper/NemoClawBootstrapperApplication.cs create mode 100644 packaging/windows/bootstrapper/Program.cs create mode 100644 packaging/windows/bootstrapper/app.manifest create mode 100644 packaging/windows/distribution/build-native-workers.mts create mode 100644 packaging/windows/distribution/compile-pi-sdks.mts create mode 100644 packaging/windows/distribution/compile-pi-sdks.test.mts create mode 100644 packaging/windows/distribution/native-build-tools.lock.json create mode 100644 packaging/windows/distribution/native-tools.lock.json create mode 100644 packaging/windows/distribution/prebuilt-runtime.patch create mode 100644 packaging/windows/distribution/prepare-executable-tools.py create mode 100644 packaging/windows/distribution/prepare-native-build-tools.py create mode 100644 packaging/windows/distribution/prepare-native-executable.mts create mode 100644 packaging/windows/distribution/prepare-python-bytecode.py create mode 100644 packaging/windows/distribution/prepare-runtime-source.mts create mode 100644 packaging/windows/distribution/prepare-selected-node-agent.py create mode 100644 packaging/windows/distribution/test_prepare_python_bytecode.py create mode 100644 packaging/windows/distribution/test_prepare_selected_node_agent.py create mode 100644 packaging/windows/global.json create mode 100644 packaging/windows/hermes/PERSONAL-MXC-QUALIFICATION.md create mode 100644 packaging/windows/hermes/browser-use-win-arm64.lock.json create mode 100644 packaging/windows/hermes/browser-use-win-arm64.requirements.txt create mode 100644 packaging/windows/hermes/build-official-node.py create mode 100644 packaging/windows/hermes/build-registry-path.ps1 create mode 100644 packaging/windows/hermes/build-renderer-context-helper.ps1 create mode 100644 packaging/windows/hermes/build-renderer-wer-observer.ps1 create mode 100644 packaging/windows/hermes/complete-official-python.ps1 create mode 100644 packaging/windows/hermes/component-probe-baseline.ps1 create mode 100644 packaging/windows/hermes/export-official-runtime.py create mode 100644 packaging/windows/hermes/nemoclaw_browser_use.py create mode 100644 packaging/windows/hermes/nemoclaw_native_windows.py create mode 100644 packaging/windows/hermes/official-components.lock.json create mode 100644 packaging/windows/hermes/official-openssl.lock.json create mode 100644 packaging/windows/hermes/official-openssl.test.mts create mode 100644 packaging/windows/hermes/official-python-build.requirements.txt create mode 100644 packaging/windows/hermes/official-python.lock.json create mode 100644 packaging/windows/hermes/official-runtime-export.test.mts create mode 100644 packaging/windows/hermes/official-runtime-inventory.py create mode 100644 packaging/windows/hermes/official-runtime.lock.json create mode 100644 packaging/windows/hermes/parse-chrome-minidump.py create mode 100644 packaging/windows/hermes/personal-candidate.test.mts create mode 100644 packaging/windows/hermes/personal-workload.test.mts create mode 100644 packaging/windows/hermes/personal-wpr.mts create mode 100644 packaging/windows/hermes/personal-wpr.test.mts create mode 100644 packaging/windows/hermes/portable-git-arguments-fixture.ps1 create mode 100644 packaging/windows/hermes/portable-git-arguments.test.mts create mode 100644 packaging/windows/hermes/prefetch-official-npm.mts create mode 100644 packaging/windows/hermes/prefetch-official-npm.test.mts create mode 100644 packaging/windows/hermes/prepare-canonical-git.mts create mode 100644 packaging/windows/hermes/prepare-native-runtime.py create mode 100644 packaging/windows/hermes/prepare-official-bytecode.py create mode 100644 packaging/windows/hermes/prepare-official-components.ps1 create mode 100644 packaging/windows/hermes/prepare-official-openssl.py create mode 100644 packaging/windows/hermes/prepare-official-python.ps1 create mode 100644 packaging/windows/hermes/prepare-official-runtime.ps1 create mode 100644 packaging/windows/hermes/prepare-production-runtime.py create mode 100644 packaging/windows/hermes/prepare-public-runtime-acl.py create mode 100644 packaging/windows/hermes/prepare-renderer-postmortem.py create mode 100644 packaging/windows/hermes/prepare-renderer-wer.py create mode 100644 packaging/windows/hermes/prepare-reused-runtime.ps1 create mode 100644 packaging/windows/hermes/probe-component-workload.mts create mode 100644 packaging/windows/hermes/probe-components.test.mts create mode 100644 packaging/windows/hermes/probe-desktop-absence.py create mode 100644 packaging/windows/hermes/probe-host-browser.py create mode 100644 packaging/windows/hermes/probe-official-components.mts create mode 100644 packaging/windows/hermes/probe-official-npm-shims.mts create mode 100644 packaging/windows/hermes/probe-official-npm-shims.ps1 create mode 100644 packaging/windows/hermes/probe-official-npm-shims.test.mts create mode 100644 packaging/windows/hermes/probe-official-python-adapter.mts create mode 100644 packaging/windows/hermes/probe-personal-candidate.mts create mode 100644 packaging/windows/hermes/probe-personal-candidate.ps1 create mode 100644 packaging/windows/hermes/probe-personal-python.py create mode 100644 packaging/windows/hermes/probe-personal-workload.mts create mode 100644 packaging/windows/hermes/probe-python-temp-workload.mts create mode 100644 packaging/windows/hermes/probe-python-temp.test.mts create mode 100644 packaging/windows/hermes/probe-stock-browser-debug.py create mode 100644 packaging/windows/hermes/provision-official-runtime.py create mode 100644 packaging/windows/hermes/pywinpty-conpty.py create mode 100644 packaging/windows/hermes/rebuild-pywinpty-conpty.py create mode 100644 packaging/windows/hermes/renderer-aedebug-gate.py create mode 100644 packaging/windows/hermes/renderer-aedebug-registry.py create mode 100644 packaging/windows/hermes/renderer-context-helper.cpp create mode 100644 packaging/windows/hermes/renderer-wer-observer.cpp create mode 100644 packaging/windows/hermes/renderer-wer-registry.py create mode 100644 packaging/windows/hermes/replay-personal-runtime.py create mode 100644 packaging/windows/hermes/test-native-adapter-paths.py create mode 100644 packaging/windows/hermes/test-native-browser-inheritance.py create mode 100644 packaging/windows/hermes/test-official-msvc-tools.ps1 create mode 100644 packaging/windows/hermes/test-official-native-dispatch.ps1 create mode 100644 packaging/windows/hermes/test-official-python-process.ps1 create mode 100644 packaging/windows/hermes/test-official-python-semantics.ps1 create mode 100644 packaging/windows/hermes/test-official-python.ps1 create mode 100644 packaging/windows/hermes/test-official-registry-path.ps1 create mode 100644 packaging/windows/hermes/test-official-runtime-export.ps1 create mode 100644 packaging/windows/hermes/test_generated_finder_paths.py create mode 100644 packaging/windows/hermes/test_official_runtime_build.py create mode 100644 packaging/windows/hermes/test_parse_chrome_minidump.py create mode 100644 packaging/windows/hermes/test_prepare_official_bytecode.py create mode 100644 packaging/windows/hermes/test_prepare_production_runtime.py create mode 100644 packaging/windows/hermes/test_prepare_renderer_postmortem.py create mode 100644 packaging/windows/hermes/test_prepare_renderer_wer.py create mode 100644 packaging/windows/hermes/test_probe_browser_diagnostics.py create mode 100644 packaging/windows/hermes/test_probe_host_browser.py create mode 100644 packaging/windows/hermes/test_probe_stock_browser_debug.py create mode 100644 packaging/windows/hermes/test_pywinpty_conpty.py create mode 100644 packaging/windows/hermes/test_rebuild_pywinpty_conpty.py create mode 100644 packaging/windows/hermes/test_renderer_aedebug_gate.py create mode 100644 packaging/windows/hermes/test_replay_personal_runtime.py create mode 100644 packaging/windows/hermes/verify-personal-candidate.py create mode 100644 packaging/windows/host-preparation/Cargo.lock create mode 100644 packaging/windows/host-preparation/Cargo.toml create mode 100644 packaging/windows/host-preparation/build-helper.ps1 create mode 100644 packaging/windows/host-preparation/diagnostics.rs create mode 100644 packaging/windows/host-preparation/main.rs create mode 100644 packaging/windows/host-preparation/metadata_acl.rs create mode 100644 packaging/windows/host-preparation/metadata_acl_tests.rs create mode 100644 packaging/windows/host-preparation/test-system-root-mxc.ps1 create mode 100644 packaging/windows/host-preparation/windows_metadata.rs create mode 100644 packaging/windows/installer/Cargo.lock create mode 100644 packaging/windows/installer/Cargo.toml create mode 100644 packaging/windows/installer/InstalledConsoleObserver.cs create mode 100644 packaging/windows/installer/InstalledStopSnapshot.cs create mode 100644 packaging/windows/installer/assemble_runtime.py create mode 100644 packaging/windows/installer/assign_runtime_namespace.py create mode 100644 packaging/windows/installer/audit-runtime-msi.ps1 create mode 100644 packaging/windows/installer/author_runtime_msi.py create mode 100644 packaging/windows/installer/build-burn-diagnostics-fixture.ps1 create mode 100644 packaging/windows/installer/build-finished-runtime-image.ps1 create mode 100644 packaging/windows/installer/build-immutable-package.ps1 create mode 100644 packaging/windows/installer/build_msi_fixtures.py create mode 100644 packaging/windows/installer/build_runtime_manifest.py create mode 100644 packaging/windows/installer/control-installed-hermes-onboarding.ps1 create mode 100644 packaging/windows/installer/control-installed-openclaw-input.test.mts create mode 100644 packaging/windows/installer/control-installed-openclaw.ps1 create mode 100644 packaging/windows/installer/control-installed-pi-console.ps1 create mode 100644 packaging/windows/installer/download-published-preview.ps1 create mode 100644 packaging/windows/installer/finalize_agent_python.py create mode 100644 packaging/windows/installer/finished-hermes-inputs.json create mode 100644 packaging/windows/installer/installed-console-observer.test.mts create mode 100644 packaging/windows/installer/installed-pi-session.mts create mode 100644 packaging/windows/installer/installed-pi-session.test.mts create mode 100644 packaging/windows/installer/materialize-compiled-executable.py create mode 100644 packaging/windows/installer/package_runtime.py create mode 100644 packaging/windows/installer/prepare-finished-hermes.py create mode 100644 packaging/windows/installer/prepare-finished-host.py create mode 100644 packaging/windows/installer/preview-ui-controls.ps1 create mode 100644 packaging/windows/installer/qualify-finished-package.mts create mode 100644 packaging/windows/installer/qualify-finished-package.test.mts create mode 100644 packaging/windows/installer/qualify-installed-hermes.mts create mode 100644 packaging/windows/installer/qualify-installed-hermes.test.mts create mode 100644 packaging/windows/installer/qualify-installed-openclaw.mts create mode 100644 packaging/windows/installer/qualify-installed-openclaw.test.mts create mode 100644 packaging/windows/installer/qualify-installed-pi.mts create mode 100644 packaging/windows/installer/run-installed-acceptance.ps1 create mode 100644 packaging/windows/installer/run-installed-acceptance.test.mts create mode 100644 packaging/windows/installer/run-preview-migration.ps1 create mode 100644 packaging/windows/installer/runtime_manifest.rs create mode 100644 packaging/windows/installer/runtime_transaction.rs create mode 100644 packaging/windows/installer/runtime_transaction_tests.rs create mode 100644 packaging/windows/installer/test-burn-diagnostics.ps1 create mode 100644 packaging/windows/installer/test-runtime-msi-process.ps1 create mode 100644 packaging/windows/installer/test-runtime-msi-repair-snapshot.ps1 create mode 100644 packaging/windows/installer/test-runtime-msi-rollback-snapshot.ps1 create mode 100644 packaging/windows/installer/test-runtime-msi.ps1 create mode 100644 packaging/windows/installer/test_assemble_runtime.py create mode 100644 packaging/windows/installer/test_author_runtime_msi.py create mode 100644 packaging/windows/installer/test_build_msi_fixtures.py create mode 100644 packaging/windows/installer/test_build_runtime_manifest.py create mode 100644 packaging/windows/installer/test_materialize_compiled_executable.py create mode 100644 packaging/windows/installer/test_package_runtime.py create mode 100644 packaging/windows/installer/test_prepare_finished_hermes.py create mode 100644 packaging/windows/installer/test_prepare_finished_host.py create mode 100644 packaging/windows/installer/test_runtime_namespace.py create mode 100644 packaging/windows/installer/test_verify_system_drive_proof.py create mode 100644 packaging/windows/installer/transaction_main.rs create mode 100644 packaging/windows/installer/verify-system-drive-proof.py create mode 100644 packaging/windows/installer/windows_runtime_store.rs create mode 100644 packaging/windows/installer/windows_sha256.rs create mode 100644 packaging/windows/launcher/Cargo.lock create mode 100644 packaging/windows/launcher/Cargo.toml create mode 100644 packaging/windows/launcher/src/edge_trust.rs create mode 100644 packaging/windows/launcher/src/inference_job.rs create mode 100644 packaging/windows/launcher/src/main.rs create mode 100644 packaging/windows/launcher/src/native_ui_file_owner.rs create mode 100644 packaging/windows/launcher/src/native_ui_file_owner_windows_tests.rs create mode 100644 packaging/windows/launcher/src/runtime_browser.rs create mode 100644 packaging/windows/launcher/src/runtime_browser_http_fixture.rs create mode 100644 packaging/windows/launcher/src/runtime_host.rs create mode 100644 packaging/windows/launcher/src/runtime_host_windows_tests.rs create mode 100644 packaging/windows/launcher/src/runtime_inference_owner.rs create mode 100644 packaging/windows/launcher/src/runtime_lease.rs create mode 100644 packaging/windows/launcher/src/runtime_lease_windows_tests.rs create mode 100644 packaging/windows/launcher/src/runtime_service_startup.rs create mode 100644 packaging/windows/launcher/src/state_session.rs create mode 100644 packaging/windows/launcher/src/state_session_windows_tests.rs create mode 100644 packaging/windows/mxc-bash/bash-compat.mts create mode 100644 packaging/windows/mxc-bash/bash-compat.test.mts create mode 100644 packaging/windows/mxc-bash/build-creation-sentinels.ps1 create mode 100644 packaging/windows/mxc-bash/build-msys-compat.ps1 create mode 100644 packaging/windows/mxc-bash/build-mxc-token-inspection.ps1 create mode 100644 packaging/windows/mxc-bash/build-object-probe.ps1 create mode 100644 packaging/windows/mxc-bash/compat-launcher.cpp create mode 100644 packaging/windows/mxc-bash/compat.def create mode 100644 packaging/windows/mxc-bash/creation-matrix.h create mode 100644 packaging/windows/mxc-bash/creation-sentinel.cpp create mode 100644 packaging/windows/mxc-bash/mxc-token-inspection.patch create mode 100644 packaging/windows/mxc-bash/namespace-compat.cpp create mode 100644 packaging/windows/mxc-bash/namespace-controls.cpp create mode 100644 packaging/windows/mxc-bash/namespace-path.h create mode 100644 packaging/windows/mxc-bash/namespace-security.h create mode 100644 packaging/windows/mxc-bash/object-probe.cpp create mode 100644 packaging/windows/mxc-bash/prepare-msys-aslr.mts create mode 100644 packaging/windows/mxc-bash/prepare-msys-aslr.test.mts create mode 100644 packaging/windows/mxc-bash/process-propagation.cpp create mode 100644 packaging/windows/mxc-bash/process-propagation.h create mode 100644 packaging/windows/mxc-bash/reuse-qualified-proof.py create mode 100644 packaging/windows/mxc-bash/run-bash-compat.ps1 create mode 100644 packaging/windows/mxc-bash/test-owned-runner.ps1 create mode 100644 packaging/windows/onboarding/ASSET-SOURCES.md create mode 100644 packaging/windows/onboarding/app.ts create mode 100644 packaging/windows/onboarding/assets/deepagents.png create mode 100644 packaging/windows/onboarding/assets/hermes.png create mode 100644 packaging/windows/onboarding/assets/nemocua.png create mode 100644 packaging/windows/onboarding/assets/nvidia.svg create mode 100644 packaging/windows/onboarding/assets/openclaw.png create mode 100644 packaging/windows/onboarding/assets/pi.svg create mode 100644 packaging/windows/onboarding/index.html create mode 100644 packaging/windows/onboarding/styles.css create mode 100644 packaging/windows/openshell-2721-node-ui.patch create mode 100644 packaging/windows/performance/README.md create mode 100644 packaging/windows/performance/acl-snapshot.ps1 create mode 100644 packaging/windows/performance/acl-snapshot.test.ps1 create mode 100644 packaging/windows/performance/analyze-personal-wpr.ps1 create mode 100644 packaging/windows/performance/audit-python-bytecode.py create mode 100644 packaging/windows/performance/comparison-plan.mts create mode 100644 packaging/windows/performance/comparison-plan.test.mts create mode 100644 packaging/windows/performance/compile-cache-experiment.mts create mode 100644 packaging/windows/performance/compile-cache-experiment.test.mts create mode 100644 packaging/windows/performance/measure-command.mts create mode 100644 packaging/windows/performance/measurement-tracing.ps1 create mode 100644 packaging/windows/performance/measurement.mts create mode 100644 packaging/windows/performance/measurement.test.mts create mode 100644 packaging/windows/performance/native-output-capture.ps1 create mode 100644 packaging/windows/performance/partition-development-assets.mts create mode 100644 packaging/windows/performance/partition-development-assets.test.mts create mode 100644 packaging/windows/performance/partition-payload.mts create mode 100644 packaging/windows/performance/probe-installed-readonly.mts create mode 100644 packaging/windows/performance/process-sample-summary.mts create mode 100644 packaging/windows/performance/process-sample-summary.test.mts create mode 100644 packaging/windows/performance/process-start.ps1 create mode 100644 packaging/windows/performance/profile-installed-openclaw.mts create mode 100644 packaging/windows/performance/profile-replay.mts create mode 100644 packaging/windows/performance/profile-replay.test.mts create mode 100644 packaging/windows/performance/profiling-baseline.lock.json create mode 100644 packaging/windows/performance/readonly-workload.mts create mode 100644 packaging/windows/performance/record-personal-wpr.ps1 create mode 100644 packaging/windows/performance/recording-lifecycle.test.mts create mode 100644 packaging/windows/performance/relay-measurements.test.mts create mode 100644 packaging/windows/performance/run-profiling-phase.ps1 create mode 100644 packaging/windows/performance/run-windows-measurement.ps1 create mode 100644 packaging/windows/performance/test-recording-lifecycle.ps1 create mode 100644 packaging/windows/performance/windows-observer.ps1 create mode 100644 packaging/windows/performance/wpr-trace.ps1 create mode 100644 packaging/windows/python/deepagents-code-0.1.55-windows-dacl.patch create mode 100644 packaging/windows/python/deepagents-sitecustomize.py create mode 100644 packaging/windows/python/deepagents-windows-arm64.lock create mode 100644 packaging/windows/python/hermes-windows-arm64.in create mode 100644 packaging/windows/python/hermes-windows-arm64.lock create mode 100644 packaging/windows/python/langchain-quickjs-0.3.5-no-bsdiff.patch create mode 100644 packaging/windows/python/langgraph-api-0.14.0.dev3-inmemory-no-grpc.patch create mode 100644 packaging/windows/python/langgraph-api-0.14.0.dev3-python313.patch create mode 100644 packaging/windows/python/native-hermes-preflight.py create mode 100644 packaging/windows/python/tiktoken-0.13.0.Cargo.lock create mode 100644 packaging/windows/runtime/native-assets.mts create mode 100644 packaging/windows/runtime/native-broker-relay-protocol.mts create mode 100644 packaging/windows/runtime/native-broker-relay.mts create mode 100644 packaging/windows/runtime/native-broker-tunnel.mts create mode 100644 packaging/windows/runtime/native-configured-inference.mts create mode 100644 packaging/windows/runtime/native-dispatch.mts create mode 100644 packaging/windows/runtime/native-edge-browser.mts create mode 100644 packaging/windows/runtime/native-edge-browser.test.mts create mode 100644 packaging/windows/runtime/native-hermes-dashboard.mts create mode 100644 packaging/windows/runtime/native-inference-broker.mts create mode 100644 packaging/windows/runtime/native-inference-cli.mts create mode 100644 packaging/windows/runtime/native-inference-download.mts create mode 100644 packaging/windows/runtime/native-inference-guard.mts create mode 100644 packaging/windows/runtime/native-inference-host.mts create mode 100644 packaging/windows/runtime/native-inference-install.mts create mode 100644 packaging/windows/runtime/native-inference-manifest.json create mode 100644 packaging/windows/runtime/native-inference-manifest.mts create mode 100644 packaging/windows/runtime/native-inference-unpack.py create mode 100644 packaging/windows/runtime/native-inference.mts create mode 100644 packaging/windows/runtime/native-main.mts create mode 100644 packaging/windows/runtime/native-nemocua-relay.mts create mode 100644 packaging/windows/runtime/native-options.mts create mode 100644 packaging/windows/runtime/native-prebuilt-inference.mts create mode 100644 packaging/windows/runtime/native-prebuilt-inference.test.mts create mode 100644 packaging/windows/runtime/native-remove-data.mts create mode 100644 packaging/windows/runtime/native-runtime-browser.mts create mode 100644 packaging/windows/runtime/native-runtime-browser.test.mts create mode 100644 packaging/windows/runtime/native-runtime-inference.mts create mode 100644 packaging/windows/runtime/native-runtime.mts create mode 100644 packaging/windows/runtime/native-security.mts create mode 100644 packaging/windows/runtime/native-session-diagnostics.mts create mode 100644 packaging/windows/runtime/native-setup-configuration.mts create mode 100644 packaging/windows/runtime/native-setup-configuration.test.mts create mode 100644 packaging/windows/runtime/native-state.mts create mode 100644 packaging/windows/runtime/native-ui-file-owner.mts create mode 100644 packaging/windows/runtime/native-ui-lifecycle.mts create mode 100644 packaging/windows/runtime/native-ui-relay.mts create mode 100644 packaging/windows/runtime/native-ui-tunnel.mts create mode 100644 packaging/windows/runtime/native-web-session.mts create mode 100644 packaging/windows/runtime/nemocua/run_with_harness.py create mode 100644 packaging/windows/runtime/run-installed-native-console-agent.mts create mode 100644 packaging/windows/runtime/run-installed-native-hermes-ui.mts create mode 100644 packaging/windows/runtime/run-installed-native-nemocua.mts create mode 100644 packaging/windows/runtime/run-installed-native-pi.mts create mode 100644 packaging/windows/runtime/run-installed-native-turn.mts create mode 100644 packaging/windows/runtime/run-installed-native-web-ui.mts create mode 100644 packaging/windows/tests/availability/Availability.Controls.csproj create mode 100644 packaging/windows/tests/availability/Program.cs create mode 100644 packaging/windows/tests/host-preparation-diagnostics/HostPreparation.Diagnostics.Controls.csproj create mode 100644 packaging/windows/tests/host-preparation-diagnostics/Program.cs create mode 100644 packaging/windows/tests/host-preparation-diagnostics/failure-fixture.rs create mode 100644 packaging/windows/tests/host-prerequisites/AclControlPolicyTests.cs create mode 100644 packaging/windows/tests/host-prerequisites/AclControlTransition.cs create mode 100644 packaging/windows/tests/host-prerequisites/DirectoryAcl.cs create mode 100644 packaging/windows/tests/host-prerequisites/HandleAcl.Controls.csproj create mode 100644 packaging/windows/tests/host-prerequisites/LargeTreeMeasurement.cs create mode 100644 packaging/windows/tests/host-prerequisites/Program.cs create mode 100644 packaging/windows/tests/host-prerequisites/measure-directory-enumeration.ps1 create mode 100644 packaging/windows/tests/host-prerequisites/test-capture-process.ps1 create mode 100644 packaging/windows/tests/maintenance-wait/Maintenance.Wait.Controls.csproj create mode 100644 packaging/windows/tests/maintenance-wait/Program.cs create mode 100644 packaging/windows/tests/native-progress.test.mts create mode 100644 packaging/windows/tests/native-session-timing.test.mts create mode 100644 packaging/windows/tests/performance/InstalledIdleCounter.cs create mode 100644 packaging/windows/tests/performance/installed-idle.mts create mode 100644 packaging/windows/tests/performance/installed-idle.test.mts create mode 100644 packaging/windows/tests/performance/sample-installed-idle.ps1 create mode 100644 packaging/windows/tests/prebuilt-configuration/PrebuiltConfiguration.csproj create mode 100644 packaging/windows/tests/prebuilt-configuration/Program.cs create mode 100644 scripts/checks/build-windows-native-package.ps1 create mode 100644 scripts/checks/check-windows-native-desktop-links.ps1 create mode 100644 scripts/checks/control-windows-native-hermes-console.ps1 create mode 100644 scripts/checks/control-windows-native-hermes-dashboard.mts create mode 100644 scripts/checks/create-windows-native-proof-video.ps1 create mode 100644 scripts/checks/prepare-windows-native-package-payload.ps1 create mode 100644 scripts/checks/qualify-windows-native-tester-reset.ps1 create mode 100644 scripts/checks/run-windows-native-installer-qualification.ps1 create mode 100644 scripts/checks/run-windows-native-interactive-provider.mts create mode 100644 scripts/checks/run-windows-native-package-console-proof.ps1 create mode 100644 scripts/checks/run-windows-native-package-qualification.ps1 create mode 100644 scripts/install-windows-native.ps1 create mode 100644 test/security/windows-native-agent-result.test.ts create mode 100644 test/security/windows-native-broker-relay.test.ts create mode 100644 test/security/windows-native-gateway-config.test.ts create mode 100644 test/security/windows-native-hermes-ready.test.ts create mode 100644 test/security/windows-native-host-build.test.ts create mode 100644 test/security/windows-native-inference-failures.test.ts create mode 100644 test/security/windows-native-inference.test.ts create mode 100644 test/security/windows-native-mxc-completion.test.ts create mode 100644 test/security/windows-native-openclaw-stop.test.ts create mode 100644 test/security/windows-native-options.test.ts create mode 100644 test/security/windows-native-security.test.ts create mode 100644 test/security/windows-native-session-diagnostics.test.ts create mode 100644 test/security/windows-native-state-protocol.test.ts create mode 100644 test/security/windows-native-turn-result.test.ts create mode 100644 test/security/windows-native-ui-file-protocol.test.ts create mode 100644 test/security/windows-native-ui-lifecycle.test.ts create mode 100644 test/security/windows-native-ui-relay.test.ts create mode 100644 test/support/windows-native-agent-result-fixtures.ts create mode 100644 test/support/windows-native-broker-relay-fixtures.ts create mode 100644 test/support/windows-native-hermes-ready-fixtures.ts create mode 100644 test/support/windows-native-openclaw-stop-fixtures.ts create mode 100644 test/support/windows-native-turn-result-fixtures.ts diff --git a/.github/workflows/windows-native-installer.yaml b/.github/workflows/windows-native-installer.yaml new file mode 100644 index 00000000000..ee052b0aa31 --- /dev/null +++ b/.github/workflows/windows-native-installer.yaml @@ -0,0 +1,1902 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +name: CI / Native Windows Installer Candidate + +# Finished installer publication requires explicit dispatch. +# The pinned legacy payload is used only by isolated diagnostic/profiling lanes. +on: + workflow_dispatch: + inputs: + finished_windows_agent: + description: Include only this agent in the finished installer + required: false + default: openclaw + type: choice + options: + - openclaw + - hermes + - pi + finished_windows_product_version: + description: MSI product version for the finished preview (must be newer than the legacy preview) + required: false + default: "0.1.10" + type: string + finished_windows_validation_scope: + description: Full installed lifecycle with real inference, or startup-only with a local mock model + required: false + default: full-acceptance + type: choice + options: + - full-acceptance + - startup-only + run_windows_native_installer: + description: Build the selected finished native preview installer, then test it + required: false + default: false + type: boolean + windows_native_diagnostic_source_run_id: + description: Replay the fixed built 0.1.3 installer (source run 34555046495; no runtime overlay) + required: false + default: "" + type: string + profile_native_windows: + description: Diagnostic profiling of the exact installed f8 baseline only (no installer publication or comparison) + required: false + default: false + type: boolean + test_native_windows_runtime: + description: Run native ownership and guardian controls with isolated MSI fixtures + required: false + default: false + type: boolean + probe_official_hermes_components: + description: Run the selected official Hermes Windows probe without publishing an installer + required: false + default: false + type: boolean + record_hermes_startup: + description: Record a bounded diagnostic trace during the Personal Hermes probe + required: false + default: false + type: boolean + capture_hermes_renderer_context: + description: Capture bounded renderer context only in the failure debugger diagnostic + required: false + default: false + type: boolean + official_hermes_phase: + description: Official Hermes probe phase (requires the probe input above) + required: false + default: components + type: choice + options: + - components + - python + - runtime + - npm-shims + - export-controls + - edge-host-prerequisite + - personal-candidate + - personal-browser-first + - personal-cold-job + - personal-renderer-wer + - personal-postmortem + - trace-analysis + - bash-compat + - host-prerequisites + - system-drive + - application + +permissions: + actions: read + contents: read + +concurrency: + group: windows-native-installer-${{ github.ref }}${{ inputs.run_windows_native_installer && inputs.windows_native_diagnostic_source_run_id == '' && '-finished-package' || inputs.test_native_windows_runtime && '-runtime-controls' || inputs.profile_native_windows && '-profiling' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'python' && '-hermes-python' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'runtime' && '-hermes-runtime' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'npm-shims' && '-hermes-npm-shims' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'bash-compat' && '-bash-compat' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'personal-browser-first' && '-hermes-personal-browser-first' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'personal-postmortem' && '-hermes-personal-postmortem' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'personal-renderer-wer' && '-hermes-personal-renderer-wer' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'personal-cold-job' && '-hermes-personal-cold-job' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'personal-candidate' && '-hermes-personal-candidate' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'trace-analysis' && '-hermes-trace-analysis' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'export-controls' && '-hermes-export-controls' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'application' && '-compiled-application' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'host-prerequisites' && '-host-prerequisites' || inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'system-drive' && '-system-drive' || inputs.probe_official_hermes_components && '-hermes-components' || inputs.windows_native_diagnostic_source_run_id != '' && '-package-diagnostic' || '' }} + # Finish the in-flight artifact/evidence; keep only the latest queued request. + cancel-in-progress: false + +jobs: + windows-personal-trace-analysis: + name: Recorded Hermes Personal trace analysis (no application execution) + if: ${{ github.event_name == 'workflow_dispatch' && !inputs.run_windows_native_installer && !inputs.profile_native_windows && !inputs.test_native_windows_runtime && inputs.windows_native_diagnostic_source_run_id == '' && inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'trace-analysis' }} + runs-on: windows-11-vs2026-arm + # Fixed recorded input; eight bounded analysis commands plus intake/upload. + timeout-minutes: 25 + steps: + - name: Check out the trace analysis controller + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Verify and analyze the exact recorded 51e3 light trace + shell: pwsh + env: + GH_TOKEN: ${{ github.token }} + run: | + & "$env:GITHUB_WORKSPACE\packaging\windows\performance\analyze-personal-wpr.ps1" ` + -ArtifactDirectory "$env:RUNNER_TEMP\personal-trace-analysis" + - name: Preserve bounded analysis reports and original small trace metadata + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: official-hermes-personal-trace-analysis-${{ github.sha }}-${{ github.run_attempt }} + path: | + ${{ runner.temp }}/personal-trace-analysis/ + !${{ runner.temp }}/personal-trace-analysis/recorded-trace.zip + !${{ runner.temp }}/personal-trace-analysis/input/**/*.etl + if-no-files-found: error + retention-days: 14 + + windows-finished-installer: + name: Finished Windows ${{ inputs.finished_windows_agent || 'openclaw' }} preview installer (ARM64) + needs: + [ + windows-compiled-application, + windows-bash-compatibility, + windows-bash-compatibility-reuse, + ] + if: ${{ always() && github.event_name == 'workflow_dispatch' && inputs.run_windows_native_installer && inputs.windows_native_diagnostic_source_run_id == '' && needs.windows-compiled-application.result == 'success' && (inputs.finished_windows_agent != 'hermes' || needs.windows-bash-compatibility-reuse.result == 'success') }} + runs-on: windows-11-vs2026-arm + timeout-minutes: ${{ inputs.finished_windows_agent == 'hermes' && 180 || 120 }} + outputs: + preview_id: ${{ steps.preview.outputs.artifact-id }} + migration_inputs_id: ${{ steps.migration_inputs.outputs.artifact-id }} + steps: + - name: Check out the finished Windows application source + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + path: candidate + persist-credentials: false + - name: Validate the dedicated finished preview request + shell: pwsh + env: + PRODUCT_VERSION: ${{ inputs.finished_windows_product_version }} + OTHER_COMPONENTS: ${{ inputs.probe_official_hermes_components }} + OTHER_PROFILE: ${{ inputs.profile_native_windows }} + OTHER_RUNTIME: ${{ inputs.test_native_windows_runtime }} + run: | + $parsedVersion = $null + if ($env:PRODUCT_VERSION -cnotmatch '^[0-9]+\.[0-9]+\.[0-9]+$' -or -not [version]::TryParse($env:PRODUCT_VERSION, [ref]$parsedVersion) -or $parsedVersion -le [version]'0.1.4') { + throw 'The finished preview needs an explicit MSI version newer than migration baseline 0.1.4.' + } + if (@($env:OTHER_COMPONENTS, $env:OTHER_PROFILE, $env:OTHER_RUNTIME) -contains 'true') { + throw 'The finished preview requires its own explicit dispatch.' + } + - name: Download the exact same-run compiled OpenClaw unit + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + artifact-ids: ${{ needs.windows-compiled-application.outputs.application_id }} + merge-multiple: true + path: ${{ runner.temp }}/finished-windows/application + - name: Download the exact same-run application executable and workers + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + artifact-ids: ${{ needs.windows-compiled-application.outputs.runtime_id }} + merge-multiple: true + path: ${{ runner.temp }}/finished-windows/runtime + - name: Prepare pinned native Rust + uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 + with: + toolchain: 1.95.0-aarch64-pc-windows-msvc + target: aarch64-pc-windows-msvc + cache: false + rustflags: "" + - name: Prepare pinned native .NET + uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + with: + dotnet-version: 8.0.419 + - name: Prepare build-only Python + uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.1.0 + with: + python-version: 3.13.13 + architecture: arm64 + - name: Check exact helper-proof consumption controls + shell: pwsh + run: | + & python -m unittest discover -s "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer" -p 'test_verify_system_drive_proof.py' -v + if ($LASTEXITCODE -ne 0) { throw 'The helper-proof consumption controls failed.' } + & python -m unittest discover -s "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer" -p 'test_materialize_compiled_executable.py' -v + if ($LASTEXITCODE -ne 0) { throw 'The compiled artifact materialization controls failed.' } + - name: Check out the pinned OpenShell host source + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + repository: NVIDIA/OpenShell + ref: bcd517bbe08cc80860c9be57699390cd32e8445f + path: openshell + persist-credentials: false + - name: Build and test the current OpenShell derivative + working-directory: openshell + shell: pwsh + env: + RUSTUP_TOOLCHAIN: 1.95.0-aarch64-pc-windows-msvc + run: | + $ErrorActionPreference = 'Stop' + $work = "$env:RUNNER_TEMP\finished-windows" + $patch = "$env:GITHUB_WORKSPACE\candidate\packaging\windows\openshell-2721-node-ui.patch" + $revision = (& git rev-parse HEAD).Trim() + if ($LASTEXITCODE -ne 0 -or $revision -cne 'bcd517bbe08cc80860c9be57699390cd32e8445f') { throw 'Unexpected OpenShell source.' } + $status = & git status --porcelain + if ($LASTEXITCODE -ne 0 -or $status) { throw 'The OpenShell checkout is not clean.' } + $patchHash = (Get-FileHash -LiteralPath $patch -Algorithm SHA256).Hash.ToLowerInvariant() + & git apply --check -- $patch + if ($LASTEXITCODE -ne 0) { throw 'The current OpenShell derivative no longer applies exactly.' } + & git apply -- $patch + if ($LASTEXITCODE -ne 0) { throw 'Applying the current OpenShell derivative failed.' } + $sourceDiff = & git diff --binary + if ($LASTEXITCODE -ne 0) { throw 'Cannot record the patched source.' } + $env:CARGO_TARGET_DIR = "$work\openshell-target" + if (Test-Path -LiteralPath $env:CARGO_TARGET_DIR) { throw 'OpenShell must build into a fresh target directory.' } + . .\tasks\scripts\windows-msvc.ps1 build aarch64-pc-windows-msvc -LogDir "$work\openshell-logs" + Assert-NativeTestTarget 'aarch64-pc-windows-msvc' + Invoke-VsCargo -RustTarget 'aarch64-pc-windows-msvc' ` + -CargoArgs 'cargo test --locked --release --target aarch64-pc-windows-msvc -p openshell-driver-mxc --lib -- --test-threads=1' ` + -LogName 'mxc-driver-tests.log' + $afterDiff = & git diff --binary + if ($LASTEXITCODE -ne 0 -or ($sourceDiff -join "`n") -cne ($afterDiff -join "`n") -or ` + (Get-FileHash -LiteralPath $patch -Algorithm SHA256).Hash.ToLowerInvariant() -cne $patchHash) { + throw 'OpenShell source or its derivative patch changed during the build.' + } + $output = "$work\openshell-binaries" + New-Item -ItemType Directory -Path $output -ErrorAction Stop | Out-Null + $files = foreach ($name in @('openshell.exe', 'openshell-gateway.exe')) { + $binary = Join-Path $env:CARGO_TARGET_DIR "aarch64-pc-windows-msvc\release\$name" + $hash = (Get-FileHash -LiteralPath $binary -Algorithm SHA256).Hash.ToLowerInvariant() + $copy = Join-Path $output $name + Copy-Item -LiteralPath $binary -Destination $copy -ErrorAction Stop + if ((Get-FileHash -LiteralPath $copy -Algorithm SHA256).Hash.ToLowerInvariant() -cne $hash) { throw 'OpenShell build copy changed.' } + @{ file = $name; bytes = (Get-Item -LiteralPath $copy).Length; sha256 = $hash } + } + @{ + schemaVersion = 1 + classification = 'ci-built-openshell-host-binaries' + requestedSourceRevision = $env:GITHUB_SHA + openshellRevision = $revision + derivativePatchSha256 = $patchHash + rustToolchain = $env:RUSTUP_TOOLCHAIN + rustTarget = 'aarch64-pc-windows-msvc' + workflowRunId = $env:GITHUB_RUN_ID + workflowRunAttempt = $env:GITHUB_RUN_ATTEMPT + files = @($files) + currentPackageQualification = $false + } | ConvertTo-Json -Depth 5 | Set-Content -LiteralPath "$output\openshell-build.json" -Encoding utf8NoBOM + - name: Prepare native host files without any legacy agent tree + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\finished-windows" + & python "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\prepare-finished-host.py" ` + --source-root "$env:GITHUB_WORKSPACE\candidate" --openshell-binaries "$work\openshell-binaries" ` + --node-root "$work\application\node" --output "$work\host" --cache "$work\downloads" + if ($LASTEXITCODE -ne 0) { throw 'Native host input preparation failed.' } + - name: Build and prove the exact native system-drive prerequisite + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\finished-windows" + $owner = "$env:GITHUB_WORKSPACE\candidate\packaging\windows\host-preparation" + & "$owner\build-helper.ps1" -OutputDirectory "$work\system-drive-helper" + & "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -File "$owner\test-system-root-mxc.ps1" ` + -HelperPath "$work\system-drive-helper\NemoClawHostPreparation.exe" -MxcDirectory "$work\host\mxc" ` + -NodePath "$work\host\bin\node.exe" -ArtifactDirectory "$work\system-drive-proof" + if ($LASTEXITCODE -ne 0) { throw 'The exact helper did not pass actual system-root and contained Node proof.' } + - name: Seal the finished application and selected OpenClaw resources + if: ${{ inputs.finished_windows_agent == 'openclaw' }} + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\finished-windows" + $owner = "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer" + $inputs = @("$work\host\runtime-payload-receipt.json", "$work\application\build\app\openclaw-resource-closure.json", "$work\runtime\workers\build.json", "$work\runtime\executable\build.json") + $identityText = ($inputs | ForEach-Object { (Get-FileHash -LiteralPath $_ -Algorithm SHA256).Hash.ToLowerInvariant() }) -join "`n" + $component = [Convert]::ToHexString([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes($identityText))).ToLowerInvariant() + & python "$owner\assign_runtime_namespace.py" --receipt "$work\namespace.json" --source-revision $env:GITHUB_SHA --component-identity $component + if ($LASTEXITCODE -ne 0) { throw 'Immutable namespace assignment failed.' } + & python "$owner\assemble_runtime.py" --output "$work\assembled" ` + --agent "openclaw=$work\application\build\app" --shared-node "$work\host\bin\node.exe" ` + --node-version 22.23.2 --source-revision $env:GITHUB_SHA --component-identity $component ` + --namespace-receipt "$work\namespace.json" --worker-build "$work\runtime\workers" --executable-build "$work\runtime\executable" + if ($LASTEXITCODE -ne 0) { throw 'The finished runtime could not be sealed.' } + - name: Prepare the locked finished Pi runtime + if: ${{ inputs.finished_windows_agent == 'pi' }} + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\finished-windows" + & python -m unittest discover -s "$env:GITHUB_WORKSPACE\candidate\packaging\windows\distribution" -p test_prepare_selected_node_agent.py + if ($LASTEXITCODE -ne 0) { throw 'Selected-agent preparation regression tests failed.' } + & python "$env:GITHUB_WORKSPACE\candidate\packaging\windows\distribution\prepare-selected-node-agent.py" ` + --agent pi --source-root "$env:GITHUB_WORKSPACE\candidate" ` + --node "$work\application\node\node.exe" ` + --npm-cli "$work\application\node\node_modules\npm\bin\npm-cli.js" ` + --output "$work\pi" --tool-root "$work\application\inputs\tools" + if ($LASTEXITCODE -ne 0) { throw 'The locked Pi runtime could not be prepared.' } + - name: Seal only the finished Pi runtime + if: ${{ inputs.finished_windows_agent == 'pi' }} + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\finished-windows" + $inputs = @("$work\host\runtime-payload-receipt.json", "$work\pi\selected-agent-build.json", "$work\runtime\workers\build.json", "$work\runtime\executable\build.json") + $identityText = ($inputs | ForEach-Object { (Get-FileHash -LiteralPath $_ -Algorithm SHA256).Hash.ToLowerInvariant() }) -join "`n" + $component = [Convert]::ToHexString([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes($identityText))).ToLowerInvariant() + & python "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\assign_runtime_namespace.py" --receipt "$work\namespace.json" --source-revision $env:GITHUB_SHA --component-identity $component + & python "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\assemble_runtime.py" --output "$work\assembled" ` + --agent "pi=$work\pi" --shared-node "$work\host\bin\node.exe" --node-version 22.23.2 ` + --source-revision $env:GITHUB_SHA --component-identity $component --namespace-receipt "$work\namespace.json" ` + --worker-build "$work\runtime\workers" --executable-build "$work\runtime\executable" ` + --target-install-root "$env:ProgramFiles\NVIDIA\NemoClaw" + if ($LASTEXITCODE -ne 0) { throw 'The finished Pi runtime could not be sealed.' } + - name: Download the exact same-run compatibility component and proof + if: ${{ inputs.finished_windows_agent == 'hermes' }} + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + artifact-ids: ${{ needs.windows-bash-compatibility-reuse.outputs.compatibility_id }} + merge-multiple: true + path: ${{ runner.temp }}/finished-windows/native-proof + - name: Verify the explicitly pinned Personal-passing complete Hermes candidate + if: ${{ inputs.finished_windows_agent == 'hermes' }} + shell: pwsh + env: + GH_TOKEN: ${{ github.token }} + run: | + $work = "$env:RUNNER_TEMP\finished-windows" + & python "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\prepare-finished-hermes.py" ` + --output "$work\hermes-input" --native-proof-directory "$work\native-proof\bash-compat-evidence" --source-revision $env:GITHUB_SHA + if ($LASTEXITCODE -ne 0) { throw 'The exact complete Personal-passing Hermes input was not admitted.' } + - name: Seal only Hermes with current-source native compatibility and precompiled workers + if: ${{ inputs.finished_windows_agent == 'hermes' }} + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\finished-windows" + $owner = "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer" + $proof = "$work\native-proof\bash-compat-evidence" + $installedRoot = Join-Path ([Environment]::GetFolderPath([Environment+SpecialFolder]::ProgramFiles)) 'NVIDIA\NemoClaw' + $inputs = @("$work\host\runtime-payload-receipt.json", "$work\hermes-input\intake.json", "$proof\result.json", "$proof\compatibility-build\build-receipt.json", "$proof\mxc-token-inspection-build\mxc-token-inspection-build.json", "$work\runtime\workers\build.json", "$work\runtime\executable\build.json") + $identityText = ($inputs | ForEach-Object { (Get-FileHash -LiteralPath $_ -Algorithm SHA256).Hash.ToLowerInvariant() }) -join "`n" + $component = [Convert]::ToHexString([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes($identityText))).ToLowerInvariant() + & python "$owner\assign_runtime_namespace.py" --receipt "$work\namespace.json" --source-revision $env:GITHUB_SHA --component-identity $component + if ($LASTEXITCODE -ne 0) { throw 'Immutable Hermes namespace assignment failed.' } + $intake = Get-Content -LiteralPath "$work\hermes-input\intake.json" -Raw | ConvertFrom-Json + $candidatePath = "$work\hermes-input\candidate\runtime-candidate.json" + if ((Get-FileHash -LiteralPath $candidatePath -Algorithm SHA256).Hash.ToLowerInvariant() -cne $intake.personalInput.candidateReceiptSha256) { + throw 'The admitted Hermes candidate receipt changed before worker compilation.' + } + $candidate = Get-Content -LiteralPath $candidatePath -Raw | ConvertFrom-Json + $inventoryPath = "$work\hermes-input\candidate\payload-inventory.json" + if ((Get-FileHash -LiteralPath $inventoryPath -Algorithm SHA256).Hash.ToLowerInvariant() -cne $candidate.inventorySha256) { + throw 'The admitted Hermes interpreter inventory changed.' + } + $inventory = Get-Content -LiteralPath $inventoryPath -Raw | ConvertFrom-Json + $pythonRelative = 'hermes-agent/.hermes-runtime/python/cpython-3.11.16-windows-aarch64-none/python.exe' + $pythonRows = @($inventory.files | Where-Object path -CEQ $pythonRelative) + $hermesPython = Join-Path "$work\hermes-input\runtime" $pythonRelative + $pythonFile = Get-Item -LiteralPath $hermesPython -Force + if ($pythonRows.Count -ne 1 -or $pythonFile.PSIsContainer -or $pythonFile.Attributes.HasFlag([IO.FileAttributes]::ReparsePoint) -or + $pythonFile.Length -ne $pythonRows[0].bytes -or (Get-FileHash -LiteralPath $hermesPython -Algorithm SHA256).Hash.ToLowerInvariant() -cne $pythonRows[0].sha256) { + throw 'The shipping Hermes core interpreter differs from its admitted bytes.' + } + $namespace = Get-Content -LiteralPath "$work\namespace.json" -Raw | ConvertFrom-Json + if ([string]$namespace.runtimeId -cnotmatch '^[a-f0-9]{64}$') { throw 'The assigned Hermes worker namespace is invalid.' } + $installedWorkers = Join-Path (Join-Path $installedRoot ('runtimes\'+$namespace.runtimeId)) 'workers' + $pythonWorkers = "$work\runtime\workers\python\hermes" + & $hermesPython -I -S -B "$env:GITHUB_WORKSPACE\candidate\packaging\windows\distribution\prepare-python-bytecode.py" ` + --agent hermes --worker-inputs "$work\runtime\workers\python-build-inputs" --workers-output $pythonWorkers ` + --installed-workers $installedWorkers --report "$pythonWorkers\bytecode.json" + if ($LASTEXITCODE -ne 0) { throw 'The shipping Hermes interpreter could not compile the static workers in CI.' } + & python "$owner\assemble_runtime.py" --output "$work\assembled" ` + --agent "hermes=$work\hermes-input\runtime" --canonical-hermes-receipt "$work\hermes-input\candidate\runtime-candidate.json" ` + --canonical-hermes-personal-proof "$work\hermes-input\personal-feasibility.json" --target-install-root $installedRoot ` + --hermes-executor-directory "$proof\mxc-token-inspection-build" --hermes-compatibility-directory "$proof\compatibility-build" --hermes-compatibility-proof "$proof\result.json" ` + --shared-node "$work\host\bin\node.exe" --node-version 22.23.2 --source-revision $env:GITHUB_SHA --component-identity $component ` + --namespace-receipt "$work\namespace.json" --worker-build "$work\runtime\workers" --executable-build "$work\runtime\executable" + if ($LASTEXITCODE -ne 0) { throw 'The complete Hermes runtime could not be finalized and sealed.' } + - name: Build the selected runtime as one finished application image + if: ${{ inputs.finished_windows_agent == 'hermes' }} + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\finished-windows" + $identity = Get-Content -LiteralPath "$work\assembled\runtime-identity.json" -Raw | ConvertFrom-Json + Remove-Item -LiteralPath "$work\hermes-input\runtime" -Recurse -Force + & "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\build-finished-runtime-image.ps1" ` + -RuntimeRoot "$work\assembled\runtimes\$($identity.runtimeId)" -RuntimeId $identity.runtimeId ` + -OutputImage "$work\runtime-image\$($identity.runtimeId).vhdx" ` + -ReceiptPath "$work\runtime-image\runtime-image.json" + - name: Build the finished WPF, guarded launcher, transactional MSI and Burn preview + shell: pwsh + env: + PRODUCT_VERSION: ${{ inputs.finished_windows_product_version }} + SELECTED_AGENT: ${{ inputs.finished_windows_agent || 'openclaw' }} + run: | + $work = "$env:RUNNER_TEMP\finished-windows" + $tools = "$work\tools" + New-Item -ItemType Directory -Path $tools | Out-Null + [IO.File]::WriteAllText("$work\global.json", '{"sdk":{"version":"8.0.419","rollForward":"disable","allowPrerelease":false}}', [Text.UTF8Encoding]::new($false)) + Push-Location $work + $config = "$tools\NuGet.Config" + [IO.File]::WriteAllText($config, '', [Text.UTF8Encoding]::new($false)) + & dotnet tool install wix --version 5.0.2 --tool-path $tools --configfile $config + if ($LASTEXITCODE -ne 0) { throw 'The pinned WiX tool could not be prepared.' } + $imageArguments = @{} + if ($env:SELECTED_AGENT -ceq 'hermes') { + $identity = Get-Content -LiteralPath "$work\assembled\runtime-identity.json" -Raw | ConvertFrom-Json + $imageArguments = @{ + RuntimeImage = "$work\runtime-image\$($identity.runtimeId).vhdx" + RuntimeImageReceipt = "$work\runtime-image\runtime-image.json" + } + } + & "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\build-immutable-package.ps1" ` + -SourceRoot "$env:GITHUB_WORKSPACE\candidate" -SourceRevision $env:GITHUB_SHA -ProductVersion $env:PRODUCT_VERSION ` + -HostPayloadRoot "$work\host" -RuntimeAssemblyRoot "$work\assembled" -OutputDirectory "$work\package" ` + -PythonPath (Get-Command python.exe -CommandType Application | Select-Object -First 1).Source ` + -DotNetPath (Get-Command dotnet.exe -CommandType Application | Select-Object -First 1).Source -WixPath "$tools\wix.exe" ` + -SystemDrivePrepPath "$work\system-drive-helper\NemoClawHostPreparation.exe" ` + -SystemDriveBuildReceipt "$work\system-drive-helper\build-receipt.json" -SystemDriveProofDirectory "$work\system-drive-proof" @imageArguments + Pop-Location + - name: Publish the downloadable preview before installed acceptance + id: preview + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: finished-windows-preview-${{ github.sha }} + path: | + ${{ runner.temp }}/finished-windows/package/*.exe + ${{ runner.temp }}/finished-windows/package/*.msi + ${{ runner.temp }}/finished-windows/package/*.json + ${{ runner.temp }}/finished-windows/assembled/runtime-identity.json + if-no-files-found: error + - name: Record exact native UI inputs for independent setup regression + shell: pwsh + run: | + $package = "$env:RUNNER_TEMP\finished-windows\package" + $paths = @('build/BootstrapperPayloads.wxs','build/payload/mxc/wxc-host-prep.exe','build/payload/mxc/wxc-exec.exe') + @(Get-ChildItem -LiteralPath "$package\build\bootstrapper" -File | ForEach-Object { 'build/bootstrapper/' + $_.Name }) + $files = @($paths | ForEach-Object { $file = Join-Path $package $_; @{file=$_;bytes=(Get-Item -LiteralPath $file).Length;sha256=(Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant()} }) + [IO.File]::WriteAllText("$package\migration-inputs.json", (@{schemaVersion=1;sourceRevision=$env:GITHUB_SHA;files=$files}|ConvertTo-Json -Depth 5), [Text.UTF8Encoding]::new($false)) + - name: Preserve same-build UI bytes for separate setup regression + id: migration_inputs + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: windows-setup-migration-inputs-${{ github.sha }} + path: | + ${{ runner.temp }}/finished-windows/package/migration-inputs.json + ${{ runner.temp }}/finished-windows/package/build/BootstrapperPayloads.wxs + ${{ runner.temp }}/finished-windows/package/build/bootstrapper/* + ${{ runner.temp }}/finished-windows/package/build/payload/mxc/wxc-host-prep.exe + ${{ runner.temp }}/finished-windows/package/build/payload/mxc/wxc-exec.exe + if-no-files-found: error + - name: Preserve finished build and helper proof evidence + if: ${{ always() }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: finished-windows-preview-evidence-${{ github.sha }} + path: | + ${{ runner.temp }}/finished-windows/host/runtime-payload-receipt.json + ${{ runner.temp }}/finished-windows/assembled/*.json + ${{ runner.temp }}/finished-windows/runtime-image/runtime-image.json + ${{ runner.temp }}/finished-windows/hermes-input/intake.json + ${{ runner.temp }}/finished-windows/hermes-input/personal-feasibility.json + ${{ runner.temp }}/finished-windows/hermes-input/personal-request.json + ${{ runner.temp }}/finished-windows/hermes-input/current-native-proof.json + ${{ runner.temp }}/finished-windows/hermes-input/current-msys-build.json + ${{ runner.temp }}/finished-windows/hermes-input/current-mxc-build.json + ${{ runner.temp }}/finished-windows/hermes-input/candidate/*.json + ${{ runner.temp }}/finished-windows/assembled/diagnostics/ + ${{ runner.temp }}/finished-windows/package/*.json + ${{ runner.temp }}/finished-windows/package/build/*.log + ${{ runner.temp }}/finished-windows/*.log + ${{ runner.temp }}/finished-windows/openshell-binaries/openshell-build.json + ${{ runner.temp }}/finished-windows/openshell-logs/*.log + ${{ runner.temp }}/finished-windows/system-drive-helper/build-receipt.json + ${{ runner.temp }}/finished-windows/system-drive-helper/build.log + ${{ runner.temp }}/finished-windows/system-drive-proof/ + if-no-files-found: warn + retention-days: 14 + + windows-finished-setup-migration: + name: Native setup failure and published-preview migration (ARM64) + needs: [windows-finished-installer, windows-finished-installed-acceptance] + if: ${{ always() && needs.windows-finished-installer.result == 'success' && needs.windows-finished-installed-acceptance.result == 'success' && github.event_name == 'workflow_dispatch' && inputs.run_windows_native_installer && inputs.windows_native_diagnostic_source_run_id == '' && inputs.finished_windows_validation_scope != 'startup-only' }} + runs-on: windows-11-vs2026-arm + timeout-minutes: 35 + steps: + - name: Check out the Windows-owned setup qualification + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + path: candidate + persist-credentials: false + - name: Download the exact same-run product artifact + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + artifact-ids: ${{ needs.windows-finished-installer.outputs.preview_id }} + merge-multiple: true + path: ${{ runner.temp }}/finished-windows + - name: Download its exact native bootstrapper inputs + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + artifact-ids: ${{ needs.windows-finished-installer.outputs.migration_inputs_id }} + merge-multiple: true + path: ${{ runner.temp }}/finished-windows/package + - name: Prepare pinned native fixture compiler + uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 + with: + toolchain: 1.95.0 + target: aarch64-pc-windows-msvc + cache: false + - name: Build actual Burn failure fixture from the same native UI + shell: pwsh + env: + PRODUCT_VERSION: ${{ inputs.finished_windows_product_version }} + run: | + $tools = "$env:RUNNER_TEMP\setup-regression-tools" + dotnet tool install --tool-path $tools wix --version 5.0.2 + if ($LASTEXITCODE -ne 0) { throw 'Pinned WiX installation failed.' } + & "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\build-burn-diagnostics-fixture.ps1" -SourceRoot "$env:GITHUB_WORKSPACE\candidate" -PackageDirectory "$env:RUNNER_TEMP\finished-windows\package" -OutputDirectory "$env:RUNNER_TEMP\finished-windows\diagnostics-fixture" -ProductVersion $env:PRODUCT_VERSION -WixPath "$tools\wix.exe" + - name: Exercise backend-specific native prerequisite selection + shell: pwsh + env: + QUALIFICATION_AGENT: ${{ inputs.finished_windows_agent || 'openclaw' }} + run: | + & "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\test-burn-diagnostics.ps1" -FixtureDirectory "$env:RUNNER_TEMP\finished-windows\diagnostics-fixture" -OutputDirectory "$env:RUNNER_TEMP\finished-windows\burn-diagnostics" -Agent $env:QUALIFICATION_AGENT + - name: Exercise previous EXE migration and native selective reset + shell: pwsh + env: + PRODUCT_VERSION: ${{ inputs.finished_windows_product_version }} + QUALIFICATION_AGENT: ${{ inputs.finished_windows_agent || 'openclaw' }} + run: | + & "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\run-preview-migration.ps1" -WorkDirectory "$env:RUNNER_TEMP\finished-windows" -ProductVersion $env:PRODUCT_VERSION -NewAgent $env:QUALIFICATION_AGENT + - name: Preserve setup and migration evidence + if: ${{ always() }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: windows-setup-migration-${{ github.sha }} + path: | + ${{ runner.temp }}/finished-windows/burn-diagnostics/ + ${{ runner.temp }}/finished-windows/migration/ + !${{ runner.temp }}/finished-windows/migration/**/*.exe + ${{ runner.temp }}/finished-windows/diagnostics-fixture/fixture.json + if-no-files-found: warn + retention-days: 14 + + windows-finished-installed-acceptance: + name: Fresh-runner finished Windows preview acceptance (ARM64) + needs: [windows-finished-installer, windows-compiled-application] + if: ${{ always() && needs.windows-finished-installer.result == 'success' && needs.windows-compiled-application.result == 'success' && github.event_name == 'workflow_dispatch' && inputs.run_windows_native_installer && inputs.windows_native_diagnostic_source_run_id == '' }} + runs-on: windows-11-vs2026-arm + timeout-minutes: 60 + steps: + - name: Check out only the installed acceptance controller + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + path: candidate + persist-credentials: false + - name: Download the exact same-run preview and runtime identity + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + artifact-ids: ${{ needs.windows-finished-installer.outputs.preview_id }} + merge-multiple: true + path: ${{ runner.temp }}/finished-windows + - name: Download trusted CI Node and browser automation resources + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + artifact-ids: ${{ needs.windows-compiled-application.outputs.application_id }} + merge-multiple: true + path: ${{ runner.temp }}/finished-windows/application + - name: Exercise the installed preview, real inference and owned cleanup + if: ${{ inputs.finished_windows_validation_scope != 'startup-only' }} + shell: pwsh + env: + PRODUCT_VERSION: ${{ inputs.finished_windows_product_version }} + SELECTED_AGENT: ${{ inputs.finished_windows_agent || 'openclaw' }} + NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }} + NVIDIA_INFERENCE_API_KEY: ${{ secrets.NVIDIA_INFERENCE_API_KEY }} + run: | + & "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\run-installed-acceptance.ps1" ` + -SourceRoot "$env:GITHUB_WORKSPACE\candidate" -WorkDirectory "$env:RUNNER_TEMP\finished-windows" ` + -ProductVersion $env:PRODUCT_VERSION -ArtifactSourceRevision $env:GITHUB_SHA -Mode current-build -Agent $env:SELECTED_AGENT + - name: Exercise installed startup and cleanup without inference credentials + if: ${{ inputs.finished_windows_validation_scope == 'startup-only' }} + shell: pwsh + env: + PRODUCT_VERSION: ${{ inputs.finished_windows_product_version }} + SELECTED_AGENT: ${{ inputs.finished_windows_agent || 'openclaw' }} + run: | + & "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\run-installed-acceptance.ps1" ` + -SourceRoot "$env:GITHUB_WORKSPACE\candidate" -WorkDirectory "$env:RUNNER_TEMP\finished-windows" ` + -ProductVersion $env:PRODUCT_VERSION -ArtifactSourceRevision $env:GITHUB_SHA -Mode current-build -Agent $env:SELECTED_AGENT -ValidationScope startup-only + - name: Preserve fresh install, application and uninstall evidence + if: ${{ always() }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: finished-windows-installed-evidence-${{ github.sha }} + path: | + ${{ runner.temp }}/finished-windows/installed-smoke/ + ${{ runner.temp }}/finished-windows/installed-acceptance/ + ${{ runner.temp }}/finished-windows/installed-acceptance-warm/ + ${{ runner.temp }}/finished-windows/installed-stage-timings.json + ${{ runner.temp }}/finished-windows/*.log + ${{ runner.temp }}/finished-windows/package/*.json + if-no-files-found: warn + retention-days: 14 + + windows-compiled-application: + name: Compile Windows application units (ARM64) + outputs: + application_id: ${{ steps.finished_application.outputs.artifact-id }} + runtime_id: ${{ steps.finished_runtime.outputs.artifact-id }} + if: ${{ github.event_name == 'workflow_dispatch' && ((inputs.run_windows_native_installer && inputs.windows_native_diagnostic_source_run_id == '') || (inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'application')) }} + runs-on: windows-11-vs2026-arm + timeout-minutes: 30 + steps: + - name: Check out Windows application packaging + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Reject unsupported finished-installer validation scopes + if: ${{ inputs.run_windows_native_installer }} + shell: pwsh + env: + SELECTED_AGENT: ${{ inputs.finished_windows_agent || 'openclaw' }} + VALIDATION_SCOPE: ${{ inputs.finished_windows_validation_scope || 'full-acceptance' }} + run: | + if ($env:SELECTED_AGENT -ceq 'hermes' -and $env:VALIDATION_SCOPE -ceq 'startup-only') { throw 'Hermes requires its existing full-acceptance lane.' } + - name: Prepare the pinned native application compiler + shell: pwsh + run: | + & packaging/windows/app/prepare-app-node.ps1 ` + -LockPath packaging/windows/hermes/official-runtime.lock.json ` + -OutputDirectory "$env:RUNNER_TEMP\compiled-windows-app\node" + - name: Verify installed acceptance controller Windows compatibility + if: ${{ inputs.run_windows_native_installer }} + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\compiled-windows-app" + $output = "$work\controls" + New-Item -ItemType Directory -Path $output -Force | Out-Null + $tests = @( + 'packaging/windows/installer/control-installed-openclaw-input.test.mts', + 'packaging/windows/installer/run-installed-acceptance.test.mts', + 'packaging/windows/installer/qualify-finished-package.test.mts' + ) + & "$work\node\node.exe" --experimental-strip-types --no-warnings --test @tests ` + 1>"$output\installed-acceptance-controller.stdout.log" ` + 2>"$output\installed-acceptance-controller.stderr.log" + if ($LASTEXITCODE -ne 0) { throw 'The Windows installed-acceptance controller controls failed.' } + $files = @($tests | ForEach-Object { + $file = Join-Path $env:GITHUB_WORKSPACE $_ + @{ file = $_; bytes = (Get-Item -LiteralPath $file).Length; sha256 = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() } + }) + [IO.File]::WriteAllText("$output\installed-acceptance-controller.json", (@{ + schemaVersion = 1 + classification = 'same-run-installed-acceptance-controller-controls' + sourceRevision = $env:GITHUB_SHA + nodeSha256 = (Get-FileHash -LiteralPath "$work\node\node.exe" -Algorithm SHA256).Hash.ToLowerInvariant() + passed = $true + files = $files + } | ConvertTo-Json -Depth 5), [Text.UTF8Encoding]::new($false)) + - name: Restore immutable application build inputs + if: ${{ inputs.finished_windows_agent == 'openclaw' }} + shell: pwsh + run: | + python packaging/windows/app/materialize-openclaw-build.py ` + --output "$env:RUNNER_TEMP\compiled-windows-app\inputs" ` + --cache "$env:RUNNER_TEMP\compiled-windows-app\downloads" + if ($LASTEXITCODE -ne 0) { throw 'Application build inputs failed verification.' } + - name: Verify Windows native plugin file URL loading + if: ${{ inputs.finished_windows_agent == 'openclaw' }} + shell: pwsh + run: | + & "$env:RUNNER_TEMP\compiled-windows-app\node\node.exe" ` + --experimental-strip-types packaging/windows/app/test-windows-plugin-file-url.mts ` + --source-root "$env:RUNNER_TEMP\compiled-windows-app\inputs\openclaw" + if ($LASTEXITCODE -ne 0) { throw 'Windows native plugin loading controls failed.' } + & "$env:RUNNER_TEMP\compiled-windows-app\node\node.exe" ` + --experimental-strip-types packaging/windows/app/test-windows-update-owner.mts ` + --source-root "$env:RUNNER_TEMP\compiled-windows-app\inputs\openclaw" + if ($LASTEXITCODE -ne 0) { throw 'Installer-owned update controls failed.' } + & "$env:RUNNER_TEMP\compiled-windows-app\node\node.exe" ` + --experimental-strip-types packaging/windows/app/test-windows-configured-plugin-install.mts ` + --source-root "$env:RUNNER_TEMP\compiled-windows-app\inputs\openclaw" + if ($LASTEXITCODE -ne 0) { throw 'Installer-owned configured-plugin controls failed.' } + - name: Compile the OpenClaw application unit + if: ${{ inputs.finished_windows_agent == 'openclaw' }} + shell: pwsh + run: | + & "$env:RUNNER_TEMP\compiled-windows-app\node\node.exe" ` + --experimental-strip-types --max-old-space-size=8192 ` + packaging/windows/app/build-openclaw-app.mts ` + --source-root "$env:RUNNER_TEMP\compiled-windows-app\inputs\openclaw" ` + --tool-root "$env:RUNNER_TEMP\compiled-windows-app\inputs\tools" ` + --output "$env:RUNNER_TEMP\compiled-windows-app\build" + if ($LASTEXITCODE -ne 0) { throw 'The Windows application compilation failed.' } + - name: Execute the compiled application through its CLI and Worker API + if: ${{ inputs.finished_windows_agent == 'openclaw' }} + shell: pwsh + run: | + & "$env:RUNNER_TEMP\compiled-windows-app\node\node.exe" ` + --experimental-strip-types packaging/windows/app/test-compiled-openclaw.mts ` + --app-root "$env:RUNNER_TEMP\compiled-windows-app\build\app" ` + --output "$env:RUNNER_TEMP\compiled-windows-app\controls" + if ($LASTEXITCODE -ne 0) { throw 'The compiled Windows application controls failed.' } + - name: Exercise compiled provider, tools and all packaged onboarding choices + if: ${{ inputs.finished_windows_agent == 'openclaw' }} + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\compiled-windows-app" + $ciNode = "$work\node\node.exe" + $application = "$work\build\app" + $diagnostics = "$work\build\diagnostics" + $source = "$env:GITHUB_WORKSPACE\packaging\windows\app" + & $ciNode --experimental-strip-types "$source\test-compiled-openclaw-model-tools.mts" ` + --app-root $application --output "$diagnostics\local-model-tools" + if ($LASTEXITCODE -ne 0) { throw 'The compiled local-provider and actual tool execution checks failed.' } + $choices = @('brave', 'discord', 'slack', 'tavily') + $checks = @($choices | ForEach-Object -Parallel { + $ErrorActionPreference = 'Stop' + $choice = $_ + $output = Join-Path $using:diagnostics ('choice-' + $choice) + & $using:ciNode --experimental-strip-types (Join-Path $using:source 'test-prebuilt-choice-plugins.mts') ` + --app-root $using:application --choice $choice --output $output ` + 1>($output + '.controller.stdout.log') 2>($output + '.controller.stderr.log') + [pscustomobject]@{ choice=$choice; exitCode=$LASTEXITCODE } + } -ThrottleLimit 4) + $checks | ConvertTo-Json -Depth 3 | Set-Content -LiteralPath "$diagnostics\configured-choice-results.json" -Encoding utf8 + if ($checks.Count -ne 4 -or @($checks | Where-Object exitCode -NE 0).Count -ne 0) { + throw 'A packaged onboarding choice did not complete its configured gateway checks.' + } + - name: Verify the compiled dashboard and packaged resources in a real browser + if: ${{ inputs.finished_windows_agent == 'openclaw' }} + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\compiled-windows-app" + $browsers = @( + "${env:ProgramFiles(x86)}\Microsoft\Edge\Application\msedge.exe", + "$env:ProgramFiles\Microsoft\Edge\Application\msedge.exe", + "$env:ProgramFiles\Google\Chrome\Application\chrome.exe" + ) + $browser = $browsers | Where-Object { Test-Path -LiteralPath $_ -PathType Leaf } | Select-Object -First 1 + if (-not $browser) { throw 'The Windows runner has no preinstalled browser for dashboard validation.' } + & "$work\node\node.exe" --experimental-strip-types ` + packaging/windows/app/test-compiled-openclaw-gateway.mts ` + --app-root "$work\build\app" --output "$work\gateway-control" ` + --browser-executable $browser + if ($LASTEXITCODE -ne 0) { throw 'The compiled Windows dashboard or resource control failed.' } + - name: Prepare only shared compiler and browser-observer tools for Hermes + if: ${{ inputs.finished_windows_agent != 'openclaw' }} + shell: pwsh + run: | + python packaging/windows/distribution/prepare-native-build-tools.py ` + --output "$env:RUNNER_TEMP\compiled-windows-app\inputs" --cache "$env:RUNNER_TEMP\compiled-windows-app\downloads" + if ($LASTEXITCODE -ne 0) { throw 'The shared runtime compiler tools failed verification.' } + - name: Prepare the pinned executable resource injector + shell: pwsh + run: | + python packaging/windows/distribution/prepare-executable-tools.py ` + --output "$env:RUNNER_TEMP\compiled-windows-app\executable-tools" ` + --cache "$env:RUNNER_TEMP\compiled-windows-app\downloads" + if ($LASTEXITCODE -ne 0) { throw 'Executable build tools failed verification.' } + - name: Compile the native application dispatcher and static workers + shell: pwsh + env: + SELECTED_AGENT: ${{ inputs.finished_windows_agent || 'openclaw' }} + run: | + $work = "$env:RUNNER_TEMP\compiled-windows-app" + if ($env:SELECTED_AGENT -eq 'openclaw') { + New-Item -ItemType Junction -Path "$work\inputs\tools\node_modules\typescript" ` + -Target "$work\inputs\openclaw\node_modules\typescript" | Out-Null + } + New-Item -ItemType Junction -Path "$env:GITHUB_WORKSPACE\node_modules" ` + -Target "$work\inputs\tools\node_modules" | Out-Null + & "$work\node\node.exe" --experimental-strip-types --no-warnings --test packaging/windows/distribution/compile-pi-sdks.test.mts + if ($LASTEXITCODE -ne 0) { throw 'Pi SDK compilation regression tests failed.' } + & "$work\node\node.exe" --experimental-strip-types ` + packaging/windows/distribution/build-native-workers.mts "$work\workers" + if ($LASTEXITCODE -ne 0) { throw 'Static application worker compilation failed.' } + - name: Build and execute the Windows application EXE + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\compiled-windows-app" + & "$work\node\node.exe" --experimental-strip-types ` + packaging/windows/distribution/prepare-native-executable.mts ` + "$work\workers\native-runtime.cjs" ` + "$work\executable-tools\postject\dist\api.js" "$work\executable" + if ($LASTEXITCODE -ne 0) { throw 'The Windows application EXE build or execution failed.' } + - name: Preserve the Windows executable proof + id: finished_runtime + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: native-windows-runtime-executable-${{ github.sha }} + path: | + ${{ runner.temp }}/compiled-windows-app/executable/NemoClaw.Runtime.exe + ${{ runner.temp }}/compiled-windows-app/executable/build.json + ${{ runner.temp }}/compiled-windows-app/executable/execution.json + ${{ runner.temp }}/compiled-windows-app/workers/ + if-no-files-found: error + - name: Preserve compiled application units + id: finished_application + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: compiled-windows-application-${{ github.sha }} + path: | + ${{ runner.temp }}/compiled-windows-app/build/app/ + ${{ runner.temp }}/compiled-windows-app/build/build-receipt.json + ${{ runner.temp }}/compiled-windows-app/node/node.exe + ${{ runner.temp }}/compiled-windows-app/node/LICENSE + ${{ runner.temp }}/compiled-windows-app/node/node-input.json + ${{ runner.temp }}/compiled-windows-app/node/npm.cmd + ${{ runner.temp }}/compiled-windows-app/node/node_modules/npm/ + ${{ runner.temp }}/compiled-windows-app/controls/installed-acceptance-controller.json + ${{ runner.temp }}/compiled-windows-app/inputs/tools/node_modules/playwright-core/ + ${{ runner.temp }}/compiled-windows-app/inputs/tools/node_modules/esbuild/ + ${{ runner.temp }}/compiled-windows-app/inputs/tools/node_modules/@esbuild/win32-arm64/ + ${{ runner.temp }}/compiled-windows-app/inputs/materialization-receipt.json + if-no-files-found: error + include-hidden-files: true + - name: Preserve application build diagnostics + if: ${{ always() }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: compiled-windows-application-diagnostics-${{ github.sha }} + path: | + ${{ runner.temp }}/compiled-windows-app/controls/ + ${{ runner.temp }}/compiled-windows-app/gateway-control/ + ${{ runner.temp }}/compiled-windows-app/workers/build.json + ${{ runner.temp }}/compiled-windows-app/workers/source-adaptation.json + ${{ runner.temp }}/compiled-windows-app/executable/*.json + ${{ runner.temp }}/compiled-windows-app/executable/*.log + ${{ runner.temp }}/compiled-windows-app/executable-tools/tools-input.json + ${{ runner.temp }}/compiled-windows-app/build/diagnostics/ + ${{ runner.temp }}/compiled-windows-app/build/build-receipt.json + ${{ runner.temp }}/compiled-windows-app/build/build-failure.json + ${{ runner.temp }}/compiled-windows-app/inputs/materialization-receipt.json + ${{ runner.temp }}/compiled-windows-app/node/node-input.json + if-no-files-found: error + retention-days: 14 + + windows-system-drive-proof: + name: Native system-drive preparation and MXC proof (ARM64) + if: ${{ github.event_name == 'workflow_dispatch' && !inputs.run_windows_native_installer && inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'system-drive' }} + runs-on: windows-11-vs2026-arm + timeout-minutes: 12 + steps: + - name: Check out the fixed-purpose Windows helper + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Set up pinned native Rust + uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 + with: + toolchain: 1.95.0 + target: aarch64-pc-windows-msvc + cache: false + - name: Prepare only the pinned Node and MXC executables + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\system-drive-inputs" + & packaging/windows/app/prepare-app-node.ps1 ` + -LockPath packaging/windows/hermes/official-runtime.lock.json -OutputDirectory "$work\node" + $archive = "$work\mxc-sdk.tgz" + Invoke-WebRequest 'https://registry.npmjs.org/@microsoft/mxc-sdk/-/mxc-sdk-0.8.0.tgz' -OutFile $archive -TimeoutSec 60 + if ((Get-FileHash $archive -Algorithm SHA256).Hash.ToLowerInvariant() -cne '06bb2399d7e98ab1907acf851e12a4e44748dd467b79d3e53c2f2fbf569da14e') { + throw 'The MXC SDK differs from its immutable archive.' + } + & "$env:SystemRoot\System32\tar.exe" -xzf $archive -C $work package/bin/arm64/wxc-exec.exe package/bin/arm64/wxc-host-prep.exe + if ($LASTEXITCODE -ne 0) { throw 'The two pinned MXC executables could not be extracted.' } + - name: Compile and exercise the native metadata helper + shell: pwsh + run: | + $work = "$env:RUNNER_TEMP\host-preparation-helper" + & packaging/windows/host-preparation/build-helper.ps1 -OutputDirectory $work + & rustup run 1.95.0-aarch64-pc-windows-msvc cargo test --locked --offline ` + --target aarch64-pc-windows-msvc --manifest-path packaging/windows/host-preparation/Cargo.toml ` + --target-dir "$work\rust-target" -- --test-threads=1 2>&1 | Tee-Object -FilePath "$work\native-controls.log" + if ($LASTEXITCODE -ne 0) { throw 'The actual native metadata controls failed.' } + - name: Verify retained preparation errors and Setup diagnostics + shell: pwsh + run: | + & dotnet run --project packaging/windows/tests/host-preparation-diagnostics/HostPreparation.Diagnostics.Controls.csproj -- "$env:RUNNER_TEMP\system-drive-inputs\package\bin\arm64\wxc-exec.exe" + if ($LASTEXITCODE -ne 0) { throw 'The preparation diagnostic controls failed.' } + - name: Verify the actual system root and contained Node access + shell: pwsh + run: | + & "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -File "$env:GITHUB_WORKSPACE\packaging\windows\host-preparation\test-system-root-mxc.ps1" ` + -HelperPath "$env:RUNNER_TEMP\host-preparation-helper\NemoClawHostPreparation.exe" ` + -MxcDirectory "$env:RUNNER_TEMP\system-drive-inputs\package\bin\arm64" ` + -NodePath "$env:RUNNER_TEMP\system-drive-inputs\node\node.exe" ` + -ArtifactDirectory "$env:RUNNER_TEMP\system-root-mxc-proof" + if ($LASTEXITCODE -ne 0) { throw 'The Windows PowerShell 5.1 system-drive proof failed.' } + - name: Set up pinned proof verifier Python + uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.1.0 + with: + python-version: 3.13.13 + architecture: arm64 + - name: Bind the actual proof to the package verifier + shell: pwsh + run: | + & python packaging/windows/installer/verify-system-drive-proof.py ` + --helper "$env:RUNNER_TEMP\host-preparation-helper\NemoClawHostPreparation.exe" ` + --build-receipt "$env:RUNNER_TEMP\host-preparation-helper\build-receipt.json" ` + --proof-directory "$env:RUNNER_TEMP\system-root-mxc-proof" ` + --source-root $env:GITHUB_WORKSPACE --source-revision $env:GITHUB_SHA ` + --node-path "$env:RUNNER_TEMP\system-drive-inputs\node\node.exe" ` + --output "$env:RUNNER_TEMP\system-root-mxc-proof\system-drive-build-gate.json" + if ($LASTEXITCODE -ne 0) { throw 'The package verifier rejected the actual system-drive proof.' } + & python packaging/windows/hermes/test-native-adapter-paths.py -v + if ($LASTEXITCODE -ne 0) { throw 'The native Hermes adapter path controls failed.' } + & python packaging/windows/hermes/test_generated_finder_paths.py -v + if ($LASTEXITCODE -ne 0) { throw 'The generated Hermes finder controls failed.' } + - name: Verify acceptance-controller Windows shell compatibility + shell: pwsh + run: | + & "$env:RUNNER_TEMP\system-drive-inputs\node\node.exe" --experimental-strip-types --no-warnings ` + --test --test-reporter=tap ` + packaging/windows/installer/control-installed-openclaw-input.test.mts ` + packaging/windows/installer/run-installed-acceptance.test.mts + if ($LASTEXITCODE -ne 0) { throw 'The Windows acceptance-controller shell controls failed.' } + - name: Preserve fixed-purpose preparation evidence + if: ${{ always() }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: windows-system-drive-mxc-proof-${{ github.sha }} + path: | + ${{ runner.temp }}/host-preparation-helper/*.json + ${{ runner.temp }}/host-preparation-helper/*.log + ${{ runner.temp }}/host-preparation-helper/NemoClawHostPreparation.exe + ${{ runner.temp }}/system-root-mxc-proof/ + ${{ runner.temp }}/system-drive-inputs/node/node-input.json + if-no-files-found: error + retention-days: 14 + + windows-host-prerequisite-proof: + name: Isolated Windows directory permission proof (ARM64) + if: ${{ github.event_name == 'workflow_dispatch' && !inputs.run_windows_native_installer && inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'host-prerequisites' }} + runs-on: windows-11-vs2026-arm + timeout-minutes: 10 + steps: + - name: Check out the Windows packaging controls + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Build isolated permission controls + id: permission-controls-build + shell: pwsh + run: | + dotnet build packaging/windows/tests/host-prerequisites/HandleAcl.Controls.csproj --configuration Release + if ($LASTEXITCODE -ne 0) { throw 'The isolated permission controls did not build.' } + - name: Measure intended metadata handling and directory enumeration + shell: pwsh + run: | + & "$env:GITHUB_WORKSPACE\packaging\windows\tests\host-prerequisites\test-capture-process.ps1" + & "$env:GITHUB_WORKSPACE\packaging\windows\tests\host-prerequisites\measure-directory-enumeration.ps1" ` + -ArtifactDirectory "$env:RUNNER_TEMP\handle-acl-large" + - name: Exercise permission handling on disposable directories + if: ${{ always() && steps.permission-controls-build.outcome == 'success' }} + shell: pwsh + run: | + dotnet run --project packaging/windows/tests/host-prerequisites/HandleAcl.Controls.csproj ` + --configuration Release --no-build -- "$env:RUNNER_TEMP\handle-acl-proof" + if ($LASTEXITCODE -ne 0) { throw 'The isolated directory permission proof failed.' } + - name: Preserve the permission proof result + if: ${{ always() }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: windows-directory-permission-proof-${{ github.sha }} + path: | + ${{ runner.temp }}/handle-acl-proof/handle-acl-proof.json + ${{ runner.temp }}/handle-acl-large/*.json + ${{ runner.temp }}/handle-acl-large/*.etl + ${{ runner.temp }}/handle-acl-large/*.xml + ${{ runner.temp }}/handle-acl-large/*.txt + ${{ runner.temp }}/handle-acl-large/*.log + ${{ runner.temp }}/handle-acl-large/measurement/*.json + if-no-files-found: error + + windows-native-package-diagnostic: + name: Built 0.1.3 installed replay (Windows ARM64) + if: ${{ github.event_name == 'workflow_dispatch' && inputs.run_windows_native_installer && !inputs.test_native_windows_runtime && !inputs.profile_native_windows && !inputs.probe_official_hermes_components && inputs.windows_native_diagnostic_source_run_id != '' }} + runs-on: windows-11-vs2026-arm + timeout-minutes: 60 + steps: + - name: Check out the current Windows acceptance controller + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + path: candidate + persist-credentials: false + - name: Verify and extract the fixed built 0.1.3 artifacts + shell: pwsh + env: + GH_TOKEN: ${{ github.token }} + SOURCE_RUN_ID: ${{ inputs.windows_native_diagnostic_source_run_id }} + PRODUCT_VERSION: ${{ inputs.finished_windows_product_version }} + run: | + & "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\download-published-preview.ps1" ` + -OutputDirectory "$env:RUNNER_TEMP\finished-windows" -SourceRunId $env:SOURCE_RUN_ID -ProductVersion $env:PRODUCT_VERSION + - name: Replay ordinary installed model, tools, Stop and uninstall + shell: pwsh + env: + NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }} + NVIDIA_INFERENCE_API_KEY: ${{ secrets.NVIDIA_INFERENCE_API_KEY }} + run: | + & "$env:GITHUB_WORKSPACE\candidate\packaging\windows\installer\run-installed-acceptance.ps1" ` + -SourceRoot "$env:GITHUB_WORKSPACE\candidate" -WorkDirectory "$env:RUNNER_TEMP\finished-windows" ` + -ProductVersion '0.1.3' -ArtifactSourceRevision '491a3a3d5e7206d82c741198062b6e2aa98dc72c' -Mode built-0.1.3-replay + - name: Preserve built-preview replay identity, timing and installed diagnostics + if: ${{ always() }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: built013-installed-replay-${{ github.sha }} + path: | + ${{ runner.temp }}/finished-windows/replay-inputs.json + ${{ runner.temp }}/finished-windows/downloads/*.json + ${{ runner.temp }}/finished-windows/downloads/*.stderr.log + ${{ runner.temp }}/finished-windows/installed-smoke/ + ${{ runner.temp }}/finished-windows/installed-acceptance/ + ${{ runner.temp }}/finished-windows/installed-acceptance-warm/ + ${{ runner.temp }}/finished-windows/installed-stage-timings.json + ${{ runner.temp }}/finished-windows/*.log + ${{ runner.temp }}/finished-windows/package/*.json + if-no-files-found: warn + retention-days: 14 + + official-hermes-npm-shims: + name: Official npm12 Windows command discovery (ARM64) + if: ${{ github.event_name == 'workflow_dispatch' && !inputs.run_windows_native_installer && inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'npm-shims' && !inputs.test_native_windows_runtime && !inputs.profile_native_windows }} + runs-on: windows-11-vs2026-arm + timeout-minutes: 10 + steps: + - name: Check out the bounded compiler diagnostic + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Prove original and delimited PATHEXT with the exact official npm shims + shell: pwsh + run: | + & "$env:GITHUB_WORKSPACE\packaging\windows\hermes\probe-official-npm-shims.ps1" ` + -ArtifactDirectory "$env:RUNNER_TEMP\official-hermes-npm-shims" + - name: Retain exact compiler input and Windows command evidence + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: official-hermes-npm-shims-${{ github.sha }}-${{ github.run_attempt }} + path: | + ${{ runner.temp }}/official-hermes-npm-shims/ + !${{ runner.temp }}/official-hermes-npm-shims/tools/ + if-no-files-found: error + retention-days: 14 + + official-hermes-export-controls: + name: Official runtime export path controls (Windows ARM64) + if: ${{ github.event_name == 'workflow_dispatch' && !inputs.run_windows_native_installer && inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'export-controls' && !inputs.test_native_windows_runtime && !inputs.profile_native_windows }} + runs-on: windows-11-vs2026-arm + timeout-minutes: 10 + steps: + - name: Check out the bounded export controls + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Check exact alias paths, outside links and archive integrity + shell: pwsh + run: | + & "$env:GITHUB_WORKSPACE\packaging\windows\hermes\test-official-runtime-export.ps1" ` + -ArtifactDirectory "$env:RUNNER_TEMP\official-hermes-export-controls" + - name: Retain interpreter inputs and export-control evidence + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: official-hermes-export-controls-${{ github.sha }}-${{ github.run_attempt }} + path: | + ${{ runner.temp }}/official-hermes-export-controls/ + !${{ runner.temp }}/official-hermes-export-controls/tools/ + if-no-files-found: error + retention-days: 14 + + official-hermes-edge-host-prerequisite: + name: Native ARM64 Microsoft Edge prerequisite + if: ${{ github.event_name == 'workflow_dispatch' && !inputs.run_windows_native_installer && inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'edge-host-prerequisite' && !inputs.test_native_windows_runtime && !inputs.profile_native_windows }} + runs-on: windows-11-vs2026-arm + timeout-minutes: 10 + permissions: + contents: read + steps: + - name: Check out the Windows Edge prerequisite + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Build the installed native Edge trust owner + uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 + with: + toolchain: 1.95.0-aarch64-pc-windows-msvc + target: aarch64-pc-windows-msvc + cache: false + rustflags: "" + - name: Verify standard signed native ARM64 Microsoft Edge + shell: pwsh + run: | + $output = "$env:RUNNER_TEMP\native-edge-prerequisite" + $null = New-Item -ItemType Directory -Path $output + rustup run 1.95.0-aarch64-pc-windows-msvc cargo rustc --locked --release ` + --target aarch64-pc-windows-msvc --features immutable-runtime ` + --manifest-path "$env:GITHUB_WORKSPACE\packaging\windows\launcher\Cargo.toml" ` + --target-dir "$output\target" -- -C target-feature=+crt-static + if ($LASTEXITCODE -ne 0) { throw 'The native Edge trust owner did not compile.' } + $install = "$output\install" + $null = New-Item -ItemType Directory -Path "$install\bin" + Copy-Item -LiteralPath "$output\target\aarch64-pc-windows-msvc\release\NemoClaw.exe" -Destination "$install\bin\NemoClaw.exe" + $env:NEMOCLAW_NATIVE_INSTALL_ROOT = $install + node --experimental-strip-types --input-type=module -e @' + import assert from "node:assert/strict"; + import { spawnSync } from "node:child_process"; + import fs from "node:fs"; + import path from "node:path"; + import { detectNativeEdge } from "./packaging/windows/runtime/native-edge-browser.mts"; + if (process.platform !== "win32" || process.arch !== "arm64") throw new Error("Expected native Windows ARM64 Node."); + try { + const launcher = path.join(process.env.NEMOCLAW_NATIVE_INSTALL_ROOT, "bin", "NemoClaw.exe"); + const denial = spawnSync(launcher, ["--edge-offline-trust", launcher], { encoding: "utf8", windowsHide: true }); + const denialReceipt = { schemaVersion: 1, classification: "native-edge-unsigned-denial", exitCode: denial.status, stdout: denial.stdout.trim(), stderr: denial.stderr.trim() }; + fs.writeFileSync(path.join(process.env.RUNNER_TEMP, "native-edge-prerequisite", "unsigned-denial.json"), JSON.stringify(denialReceipt, null, 2) + "\n", { flag: "wx" }); + assert.equal(denial.error, undefined); + assert.equal(denial.signal, null); + assert.equal(denial.status, 2); + assert.equal(denial.stdout, ""); + assert.match(denial.stderr, /^Microsoft Edge native identity verification failed \(0x[0-9a-f]{8}\)\.\r?\n$/u); + const generationResult = spawnSync(launcher, ["--edge-process-identity", String(process.pid)], { encoding: "utf8", windowsHide: true }); + assert.equal(generationResult.error, undefined); + assert.equal(generationResult.signal, null); + assert.equal(generationResult.status, 0); + assert.equal(generationResult.stderr, ""); + const generation = JSON.parse(generationResult.stdout); + assert.equal(generation.pid, process.pid); + assert.equal(generation.path.toLowerCase(), process.execPath.toLowerCase()); + assert.match(generation.creationFiletime, /^[0-9]{15,20}$/u); + const identity = await detectNativeEdge(); + fs.writeFileSync(path.join(process.env.RUNNER_TEMP, "native-edge-prerequisite", "edge-identity.json"), JSON.stringify({ ...identity, executed: false }, null, 2) + "\n", { flag: "wx" }); + } catch (error) { + fs.writeFileSync(path.join(process.env.RUNNER_TEMP, "native-edge-prerequisite", "edge-failure.json"), JSON.stringify({ schemaVersion: 1, classificationCategory: "native-edge-prerequisite", message: error instanceof Error ? error.message : "Edge validation failed" }, null, 2) + "\n", { flag: "wx" }); + throw error; + } + '@ + - name: Preserve Microsoft Edge identity evidence + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: native-edge-prerequisite-${{ github.sha }}-${{ github.run_attempt }} + path: ${{ runner.temp }}/native-edge-prerequisite/ + if-no-files-found: error + retention-days: 14 + + windows-bash-compatibility-reuse: + name: Reuse byte-identical canonical Bash qualification + if: ${{ github.event_name == 'workflow_dispatch' && inputs.run_windows_native_installer && inputs.finished_windows_agent == 'hermes' && inputs.windows_native_diagnostic_source_run_id == '' && !inputs.test_native_windows_runtime && !inputs.profile_native_windows }} + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + outputs: + compatibility_id: ${{ steps.compatibility_artifact.outputs.artifact-id }} + steps: + - name: Check out current Bash qualification inputs + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + path: current + persist-credentials: false + - name: Check out the passing baseline inputs + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: 67c9166dcf0523cb5a8e689611d2acdb5aa8574c + path: baseline + persist-credentials: false + - name: Download the immutable passing Bash evidence + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: bash-compatibility-67c9166dcf0523cb5a8e689611d2acdb5aa8574c-1 + github-token: ${{ github.token }} + run-id: 35207682561 + path: baseline-evidence + - name: Require byte-identical producer inputs and rebind receipts + run: | + python current/packaging/windows/mxc-bash/reuse-qualified-proof.py \ + --current current --baseline baseline --evidence baseline-evidence \ + --output reused-evidence --current-source "$GITHUB_SHA" + - name: Preserve same-run exact-input Bash evidence + id: compatibility_artifact + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: reused-bash-compatibility-${{ github.sha }} + path: reused-evidence/ + if-no-files-found: error + retention-days: 7 + + windows-bash-compatibility: + name: Canonical Bash private-namespace prototype (Windows ARM64) + if: ${{ github.event_name == 'workflow_dispatch' && !inputs.run_windows_native_installer && inputs.probe_official_hermes_components && inputs.official_hermes_phase == 'bash-compat' && !inputs.test_native_windows_runtime && !inputs.profile_native_windows }} + outputs: + compatibility_id: ${{ steps.compatibility_artifact.outputs.artifact-id }} + runs-on: windows-11-vs2026-arm + timeout-minutes: 25 + permissions: + contents: read + steps: + - name: Check out the Windows compatibility prototype + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Prepare pinned Rust for the existing metadata helper + uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 + with: + toolchain: 1.95.0 + target: aarch64-pc-windows-msvc + cache: false + - name: Build the existing fixed-purpose system-drive metadata helper + shell: pwsh + run: | + & packaging/windows/host-preparation/build-helper.ps1 -OutputDirectory "$env:RUNNER_TEMP\bash-compat-helper" + - name: Prepare upstream-pinned Rust for MXC token inspection + uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 + with: + toolchain: 1.93.0 + target: aarch64-pc-windows-msvc + cache: false + override: false + - name: Build and test the isolated canonical Bash compatibility prototype + shell: pwsh + run: | + & packaging/windows/mxc-bash/run-bash-compat.ps1 ` + -SourceRoot "$env:GITHUB_WORKSPACE" ` + -ArtifactDirectory "$env:RUNNER_TEMP\bash-compat-evidence" ` + -HelperDirectory "$env:RUNNER_TEMP\bash-compat-helper" + - name: Preserve bounded compatibility evidence + id: compatibility_artifact + if: ${{ always() }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: bash-compatibility-${{ github.sha }}-${{ github.run_attempt }} + path: | + ${{ runner.temp }}/bash-compat-evidence/ + !${{ runner.temp }}/bash-compat-evidence/downloads/ + !${{ runner.temp }}/bash-compat-evidence/build/ + !${{ runner.temp }}/bash-compat-evidence/compatibility-build/build/ + !${{ runner.temp }}/bash-compat-evidence/mxc-token-inspection-build/build/ + !${{ runner.temp }}/bash-compat-evidence/node/node.exe + !${{ runner.temp }}/bash-compat-evidence/node/*.zip + ${{ runner.temp }}/bash-compat-helper/build-receipt.json + ${{ runner.temp }}/bash-compat-helper/build.log + if-no-files-found: error + retention-days: 7 + + official-hermes-personal-candidate: + name: Canonical Hermes candidate Personal MXC feasibility (Windows ARM64) + if: ${{ github.event_name == 'workflow_dispatch' && !inputs.run_windows_native_installer && inputs.probe_official_hermes_components && (inputs.official_hermes_phase == 'personal-browser-first' || inputs.official_hermes_phase == 'personal-candidate' || inputs.official_hermes_phase == 'personal-cold-job' || inputs.official_hermes_phase == 'personal-renderer-wer' || inputs.official_hermes_phase == 'personal-postmortem') && !inputs.test_native_windows_runtime && !inputs.profile_native_windows }} + runs-on: windows-11-vs2026-arm + # Replays complete immutable candidate bytes with a separately proved native component. + # The contained component/startup deadlines remain unchanged. + timeout-minutes: 60 + permissions: + contents: read + actions: read + steps: + - name: Check out the Windows feasibility controller + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Prepare pinned native Rust for the admitted metadata helper + uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 + with: + toolchain: 1.95.0 + target: aarch64-pc-windows-msvc + cache: false + - name: Verify pinned interpreters and archive admission controls + shell: pwsh + run: | + $bootstrap = "$env:RUNNER_TEMP\personal-bootstrap" + & packaging/windows/hermes/test-official-runtime-export.ps1 -ArtifactDirectory $bootstrap + $record = Get-Content -LiteralPath "$bootstrap\export-controls.json" -Raw | ConvertFrom-Json + $env:NEMOCLAW_TEST_PYTHON = $record.pythonPath + $env:NEMOCLAW_PERSONAL_CONTROL_EVIDENCE = "$env:RUNNER_TEMP\personal-controls" + $null = New-Item -ItemType Directory -Path $env:NEMOCLAW_PERSONAL_CONTROL_EVIDENCE + & "$bootstrap\tools\node\node-v22.23.2-win-arm64\node.exe" --experimental-strip-types --no-warnings --test packaging/windows/hermes/personal-candidate.test.mts + if ($LASTEXITCODE -ne 0) { throw 'The candidate admission/Personal controls failed.' } + - name: Build the fixed-purpose system-drive metadata helper + shell: pwsh + run: | + & packaging/windows/host-preparation/build-helper.ps1 -OutputDirectory "$env:RUNNER_TEMP\personal-helper" + - name: Replay the complete candidate and test canonical Personal components + shell: pwsh + env: + GH_TOKEN: ${{ github.token }} + run: | + & packaging/windows/hermes/probe-personal-candidate.ps1 ` + -ArtifactDirectory "$env:RUNNER_TEMP\official-hermes-personal" ` + -BootstrapDirectory "$env:RUNNER_TEMP\personal-bootstrap" ` + -HelperDirectory "$env:RUNNER_TEMP\personal-helper" ` + -RecordStartup:("${{ inputs.record_hermes_startup }}" -ceq 'true') ` + -CaptureRendererContext:("${{ inputs.capture_hermes_renderer_context }}" -ceq 'true') ` + -ColdJobProbe:("${{ inputs.official_hermes_phase }}" -ceq 'personal-cold-job') ` + -RendererWer:("${{ inputs.official_hermes_phase }}" -ceq 'personal-renderer-wer') ` + -RendererPostmortem:("${{ inputs.official_hermes_phase }}" -ceq 'personal-postmortem') ` + -BrowserFirst:("${{ inputs.official_hermes_phase }}" -ceq 'personal-browser-first') + - name: Preserve small exact-candidate feasibility evidence + if: ${{ always() }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: official-hermes-personal-feasibility-${{ github.sha }}-${{ github.run_attempt }} + path: | + ${{ runner.temp }}/official-hermes-personal/ + !${{ runner.temp }}/official-hermes-personal/downloads/ + !${{ runner.temp }}/official-hermes-personal/primary-wpr/ + !${{ runner.temp }}/official-hermes-personal/official-hermes-runtime-build/pywinpty/tools/ + !${{ runner.temp }}/official-hermes-personal/official-hermes-runtime-build/pywinpty/downloads/ + !${{ runner.temp }}/official-hermes-personal/official-hermes-runtime-build/pywinpty/source/ + !${{ runner.temp }}/official-hermes-personal/official-hermes-runtime-build/pywinpty/cargo-home/ + !${{ runner.temp }}/official-hermes-personal/official-hermes-runtime-build/pywinpty/build-env/ + !${{ runner.temp }}/official-hermes-personal/official-hermes-runtime-build/pywinpty/target/ + !${{ runner.temp }}/official-hermes-personal/official-hermes-runtime-build/pywinpty/uv-cache/ + !${{ runner.temp }}/official-hermes-personal/official-hermes-runtime-build/pywinpty/npm-cache/ + !${{ runner.temp }}/official-hermes-personal/official-hermes-runtime-candidate/*.tar.gz + !${{ runner.temp }}/official-hermes-personal/official-hermes-runtime-candidate/*.tar.gz.partial + ${{ runner.temp }}/personal-bootstrap/export-controls.json + ${{ runner.temp }}/personal-bootstrap/results/ + ${{ runner.temp }}/personal-controls/ + ${{ runner.temp }}/personal-helper/build-receipt.json + ${{ runner.temp }}/personal-helper/build.log + if-no-files-found: error + retention-days: 7 + + - name: Retain bounded ordinary Personal WPR evidence + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: official-hermes-personal-trace-${{ github.sha }}-${{ github.run_attempt }} + path: ${{ runner.temp }}/official-hermes-personal/primary-wpr/ + if-no-files-found: warn + retention-days: 14 + + official-hermes-components: + name: Official Hermes ${{ inputs.official_hermes_phase || 'components' }} probe (Windows ARM64) + if: ${{ github.event_name == 'workflow_dispatch' && !inputs.run_windows_native_installer && inputs.probe_official_hermes_components && inputs.official_hermes_phase != 'host-prerequisites' && inputs.official_hermes_phase != 'application' && inputs.official_hermes_phase != 'system-drive' && inputs.official_hermes_phase != 'npm-shims' && inputs.official_hermes_phase != 'export-controls' && inputs.official_hermes_phase != 'edge-host-prerequisite' && inputs.official_hermes_phase != 'personal-browser-first' && inputs.official_hermes_phase != 'personal-candidate' && inputs.official_hermes_phase != 'personal-cold-job' && inputs.official_hermes_phase != 'personal-renderer-wer' && inputs.official_hermes_phase != 'personal-postmortem' && inputs.official_hermes_phase != 'trace-analysis' && inputs.official_hermes_phase != 'bash-compat' && !inputs.test_native_windows_runtime && !inputs.profile_native_windows }} + runs-on: windows-11-vs2026-arm + timeout-minutes: ${{ inputs.official_hermes_phase == 'runtime' && 180 || 90 }} + steps: + - name: Check out the component probe + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Provision pinned official Hermes components + id: hermes-components + shell: powershell + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $runtimeRoot = "$env:SystemDrive\NemoClawHermesProbe-$([guid]::NewGuid().ToString('N').Substring(0, 12))" + "runtime_root=$runtimeRoot" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append + & "$env:GITHUB_WORKSPACE\packaging\windows\hermes\prepare-official-components.ps1" ` + -RuntimeRoot $runtimeRoot ` + -ArtifactDirectory "$env:RUNNER_TEMP\official-hermes-components" + + - name: Check the canonical Python phase result contract + if: ${{ (inputs.official_hermes_phase == 'python' || inputs.official_hermes_phase == 'runtime') }} + shell: powershell + env: + HERMES_COMPONENT_ROOT: ${{ steps.hermes-components.outputs.runtime_root }} + run: | + & "$env:GITHUB_WORKSPACE\packaging\windows\hermes\test-official-python.ps1" + & "$env:GITHUB_WORKSPACE\packaging\windows\hermes\test-official-python-process.ps1" + & "$env:GITHUB_WORKSPACE\packaging\windows\hermes\test-official-msvc-tools.ps1" + & "$env:GITHUB_WORKSPACE\packaging\windows\hermes\test-official-python-semantics.ps1" ` + -OfficialInstallerPath "$env:HERMES_COMPONENT_ROOT\hermes-agent\scripts\install.ps1" + & "$env:GITHUB_WORKSPACE\packaging\windows\hermes\test-official-registry-path.ps1" ` + -OfficialInstallerPath "$env:HERMES_COMPONENT_ROOT\hermes-agent\scripts\install.ps1" ` + -ReceiptPath "$env:RUNNER_TEMP\official-hermes-components\python-registry-path-controls.json" + + - name: Set up pinned native Rust for canonical Hermes Python + if: ${{ (inputs.official_hermes_phase == 'python' || inputs.official_hermes_phase == 'runtime') }} + uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 + with: + toolchain: 1.95.0-aarch64-pc-windows-msvc + target: aarch64-pc-windows-msvc + cache: false + rustflags: "" + + - name: Provision canonical Hermes Python before baseline setup + if: ${{ (inputs.official_hermes_phase == 'python' || inputs.official_hermes_phase == 'runtime') }} + id: hermes-python + shell: powershell + # Pinned OpenSSL SDK build precedes the unchanged 20-minute Python stage. + timeout-minutes: ${{ inputs.official_hermes_phase == 'runtime' && 165 || 55 }} + env: + HERMES_COMPONENT_ROOT: ${{ steps.hermes-components.outputs.runtime_root }} + HERMES_SELECTED_PHASE: ${{ inputs.official_hermes_phase }} + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $toolchain = '1.95.0-aarch64-pc-windows-msvc' + $rustc = (& rustup which --toolchain $toolchain rustc).Trim() + if ($LASTEXITCODE -ne 0) { throw 'The pinned native Rust compiler is missing.' } + $cargo = (& rustup which --toolchain $toolchain cargo).Trim() + if ($LASTEXITCODE -ne 0) { throw 'The pinned native Cargo is missing.' } + $vswhere = Join-Path ${env:ProgramFiles(x86)} 'Microsoft Visual Studio\Installer\vswhere.exe' + $vsDevCmd = (& $vswhere -latest -products '*' -requires Microsoft.VisualStudio.Component.VC.Tools.ARM64 -find 'Common7\Tools\VsDevCmd.bat' | Select-Object -First 1) + if ($LASTEXITCODE -ne 0 -or -not $vsDevCmd) { throw 'The runner does not contain the required Visual Studio ARM64 tools.' } + $powershell = Join-Path $env:SystemRoot 'System32\WindowsPowerShell\v1.0\powershell.exe' + $entry = if ($env:HERMES_SELECTED_PHASE -eq 'runtime') { 'prepare-official-runtime.ps1' } else { 'prepare-official-python.ps1' } + $script = Join-Path "$env:GITHUB_WORKSPACE\packaging\windows\hermes" $entry + $phaseLock = "$env:GITHUB_WORKSPACE\packaging\windows\hermes\official-python.lock.json" + $evidence = "$env:RUNNER_TEMP\official-hermes-python" + $components = "$env:RUNNER_TEMP\official-hermes-components" + foreach ($value in @($vsDevCmd, $powershell, $script, $phaseLock, $evidence, $components, $rustc, $cargo, $env:HERMES_COMPONENT_ROOT)) { + if ($value -match '["\r\n%!]') { throw 'A build-prerequisite path cannot be represented safely.' } + } + $command = 'call "' + $vsDevCmd + '" -arch=arm64 -host_arch=arm64 && "' + $powershell + '" -NoProfile -ExecutionPolicy Bypass -File "' + $script + '" -LockPath "' + $phaseLock + '" -RuntimeRoot "' + $env:HERMES_COMPONENT_ROOT + '" -ArtifactDirectory "' + $evidence + '" -ComponentEvidenceDirectory "' + $components + '" -RustcPath "' + $rustc + '" -CargoPath "' + $cargo + '"' + if ($env:HERMES_SELECTED_PHASE -eq 'runtime') { $command += ' -ControllerSource "' + $env:GITHUB_SHA + '"' } + & "$env:SystemRoot\System32\cmd.exe" /d /c $command + if ($LASTEXITCODE -ne 0) { throw 'The canonical Hermes Python phase failed; baseline setup will not run.' } + + - name: Upload the complete unqualified official runtime candidate + if: ${{ always() && inputs.official_hermes_phase == 'runtime' }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: official-hermes-runtime-candidate-${{ github.sha }}-${{ github.run_attempt }} + path: | + ${{ runner.temp }}/official-hermes-runtime-candidate/ + ${{ runner.temp }}/official-hermes-runtime-build/ + ${{ runner.temp }}/official-hermes-runtime-phase.json + ${{ runner.temp }}/official-hermes-export-controls/ + !${{ runner.temp }}/official-hermes-export-controls/tools/ + ${{ runner.temp }}/official-hermes-components/ + ${{ runner.temp }}/official-hermes-python/ + !${{ runner.temp }}/official-hermes-components/downloads/ + !${{ runner.temp }}/official-hermes-python/downloads/ + !${{ runner.temp }}/official-hermes-python/cargo-home/ + !${{ runner.temp }}/official-hermes-python/dependency-stage/uv-cache/ + !${{ runner.temp }}/official-hermes-python/openssl/downloads/ + !${{ runner.temp }}/official-hermes-python/openssl/strawberryperl/ + !${{ runner.temp }}/official-hermes-python/openssl/nasm-windows-bin/ + !${{ runner.temp }}/official-hermes-python/openssl/jom-windows-bin/ + !${{ runner.temp }}/official-hermes-python/openssl/openssl/ + !${{ runner.temp }}/official-hermes-runtime-build/downloads/ + !${{ runner.temp }}/official-hermes-runtime-build/browser-use-wheels/ + !${{ runner.temp }}/official-hermes-runtime-build/uv-cache/ + !${{ runner.temp }}/official-hermes-runtime-build/npm-cache/ + !${{ runner.temp }}/official-hermes-runtime-build/node-build/ + !${{ runner.temp }}/official-hermes-runtime-build/node-build-tools/ + !${{ runner.temp }}/official-hermes-runtime-build/node-addon-headers/ + if-no-files-found: error + retention-days: 14 + + - name: Install the immutable MXC baseline + if: ${{ inputs.official_hermes_phase != 'python' && inputs.official_hermes_phase != 'runtime' }} + id: component-baseline + shell: powershell + run: | + & "$env:GITHUB_WORKSPACE\packaging\windows\hermes\component-probe-baseline.ps1" ` + -ArtifactDirectory "$env:RUNNER_TEMP\official-hermes-baseline" + + - name: Check bounded component process diagnostics on Windows + if: ${{ steps.component-baseline.outcome == 'success' }} + id: component-controls + shell: powershell + run: | + & "$env:GITHUB_WORKSPACE\packaging\windows\performance\acl-snapshot.test.ps1" + $node = Join-Path $env:ProgramFiles 'NVIDIA\NemoClaw\bin\node.exe' + & $node --experimental-strip-types --no-warnings --test ` + (Join-Path $env:GITHUB_WORKSPACE 'packaging/windows/hermes/probe-components.test.mts') ` + (Join-Path $env:GITHUB_WORKSPACE 'packaging/windows/hermes/portable-git-arguments.test.mts') ` + (Join-Path $env:GITHUB_WORKSPACE 'packaging/windows/hermes/probe-python-temp.test.mts') ` + (Join-Path $env:GITHUB_WORKSPACE 'packaging/windows/performance/measurement.test.mts') ` + (Join-Path $env:GITHUB_WORKSPACE 'packaging/windows/performance/compile-cache-experiment.test.mts') + if ($LASTEXITCODE -ne 0) { throw 'The component process diagnostic controls failed.' } + + - name: Execute the official components inside MXC + if: ${{ steps.component-baseline.outcome == 'success' && steps.component-controls.outcome == 'success' }} + shell: powershell + env: + HERMES_COMPONENT_ROOT: ${{ steps.hermes-components.outputs.runtime_root }} + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $installRoot = Join-Path $env:ProgramFiles 'NVIDIA\NemoClaw' + & "$installRoot\bin\node.exe" --experimental-strip-types --no-warnings ` + "$env:GITHUB_WORKSPACE\packaging\windows\hermes\probe-official-components.mts" ` + --install-root $installRoot ` + --runtime-root $env:HERMES_COMPONENT_ROOT ` + --artifact-directory "$env:RUNNER_TEMP\official-hermes-mxc" + if ($LASTEXITCODE -ne 0) { throw 'The official Hermes MXC component probe failed.' } + + - name: Check official Python temp permissions before and after the startup adapter + if: ${{ !cancelled() && steps.component-baseline.outcome == 'success' && steps.component-controls.outcome == 'success' }} + shell: powershell + env: + HERMES_COMPONENT_ROOT: ${{ steps.hermes-components.outputs.runtime_root }} + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $installRoot = Join-Path $env:ProgramFiles 'NVIDIA\NemoClaw' + & "$installRoot\bin\node.exe" --experimental-strip-types --no-warnings ` + "$env:GITHUB_WORKSPACE\packaging\windows\hermes\probe-official-python-adapter.mts" ` + --install-root $installRoot ` + --runtime-root $env:HERMES_COMPONENT_ROOT ` + --artifact-directory "$env:RUNNER_TEMP\official-hermes-python-temp" + if ($LASTEXITCODE -ne 0) { throw 'The official Python before/after temp adapter control failed.' } + + - name: Probe installed runtime access and contained compile-cache A/B + if: ${{ !cancelled() && steps.component-baseline.outcome == 'success' && steps.component-controls.outcome == 'success' }} + shell: powershell + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $installRoot = Join-Path $env:ProgramFiles 'NVIDIA\NemoClaw' + & "$installRoot\bin\node.exe" --experimental-strip-types --no-warnings ` + "$env:GITHUB_WORKSPACE\packaging\windows\performance\probe-installed-readonly.mts" ` + --install-root $installRoot ` + --source-revision f8a1d8c702c879d2984d76d2e0419641bb1ccd97 ` + --artifact-directory "$env:RUNNER_TEMP\installed-runtime-readonly" ` + --compile-cache-experiment ` + --runtime-manifest-sha256 d36e977401cf8188350e657137bf649c654f4554a6c4da299f9b2b9353e7066e + if ($LASTEXITCODE -ne 0) { throw 'The installed read-only runtime probe failed.' } + + - name: Upload failed component evidence before baseline cleanup + if: ${{ failure() && inputs.official_hermes_phase != 'runtime' }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: official-hermes-windows-mxc-components-precleanup-${{ github.sha }} + path: | + ${{ runner.temp }}/official-hermes-components/ + ${{ runner.temp }}/official-hermes-python/ + ${{ runner.temp }}/official-hermes-python-temp/ + ${{ runner.temp }}/official-hermes-mxc/ + ${{ runner.temp }}/installed-runtime-readonly/ + !${{ runner.temp }}/official-hermes-components/downloads/ + !${{ runner.temp }}/official-hermes-python/openssl/downloads/ + !${{ runner.temp }}/official-hermes-python/openssl/strawberryperl/ + !${{ runner.temp }}/official-hermes-python/openssl/nasm-windows-bin/ + !${{ runner.temp }}/official-hermes-python/openssl/jom-windows-bin/ + !${{ runner.temp }}/official-hermes-python/openssl/openssl/ + !${{ runner.temp }}/official-hermes-python/downloads/ + !${{ runner.temp }}/official-hermes-python/cargo-home/ + !${{ runner.temp }}/official-hermes-python/dependency-stage/uv-cache/ + if-no-files-found: warn + retention-days: 14 + + - name: Uninstall the component probe baseline + if: ${{ always() && inputs.official_hermes_phase != 'runtime' && steps.component-baseline.outcome != 'skipped' }} + shell: powershell + run: | + & "$env:GITHUB_WORKSPACE\packaging\windows\hermes\component-probe-baseline.ps1" ` + -ArtifactDirectory "$env:RUNNER_TEMP\official-hermes-baseline" -Uninstall + + - name: Upload official Hermes component evidence + if: ${{ always() && inputs.official_hermes_phase != 'runtime' }} + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: official-hermes-windows-mxc-components-${{ github.sha }} + path: | + ${{ runner.temp }}/official-hermes-baseline/ + ${{ runner.temp }}/official-hermes-components/ + ${{ runner.temp }}/official-hermes-python/ + ${{ runner.temp }}/official-hermes-python-temp/ + ${{ runner.temp }}/official-hermes-mxc/ + ${{ runner.temp }}/installed-runtime-readonly/ + !${{ runner.temp }}/official-hermes-baseline/baseline-setup.exe + !${{ runner.temp }}/official-hermes-components/downloads/ + !${{ runner.temp }}/official-hermes-python/openssl/downloads/ + !${{ runner.temp }}/official-hermes-python/openssl/strawberryperl/ + !${{ runner.temp }}/official-hermes-python/openssl/nasm-windows-bin/ + !${{ runner.temp }}/official-hermes-python/openssl/jom-windows-bin/ + !${{ runner.temp }}/official-hermes-python/openssl/openssl/ + !${{ runner.temp }}/official-hermes-python/downloads/ + !${{ runner.temp }}/official-hermes-python/cargo-home/ + !${{ runner.temp }}/official-hermes-python/dependency-stage/uv-cache/ + if-no-files-found: error + retention-days: 14 + + windows-native-profiling: + name: Installed Windows baseline profiling (diagnostic only) + if: ${{ github.event_name == 'workflow_dispatch' && !inputs.run_windows_native_installer && inputs.profile_native_windows && !inputs.test_native_windows_runtime }} + runs-on: windows-11-vs2026-arm + # Existing target allowances: 15m install + 30m warm prep + 45m replays + # + 15m uninstall; download/recording finalization retain bounded headroom. + timeout-minutes: 150 + steps: + - name: Check out the profiling controller + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Validate the explicit profiling request + shell: powershell + env: + OTHER_BUILD: ${{ inputs.run_windows_native_installer }} + OTHER_COMPONENTS: ${{ inputs.probe_official_hermes_components }} + OTHER_DIAGNOSTIC: ${{ inputs.windows_native_diagnostic_source_run_id }} + run: | + if ($env:OTHER_BUILD -eq 'true' -or $env:OTHER_COMPONENTS -eq 'true' -or $env:OTHER_DIAGNOSTIC) { + throw 'Profiling is a separate explicit dispatch and cannot also build or run component diagnostics.' + } + + - name: Set up the profiling controller Node + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + with: + node-version: 24.18.1 + architecture: arm64 + + - name: Resolve the reviewed npm Git Bash scratch path + id: reviewed-npm-temp + shell: bash + run: | + path="$(cygpath -u "$RUNNER_TEMP")" + [[ "$path" == /* ]] + printf 'path=%s\n' "$path" >> "$GITHUB_OUTPUT" + + - name: Install reviewed npm + uses: ./.github/actions/setup-reviewed-npm + env: + RUNNER_TEMP: ${{ steps.reviewed-npm-temp.outputs.path }} + TAR_OPTIONS: --force-local + + - name: Record actual installation and dashboard CPU and file I/O + shell: powershell + run: | + & "$env:GITHUB_WORKSPACE\packaging\windows\performance\run-profiling-phase.ps1" ` + -ArtifactDirectory "$env:RUNNER_TEMP\windows-native-profiling" ` + -HarnessNodePath ((Get-Command node.exe -CommandType Application | Select-Object -First 1).Source) ` + -ControllerSha $env:GITHUB_SHA + + - name: Upload profiling evidence including failures and capped traces + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: windows-native-profiling-${{ github.sha }}-${{ github.run_attempt }} + path: | + ${{ runner.temp }}/windows-native-profiling/ + !${{ runner.temp }}/windows-native-profiling/baseline/baseline-setup.exe + if-no-files-found: warn + compression-level: 6 + retention-days: 14 + + windows-runtime-controls: + name: Native Windows ownership and isolated MSI controls + if: ${{ github.event_name == 'workflow_dispatch' && !inputs.run_windows_native_installer && inputs.test_native_windows_runtime }} + runs-on: windows-11-vs2026-arm + timeout-minutes: 20 + steps: + - name: Check out the native ownership controls + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Validate the explicit ownership request + shell: powershell + env: + OTHER_BUILD: ${{ inputs.run_windows_native_installer }} + OTHER_COMPONENTS: ${{ inputs.probe_official_hermes_components }} + OTHER_PROFILE: ${{ inputs.profile_native_windows }} + OTHER_DIAGNOSTIC: ${{ inputs.windows_native_diagnostic_source_run_id }} + run: | + if ($env:OTHER_BUILD -eq 'true' -or $env:OTHER_COMPONENTS -eq 'true' -or $env:OTHER_PROFILE -eq 'true' -or $env:OTHER_DIAGNOSTIC) { + throw 'Native ownership controls require a separate explicit dispatch.' + } + + - name: Set up pinned Rust for the native ownership controls + uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 + with: + toolchain: 1.95.0-aarch64-pc-windows-msvc + target: aarch64-pc-windows-msvc + cache: false + rustflags: "" + + - name: Check the native transaction helper + shell: powershell + env: + CARGO_TERM_COLOR: never + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $output = Join-Path $env:RUNNER_TEMP 'windows-runtime-controls' + [IO.Directory]::CreateDirectory($output) | Out-Null + $log = Join-Path $output 'msi-helper-tests.log' + try { + $ErrorActionPreference = 'Continue' + & rustup run 1.95.0-aarch64-pc-windows-msvc cargo test --locked ` + --manifest-path "$env:GITHUB_WORKSPACE\packaging\windows\installer\Cargo.toml" ` + --target aarch64-pc-windows-msvc --features msi-boundary-fixture -- ` + --nocapture --test-threads=1 --skip runtime_lease:: 2>&1 | Tee-Object -FilePath $log + $result = $LASTEXITCODE + } finally { $ErrorActionPreference = 'Stop' } + if ($result -ne 0 -or (Get-Content -LiteralPath $log -Raw) -notmatch 'test result: ok\. 22 passed; 0 failed; 0 ignored;') { + throw 'The twenty-two transaction, manifest, mount ACL and native SHA256 controls did not all pass.' + } + + - name: Exercise real Windows leases and protected fixtures + shell: powershell + env: + CARGO_TERM_COLOR: never + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $output = Join-Path $env:RUNNER_TEMP 'windows-runtime-controls' + [IO.Directory]::CreateDirectory($output) | Out-Null + $log = Join-Path $output 'runtime-lease-tests.log' + try { + $ErrorActionPreference = 'Continue' + & rustup run 1.95.0-aarch64-pc-windows-msvc cargo test --locked ` + --manifest-path "$env:GITHUB_WORKSPACE\packaging\windows\launcher\Cargo.toml" ` + --target aarch64-pc-windows-msvc runtime_lease:: -- --nocapture --test-threads=1 2>&1 | Tee-Object -FilePath $log + $result = $LASTEXITCODE + } finally { $ErrorActionPreference = 'Stop' } + if ($result -ne 0) { throw 'The real native runtime ownership controls failed.' } + if ((Get-Content -LiteralPath $log -Raw) -notmatch 'test result: ok\. 18 passed; 0 failed; 0 ignored;') { + throw 'The six portable and twelve Windows ownership controls did not all execute.' + } + + - name: Exercise owned child and grandchild lifetime + shell: powershell + env: + CARGO_TERM_COLOR: never + NEMOCLAW_BROWSER_PROOF: "1" + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $output = Join-Path $env:RUNNER_TEMP 'windows-runtime-controls' + [IO.Directory]::CreateDirectory($output) | Out-Null + $log = Join-Path $output 'runtime-host-tests.log' + try { + $ErrorActionPreference = 'Continue' + & rustup run 1.95.0-aarch64-pc-windows-msvc cargo test --locked ` + --manifest-path "$env:GITHUB_WORKSPACE\packaging\windows\launcher\Cargo.toml" ` + --target aarch64-pc-windows-msvc runtime_host:: -- --include-ignored --nocapture --test-threads=1 2>&1 | Tee-Object -FilePath $log + $result = $LASTEXITCODE + } finally { $ErrorActionPreference = 'Stop' } + if ($result -ne 0) { throw 'The native runtime guardian controls failed.' } + if ((Get-Content -LiteralPath $log -Raw) -notmatch 'test result: ok\. 21 passed; 0 failed; 0 ignored;') { + throw 'The twenty guardian/browser controls and their child-fixture entry did not all execute.' + } + + - name: Set up pinned tools for isolated MSI fixtures + uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 + with: + dotnet-version: 8.0.419 + + - name: Verify cached maintenance cancellation and deadline handling + shell: powershell + run: | + & dotnet run --configuration Release --project ` + packaging/windows/tests/maintenance-wait/Maintenance.Wait.Controls.csproj + if ($LASTEXITCODE -ne 0) { throw 'The cached maintenance wait controls failed.' } + + - name: Set up actual ARM64 Node for the shared-file fixture + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + with: + node-version: 24.18.1 + architecture: arm64 + + - name: Resolve the reviewed npm Git Bash scratch path + id: reviewed-npm-temp + shell: bash + run: | + path="$(cygpath -u "$RUNNER_TEMP")" + [[ "$path" == /* ]] + printf 'path=%s\n' "$path" >> "$GITHUB_OUTPUT" + + - name: Install reviewed npm + uses: ./.github/actions/setup-reviewed-npm + env: + RUNNER_TEMP: ${{ steps.reviewed-npm-temp.outputs.path }} + TAR_OPTIONS: --force-local + + - name: Exercise actual browser request channel cleanup + shell: powershell + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $log = Join-Path $env:RUNNER_TEMP 'windows-runtime-controls\runtime-browser-node-tests.log' + try { + $ErrorActionPreference = 'Continue' + & node --experimental-strip-types --no-warnings --test --test-reporter=tap ` + (Join-Path $env:GITHUB_WORKSPACE 'packaging/windows/runtime/native-runtime-browser.test.mts') 2>&1 | Tee-Object -FilePath $log + $result = $LASTEXITCODE + } finally { $ErrorActionPreference = 'Stop' } + $text = Get-Content -LiteralPath $log -Raw + if ($result -ne 0 -or $text -notmatch '(?m)^# pass 6\r?$' -or $text -notmatch '(?m)^# skipped 0\r?$') { + throw 'All six browser origin and actual named-pipe cleanup controls must execute.' + } + + - name: Set up build-only Python for MSI fixture authoring + uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.1.0 + with: + python-version: 3.13.13 + architecture: arm64 + + - name: Exercise native file ownership and relay counters + shell: powershell + env: + CARGO_TERM_COLOR: never + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $output = Join-Path $env:RUNNER_TEMP 'windows-runtime-controls' + $log = Join-Path $output 'native-ui-file-owner-tests.log' + try { + $ErrorActionPreference = 'Continue' + & rustup run 1.95.0-aarch64-pc-windows-msvc cargo test --locked ` + --manifest-path "$env:GITHUB_WORKSPACE\packaging\windows\launcher\Cargo.toml" ` + --target aarch64-pc-windows-msvc native_ui_file_owner:: -- --nocapture --test-threads=1 2>&1 | Tee-Object -FilePath $log + $result = $LASTEXITCODE + } finally { $ErrorActionPreference = 'Stop' } + if ($result -ne 0 -or (Get-Content -LiteralPath $log -Raw) -notmatch 'test result: ok\. 15 passed; 0 failed; 0 ignored;') { + throw 'The two portable and thirteen Windows file-owner controls did not all pass.' + } + $target = Join-Path $env:RUNNER_TEMP 'windows-runtime-test-launcher' + try { + $ErrorActionPreference = 'Continue' + & rustup run 1.95.0-aarch64-pc-windows-msvc cargo rustc --locked --release --no-default-features ` + --manifest-path "$env:GITHUB_WORKSPACE\packaging\windows\launcher\Cargo.toml" ` + --target aarch64-pc-windows-msvc --target-dir $target -- -C target-feature=+crt-static ` + 2>&1 | Tee-Object -FilePath (Join-Path $output 'relay-launcher-build.log') + $buildResult = $LASTEXITCODE + } finally { $ErrorActionPreference = 'Stop' } + if ($buildResult -ne 0) { throw 'The native relay fixture launcher did not build.' } + $env:NEMOCLAW_NATIVE_TEST_LAUNCHER = Join-Path $target 'aarch64-pc-windows-msvc\release\NemoClaw.exe' + $relayLog = Join-Path $output 'relay-measurement-tests.log' + try { + $ErrorActionPreference = 'Continue' + & node --experimental-strip-types --no-warnings --test --test-reporter=tap ` + (Join-Path $env:GITHUB_WORKSPACE 'packaging/windows/performance/relay-measurements.test.mts') ` + 2>&1 | Tee-Object -FilePath $relayLog + $relayResult = $LASTEXITCODE + } finally { $ErrorActionPreference = 'Stop' } + $relayText = Get-Content -LiteralPath $relayLog -Raw + if ($relayResult -ne 0 -or $relayText -notmatch '(?m)^# pass 5\r?$' -or $relayText -notmatch '(?m)^# skipped 0\r?$') { + throw 'All five actual Windows relay measurement controls must run without skips.' + } + + - name: Check MSI manifest controls + shell: powershell + env: + CARGO_TERM_COLOR: never + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $output = Join-Path $env:RUNNER_TEMP 'windows-runtime-controls' + $pythonLog = Join-Path $output 'msi-build-tests.log' + try { + $ErrorActionPreference = 'Continue' + & python -m unittest discover -s "$env:GITHUB_WORKSPACE\packaging\windows\installer" -p 'test_*.py' -v 2>&1 | Tee-Object -FilePath $pythonLog + $pythonResult = $LASTEXITCODE + } finally { $ErrorActionPreference = 'Stop' } + if ($pythonResult -ne 0 -or (Get-Content -LiteralPath $pythonLog -Raw) -notmatch 'Ran 87 tests') { + throw 'The eighty-seven MSI build and metadata controls did not all pass.' + } + + - name: Build and exercise actual isolated MSI transactions + shell: pwsh + env: + CARGO_TERM_COLOR: never + run: | + Set-StrictMode -Version Latest + $ErrorActionPreference = 'Stop' + $node = (Get-Command node.exe -CommandType Application | Select-Object -First 1).Source + & "$env:GITHUB_WORKSPACE\packaging\windows\installer\test-runtime-msi-process.ps1" ` + -SourceRoot $env:GITHUB_WORKSPACE ` + -ArtifactDirectory (Join-Path $env:RUNNER_TEMP 'windows-msi-lease-process') -NodePath $node + $tools = Join-Path $env:RUNNER_TEMP 'windows-msi-tools' + [IO.Directory]::CreateDirectory($tools) | Out-Null + $config = Join-Path $tools 'NuGet.Config' + [IO.File]::WriteAllText($config, '', [Text.UTF8Encoding]::new($false)) + & dotnet tool install wix --version 5.0.2 --tool-path $tools --configfile $config + if ($LASTEXITCODE -ne 0) { throw 'The pinned WiX fixture tool could not be installed.' } + $python = (Get-Command python.exe -CommandType Application | Select-Object -First 1).Source + $license = Join-Path (Split-Path -Parent $node) 'LICENSE' + & "$env:GITHUB_WORKSPACE\packaging\windows\installer\test-runtime-msi.ps1" ` + -SourceRoot $env:GITHUB_WORKSPACE ` + -ArtifactDirectory (Join-Path $env:RUNNER_TEMP 'windows-msi-boundary-fixtures') ` + -NodePath $node -NodeLicensePath $license -PythonPath $python ` + -WixPath (Join-Path $tools 'wix.exe') -SourceRevision $env:GITHUB_SHA + + - name: Upload runtime ownership control evidence + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: windows-runtime-controls-${{ github.sha }}-${{ github.run_attempt }} + path: | + ${{ runner.temp }}/windows-runtime-controls/ + ${{ runner.temp }}/windows-msi-lease-process/*.json + ${{ runner.temp }}/windows-msi-boundary-fixtures/*.json + ${{ runner.temp }}/windows-msi-boundary-fixtures/*.log + ${{ runner.temp }}/windows-msi-boundary-fixtures/fixtures/fixtures.json + ${{ runner.temp }}/windows-msi-boundary-fixtures/fixtures/*/namespace.json + if-no-files-found: warn + retention-days: 14 diff --git a/bin/nemoclaw.js b/bin/nemoclaw.js index 46cdad20d0e..84f4272a8f3 100755 --- a/bin/nemoclaw.js +++ b/bin/nemoclaw.js @@ -56,6 +56,8 @@ function handleTopLevelError(error) { } function applyPersistedAutomaticGatewayPort() { + // Native Windows does not use the POSIX installer's automatic-port markers. + if (process.platform === "win32") return; if (process.env.NEMOCLAW_GATEWAY_PORT) { const installerAutomaticPort = process.env.NEMOCLAW_INSTALLING === "1" && diff --git a/packaging/windows/Bundle.wxs b/packaging/windows/Bundle.wxs new file mode 100644 index 00000000000..cab8eaa1dd6 --- /dev/null +++ b/packaging/windows/Bundle.wxs @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packaging/windows/CONPTY-LICENSE.txt b/packaging/windows/CONPTY-LICENSE.txt new file mode 100644 index 00000000000..8cb179cdb69 --- /dev/null +++ b/packaging/windows/CONPTY-LICENSE.txt @@ -0,0 +1,21 @@ +Copyright (c) Microsoft Corporation. All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packaging/windows/License.rtf b/packaging/windows/License.rtf new file mode 100644 index 00000000000..f87ed67d0f7 --- /dev/null +++ b/packaging/windows/License.rtf @@ -0,0 +1,14 @@ +{\rtf1\ansi\deff0 +{\fonttbl{\f0 Segoe UI;}} +\fs20 +NemoClaw Native Windows Candidate Preview\par +\par +Copyright (c) 2026 NVIDIA Corporation and affiliates.\par +\par +NemoClaw is licensed under the Apache License, Version 2.0. The complete +license is installed with the product as LICENSE.txt and is available in the +NemoClaw source repository.\par +\par +This package is a qualification candidate. It does not establish production +support for native Windows, Microsoft MXC, or any agent runtime.\par +} diff --git a/packaging/windows/MXC-LICENSE.txt b/packaging/windows/MXC-LICENSE.txt new file mode 100644 index 00000000000..22aed37e650 --- /dev/null +++ b/packaging/windows/MXC-LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packaging/windows/NATIVE-PREVIEW.txt b/packaging/windows/NATIVE-PREVIEW.txt new file mode 100644 index 00000000000..a1d56245f53 --- /dev/null +++ b/packaging/windows/NATIVE-PREVIEW.txt @@ -0,0 +1,77 @@ +NemoClaw Native Windows Candidate Preview + +Product decision and ownership + +This PR-scoped package is an engineering candidate under NVIDIA/NemoClaw#8178. +That product-decision record explicitly does not accept or advertise native +Windows support, and no later Accept decision is recorded. Passing technical +validation does not change that status. The installer must not be published as +a release, linked from canonical onboarding, or represented as supported until +an authorized maintainer records an Accept decision that names the reason, +placement, accountable maintainer, supported agent and Windows/OpenShell/MXC +matrix, support and vulnerability-response lifecycle, compatibility and +security ownership, and validation plan. + +Until that decision exists, placement is limited to explicitly dispatched PR +workflow artifacts with their configured retention. There is no support or +upgrade SLA. Compatibility claims are limited to the exact identities and +results in each candidate's receipt. Security review and Authenticode signing +remain release gates. The workflow's clean-install, migration, inference, +restart, diagnostics, rollback, and cleanup lanes are engineering validation, +not product acceptance. NVIDIA/NemoClaw#8178 remains the authority for assigning +the accountable owner and changing this status. + +Each finished installer contains the NemoClaw CLI and the agent selected when +the package was built. Its embedded availability record disables unselected +agents. Pi and NemoCUA remain experimental. The MSI installs that agent's +required native ARM64 runtime, OpenShell, and Microsoft MXC ProcessContainer +components. WSL, Docker, Linux virtual machines, and unused MXC backend sidecars +are not part of this package. + +Setup and onboarding share one native WPF window. Choose an agent once, select +inference and supported optional services, and follow the named install phases. +The Personal profile enables outbound network access while keeping host settings +outside the agent filesystem. Setup adds a NemoClaw Setup desktop shortcut and +a shortcut with the selected agent's icon. OpenClaw and Hermes open their web +interfaces in the default browser; terminal agents open a Windows console. +A native control window stops each web session and cleans up its sandbox. + +Run NemoClaw Setup again to change settings or, when installed, uninstall. +Uninstall retains personal data by default. Its explicit data-removal selection +removes only the chosen agent's owned state, settings, and scoped stored keys. +Shared on-device model files are separate from agent data. + +Inference keys are stored in Windows Credential Manager, bound to the agent, +provider, and endpoint. The inference key stays in the host broker. Optional +service keys use separate per-agent bindings and enter only the selected +agent's process environment. Keys are not written into setup JSON or passed as +process arguments. Native state ownership and the UI relay's native file owner +protect their filesystem boundaries through shutdown. + +The OpenShell binary is built from NVIDIA/OpenShell#2721 merge commit +bcd517bbe08cc80860c9be57699390cd32e8445f with the installed, hash-recorded +OPENSHELL-NODE-UI-COMPATIBILITY.patch. That derivative supports contained Node +initialization, explicit host-console sharing, and the selected Personal network +mode. It does not establish production LPAC or governed network-policy parity. + +Microsoft MXC's native elevated system-drive and null-device preparation runs +before MSI installation. Windows resets the null-device preparation at reboot; +persistent production gateway-service ownership remains a separate gate. + +On RTX Spark N1X, eligible Windows ARM64 machines may select native on-device +Express. Pinned llama.cpp/CUDA and Qwen model downloads require compatible +drivers, sufficient memory/storage, complete GPU offload, and an authenticated +real model response before Ready. This is an agent-independent local service; +it does not run the Linux or WSL recipes. Generic ARM64 CI is not physical N1X +qualification. + +Qualification must exercise the selected agent through native setup, its UI, +desktop links, repair/reinstall, data preservation, explicit tester reset, and +cleanup. Hermes requires both its interactive console and dashboard. Qualifying +one package does not qualify agents absent from that package. +Deterministic local inference proves runtime and transport behavior, not live +commercial-provider or messaging-account qualification. Actual Windows screen +captures and receipts identify the exact candidate being tested. + +This is an unsigned PR preview, not a production release. Production signing, +broader host/runtime qualification, and governed deployment remain separate. diff --git a/packaging/windows/NemoClaw.Bundle.wixproj b/packaging/windows/NemoClaw.Bundle.wixproj new file mode 100644 index 00000000000..8ebcbeed3c0 --- /dev/null +++ b/packaging/windows/NemoClaw.Bundle.wixproj @@ -0,0 +1,48 @@ + + + + + Bundle + arm64 + NemoClawSetup-$(ProductVersion)-windows-arm64 + $(PackageOutputRoot) + $(PackageIntermediateRoot)\bundle\ + false + false + false + $(DefineConstants);ProductVersion=$(ProductVersion);SourceRoot=$(SourceRoot);MsiPath=$(MsiPath);WxcHostPrepPath=$(PayloadRoot)\mxc\wxc-host-prep.exe;WxcExecPath=$(PayloadRoot)\mxc\wxc-exec.exe;BootstrapperPath=$(BootstrapperPath);BootstrapperRoot=$(BootstrapperRoot) + true + + 1161 + none + + + + + + + + + + + + + + $(DefineConstants);SystemDriveMetadataPreparation=true;SystemDrivePrepPath=$(SystemDrivePrepPath);SystemDrivePrepSha256=$(SystemDrivePrepSha256) + + + + + + + + + + + + + + + + diff --git a/packaging/windows/NemoClaw.wixproj b/packaging/windows/NemoClaw.wixproj new file mode 100644 index 00000000000..45378f0b794 --- /dev/null +++ b/packaging/windows/NemoClaw.wixproj @@ -0,0 +1,39 @@ + + + + + Package + arm64 + NemoClaw-$(ProductVersion)-windows-arm64 + $(PackageOutputRoot) + $(PackageIntermediateRoot)\msi\ + false + false + false + $(DefineConstants);NativeRuntimeMsiPrototype=$(NativeRuntimeMsiPrototype);NativeRuntimeMsiAuthoring=$(NativeRuntimeMsiAuthoring);ProductVersion=$(ProductVersion);PayloadRoot=$(PayloadRoot);SourceRoot=$(SourceRoot) + true + + ICE60 + none + + + + + + + + + + + + + + + + + + + + diff --git a/packaging/windows/Product.wxs b/packaging/windows/Product.wxs new file mode 100644 index 00000000000..c9cf0e5cdac --- /dev/null +++ b/packaging/windows/Product.wxs @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packaging/windows/README.md b/packaging/windows/README.md new file mode 100644 index 00000000000..73b6c2575d2 --- /dev/null +++ b/packaging/windows/README.md @@ -0,0 +1,194 @@ + + + +# Native Windows candidate package + +This directory owns the WiX-authored ARM64 MSI and Burn setup executable for +the native Windows candidate. WiX Toolset 5.0.2 and its standard bootstrapper +application extension are pinned in the project files. + +The package uses only standard Windows Installer and Burn authoring. It has no +custom actions and does not invoke PowerShell, WSL, Bash, Ubuntu, Docker, or a +Linux virtual machine. The package installs the exact assembled ARM64 NemoClaw +runtime payload under `%ProgramFiles%\NVIDIA\NemoClaw`. That payload contains +the NemoClaw CLI, the selected agent and its required runtime, NVIDIA/OpenShell#2721 CLI +and gateway binaries, and only the pinned Microsoft MXC ProcessContainer +executor and host-preparation utility. WSLC, Windows Sandbox, test-proxy, +diagnostic, and learning-mode sidecars from the upstream SDK archive are not +packaged. Windows Installer registers normal Add/Remove Programs metadata and +adds the installed `bin` directory to the machine PATH. + +`finished_windows_agent` selects the agent included in each finished installer. +The embedded runtime-availability record marks unselected agents `not-included`, +and setup disables those choices. One package does not qualify all agent variants. + +The finished-installer workflow checks out the pinned NVIDIA/OpenShell#2721 +merge commit, applies the current compatibility patch, and builds and tests the +ARM64 derivative. It records both executable hashes, the source and patch identities, +and the workflow run. Host preparation rejects mismatched receipts or binaries; +it does not reuse binaries from a previous MSI. The patch and its exact hash are installed with the +product. Packaged Node workloads explicitly set `windows_ui=true` so the +contained Node process can initialize. Other sandboxes retain MXC's disabled-UI +default. The derivative also adds per-sandbox `host_loopback`, `host_console`, and +`personal_network` options. Configured sessions use the Personal network profile: +MXC's supported outbound-open policy and local-network access. Personal does not +grant access to the Windows user-profile filesystem. Qualification probes the +installed MXC tier: AppContainer retains its original network policy; BaseContainer +uses `loopback_ports` for the contained mock model and UI listeners. This emits +MXC 0.8 TCP rules for only those `127.0.0.1` ports, with other egress and host +loopback ingress denied. Unknown or inconsistent probes stop qualification. +Port rules cannot be combined with Personal or legacy host-loopback options. +The driver accepts whole ports from 1 through 65535 through protobuf's numeric +representation; fractions, zero, overflow and nonnumeric values are rejected. +The UI reports failed creation before waiting for relay readiness. It skips +sandbox teardown only after definitive rejection and a confirmed empty registry; +transport failures still require ordinary cleanup and reconciliation. + +Configured terminal sessions give the dedicated gateway a real Windows console. +The gateway verifies all three standard handles before opting into MXC console +sharing; the contained workload inherits input, output, resizing, and console +lifetime. Startup errors appear in that same terminal. Deterministic one-shot +qualification remains a separate regression surface. + +The tested ARM64 runner selects MXC's AppContainer fallback. The gateway template +retains `pc_least_privilege=false` and `privateNetworkClientServer`. Personal sessions +also add `internetClient` for public outbound connections; the qualification +default does not add that capability. These are +preview compatibility settings across the agent set; they do not establish LPAC +qualification or governed egress-policy parity. The legacy `allowLocalNetwork` +field has version-dependent ingress semantics. Retiring these exceptions needs +agent, broker, negative filesystem, and network evidence on the selected Windows +and MXC builds. Runtime qualification remains tracked in +[#8178](https://github.com/NVIDIA/NemoClaw/issues/8178). + +Each run writes a gateway configuration outside the installed payload. It +preserves the installed template's settings and resolves `wxc_exec_path` from +the actual installation directory, including an overridden `INSTALLFOLDER`. +The qualification turn executes OpenClaw in a worker inside that same contained +Node process, avoiding an unsupported nested-process assumption while retaining +MXC filesystem containment. The package does not bypass OpenShell or call MXC +directly from NemoClaw. The pinned OpenShell CLI watch does not return after the +one-shot MXC workload completes, so the qualification command stops that +client-side watcher after receiving the exact workload result and then deletes +the sandbox through OpenShell. + +Before install or repair, Burn queries its bundled, hash-pinned MXC executable +with `--probe` and records the selected tier. BaseContainer skips both +AppContainer host prerequisites without changing root or null-device permissions. +AppContainer+DACL retains system-drive metadata preparation and the pinned MXC +null-device preparation through Burn's elevated engine. Existing permission +conflicts still stop preparation. Failed, unknown or inconsistent probes stop +installation; they do not select a fallback. Uninstall does not require a probe. +The null-device setting resets when Windows reboots. This prerequisite selection +does not establish runtime qualification or change the Personal network policy. + +The self-contained ARM64 WPF setup presents one custom-framed window for agent +selection, inference, optional services, installation progress, and completion. +Setup and onboarding do not use HTML, WebView, Edge, or a browser. An explicit +API-key help action can open the service's official page in the user's browser. +Progress names the current phase and refreshes elapsed time regularly; download +and installer percentages come from actual work, while unknown-duration phases +remain indeterminate. + +Setup creates current-user desktop shortcuts for NemoClaw Setup and each configured +agent, using their own icons. The setup shortcut uses the registered cached +installer for maintenance. Uninstall appears only for an installed product and +preserves data by default; explicit per-agent removal checks ownership and active +sessions before deleting state, settings, and scoped keys. Web agents use the +Windows default browser and a native session-control window with explicit Stop. +Closing that control waits for sandbox, gateway, broker, and state cleanup. + +The selected agent carries through configuration and launch, and the installed +launcher remembers the last configured agent. The same native window edits +settings later. Agent launch is an explicit completion action. Pi and NemoCUA +remain experimental. `agent-support.json` records the authentic packaged +implementations and their preview limitations. + +Pi packaging keeps the locked 0.84.1 agent and its original CLI and resources. +Five dependency SDKs have ESM paths too long for the installed Windows namespace. +The build compiles those ESM modules with pinned esbuild 0.27.4 into short names, +preserving runtime exports and CommonJS files. SDK source and declarations are +omitted; original licenses are archived before transformation. A hashed build +receipt binds the transformed inputs, and the final payload still must pass the +Windows path-length check. This packaging step is not installed qualification. + +For Pi installer tests, select `finished_windows_validation_scope: startup-only`. +This lane installs the package, verifies the compiled runtime identity, runs three +contained Pi turns against a local mock model, and uninstalls the package. +It does not receive repository inference keys. Its receipt does not qualify live +inference, interactive onboarding, migration, or N1X security. Pi's `full-acceptance` +lane instead requires native onboarding, two real terminal replies, verified file +tools, a settings-preserving restart, and owned cleanup. Implementing that lane +does not establish a passing installed or physical N1X run. + +Hermes uses the corrected pywinpty ARM64 wheel, including its matched `conpty.dll` +and `OpenConsole.exe` beside the native Python extension. The Microsoft ConPTY +notice is installed as `hermes/CONPTY-LICENSE.txt`. An early Windows check loads +that exact library and proves input, output, child-observed resize, and cleanup +before the long runtime build; full packaged qualification repeats the check. +This addresses the omitted binaries documented in the +[pywinpty 3.0.5 release](https://github.com/andfoy/pywinpty/releases/tag/v3.0.5). + +Provider endpoint, model, Personal profile, and optional-service selections are +nonsecret host configuration under Local App Data. WPF sends key bytes through +stdin to the native launcher, which stores them in Windows Credential Manager. +Inference credentials bind to the agent, provider, and canonical endpoint; +optional service credentials bind separately to the agent and service. Inference +provider keys remain in the host broker. Opted-in search and messaging keys are +delivered once through an authenticated local bootstrap into the selected agent's +process environment, without credential values in configuration JSON or process +arguments. These service integrations do not claim OpenShell-managed credential +injection or governed provider parity. + +OpenClaw offers Brave and Tavily search; Hermes offers its native Tavily backend. +Telegram, Discord, and Slack choices are restricted to the two agents whose +packaged runtimes implement them. Messaging requires its selected bot/app keys; +empty sender lists keep pairing behavior, and Personal network access does not +authorize arbitrary senders. Hermes starts its actual messaging gateway with the +interactive session, checks selected-channel connectivity, and uses the upstream +planned-stop mechanism when that session closes. + +Configured OpenClaw and console agents keep their data in a stable system-drive-root +directory named `NemoClawState--`. The native launcher +creates it with a protected current-user and SYSTEM DACL and holds exclusive +per-account, per-agent session ownership through sandbox cleanup. Reopening +retains data and checks the directory's owner, permissions, and ordinary-directory +type. Changed permissions or a reparse point stop the launch without resetting +or deleting state. Host configuration remains private in Local App Data; the +agent receives no access to the user-profile directory. Existing preview state +is not migrated automatically. + +Web UI file transport uses a native, bounded file owner. It pins the root and +stream directory handles, performs handle-relative I/O, and refuses reparse +points, hard links, path traversal, and oversized frames. Its guarded root has +an explicit MXC filesystem grant and stays pinned through sandbox teardown. +The contained relay accepts authenticated Stop requests before UI readiness and +reports connection permission failures without waiting for the readiness timeout. +Qualification saves redacted diagnostics under its evidence directory, so saving +does not depend on onboarding-created directories. + +Package qualification drives the WPF controls for the included agent and +rejects browser/WebView descendants during setup. Agent-specific checks must +exercise its packaged runtime inside native MXC. The installed configured Hermes +acceptance additionally requires its visible interactive prompt, typed input, +a distinct deterministic provider response, a real console resize, exit, and +sandbox cleanup. The Hermes dashboard also requires three typed turns through +its shipped SPA and native ConPTY, then native Stop and complete cleanup. +One-shot results cannot satisfy either acceptance. Tester reset exercises the +actual maintenance data-removal option and a fresh native reinstall. Actual-window +screenshots and recordings accompany the receipts, including failed-run evidence. +The local deterministic provider proves runtime/transport wiring without a PR +credential; it does not qualify a commercial provider or live messaging account. + +Native on-device Express is a separate host-owned llama.cpp/CUDA implementation +for detected RTX Spark N1X Windows ARM64 machines. Its fixed Qwen 3.6 35B-A3B GGUF +recipe is shared across agents and checks driver compatibility, available memory +and storage, pinned downloads, full GPU offload, authentication, and an actual +model response before reporting Ready. It does not invoke the existing WSL or +Linux recipes. Model and runtime downloads occur only when selected. Generic +ARM64 package CI does not qualify N1X GPU operation; the physical device check +remains required. + +This remains a preview distribution boundary. Exact candidate package evidence, +physical-host/N1X validation, commercial-provider and messaging validation, +production gateway service ownership, and Authenticode signing are separate gates. diff --git a/packaging/windows/RequiredPayload.props b/packaging/windows/RequiredPayload.props new file mode 100644 index 00000000000..3ac70ee3871 --- /dev/null +++ b/packaging/windows/RequiredPayload.props @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packaging/windows/SIGNING.md b/packaging/windows/SIGNING.md new file mode 100644 index 00000000000..edaaa98fabb --- /dev/null +++ b/packaging/windows/SIGNING.md @@ -0,0 +1,28 @@ + + + +# Production signing boundary + +Pull-request workflows build unsigned candidate packages and never receive +Windows code-signing credentials. Production publication remains blocked until +an NVIDIA-owned trusted release workflow performs the following sequence with +an approved Authenticode identity: + +1. Sign and verify `openshell.exe`, `openshell-gateway.exe`, `NemoClaw.exe`, + and the native ARM64 bootstrapper application before MSI or Burn binding. + Verify the approved publisher signatures on the pinned `node.exe`, + `python.exe`, `wxc-exec.exe`, and `wxc-host-prep.exe` inputs, and apply an + NVIDIA signature too if release policy requires it. +2. Build the ARM64 MSI from those signed payloads, then sign and verify the MSI. +3. Build the Burn bundle with the signed MSI embedded. +4. Use the pinned WiX tool to detach the Burn engine, sign and verify the + detached engine, reattach it, then sign and verify the complete setup + executable. +5. Publish hashes and signature verification receipts beside the artifacts. + +The signing implementation must execute only in a protected release context. +It must not copy certificates, private keys, tokens, or signing service +credentials into the repository, pull-request jobs, package payload, logs, or +artifacts. This PR does not create that trusted release workflow because the +repository currently has no approved NVIDIA Windows-signing integration to +reuse. diff --git a/packaging/windows/Theme.wxl b/packaging/windows/Theme.wxl new file mode 100644 index 00000000000..0a85c160e67 --- /dev/null +++ b/packaging/windows/Theme.wxl @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packaging/windows/agent-support.json b/packaging/windows/agent-support.json new file mode 100644 index 00000000000..8a5cb28dca1 --- /dev/null +++ b/packaging/windows/agent-support.json @@ -0,0 +1,59 @@ +{ + "schemaVersion": 1, + "platform": "windows-arm64", + "agents": [ + { + "id": "openclaw", + "displayName": "OpenClaw", + "version": "2026.7.1", + "source": "https://registry.npmjs.org/openclaw/-/openclaw-2026.7.1.tgz", + "lockSha256": "248d881ca125bb83da293c4b3f40b46d057095a9fe90b5165255da0de78af9f9", + "interface": "OpenClaw Control UI", + "status": "candidate", + "selectable": true, + "limitation": "Candidate Control UI uses a host-side credential broker and requires two consecutive exact-head native MXC qualifications before it is called proven." + }, + { + "id": "hermes", + "displayName": "Hermes Agent", + "version": "0.21.1", + "source": "https://github.com/NousResearch/hermes-agent/tree/2237be355906fbe6065ce1815711eee52b2d646e", + "interface": "Hermes dashboard and native terminal UI", + "status": "candidate", + "selectable": true, + "limitation": "Canonical Nous runtime with native ARM64 ConPTY and host-owned native ARM64 Microsoft Edge CDP. Installed inference, tools, cleanup, and physical N1X validation remain release gates." + }, + { + "id": "langchain-deepagents-code", + "displayName": "Deep Agents Code", + "version": "0.1.55", + "source": "https://pypi.org/project/deepagents-code/0.1.55/", + "lockSha256": "203eeeb3786c736423be60ce2b315ad6f817d4adf0c13de184bf5deee4c793ad", + "interface": "Deep Agents Code terminal UI", + "status": "candidate", + "selectable": true, + "limitation": "The native terminal candidate uses the exact hash-pinned Windows ARM64 dependency subset and does not claim optional integrations whose native extensions are unavailable." + }, + { + "id": "pi", + "displayName": "Pi", + "version": "0.84.1", + "source": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-0.84.1.tgz", + "lockSha256": "6267ec58e69fc6cd53d3c753f28b0e25c00f4befdcae63e8e4924bee2abf0712", + "interface": "Pi native terminal UI", + "status": "experimental-candidate", + "selectable": true, + "limitation": "Experimental until its exact-head MXC-contained three-turn qualification passes twice." + }, + { + "id": "nemocua", + "displayName": "NemoCUA", + "version": "0.1.0-windows-experimental", + "source": "NVIDIA/NemoClaw exact candidate commit", + "interface": "NemoCUA computer-use runtime", + "status": "experimental-candidate", + "selectable": true, + "limitation": "Windows-native bounded visible-browser adapter for the repository's run_with_harness.py contract; it is experimental and does not claim parity with private scenario-owned images." + } + ] +} diff --git a/packaging/windows/app/build-openclaw-app.mts b/packaging/windows/app/build-openclaw-app.mts new file mode 100644 index 00000000000..d64c0833238 --- /dev/null +++ b/packaging/windows/app/build-openclaw-app.mts @@ -0,0 +1,403 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 +// CI compiler. Dependency/native builds precede this stage; never run it at install/startup. +import fs from "node:fs"; +import path from "node:path"; +import { createHash } from "node:crypto"; +import { createRequire } from "node:module"; + +import { + compiledPluginPlan, + publishPluginFacades, + stagePublishedResources, + resourceInventory, + PREBUILT_CHOICE_PLUGINS, + prebuiltPluginRegistrationSource, +} from "./openclaw-app-resources.mts"; + +const require = createRequire(import.meta.url); +const external = [ + "@opentelemetry/api", + "@lydell/node-pty", + "@openclaw/fs-safe", + "@silvia-odwyer/photon-node", + "clawpdf", + "rastermill", + "quickjs-wasi", + "web-tree-sitter", + "tree-sitter-bash", + "playwright-core", + "typescript", + "jiti", + "@snazzah/davey", + "libopus-wasm", + "undici", + "@discordjs/voice", +]; +function argument(name: string) { + const index = process.argv.indexOf(name); + if (index < 0 || !process.argv[index + 1]) throw new Error(`Missing ${name}`); + return path.resolve(process.argv[index + 1]); +} +const source = argument("--source-root"); +const output = argument("--output"); +const toolRoot = argument("--tool-root"); +const portable = process.argv.includes("--portable-proof"); +if ( + !portable && + (process.platform !== "win32" || process.arch !== "arm64" || process.versions.node !== "22.23.2") +) + throw new Error("Windows application compilation requires canonical Node 22.23.2 ARM64."); +const compiler = require( + path.join(toolRoot, "node_modules", "esbuild"), +) as typeof import("esbuild"); +if (compiler.version !== "0.27.4") throw new Error("The reviewed compiler is esbuild 0.27.4."); +const materializationBytes = fs.readFileSync( + path.join(path.dirname(source), "materialization-receipt.json"), +); +const materialization = JSON.parse(materializationBytes.toString("utf8")) as { + classification: string; + source: { sha256: string }; + additionalPackages: { + package: string; + version: string; + sha256: string; + integrity: string; + bytes: number; + }[]; +}; +if ( + materialization.classification !== "verified-application-build-inputs" || + materialization.source.sha256 !== + "67ad539d9915efb63d5f294beeb9290b7172d23c92d8052110a9c8355f783458" || + !Object.values(PREBUILT_CHOICE_PLUGINS).every((expected) => + materialization.additionalPackages?.some( + (item) => + item.package === expected.package && + item.version === "2026.7.1" && + item.sha256 === expected.sha256, + ), + ) +) + throw new Error("The verified complete application input receipt is required."); +const metadata = JSON.parse(fs.readFileSync(path.join(source, "package.json"), "utf8")) as { + name: string; + version: string; +}; +if (metadata.name !== "openclaw" || metadata.version !== "2026.7.1") + throw new Error("The exact selected OpenClaw package is required."); +if (fs.existsSync(output)) throw new Error("Compilation output must be fresh."); +fs.mkdirSync(output, { recursive: true }); +const app = path.join(output, "app"); +const diagnostics = path.join(output, "diagnostics"); +fs.mkdirSync(app); +fs.mkdirSync(diagnostics); +const sha256 = (bytes: Uint8Array | string) => createHash("sha256").update(bytes).digest("hex"); +const entry = path.join(source, "dist", "cli", "run-main.js"); +const syntaxApi = require( + path.join(source, "node_modules", "typescript"), +) as typeof import("typescript"); +const pluginPlan = compiledPluginPlan(source, syntaxApi, compiler); +const adapter = `${pluginPlan.prelude}${prebuiltPluginRegistrationSource(source)}export async function runCli(argv = process.argv) { + __nemoPrepareAssetRoot(); + const upstream = await import(${JSON.stringify(entry.replaceAll("\\", "/"))}); + return await upstream.runCli(argv); +} +export const runOpenClaw = runCli; +if (typeof require !== "undefined" && require.main === module) { + runCli().catch(error => { console.error(error instanceof Error ? error.stack ?? error.message : String(error)); process.exitCode = 1; }); +} +`; +const banner = `${pluginPlan.banner}\nlet __nemoAssetDir, __nemoFilename, __nemoModuleUrl; +function __nemoPrepareAssetRoot() { + const path = require("node:path"); + const root = process.env.OPENCLAW_COMPILED_ASSET_ROOT; + if (!root || !path.isAbsolute(root)) throw new Error("The sealed OpenClaw asset root is required."); + const resolved = path.resolve(root); + if (__nemoAssetDir && __nemoAssetDir !== resolved) throw new Error("The compiled OpenClaw asset root cannot change within one process."); + __nemoAssetDir = resolved; + __nemoFilename = path.join(resolved, "openclaw-app.cjs"); + __nemoModuleUrl = require("node:url").pathToFileURL(__nemoFilename).href; +} +function __nemoExternalRequire(specifier) { + return require("node:module").createRequire(__nemoFilename)(specifier); +} +function __nemoExternalImport(specifier) { + return require("node:module").createRequire(__nemoFilename)("./openclaw-dynamic-import.cjs")(specifier); +}`; +fs.writeFileSync(path.join(diagnostics, "entry-adapter.mjs"), adapter, { flag: "wx" }); +try { + const result = await compiler.build({ + stdin: { + contents: adapter, + resolveDir: source, + sourcefile: "windows-openclaw-entry.mjs", + loader: "js", + }, + outfile: path.join(app, "openclaw-app.cjs"), + bundle: true, + platform: "node", + format: "cjs", + target: "node22.23", + define: { + __OPENCLAW_VERSION__: JSON.stringify(metadata.version), + }, + banner: { js: banner }, + plugins: [pluginPlan.plugin], + external, + metafile: true, + sourcemap: "external", + treeShaking: false, + keepNames: true, + logLevel: "warning", + }); + if (!result.metafile) throw new Error("Compiler input/output evidence is missing."); + fs.writeFileSync( + path.join(diagnostics, "metafile.json"), + JSON.stringify(result.metafile, null, 2) + "\n", + { flag: "wx" }, + ); + fs.writeFileSync( + path.join(diagnostics, "warnings.json"), + JSON.stringify(result.warnings, null, 2) + "\n", + { flag: "wx" }, + ); + fs.renameSync( + path.join(app, "openclaw-app.cjs.map"), + path.join(diagnostics, "pre-import-bridge-openclaw-app.cjs.map"), + ); + // Native import() cannot execute from a SEA main with useCodeCache. Delegate + // only these generated external-import expressions to one normal Node module. + // Internal imports are already compiler module-table calls. No source file is edited. + const ts = require(path.join(source, "node_modules", "typescript")) as { + ScriptTarget: { Latest: number }; + ScriptKind: { JS: number }; + SyntaxKind: { ImportKeyword: number; Identifier: number; StringLiteral: number }; + createSourceFile( + name: string, + text: string, + target: number, + parents: boolean, + kind: number, + ): AstNode; + isCallExpression(node: AstNode): boolean; + forEachChild(node: AstNode, visit: (node: AstNode) => void): void; + }; + type AstNode = { + kind: number; + expression?: AstNode; + arguments?: AstNode[]; + text?: string; + getStart(source: AstNode): number; + }; + const codePath = path.join(app, "openclaw-app.cjs"); + let codeText = fs.readFileSync(codePath, "utf8"); + const syntax = ts.createSourceFile( + codePath, + codeText, + ts.ScriptTarget.Latest, + true, + ts.ScriptKind.JS, + ); + const imports: number[] = []; + const standaloneRequires: number[] = []; + const standalonePackages = new Set([ + // This optional peer remains absent. Keep its lazy Mistral tracing import + // opaque to the second compiler instead of resolving it at build time. + "@opentelemetry/api", + "undici", + "@snazzah/davey", + "libopus-wasm", + "@discordjs/voice", + ]); + const visit = (node: AstNode) => { + if (ts.isCallExpression(node) && node.expression?.kind === ts.SyntaxKind.ImportKeyword) + imports.push(node.expression.getStart(syntax)); + if ( + ts.isCallExpression(node) && + node.expression?.kind === ts.SyntaxKind.Identifier && + node.expression.text === "require" && + node.arguments?.length === 1 && + node.arguments[0].kind === ts.SyntaxKind.StringLiteral && + standalonePackages.has(node.arguments[0].text ?? "") + ) + standaloneRequires.push(node.expression.getStart(syntax)); + ts.forEachChild(node, visit); + }; + visit(syntax); + const replacements = [ + ...imports.map((offset) => ({ + offset, + original: "import", + replacement: "__nemoExternalImport", + })), + ...standaloneRequires.map((offset) => ({ + offset, + original: "require", + replacement: "__nemoExternalRequire", + })), + ]; + for (const { offset, original, replacement } of replacements.sort( + (a, b) => b.offset - a.offset, + )) { + if (codeText.slice(offset, offset + original.length) !== original) + throw new Error("Unexpected generated module loading syntax."); + codeText = codeText.slice(0, offset) + replacement + codeText.slice(offset + original.length); + } + fs.writeFileSync(codePath, codeText); + const bridge = '"use strict"; module.exports = specifier => import(specifier);\n'; + fs.writeFileSync(path.join(app, "openclaw-dynamic-import.cjs"), bridge, { flag: "wx" }); + const code = Buffer.from(codeText); + publishPluginFacades(app, pluginPlan.entries); + const admittedPackages = stagePublishedResources( + source, + app, + portable ? process.platform : "win32", + ); + const workerResult = await compiler.build({ + entryPoints: [path.join(source, "dist/audit/audit-event-writer.worker.js")], + outfile: path.join(app, "dist/audit/audit-event-writer.worker.js"), + bundle: true, + platform: "node", + format: "cjs", + target: "node22.23", + external, + metafile: true, + define: { "import.meta.url": "__workerUrl" }, + banner: { js: 'const __workerUrl=require("node:url").pathToFileURL(__filename).href;' }, + }); + fs.writeFileSync( + path.join(app, "dist/audit/package.json"), + JSON.stringify({ type: "commonjs" }) + "\n", + { flag: "wx" }, + ); + fs.writeFileSync( + path.join(diagnostics, "plugin-registry.json"), + JSON.stringify(pluginPlan.entries, null, 2) + "\n", + { flag: "wx" }, + ); + fs.writeFileSync( + path.join(diagnostics, "audit-worker-metafile.json"), + JSON.stringify(workerResult.metafile, null, 2) + "\n", + { flag: "wx" }, + ); + fs.writeFileSync( + path.join(output, "build-receipt.json"), + JSON.stringify( + { + schemaVersion: 1, + classification: "compiled-openclaw-code-unit", + sourceVersion: metadata.version, + materializationReceiptSha256: sha256(materializationBytes), + sourcePackageSha256: sha256(fs.readFileSync(path.join(source, "package.json"))), + sourceLockSha256: sha256(fs.readFileSync(path.join(source, "npm-shrinkwrap.json"))), + entrySourceSha256: sha256(fs.readFileSync(entry)), + adapterSha256: sha256(adapter), + compilerVersion: compiler.version, + platform: process.platform, + architecture: process.arch, + nodeVersion: process.versions.node, + portableProof: portable, + compiledInputs: Object.keys(result.metafile.inputs).length, + code: { file: "app/openclaw-app.cjs", bytes: code.length, sha256: sha256(code) }, + exports: ["runOpenClaw", "runCli", "registerPrebuiltPlugins"], + argvConvention: "full [node, entry, ...args]", + assetRootEnvironment: "OPENCLAW_COMPILED_ASSET_ROOT", + nativeImportBridge: { + file: "app/openclaw-dynamic-import.cjs", + bytes: Buffer.byteLength(bridge), + sha256: sha256(bridge), + rewrittenGeneratedImports: imports.length, + rewrittenStandaloneRequires: standaloneRequires.length, + standalonePackages: [...standalonePackages], + keepExternalToSea: true, + }, + externalPackages: external, + optionalUninstalledPeer: "@opentelemetry/api", + resourceContract: + "Original module-relative resource URLs are preserved under the sealed asset root; one shared compiled registry backs canonical plugin facades. Remaining tool/browser execution qualification stays separate.", + runtimeClosureProven: false, + windowsQualified: false, + seaPrepared: false, + cacheCoverage: + "Statically link main CJS into shared SEA useCodeCache. The tiny dynamic-import bridge and separately admitted native/ESM sidecars remain normal Node runtime execution; no whole-runtime cache or native-AOT claim.", + developmentArtifacts: + "diagnostics/ contains the generated adapter, complete compiler map and the explicitly pre-import-bridge source map; it is not a production expansion tree.", + }, + null, + 2, + ) + "\n", + { flag: "wx" }, + ); + const resourceReceipt = { + schemaVersion: 1, + classification: "compiled-openclaw-resource-closure", + package: { + name: metadata.name, + version: metadata.version, + sourceArchiveSha256: "67ad539d9915efb63d5f294beeb9290b7172d23c92d8052110a9c8355f783458", + shrinkwrapSha256: sha256(fs.readFileSync(path.join(source, "npm-shrinkwrap.json"))), + }, + compiler: { + receiptSha256: sha256(fs.readFileSync(path.join(output, "build-receipt.json"))), + mainSha256: sha256(code), + bridgeSha256: sha256(bridge), + pluginRegistryModuleCount: pluginPlan.entries.length, + }, + files: resourceInventory( + app, + pluginPlan.entries.map((entry) => entry.path), + ), + controlUiRoot: "dist/control-ui", + canonicalPluginEntries: pluginPlan.entries, + admittedPackages, + additionalInputArchives: materialization.additionalPackages.map( + ({ package: name, version, sha256, integrity, bytes }) => ({ + name, + version, + sha256, + integrity, + bytes, + }), + ), + absentOptionalPeers: ["@opentelemetry/api", "bufferutil", "utf-8-validate", "supports-color"], + closureAdmitted: false, + closureAdmissionMeaning: + "Reviewed selected gateway composition with no customer build/install fallback; independent of execution qualification. Pending final sidecar/tool and Windows checks.", + qualification: { + portableGatewayObserved: false, + windowsGatewayObserved: false, + modelTools: false, + }, + }; + fs.writeFileSync( + path.join(app, "openclaw-resource-closure.json"), + JSON.stringify(resourceReceipt, null, 2) + "\n", + { flag: "wx" }, + ); + console.log( + JSON.stringify({ + compiledInputs: Object.keys(result.metafile.inputs).length, + codeBytes: code.length, + externalPackages: external.length, + runtimeClosureProven: false, + }), + ); +} catch (error) { + try { + fs.writeFileSync( + path.join(output, "build-failure.json"), + JSON.stringify( + { + classification: "application-compiler-failure", + error: error instanceof Error ? error.message : "Compilation failed.", + }, + null, + 2, + ) + "\n", + ); + } catch { + /* Failure evidence must not replace the original compiler exception. */ + } + throw error; +} diff --git a/packaging/windows/app/materialize-openclaw-build.py b/packaging/windows/app/materialize-openclaw-build.py new file mode 100644 index 00000000000..94351d4b63f --- /dev/null +++ b/packaging/windows/app/materialize-openclaw-build.py @@ -0,0 +1,151 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 +"""Restore exact published app/compiler bytes in CI; never executes package hooks.""" +import argparse +import base64 +import concurrent.futures +import hashlib +import json +import os +from pathlib import Path +import tarfile +import time +import urllib.parse +import urllib.request + + +def require(value, message): + if not value: + raise ValueError(message) + + +def safe_parts(value, allow_current=False): + require(isinstance(value, str) and value and "\\" not in value, "Invalid package path.") + require(not value.startswith("/"), "Absolute package path.") + parts = value.rstrip("/").split("/") + if allow_current: + parts = [part for part in parts if part != "."] + require(parts, "Empty package path.") + devices = {"CON", "PRN", "AUX", "NUL", "CLOCK$"} | { + prefix + digit for prefix in ("COM", "LPT") for digit in "123456789¹²³" + } + for part in parts: + require(part not in ("", ".", "..") and part[-1:] not in (".", " "), "Aliased package path.") + require(not any(ord(char) < 32 or char in '<>:"|?*' for char in part), "Invalid Windows package path character.") + require(part.split(".", 1)[0].upper() not in devices, "Reserved Windows package path.") + return tuple(parts) + + +def fetch(item, cache, deadline): + url = item["url"] + parsed = urllib.parse.urlsplit(url) + require(parsed.scheme == "https" and parsed.hostname == "registry.npmjs.org", "Unexpected package source.") + filename = cache / (hashlib.sha256(url.encode()).hexdigest() + ".tgz") + if not filename.exists(): + temporary = filename.with_suffix(".part") + with urllib.request.urlopen(urllib.request.Request(url, headers={"Accept-Encoding": "identity"}), timeout=30) as response, temporary.open("xb") as target: + count = 0 + while data := response.read(1024 * 1024): + count += len(data) + require(count <= 128 * 1024 * 1024 and time.monotonic() < deadline, "Package download exceeds its bound.") + target.write(data) + target.flush() + os.fsync(target.fileno()) + os.replace(temporary, filename) + data = filename.read_bytes() + require(len(data) <= 128 * 1024 * 1024, "Oversized package archive.") + algorithm, expected = item["integrity"].split("-", 1) + require(algorithm == "sha512" and hashlib.sha512(data).digest() == base64.b64decode(expected), "Package SRI mismatch.") + if "sha256" in item: + require(hashlib.sha256(data).hexdigest() == item["sha256"], "Package SHA256 mismatch.") + if "bytes" in item: + require(len(data) == item["bytes"], "Package archive length mismatch.") + return {"url": url, "archive": str(filename), "bytes": len(data), "sha256": hashlib.sha256(data).hexdigest(), "integrity": item["integrity"]} + + +def extract(archive, destination): + destination.mkdir(parents=True, exist_ok=True) + files = 0 + total = 0 + with tarfile.open(archive, "r:gz") as source: + prefix = None + for member in source: + parts = safe_parts(member.name, allow_current=True) + prefix = parts[0] if prefix is None else prefix + require(parts[0] == prefix, "Multiple package archive roots.") + target = destination.joinpath(*parts[1:]) + if member.isdir(): + target.mkdir(parents=True, exist_ok=True) + continue + require(member.isfile() and member.size <= 128 * 1024 * 1024, "Nonregular or oversized package member.") + files += 1 + total += member.size + require(files <= 50000 and total <= 1024 * 1024 * 1024, "Expanded package exceeds its bound.") + target.parent.mkdir(parents=True, exist_ok=True) + with source.extractfile(member) as incoming: + data = incoming.read(member.size + 1) + require(len(data) == member.size, "Truncated package member.") + if target.exists() or target.is_symlink(): + require(target.is_file() and not target.is_symlink() and target.stat().st_nlink == 1, "Nonregular overlapping package path.") + require(target.read_bytes() == data, "Overlapping package members differ.") + else: + with target.open("xb") as output: + output.write(data) + os.chmod(target, member.mode & 0o755) + return {"files": files, "bytes": total} + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("--output", type=Path, required=True) + parser.add_argument("--cache", type=Path, required=True) + parser.add_argument("--lock", type=Path, default=Path(__file__).with_name("windows-app-build.lock.json")) + parser.add_argument("--portable-proof", action="store_true") + args = parser.parse_args() + require(os.name == "nt" or args.portable_proof, "Materialization is a Windows CI operation.") + require(not args.output.exists(), "A fresh build-input directory is required.") + args.output.mkdir(parents=True) + args.cache.mkdir(parents=True, exist_ok=True) + lock = json.loads(args.lock.read_text()) + require(lock["schemaVersion"] == 1, "Unknown application build lock.") + deadline = time.monotonic() + 900 + source = fetch(lock["openclaw"], args.cache, deadline) + package = args.output / "openclaw" + source_inventory = extract(source["archive"], package) + shrinkwrap = json.loads((package / "npm-shrinkwrap.json").read_text()) + require(shrinkwrap["name"] == "openclaw" and shrinkwrap["version"] == "2026.7.1" and shrinkwrap["lockfileVersion"] == 3, "Unexpected source shrinkwrap.") + packages = shrinkwrap["packages"] + requested = {item["resolved"]: {"url": item["resolved"], "integrity": item["integrity"]} for name, item in packages.items() if name} + with concurrent.futures.ThreadPoolExecutor(max_workers=8) as workers: + archives = list(workers.map(lambda item: fetch(item, args.cache, deadline), requested.values())) + by_url = {item["url"]: item for item in archives} + dependencies = [] + for name, item in packages.items(): + if not name: + continue + components = safe_parts(name) + require(name.startswith("node_modules/"), "Invalid locked package path.") + inventory = extract(by_url[item["resolved"]]["archive"], package.joinpath(*components)) + dependencies.append({"path": name, "version": item["version"], "lifecycleScriptDeclared": item.get("hasInstallScript", False), **inventory}) + platform_package = "@esbuild/darwin-arm64" if args.portable_proof else "@esbuild/win32-arm64" + compiler = [] + for item in lock["compilerPackages"]: + if item["package"] not in ("esbuild", platform_package): + continue + archive = fetch(item, args.cache, deadline) + inventory = extract(archive["archive"], args.output / "tools" / "node_modules" / item["package"]) + compiler.append({**archive, "package": item["package"], **inventory}) + additional = [] + for item in lock.get("additionalPackages", []): + target = safe_parts(item["target"]) + require(target[:1] == ("plugins",), "Additional app inputs require the plugins namespace.") + archive = fetch(item, args.cache, deadline) + inventory = extract(archive["archive"], args.output.joinpath(*target)) + additional.append({**archive, "package": item["package"], "version": item["version"], "target": item["target"], **inventory}) + receipt = {"schemaVersion": 1, "classification": "verified-application-build-inputs", "portableProof": args.portable_proof, "source": source, "sourceInventory": source_inventory, "dependencyArchives": archives, "dependencies": dependencies, "compiler": compiler, "additionalPackages": additional, "lifecycleScriptsExecuted": False, "runtimeReady": False, "lockSha256": hashlib.sha256(args.lock.read_bytes()).hexdigest()} + (args.output / "materialization-receipt.json").write_text(json.dumps(receipt, indent=2) + "\n") + print(json.dumps({"packages": len(dependencies), "sourceRoot": str(package), "toolRoot": str(args.output / "tools"), "runtimeReady": False})) + + +if __name__ == "__main__": + main() diff --git a/packaging/windows/app/openclaw-app-resources.mts b/packaging/windows/app/openclaw-app-resources.mts new file mode 100644 index 00000000000..176fe64e1e5 --- /dev/null +++ b/packaging/windows/app/openclaw-app-resources.mts @@ -0,0 +1,522 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 +// CI-only composition of the pinned package's prebuilt runtime. No dependency scripts run here. +import fs from "node:fs"; +import path from "node:path"; +import { createHash } from "node:crypto"; +import { createRequire } from "node:module"; +import type { Plugin, TransformOptions, TransformResult } from "esbuild"; +import type ts from "typescript"; + +type Syntax = typeof ts; +type Transformer = { + transform(input: string, options: TransformOptions): Promise; +}; +type Entry = { path: string; exports: string[]; sourceSha256: string }; +type Role = + | "metadata" + | "control-ui" + | "plugin-facade" + | "worker" + | "native-sidecar" + | "runtime-sidecar" + | "license"; +export type ResourceFile = { path: string; bytes: number; sha256: string; role: Role }; +type PackageMetadata = { + name: string; + version: string; + dependencies?: Record; + optionalDependencies?: Record; + os?: string[]; + cpu?: string[]; +}; +export const sha256 = (bytes: Uint8Array | string) => + createHash("sha256").update(bytes).digest("hex"); +const portablePath = (file: string) => file.split(path.sep).join("/"); +function javascriptStringLiteral(value: string) { + return JSON.stringify(value).replace( + /[<>/\u2028\u2029]/gu, + (character) => `\\u${character.charCodeAt(0).toString(16).padStart(4, "0")}`, + ); +} +function readOpenedResource(file: string) { + const descriptor = fs.openSync(file, "r"); + try { + const opened = fs.fstatSync(descriptor); + const named = fs.lstatSync(file); + if ( + !opened.isFile() || + !named.isFile() || + named.isSymbolicLink() || + named.dev !== opened.dev || + named.ino !== opened.ino + ) + throw new Error("Runtime resource output is not an ordinary exact file."); + return fs.readFileSync(descriptor); + } finally { + fs.closeSync(descriptor); + } +} +function regular(file: string) { + const stat = fs.lstatSync(file); + if (!stat.isFile() || stat.isSymbolicLink() || stat.nlink !== 1) + throw new Error("Runtime composition requires ordinary, single-link input files."); + return stat; +} +function packageName(name: string) { + if (!/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/i.test(name)) + throw new Error("Invalid runtime dependency name."); + return name; +} +function filesBelow(root: string): string[] { + const result: string[] = []; + for (const item of fs.readdirSync(root, { withFileTypes: true })) { + if (item.isSymbolicLink()) + throw new Error("Runtime resource links require separate admission."); + const file = path.join(root, item.name); + if (item.isDirectory()) result.push(...filesBelow(file)); + else { + regular(file); + result.push(file); + } + } + return result.sort(); +} +function copyExact(source: string, target: string) { + regular(source); + const content = fs.readFileSync(source); + fs.mkdirSync(path.dirname(target), { recursive: true }); + try { + fs.writeFileSync(target, content, { flag: "wx" }); + } catch (error) { + if ((error as NodeJS.ErrnoException).code !== "EEXIST") throw error; + if (!readOpenedResource(target).equals(content)) + throw new Error("Conflicting runtime resource output."); + } +} +function exportNames(syntax: Syntax, file: string, text: string) { + const parsed = syntax.createSourceFile( + file, + text, + syntax.ScriptTarget.Latest, + true, + syntax.ScriptKind.JS, + ); + const names: string[] = []; + for (const statement of parsed.statements) { + if (!syntax.isExportDeclaration(statement)) continue; + if (!statement.exportClause || !syntax.isNamedExports(statement.exportClause)) + throw new Error("A compiled plugin entry requires explicit reviewed exports."); + for (const entry of statement.exportClause.elements) names.push(entry.name.text); + } + return names; +} +export function normalizeWindowsNativePluginRequire(relative: string, text: string) { + if (relative !== "dist/plugin-module-loader-cache-uqaaAPup.js") return text; + if (sha256(text) !== "af5dc41aba74bb7eab264d1544d16a86906401bfe1c24a0ad53ae25bb8f1d2ac") + throw new Error("The reviewed native plugin loader changed."); + const original = "return withNativeRequireAliases(aliasMap, () => nodeRequire(modulePath));"; + if (text.split(original).length !== 2) throw new Error("The native plugin require seam changed."); + // Windows callers use file URLs for ESM/Jiti. Native require needs the + // corresponding filesystem path; ordinary specifiers and all guards stay intact. + return text.replace( + original, + 'return withNativeRequireAliases(aliasMap, () => nodeRequire(process.platform === "win32" && typeof modulePath === "string" && modulePath.startsWith("file:") ? fileURLToPath(modulePath) : modulePath));', + ); +} +export function guardWindowsInstallerUpdate(relative: string, text: string) { + if (relative !== "dist/update-B0wRhzt_.js") return text; + if (sha256(text) !== "d9ab62237a9405a6ce9057d6193f42a6c833c6738be0771e992b8d3e39f734aa") + throw new Error("The reviewed gateway update handler changed."); + const validation = + 'if (!assertValidParams(params, validateUpdateRunParams, "update.run", respond)) return;'; + if (text.split(validation).length !== 2) + throw new Error("The gateway update admission seam changed."); + const refusal = + 'if (process.platform === "win32") { respond(false, void 0, __nemoUpdateErrorShape(__nemoUpdateErrorCodes.UNAVAILABLE, "This Windows application is managed by the NemoClaw installer. Use the NemoClaw installer to update or repair it.")); return; }'; + return ( + 'import { Gn as __nemoUpdateErrorShape, Wn as __nemoUpdateErrorCodes } from "./schema-BuOFpc7K.js";\n' + + text.replace(validation, validation + "\n" + refusal) + ); +} +export const PREBUILT_CHOICE_PLUGINS = { + brave: { + package: "@openclaw/brave-plugin", + sha256: "f5198ea18ea0adebc376c669b8e5e1100781f07ec2d9e24e86c90cb82acb039c", + }, + discord: { + package: "@openclaw/discord", + sha256: "28f1511de04906def70f7ff6950cd2d26f52be0ec93c5efce8f5c07cb46bc521", + }, + slack: { + package: "@openclaw/slack", + sha256: "d6ae8745867d812560e917707e633c8b66b36f7270124a8cca9602c6dc98ef46", + }, + tavily: { + package: "@openclaw/tavily-plugin", + sha256: "c8d7c2fb40b0c6a3f8ad99e927c1851ef501bef89ce049e88ab79083ff6dcb09", + }, +} as const; +function choiceRoots(source: string) { + return Object.keys(PREBUILT_CHOICE_PLUGINS).map((id) => ({ + id, + root: path.join(path.dirname(source), "plugins", id), + })); +} +function packagedModulePath(source: string, file: string): string | undefined { + if (file.startsWith(source + path.sep)) return portablePath(path.relative(source, file)); + const plugin = choiceRoots(source).find((value) => file.startsWith(value.root + path.sep)); + return plugin + ? `plugins/${plugin.id}/${portablePath(path.relative(plugin.root, file))}` + : undefined; +} +export function guardWindowsConfiguredPluginInstall(relative: string, text: string) { + if (relative !== "dist/missing-configured-plugin-install-jsvFew4a.js") return text; + if (sha256(text) !== "637689bddd8bcc278ef7a0af5535b933aa36bdc02510583e1ece61d1b0713354") + throw new Error("The reviewed configured-plugin repair source changed."); + const refusal = + 'if (process.platform === "win32") throw new Error("A configured plugin is missing or incomplete in this installer-managed Windows application. Repair or update NemoClaw with its installer; runtime plugin downloads are disabled.");'; + for (const marker of [ + "if (missingRecordedPluginIds.length > 0) {", + "const installed = await installCandidate({", + ]) + if (text.split(marker).length !== 2) + throw new Error("The configured-plugin repair admission seam changed."); + return text + .replace( + "if (missingRecordedPluginIds.length > 0) {", + "if (missingRecordedPluginIds.length > 0) {\n" + refusal, + ) + .replace( + "const installed = await installCandidate({", + refusal + "\nconst installed = await installCandidate({", + ); +} +export function prebuiltPluginRegistrationSource(source: string) { + const records = "dist/installed-plugin-index-records-NrU3hnwq.js"; + const reader = "dist/installed-plugin-index-record-reader-CrcykudU.js"; + for (const [file, expected] of [ + [records, "5500445dcd66876952758eec91019a3c4dcc4a852498f956022828f0f867d21f"], + [reader, "2e0f0a33799137ed64dede1f05bf6b19fdba8a4d1f69e3f0f3906ce916d0497a"], + ]) + if (sha256(fs.readFileSync(path.join(source, file))) !== expected) + throw new Error("The reviewed plugin record API changed."); + return `export async function registerPrebuiltPlugins(config) { + __nemoPrepareAssetRoot(); + const fs = require("node:fs"), path = require("node:path"); + const packages = ${JSON.stringify(Object.fromEntries(Object.entries(PREBUILT_CHOICE_PLUGINS).map(([id, item]) => [id, item.package])))}; + const ids = Object.keys(packages).filter(id=>config.plugins?.entries?.[id]?.enabled === true); + if (!ids.length) return {schemaVersion:1,registered:[]}; + const selected = ids.map(id=>{ + const directory = path.join(__nemoAssetDir,"plugins",id); + const metadata = JSON.parse(fs.readFileSync(path.join(directory,"package.json"),"utf8")); + if(metadata.name!==packages[id]||metadata.version!=="2026.7.1") throw new Error("The prebuilt plugin is missing or differs from this application; repair NemoClaw with its installer."); + const entries=metadata.openclaw?.runtimeExtensions??metadata.openclaw?.extensions; + if(!Array.isArray(entries)||!entries.length)throw new Error("The prebuilt plugin runtime is incomplete; repair NemoClaw with its installer."); + for(const entry of entries) { + if(typeof entry!=="string"||!entry.startsWith("./dist/")||entry.includes("..")||entry.includes("\\\\")) throw new Error("The prebuilt plugin runtime entry is invalid."); + const info=fs.lstatSync(path.join(directory,entry)); + if(!info.isFile()||info.isSymbolicLink())throw new Error("The prebuilt plugin runtime entry is unavailable; repair NemoClaw with its installer."); + } + return {pluginId:id,source:"path",sourcePath:directory,installPath:directory,version:metadata.version}; + }); + // Called before runCli or runtime loader initialization. These canonical APIs + // update only the guest state's SQLite record/index and their metadata caches. + const {t:loadRecords}=await import(${JSON.stringify(path.join(source, reader))}); + const {n:recordPluginInstallInRecords,s:writeRecords}=await import(${JSON.stringify(path.join(source, records))}); + let records=await loadRecords({env:process.env}); + for(const update of selected)records=recordPluginInstallInRecords(records,update); + await writeRecords(records,{config,env:process.env}); + return {schemaVersion:1,registered:ids}; +}\n`; +} + +export function compiledPluginPlan(source: string, syntax: Syntax, compiler: Transformer) { + const entryFiles = filesBelow(path.join(source, "dist", "extensions")).filter( + (file) => + file.endsWith(".js") && + path.relative(path.join(source, "dist", "extensions"), file).split(path.sep).length === 2, + ); + entryFiles.push(path.join(source, "dist", "plugins", "runtime", "index.js")); + for (const plugin of choiceRoots(source)) + entryFiles.push( + ...filesBelow(path.join(plugin.root, "dist")).filter((file) => file.endsWith(".js")), + ); + for (const name of [ + "plugin-entry", + "extension-shared", + "provider-web-search-config-contract", + "string-coerce-runtime", + "diagnostic-runtime", + "lazy-runtime", + "provider-http", + "provider-web-search", + "runtime-env", + "ssrf-runtime", + ]) + entryFiles.push(path.join(source, "dist", "plugin-sdk", `${name}.js`)); + const entries: Entry[] = entryFiles.map((file) => { + const text = fs.readFileSync(file, "utf8"); + return { + path: packagedModulePath(source, file)!, + exports: exportNames(syntax, file, text), + sourceSha256: sha256(text), + }; + }); + const factories = entries + .map( + (entry) => + `${javascriptStringLiteral(entry.path)}:()=>require(${javascriptStringLiteral(entryFiles[entries.indexOf(entry)]!)})`, + ) + .join(",\n"); + const prelude = `const factories={${factories}}; +const registry=Object.freeze({load(key){if(!Object.hasOwn(factories,key))throw Error("Unknown compiled plugin entry");return factories[key]();}}); +Object.defineProperty(globalThis,Symbol.for("nemoclaw.compiled-openclaw.plugins.v1"),{value:registry});\n`; + // Preserve each original module's resource location while compiling its code into one graph. + // This avoids duplicate plugin/core singletons and does not rewrite any canonical input file. + const plugin: Plugin = { + name: "compiled-openclaw-module-locations", + setup(build) { + const canonical = createRequire(path.join(source, "package.json")); + build.onResolve({ filter: /^openclaw(?:\/|$)/ }, (args) => ({ + path: canonical.resolve(args.path), + })); + build.onLoad({ filter: /\.[cm]?js$/ }, async (args) => { + const sourceRelative = packagedModulePath(source, args.path); + if (sourceRelative === undefined) return; + const original = fs.readFileSync(args.path, "utf8"); + const text = guardWindowsConfiguredPluginInstall( + sourceRelative, + guardWindowsInstallerUpdate( + sourceRelative, + normalizeWindowsNativePluginRequire(sourceRelative, original), + ), + ); + if ( + !text.includes("import.meta") && + !text.includes("__dirname") && + !text.includes("__filename") + ) + return text === original + ? undefined + : { contents: text, loader: "js", resolveDir: path.dirname(args.path) }; + const relative = JSON.stringify(sourceRelative); + const result = await compiler.transform(text, { + loader: "js", + sourcefile: args.path, + define: { + "import.meta.url": "__originalModuleUrl", + __dirname: "__originalDirname", + __filename: "__originalFilename", + }, + banner: `const __originalModuleUrl=__nemoModuleUrlFor(${relative});const __originalFilename=__nemoModuleFilenameFor(${relative});const __originalDirname=__nemoModuleDirnameFor(${relative});`, + }); + return { contents: result.code, loader: "js", resolveDir: path.dirname(args.path) }; + }); + }, + }; + const banner = ` +function __nemoModuleFilenameFor(relative){return require("node:path").join(__nemoAssetDir,relative);} +function __nemoModuleDirnameFor(relative){return require("node:path").dirname(__nemoModuleFilenameFor(relative));} +function __nemoModuleUrlFor(relative){return require("node:url").pathToFileURL(__nemoModuleFilenameFor(relative)).href;}`; + return { entries, prelude, plugin, banner }; +} +export function publishPluginFacades(app: string, entries: Entry[]) { + for (const entry of entries) { + const content = + `const registry=globalThis[Symbol.for("nemoclaw.compiled-openclaw.plugins.v1")];if(!registry)throw Error("The compiled OpenClaw owner is unavailable");const original=registry.load(${JSON.stringify(entry.path)});\n` + + entry.exports + .map( + (name, index) => + `const v${index}=original[${JSON.stringify(name)}];export{v${index} as ${JSON.stringify(name)}};`, + ) + .join("\n") + + "\n"; + const target = path.join(app, entry.path); + fs.mkdirSync(path.dirname(target), { recursive: true }); + fs.writeFileSync(target, content, { flag: "wx" }); + } +} +function resolvePackage(source: string, importer: string, name: string) { + packageName(name); + let directory = importer; + const boundary = + importer.startsWith(source + path.sep) || importer === source + ? source + : choiceRoots(source).find( + (item) => importer === item.root || importer.startsWith(item.root + path.sep), + )?.root; + if (!boundary) return undefined; + while (directory === boundary || directory.startsWith(boundary + path.sep)) { + const candidate = path.join(directory, "node_modules", name); + if (fs.existsSync(path.join(candidate, "package.json"))) return candidate; + directory = path.dirname(directory); + } + return undefined; +} +function targetMatches(values: string[] | undefined, target: string) { + return ( + !values || + (!values.includes(`!${target}`) && + (!values.some((value) => !value.startsWith("!")) || values.includes(target))) + ); +} +const sidecarRoots = [ + "@lydell/node-pty", + "@openclaw/fs-safe", + "@silvia-odwyer/photon-node", + "clawpdf", + "rastermill", + "quickjs-wasi", + "web-tree-sitter", + "tree-sitter-bash", + "playwright-core", + "typescript", + "jiti", + "@homebridge/ciao", + "undici", +]; +export function stagePublishedResources(source: string, app: string, platform = "win32") { + for (const name of ["package.json", "LICENSE", "THIRD_PARTY_NOTICES.md"]) + copyExact(path.join(source, name), path.join(app, name)); + // UI JavaScript is already the canonical published frontend build. All its dynamic + // chunks, fonts, styles and other data are copied, never compiled on the customer machine. + for (const directory of ["dist/control-ui", "skills"]) { + for (const file of filesBelow(path.join(source, directory))) + copyExact(file, path.join(app, path.relative(source, file))); + } + for (const file of filesBelow(path.join(source, "dist"))) { + const relative = portablePath(path.relative(source, file)); + if (relative.startsWith("dist/control-ui/")) continue; + // Preserve published data/licenses and nested extension resources. Development + // declarations/maps are not deleted from the source; the compiled profile does not use them. + const nestedExtension = + relative.startsWith("dist/extensions/") && relative.split("/").length > 4; + if ( + (!file.endsWith(".js") && !file.endsWith(".ts") && !file.endsWith(".map")) || + nestedExtension + ) + copyExact(file, path.join(app, relative)); + } + const pending = sidecarRoots.map((name) => { + const found = resolvePackage(source, source, name); + if (!found) throw new Error(`Missing pinned runtime sidecar: ${name}`); + return found; + }); + for (const name of ["@snazzah/davey", "libopus-wasm", "@discordjs/voice"]) { + const found = resolvePackage( + source, + path.join(path.dirname(source), "plugins", "discord"), + name, + ); + if (!found) throw new Error(`Missing canonical Discord native/WASM sidecar: ${name}`); + pending.push(found); + } + const seen = new Set(); + const destinations = new Map(); + const packages: { name: string; version: string; path: string; packageSha256: string }[] = []; + while (pending.length) { + const folder = pending.shift()!; + if (seen.has(folder)) continue; + seen.add(folder); + const packageBytes = fs.readFileSync(path.join(folder, "package.json")); + const metadata = JSON.parse(packageBytes.toString("utf8")) as PackageMetadata; + if ( + !targetMatches(metadata.os, platform) || + (!targetMatches(metadata.cpu, "arm64") && metadata.name !== "@snazzah/davey-wasm32-wasi") + ) + continue; + const destination = folder.startsWith(source + path.sep) + ? portablePath(path.relative(source, folder)) + : "node_modules/" + metadata.name; + const prior = destinations.get(destination); + if (prior) { + if (prior !== sha256(packageBytes)) + throw new Error("Conflicting pinned native sidecar dependency."); + } + destinations.set(destination, sha256(packageBytes)); + if (!prior) + packages.push({ + name: metadata.name, + version: metadata.version, + path: destination, + packageSha256: sha256(packageBytes), + }); + for (const file of filesBelow(folder)) { + if (path.relative(folder, file).split(path.sep).includes("node_modules")) continue; + copyExact(file, path.join(app, destination, path.relative(folder, file))); + } + for (const [name] of Object.entries({ + ...metadata.dependencies, + ...metadata.optionalDependencies, + })) { + const dependency = resolvePackage(source, folder, name); + if (!dependency) throw new Error(`Missing pinned transitive sidecar: ${name}`); + pending.push(dependency); + } + } + for (const plugin of choiceRoots(source)) { + const bytes = fs.readFileSync(path.join(plugin.root, "package.json")); + const metadata = JSON.parse(bytes.toString("utf8")) as PackageMetadata; + if ( + metadata.name !== + PREBUILT_CHOICE_PLUGINS[plugin.id as keyof typeof PREBUILT_CHOICE_PLUGINS].package || + metadata.version !== "2026.7.1" + ) + throw new Error("The reviewed complete choice plugin is required."); + const locked = JSON.parse( + fs.readFileSync(path.join(plugin.root, "npm-shrinkwrap.json"), "utf8"), + ) as { packages: Record }; + const dependencies = Object.entries(locked.packages) + .filter(([name]) => name.startsWith("node_modules/")) + .sort(([left], [right]) => right.length - left.length); + for (const file of filesBelow(plugin.root)) { + const relative = portablePath(path.relative(plugin.root, file)); + // These complete packages live at the shared agent node_modules root. + // Do not leave a nearer metadata-only package shadowing their entrypoints. + if ( + ["undici", "@snazzah/davey", "libopus-wasm", "@discordjs/voice"].some((name) => + relative.startsWith("node_modules/" + name + "/"), + ) + ) + continue; + const dependency = dependencies.find(([name]) => relative.startsWith(name + "/")); + if ( + dependency && + (!targetMatches(dependency[1].os, platform) || + (!targetMatches(dependency[1].cpu, "arm64") && + !dependency[0].endsWith("/@snazzah/davey-wasm32-wasi"))) + ) + continue; + // Every plugin JS runtime entry has a compiled facade. Preserve its + // original non-code resources and the bundled dependency data/licenses. + if (/\.(?:[cm]?js|[cm]?ts|map)$/.test(file)) continue; + copyExact(file, path.join(app, "plugins", plugin.id, relative)); + } + packages.push({ + name: metadata.name, + version: metadata.version, + path: "plugins/" + plugin.id, + packageSha256: sha256(bytes), + }); + } + return packages.sort((a, b) => a.path.localeCompare(b.path)); +} +export function resourceInventory(app: string, facadePaths: string[]): ResourceFile[] { + const facades = new Set(facadePaths); + return filesBelow(app) + .filter((file) => !file.endsWith("openclaw-resource-closure.json")) + .map((file) => { + const relative = portablePath(path.relative(app, file)); + let role: Role = "metadata"; + if (relative.startsWith("dist/control-ui/")) role = "control-ui"; + else if (relative.startsWith("dist/audit/")) role = "worker"; + else if (facades.has(relative)) role = "plugin-facade"; + else if (/\.(?:node|dll|exe)$/i.test(file)) role = "native-sidecar"; + else if (/(?:LICENSE|NOTICE|COPYING)/i.test(path.basename(file))) role = "license"; + else if (relative.startsWith("node_modules/") || /\.[cm]?js$/.test(file)) + role = "runtime-sidecar"; + const bytes = fs.readFileSync(file); + return { path: relative, bytes: bytes.length, sha256: sha256(bytes), role }; + }); +} diff --git a/packaging/windows/app/prepare-app-node.ps1 b/packaging/windows/app/prepare-app-node.ps1 new file mode 100644 index 00000000000..33ba7b2bbd0 --- /dev/null +++ b/packaging/windows/app/prepare-app-node.ps1 @@ -0,0 +1,85 @@ +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +# CI-only input preparation. This script is never part of the installed application. +[CmdletBinding()] +param( + [Parameter(Mandatory=$true)][string]$LockPath, + [Parameter(Mandatory=$true)][string]$OutputDirectory +) +Set-StrictMode -Version Latest +$ErrorActionPreference = 'Stop' +if ($env:GITHUB_ACTIONS -cne 'true' -or $env:OS -cne 'Windows_NT' -or + [Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture -ne [Runtime.InteropServices.Architecture]::Arm64) { + throw 'Application compilation requires the native GitHub Windows ARM64 runner.' +} +$lock = Get-Content -LiteralPath $LockPath -Raw | ConvertFrom-Json +$artifacts = @($lock.artifacts | Where-Object { $_.file -ceq 'node-v22.23.2-win-arm64.zip' }) +if ($artifacts.Count -ne 1) { throw 'The canonical runtime lock must contain exactly one selected Node artifact.' } +$artifact = $artifacts[0] +if ($artifact.url -cne 'https://nodejs.org/dist/v22.23.2/node-v22.23.2-win-arm64.zip' -or + $artifact.sha256 -cne 'fec025a6da31757e3b6af84c5a1628e9d38442ca99a2161091d78f2fcfa35ef3' -or + $artifact.size -ne 31418167) { throw 'The selected Node distribution differs from the reviewed compilation input.' } +$output = [IO.Path]::GetFullPath($OutputDirectory) +if (Test-Path -LiteralPath $output) { throw 'Application Node preparation requires a fresh output directory.' } +$null = New-Item -ItemType Directory -Path $output +$archive = Join-Path $output $artifact.file +Invoke-WebRequest -Uri $artifact.url -OutFile $archive -UseBasicParsing -TimeoutSec 180 +if ((Get-Item -LiteralPath $archive).Length -ne $artifact.size -or + (Get-FileHash -LiteralPath $archive -Algorithm SHA256).Hash.ToLowerInvariant() -cne $artifact.sha256) { + throw 'The downloaded Node distribution failed its immutable size or SHA-256 check.' +} +Add-Type -AssemblyName System.IO.Compression.FileSystem +$zip = [IO.Compression.ZipFile]::OpenRead($archive) +try { + # npm is retained only as a pinned CI build tool for selected Node agents; + # prepare-finished-host copies only node.exe and LICENSE into the product. + foreach ($name in @('node.exe', 'LICENSE', 'npm.cmd')) { + $members = @($zip.Entries | Where-Object { $_.FullName -ceq "node-v22.23.2-win-arm64/$name" }) + if ($members.Count -ne 1) { throw 'The verified Node archive has an unexpected executable/license layout.' } + $stream = $members[0].Open() + try { + $destination = [IO.File]::Open((Join-Path $output $name), [IO.FileMode]::CreateNew, [IO.FileAccess]::Write, [IO.FileShare]::None) + try { $stream.CopyTo($destination) } finally { $destination.Dispose() } + } finally { $stream.Dispose() } + } + $npmPrefix = 'node-v22.23.2-win-arm64/node_modules/npm/' + foreach ($member in @($zip.Entries | Where-Object { $_.FullName.StartsWith($npmPrefix, [StringComparison]::Ordinal) })) { + $relative = $member.FullName.Substring($npmPrefix.Length) + if ([string]::IsNullOrEmpty($relative)) { continue } + if ($relative.Contains('..') -or $relative.Contains(':') -or $relative.StartsWith('/')) { + throw 'The verified npm member has an unsafe path.' + } + $destination = Join-Path $output ('node_modules\npm\' + $relative.Replace('/', '\')) + if ($member.FullName.EndsWith('/')) { [IO.Directory]::CreateDirectory($destination) | Out-Null; continue } + [IO.Directory]::CreateDirectory([IO.Path]::GetDirectoryName($destination)) | Out-Null + $stream = $member.Open() + try { + $file = [IO.File]::Open($destination, [IO.FileMode]::CreateNew, [IO.FileAccess]::Write, [IO.FileShare]::None) + try { $stream.CopyTo($file) } finally { $file.Dispose() } + } finally { $stream.Dispose() } + } +} finally { $zip.Dispose() } +$node = Join-Path $output 'node.exe' +$version = & $node -p 'JSON.stringify({version:process.versions.node,platform:process.platform,architecture:process.arch})' +if ($LASTEXITCODE -ne 0) { throw 'The verified Node executable failed its native execution check.' } +$identity = $version | ConvertFrom-Json +if ($identity.version -cne '22.23.2' -or $identity.platform -cne 'win32' -or $identity.architecture -cne 'arm64') { + throw 'The selected compiler/runtime is not the pinned native Windows ARM64 Node.' +} +$signature = Get-AuthenticodeSignature -LiteralPath $node +$npmVersion = (& $node (Join-Path $output 'node_modules\npm\bin\npm-cli.js') --version | Out-String).Trim() +if ($LASTEXITCODE -ne 0 -or $npmVersion -cne '10.9.8') { throw 'The pinned Node archive npm tool is invalid.' } +$receipt = [ordered]@{ + schemaVersion = 1; classification = 'compiled-windows-app-node-input' + upstream = $artifact.url; archiveSha256 = $artifact.sha256 + nodeSha256 = (Get-FileHash -LiteralPath $node -Algorithm SHA256).Hash.ToLowerInvariant() + licenseSha256 = (Get-FileHash -LiteralPath (Join-Path $output 'LICENSE') -Algorithm SHA256).Hash.ToLowerInvariant() + runtime = $identity; signatureStatus = $signature.Status.ToString() + signer = if ($signature.SignerCertificate) { $signature.SignerCertificate.Subject } else { $null } + npmVersion = $npmVersion + controllerSource = $env:GITHUB_SHA + installedAcceptance = $false +} +[IO.File]::WriteAllText((Join-Path $output 'node-input.json'), (($receipt | ConvertTo-Json -Depth 6) + "`n"), [Text.UTF8Encoding]::new($false)) +Write-Host 'Pinned native Node application/compiler input is ready; no package manager was installed.' diff --git a/packaging/windows/app/test-compiled-openclaw-gateway.mts b/packaging/windows/app/test-compiled-openclaw-gateway.mts new file mode 100644 index 00000000000..a30dfc691e4 --- /dev/null +++ b/packaging/windows/app/test-compiled-openclaw-gateway.mts @@ -0,0 +1,469 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 +// Bounded CI composition control. This is not browser/model/MXC qualification. +import fs from "node:fs"; +import path from "node:path"; +import net from "node:net"; +import assert from "node:assert/strict"; +import { spawn } from "node:child_process"; +import { setTimeout as delay } from "node:timers/promises"; +import { createHash } from "node:crypto"; +import { Worker } from "node:worker_threads"; +import { once } from "node:events"; +import { DatabaseSync } from "node:sqlite"; +import { createRequire } from "node:module"; + +async function auditWorkerControl(appRoot: string, stateDir: string) { + fs.mkdirSync(stateDir); + const worker = new Worker(path.join(appRoot, "dist/audit/audit-event-writer.worker.js"), { + workerData: { stateDir }, + execArgv: [], + }); + const exit = new Promise((resolve) => worker.once("exit", resolve)); + const message = () => once(worker, "message", { signal: AbortSignal.timeout(15_000) }); + try { + assert.deepEqual((await message())[0], { type: "ready" }); + const recorded = message(); + worker.postMessage({ + type: "record", + input: { + sourceSequence: 1, + occurredAt: Date.now(), + kind: "tool", + action: "invoke", + status: "succeeded", + actorType: "agent", + actorId: "owned-control", + agentId: "main", + runId: "owned-audit-worker-control", + toolCallId: "call-1", + toolName: "owned-local-control", + }, + }); + assert.deepEqual((await recorded)[0], { type: "recorded" }); + const stopped = message(); + worker.postMessage({ type: "stop" }); + assert.deepEqual((await stopped)[0], { type: "stopped" }); + assert.equal( + await Promise.race([ + exit, + delay(15_000, undefined, { ref: false }).then(() => { + throw new Error("Audit worker did not exit after Stop."); + }), + ]), + 0, + ); + const database = new DatabaseSync(path.join(stateDir, "state/openclaw.sqlite"), { + readOnly: true, + }); + let row; + try { + row = database + .prepare( + "select source_sequence,kind,action,status,agent_id,run_id,tool_name from audit_events", + ) + .get(); + } finally { + database.close(); + } + assert.deepEqual( + { ...row }, + { + source_sequence: 1, + kind: "tool", + action: "invoke", + status: "succeeded", + agent_id: "main", + run_id: "owned-audit-worker-control", + tool_name: "owned-local-control", + }, + ); + return { + ready: true, + recorded: true, + stopped: true, + exitCode: 0, + persistedMetadataMatched: true, + }; + } finally { + await worker.terminate(); + } +} +type BrowserPage = { + goto(url: string, options: { waitUntil: "domcontentloaded"; timeout: number }): Promise; + locator(selector: string): { + first(): { + waitFor(options: { state: "visible"; timeout: number }): Promise; + isEnabled(): Promise; + }; + }; + screenshot(options: { path: string }): Promise; +}; +async function browserControl( + appRoot: string, + origin: string, + directory: string, + executablePath: string, +) { + const playwright = createRequire(path.join(appRoot, "openclaw-app.cjs"))("playwright-core") as { + chromium: { + launch(options: { headless: boolean; executablePath: string; timeout: number }): Promise<{ + newPage(options: { viewport: { width: number; height: number } }): Promise; + close(): Promise; + }>; + }; + }; + const browser = await playwright.chromium.launch({ + headless: true, + executablePath, + timeout: 30_000, + }); + let failed = false; + let page: BrowserPage | undefined; + try { + page = await browser.newPage({ viewport: { width: 1280, height: 800 } }); + await page.goto(origin + "/chat#token=owned-compiled-gateway-control-token", { + waitUntil: "domcontentloaded", + timeout: 90_000, + }); + const composer = page.locator(".agent-chat__composer-combobox > textarea").first(); + await composer.waitFor({ state: "visible", timeout: 90_000 }); + const deadline = performance.now() + 30_000; + while (!(await composer.isEnabled()) && performance.now() < deadline) await delay(100); + assert.equal( + await composer.isEnabled(), + true, + "The actual published dashboard composer must become enabled.", + ); + await page.screenshot({ path: path.join(directory, "compiled-dashboard.png") }); + return { visibleComposer: true, enabledComposer: true, modelRequestSent: false }; + } catch (error) { + failed = true; + try { + await page?.screenshot({ path: path.join(directory, "compiled-dashboard-failed.png") }); + } catch { + /* Keep the primary startup error if the browser cannot capture a frame. */ + } + throw error; + } finally { + try { + await browser.close(); + } catch (error) { + if (!failed) + throw error; /* Preserve the primary browser failure; this path never reports browser success. */ + } + } +} +function argument(name: string) { + const index = process.argv.indexOf(name); + if (index < 0 || !process.argv[index + 1]) throw new Error(`Missing ${name}`); + return path.resolve(process.argv[index + 1]); +} +const app = argument("--app-root"); +const output = argument("--output"); +const portable = process.argv.includes("--portable-proof"); +const withBrave = process.argv.includes("--with-brave"); +const browserExecutable = process.argv.includes("--browser-executable") + ? argument("--browser-executable") + : undefined; +if ( + !portable && + (process.platform !== "win32" || process.arch !== "arm64" || process.versions.node !== "22.23.2") +) + throw new Error("The gateway control requires canonical Windows ARM64 Node 22.23.2."); +if (fs.existsSync(output)) throw new Error("Gateway evidence requires a fresh output directory."); +fs.mkdirSync(output, { recursive: true }); +const state = path.join(output, "state"); +fs.mkdirSync(state); +const receipt = JSON.parse( + fs.readFileSync(path.join(app, "openclaw-resource-closure.json"), "utf8"), +) as { + compiler: { mainSha256: string }; + files: { path: string; bytes: number; sha256: string; role: string }[]; +}; +const hash = (bytes: Uint8Array) => createHash("sha256").update(bytes).digest("hex"); +assert.equal( + hash(fs.readFileSync(path.join(app, "openclaw-app.cjs"))), + receipt.compiler.mainSha256, +); +const allocator = net.createServer(); +await new Promise((resolve, reject) => { + allocator.once("error", reject); + allocator.listen(0, "127.0.0.1", resolve); +}); +const port = (allocator.address() as net.AddressInfo).port; +await new Promise((resolve, reject) => + allocator.close((error) => (error ? reject(error) : resolve())), +); +const origin = `http://127.0.0.1:${port}`; +const inherited: NodeJS.ProcessEnv = {}; +for (const name of [ + "SystemRoot", + "SystemDrive", + "WINDIR", + "ComSpec", + "PATH", + "PATHEXT", + "OS", + "PROCESSOR_ARCHITECTURE", + "ProgramFiles", + "ProgramFiles(x86)", + "ProgramW6432", + "LANG", + "LC_ALL", + "TMPDIR", + "TEMP", + "TMP", +]) { + const key = Object.keys(process.env).find((key) => key.toLowerCase() === name.toLowerCase()); + if (key) inherited[key] = process.env[key]; +} +const env: NodeJS.ProcessEnv = { + ...inherited, + HOME: state, + USERPROFILE: state, + LOCALAPPDATA: state, + APPDATA: state, + OPENCLAW_STATE_DIR: state, + OPENCLAW_HOME: state, + OPENCLAW_COMPILED_ASSET_ROOT: app, + OPENCLAW_NO_RESPAWN: "1", + NODE_DISABLE_COMPILE_CACHE: "1", + OPENCLAW_GATEWAY_STARTUP_TRACE: "1", +}; +const systemRoot = Object.entries(inherited).find( + ([name]) => name.toUpperCase() === "SYSTEMROOT", +)?.[1]; +if (process.platform === "win32" && !systemRoot) + throw new Error("Windows controls require the owned SystemRoot."); +env.PATH = [ + path.dirname(process.execPath), + ...(systemRoot ? [path.join(systemRoot, "System32"), systemRoot] : ["/usr/bin", "/bin"]), +].join(path.delimiter); +delete env.NODE_OPTIONS; +delete env.NODE_PATH; +fs.writeFileSync( + path.join(state, "openclaw.json"), + JSON.stringify({ + gateway: { + mode: "local", + bind: "loopback", + port, + auth: { mode: "token", token: "owned-compiled-gateway-control-token" }, + controlUi: { root: path.join(app, "dist/control-ui"), allowedOrigins: [origin] }, + }, + agents: { list: [{ id: "main", default: true }], defaults: { skipBootstrap: true } }, + ...(withBrave + ? { + plugins: { + load: { paths: [path.join(app, "plugins/brave")] }, + entries: { brave: { enabled: true } }, + }, + } + : {}), + logging: { file: path.join(output, "gateway.jsonl") }, + }), + { flag: "wx" }, +); +const started = performance.now(); +// Owned CI supervisor calls the public compiled API. IPC delivers the same in-process +// shutdown signal on Windows, where ChildProcess.kill cannot run JS signal cleanup. +const driver = path.join(output, "gateway-driver.cjs"); +fs.writeFileSync( + driver, + `const entry=process.argv[2];process.argv=[process.execPath,entry,...process.argv.slice(3)]; +process.on("message",message=>{if(message==="owned-gateway-stop")process.emit("SIGTERM");}); +require(entry).runCli(process.argv).catch(error=>{console.error(error);process.exitCode=1;});\n`, + { flag: "wx" }, +); +const child = spawn( + process.execPath, + [ + driver, + path.join(app, "openclaw-app.cjs"), + "gateway", + "run", + "--allow-unconfigured", + "--bind", + "loopback", + "--port", + String(port), + ], + { cwd: app, env, stdio: ["ignore", "pipe", "pipe", "ipc"] }, +); +let stdout = "", + stderr = "", + closed = false, + spawnError: Error | undefined; +const exit = new Promise((resolve) => { + child.once("error", (error) => { + spawnError = error; + }); + child.once("close", (code) => { + closed = true; + resolve(code); + }); +}); +assert.ok(child.stdout && child.stderr, "Owned gateway output pipes must be present."); +child.stdout.on("data", (bytes: Buffer) => { + stdout = (stdout + bytes.toString("utf8")).slice(-2 * 1024 * 1024); +}); +child.stderr.on("data", (bytes: Buffer) => { + stderr = (stderr + bytes.toString("utf8")).slice(-2 * 1024 * 1024); +}); +const result: Record = { + schemaVersion: 1, + classification: "compiled-openclaw-gateway-resource-control", + platform: process.platform, + architecture: process.arch, + nodeVersion: process.versions.node, + portableProof: portable, + codeSha256: receipt.compiler.mainSha256, + modelRequestSent: false, + browserObserved: false, + windowsQualified: false, +}; +let primary: unknown; +let failed = false; +try { + let healthy = false; + while (!closed && performance.now() - started < 45_000) { + try { + const response = await fetch(`${origin}/health`, { signal: AbortSignal.timeout(1_000) }); + if (response.status === 200) { + assert.equal(((await response.json()) as { ok: boolean }).ok, true); + healthy = true; + break; + } + } catch { + /* The real listener is not present during bounded startup. */ + } + await delay(100); + } + if (spawnError) throw spawnError; + assert.equal(healthy, true, "The compiled gateway must become healthy within the control bound."); + result.healthMs = performance.now() - started; + const page = await fetch(`${origin}/chat`, { signal: AbortSignal.timeout(5_000) }); + assert.equal(page.status, 200); + const html = await page.text(); + assert.match(html, / file.role === "control-ui"); + assert.ok(ui.length > 100, "The canonical published frontend resources must be inventoried."); + let resourceBytes = 0; + for (const file of ui) { + const relative = file.path.slice("dist/control-ui/".length); + const response = await fetch( + `${origin}/${relative.split("/").map(encodeURIComponent).join("/")}`, + { signal: AbortSignal.timeout(5_000) }, + ); + assert.equal(response.status, 200, `Published UI resource must be served: ${relative}`); + const content = Buffer.from(await response.arrayBuffer()); + if (relative === "index.html") { + const original = fs.readFileSync(path.join(app, file.path)); + assert.equal(hash(original), file.sha256); + // Pinned serveResolvedIndexHtml adds this fixed setting at the root mount. + const expected = original + .toString("utf8") + .replace(/ line.includes("http server listening (") && line.includes(" plugins:")); + assert.ok(pluginLine, "Actual plugin registration must be reported."); + const match = /\((\d+) plugins: ([^;]+);/.exec(pluginLine); + assert.ok(match); + const plugins = match[2].split(", "); + for (const required of [ + "browser", + "canvas", + "device-pair", + "file-transfer", + "memory-core", + "ollama", + "phone-control", + "talk-voice", + ]) + assert.ok(plugins.includes(required), `Canonical active plugin required: ${required}`); + if (withBrave) + assert.ok(plugins.includes("brave"), "Configured Brave must register successfully."); + result.brave = { + requested: withBrave, + observed: plugins.includes("brave"), + liveSearchTested: false, + }; + result.plugins = plugins; + assert.doesNotMatch( + stdout + stderr, + /failed to load plugin|failed to start audit|Cannot find (?:module|package)|Control UI assets are missing|building.*Control UI/i, + ); + const trace = fs + .readFileSync(path.join(output, "gateway.jsonl"), "utf8") + .split("\n") + .filter(Boolean) + .map((line) => JSON.parse(line) as { message?: string }) + .map((line) => line.message ?? "") + .find((line) => line.startsWith("startup trace: plugins.gateway-load ")); + assert.ok(trace, "The actual canonical plugin loader counters must be retained."); + assert.match(trace, /loaderNativeMissesCount=0\.0(?: |$)/); + assert.match(trace, /loaderSourceTransformForcedCount=0\.0(?: |$)/); + assert.match(trace, /loaderSourceTransformFallbacksCount=0\.0(?: |$)/); + result.pluginLoaderTrace = trace; + result.auditWorker = await auditWorkerControl(app, path.join(output, "audit-worker-state")); + if (browserExecutable) { + result.browser = await browserControl(app, origin, output, browserExecutable); + result.browserObserved = true; + } + result.gatewayObserved = true; +} catch (error) { + failed = true; + primary = error; +} finally { + if (!closed && child.connected) + child.send("owned-gateway-stop", (error) => { + if (error && !closed) child.kill(); + }); + let forced = false; + const force = setTimeout(() => { + if (!closed) { + forced = true; + child.kill("SIGKILL"); + } + }, 10_000); + result.exitCode = await exit; + clearTimeout(force); + result.cleanup = { ownedProcessExited: closed, forced }; + result.elapsedMs = performance.now() - started; + result.passed = !failed && result.exitCode === 0 && !forced; + if (failed) + result.primaryError = + primary instanceof Error ? primary.message : "Gateway control threw a non-Error value."; + fs.writeFileSync(path.join(output, "stdout.log"), stdout, { flag: "wx" }); + fs.writeFileSync(path.join(output, "stderr.log"), stderr, { flag: "wx" }); + fs.writeFileSync( + path.join(output, "gateway-control.json"), + JSON.stringify(result, null, 2) + "\n", + { flag: "wx" }, + ); +} +if (failed) throw primary; +assert.equal(result.passed, true, "Gateway control and owned graceful exit must both pass."); +console.log(JSON.stringify(result)); diff --git a/packaging/windows/app/test-compiled-openclaw-model-tools.mts b/packaging/windows/app/test-compiled-openclaw-model-tools.mts new file mode 100644 index 00000000000..6b60de7749c --- /dev/null +++ b/packaging/windows/app/test-compiled-openclaw-model-tools.mts @@ -0,0 +1,287 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 +// CI-only dependency/transport smoke. Local deterministic provider; no external key/service. +import assert from "node:assert/strict"; +import { spawn } from "node:child_process"; +import { randomBytes } from "node:crypto"; +import fs from "node:fs"; +import http from "node:http"; +import path from "node:path"; +function javascriptStringLiteral(value: string) { + return JSON.stringify(value).replace( + /[<>/\u2028\u2029]/gu, + (character) => `\\u${character.charCodeAt(0).toString(16).padStart(4, "0")}`, + ); +} +function argument(name: string) { + const offset = process.argv.indexOf(name); + assert(offset >= 0 && process.argv[offset + 1]); + return path.resolve(process.argv[offset + 1]); +} +const app = argument("--app-root"), + output = argument("--output"); +assert(!fs.existsSync(output)); +fs.mkdirSync(output, { recursive: true }); +const state = path.join(output, "state"), + workspace = path.join(output, "workspace"); +fs.mkdirSync(state); +fs.mkdirSync(workspace); +const nonce = randomBytes(10).toString("hex"), + marker = "COMPILED_TRANSPORT_" + nonce, + token = "owned-local-provider-" + nonce; +const file = path.join(workspace, "controlled.txt"); +const shellCommand = + process.platform === "win32" ? `Write-Output 'SHELL_${nonce}'` : `printf '%s' 'SHELL_${nonce}'`; +const codeCommand = + process.platform === "win32" + ? `& '${process.execPath.replaceAll("'", "''")}' -e "process.stdout.write('CODE_${nonce}:'+String(6*7))"` + : `'${process.execPath.replaceAll("'", "'\\''")}' -e 'process.stdout.write("CODE_${nonce}:"+String(6*7))'`; +const calls = [ + { name: "write", args: { path: file, content: nonce }, expect: "" }, + { name: "read", args: { path: file }, expect: nonce }, + { name: "exec", args: { command: shellCommand, timeout: 10 }, expect: "SHELL_" + nonce }, + { name: "exec", args: { command: codeCommand, timeout: 10 }, expect: "CODE_" + nonce + ":42" }, +]; +const observations: { path: string; model: string; toolResults: unknown[] }[] = []; +let serverError: unknown; +const server = http.createServer(async (request, response) => { + try { + const chunks: Buffer[] = []; + let bytes = 0; + for await (const chunk of request) { + bytes += chunk.length; + assert(bytes <= 1024 * 1024); + chunks.push(chunk); + } + assert.equal(request.url, "/v1/chat/completions"); + assert.equal(request.headers.authorization, "Bearer " + token); + const body = JSON.parse(Buffer.concat(chunks).toString()); + assert.equal(body.model, "fixture"); + assert.equal(body.stream, true); + const results = body.messages.filter((message: { role: string }) => message.role === "tool"); + observations.push({ path: request.url!, model: body.model, toolResults: results }); + assert(observations.length <= 5); + if (results.length) { + const prior = calls[results.length - 1]; + assert(prior); + const text = JSON.stringify(results.at(-1)); + assert(!/"isError"\s*:\s*true/.test(text)); + if (prior.expect) + assert(text.includes(prior.expect), "The actual tool output differs: " + prior.name); + } + const next = calls[results.length]; + const delta = next + ? { + role: "assistant", + tool_calls: [ + { + index: 0, + id: "call_" + results.length, + type: "function", + function: { name: next.name, arguments: JSON.stringify(next.args) }, + }, + ], + } + : { role: "assistant", content: marker }; + response.writeHead(200, { "content-type": "text/event-stream", "cache-control": "no-store" }); + for (const [payload, finish] of [ + [delta, null], + [{}, next ? "tool_calls" : "stop"], + ] as const) + response.write( + "data: " + + JSON.stringify({ + id: "chatcmpl-" + nonce, + object: "chat.completion.chunk", + created: Math.floor(Date.now() / 1000), + model: "fixture", + choices: [{ index: 0, delta: payload, finish_reason: finish }], + }) + + "\n\n", + ); + response.end("data: [DONE]\n\n"); + } catch (error) { + serverError ??= error; + response.writeHead(500); + response.end("controlled provider rejected request"); + } +}); +await new Promise((resolve) => server.listen(0, "127.0.0.1", resolve)); +const port = (server.address() as { port: number }).port; +const config = { + update: { checkOnStart: false, auto: { enabled: false } }, + models: { + mode: "merge", + providers: { + nemoclawNative: { + baseUrl: `http://127.0.0.1:${port}/v1`, + apiKey: token, + api: "openai-completions", + models: [ + { + id: "fixture", + name: "fixture", + reasoning: false, + input: ["text"], + contextWindow: 131072, + maxTokens: 4096, + }, + ], + }, + }, + }, + agents: { + defaults: { + workspace, + skipBootstrap: true, + model: { primary: "nemoclawNative/fixture" }, + thinkingDefault: "off", + }, + list: [{ id: "main", default: true }], + }, + tools: { exec: { security: "full", ask: "off" } }, + gateway: { mode: "local" }, +}; +fs.writeFileSync(path.join(state, "openclaw.json"), JSON.stringify(config)); +const entry = path.join(app, "openclaw-app.cjs"), + driver = path.join(output, "driver.cjs"); +fs.writeFileSync( + driver, + `const cp=require("node:child_process"),fs=require("node:fs"),Module=require("node:module");const loaded=new Set();const originalLoad=Module._load;Module._load=function(request,...rest){const value=originalLoad.call(this,request,...rest);if(request==="undici")loaded.add(value);return value;};for(const name of ["spawn","spawnSync","execFile","execFileSync"]){const original=cp[name];cp[name]=function(...args){if(/(?:npm|npx|pnpm|yarn|pip)(?:\\b|[-.])/i.test(JSON.stringify(args.slice(0,2)))){fs.writeFileSync(${javascriptStringLiteral(path.join(output, "package-manager-attempt"))},name);throw Error("Unexpected package-manager invocation");}return original.apply(this,args);};}Module.syncBuiltinESMExports();process.on("exit",()=>fs.writeFileSync(${javascriptStringLiteral(path.join(output, "undici-instances.json"))},JSON.stringify({instances:loaded.size})));const entry=${javascriptStringLiteral(entry)};process.argv=[process.execPath,entry,"agent","--local","--agent","main","--session-id",${javascriptStringLiteral(nonce)},"--message",${javascriptStringLiteral("Run the controlled test tools then reply " + marker)},"--json"];require(entry).runCli(process.argv).catch(error=>{console.error(error);process.exitCode=1;});`, +); +const env: NodeJS.ProcessEnv = {}; +for (const [key, value] of Object.entries(process.env)) + if ( + [ + "systemroot", + "windir", + "systemdrive", + "comspec", + "path", + "pathext", + "temp", + "tmp", + "programfiles", + "programfiles(x86)", + "os", + "processor_architecture", + "lang", + "lc_all", + "tmpdir", + ].includes(key.toLowerCase()) + ) + env[key] = value; +Object.assign(env, { + HOME: state, + USERPROFILE: state, + LOCALAPPDATA: state, + APPDATA: state, + OPENCLAW_STATE_DIR: state, + OPENCLAW_HOME: state, + OPENCLAW_COMPILED_ASSET_ROOT: app, + OPENCLAW_NO_RESPAWN: "1", + OPENCLAW_SKIP_CHANNELS: "1", + OPENCLAW_NO_AUTO_UPDATE: "1", + NODE_DISABLE_COMPILE_CACHE: "1", +}); +const systemRoot = Object.entries(env).find(([name]) => name.toUpperCase() === "SYSTEMROOT")?.[1]; +env.PATH = [ + path.dirname(process.execPath), + ...(systemRoot ? [path.join(systemRoot, "System32"), systemRoot] : ["/usr/bin", "/bin"]), +].join(path.delimiter); +const child = spawn(process.execPath, [driver], { + cwd: workspace, + env, + stdio: ["ignore", "pipe", "pipe"], +}); +let stdout = "", + stderr = "", + closed = false; +const completion = new Promise((resolve) => + child.once("close", (code) => { + closed = true; + resolve(code); + }), +); +child.stdout!.on("data", (chunk) => { + stdout += chunk; + if (stdout.length > 2 * 1024 * 1024) child.kill(); +}); +child.stderr!.on("data", (chunk) => { + stderr += chunk; + if (stderr.length > 2 * 1024 * 1024) child.kill(); +}); +const timer = setTimeout(() => child.kill(), 90000); +let primary: unknown; +let code: number | null = null; +try { + code = await completion; + assert.equal(code, 0); + if (serverError) throw serverError; + assert.equal(observations.length, 5); + const reply = JSON.parse(stdout); + assert.equal(reply.payloads?.[0]?.text, marker); + const transcript = fs + .readFileSync(path.join(state, "agents", "main", "sessions", nonce + ".jsonl"), "utf8") + .split("\n") + .filter(Boolean) + .map((line) => JSON.parse(line).message) + .filter(Boolean); + const results = transcript.filter((message) => message.role === "toolResult"); + assert.equal(results.length, calls.length); + for (const [index, result] of results.entries()) { + assert.equal(result.toolName, calls[index].name); + assert.equal(result.isError, false); + if (calls[index].name === "exec") { + assert.equal(result.details?.status, "completed"); + assert.equal(result.details?.exitCode, 0); + } + if (calls[index].expect) assert(JSON.stringify(result.content).includes(calls[index].expect)); + } + assert.equal(fs.readFileSync(file, "utf8"), nonce); + assert(!fs.existsSync(path.join(output, "package-manager-attempt"))); + assert.equal( + JSON.parse(fs.readFileSync(path.join(output, "undici-instances.json"), "utf8")).instances, + 1, + ); +} catch (error) { + primary = error; +} finally { + clearTimeout(timer); + if (!closed) { + child.kill(); + await completion; + } + server.closeAllConnections(); + await new Promise((resolve) => server.close(() => resolve())); + fs.writeFileSync(path.join(output, "stdout.log"), stdout.split(token).join("[REDACTED]")); + fs.writeFileSync(path.join(output, "stderr.log"), stderr.split(token).join("[REDACTED]")); + fs.writeFileSync( + path.join(output, "result.json"), + JSON.stringify( + { + schemaVersion: 1, + classification: "compiled-openclaw-local-provider-tool-control", + verdict: primary ? "fail" : "pass", + exitCode: code, + requests: observations.length, + tools: ["write", "read", "shell", "node-code"], + singleUndiciInstance: fs.existsSync(path.join(output, "undici-instances.json")) + ? JSON.parse(fs.readFileSync(path.join(output, "undici-instances.json"), "utf8")) + : null, + error: primary instanceof Error ? primary.message : null, + localProvider: true, + externalModelRequest: false, + fixtureExecAuthorized: true, + shippingPolicyQualified: false, + containedWindowsQualified: false, + }, + null, + 2, + ) + "\n", + ); +} +if (primary) throw primary; +console.log( + "PASS actual compiled local inference, file read/write, shell and Node code; one Undici instance.", +); diff --git a/packaging/windows/app/test-compiled-openclaw.mts b/packaging/windows/app/test-compiled-openclaw.mts new file mode 100644 index 00000000000..b000f4e9c78 --- /dev/null +++ b/packaging/windows/app/test-compiled-openclaw.mts @@ -0,0 +1,211 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 +import assert from "node:assert/strict"; +import { spawnSync } from "node:child_process"; +import { createHash } from "node:crypto"; +import fs from "node:fs"; +import path from "node:path"; +import { Worker } from "node:worker_threads"; +function argument(name: string) { + const index = process.argv.indexOf(name); + if (index < 0 || !process.argv[index + 1]) throw new Error(`Missing ${name}`); + return path.resolve(process.argv[index + 1]); +} +function readSealedFile(file: string, expectedBytes: number) { + const descriptor = fs.openSync(file, "r"); + try { + const opened = fs.fstatSync(descriptor); + const named = fs.lstatSync(file); + assert( + opened.isFile() && + opened.nlink === 1 && + named.isFile() && + !named.isSymbolicLink() && + named.dev === opened.dev && + named.ino === opened.ino && + opened.size === expectedBytes, + ); + return fs.readFileSync(descriptor); + } finally { + fs.closeSync(descriptor); + } +} +const inputApp = argument("--app-root"); +const output = argument("--output"); +const portable = process.argv.includes("--portable-proof"); +if ( + !portable && + (process.platform !== "win32" || process.arch !== "arm64" || process.versions.node !== "22.23.2") +) + throw new Error("Compiled app controls require the canonical Windows ARM64 Node."); +assert.equal(fs.existsSync(output), false, "Control output must be fresh."); +fs.mkdirSync(output, { recursive: true }); +const app = path.join(output, "isolated-code-unit"); +fs.mkdirSync(app); +const receipt = JSON.parse( + fs.readFileSync(path.join(inputApp, "openclaw-resource-closure.json"), "utf8"), +) as { + files: { path: string; bytes: number; sha256: string }[]; +}; +const selected = receipt.files.filter( + (row) => + ["openclaw-app.cjs", "openclaw-dynamic-import.cjs"].includes(row.path) || + row.path.startsWith("node_modules/undici/"), +); +assert(selected.some((row) => row.path === "node_modules/undici/package.json")); +for (const row of selected) { + assert( + !row.path.includes("\\") && + !row.path.includes(":") && + row.path.split("/").every((part) => part && part !== "." && part !== ".."), + ); + const source = path.join(inputApp, row.path), + target = path.join(app, row.path); + const bytes = readSealedFile(source, row.bytes); + assert.equal(createHash("sha256").update(bytes).digest("hex"), row.sha256); + fs.mkdirSync(path.dirname(target), { recursive: true }); + fs.writeFileSync(target, bytes, { flag: "wx" }); +} +assert.deepEqual(fs.readdirSync(path.join(app, "node_modules")), ["undici"]); +const state = path.join(output, "state"); +fs.mkdirSync(state); +const entry = path.join(app, "openclaw-app.cjs"); +const env: NodeJS.ProcessEnv = {}; +for (const name of [ + "SystemRoot", + "SystemDrive", + "WINDIR", + "ComSpec", + "PATH", + "PATHEXT", + "OS", + "PROCESSOR_ARCHITECTURE", + "ProgramFiles", + "ProgramFiles(x86)", + "ProgramW6432", + "LANG", + "LC_ALL", + "TMPDIR", + "TEMP", + "TMP", +]) { + const key = Object.keys(process.env).find((key) => key.toLowerCase() === name.toLowerCase()); + if (key) env[key] = process.env[key]; +} +Object.assign(env, { + HOME: state, + USERPROFILE: state, + LOCALAPPDATA: state, + APPDATA: state, + OPENCLAW_STATE_DIR: state, + OPENCLAW_HOME: state, + OPENCLAW_COMPILED_ASSET_ROOT: app, + NODE_DISABLE_COMPILE_CACHE: "1", + OPENCLAW_NO_RESPAWN: "1", +}); +const results: { control: string; passed: boolean; stdout: string }[] = []; +const direct = spawnSync(process.execPath, [entry, "--version"], { + cwd: app, + env, + encoding: "utf8", + timeout: 30000, + maxBuffer: 1024 * 1024, +}); +fs.writeFileSync( + path.join(output, "direct-version.log"), + (direct.stdout ?? "") + (direct.stderr ?? ""), +); +assert.equal(direct.status, 0, direct.stderr); +assert.match(direct.stdout, /OpenClaw 2026\.7\.1/); +results.push({ + control: "direct-version-with-declared-undici-only", + passed: true, + stdout: direct.stdout.trim(), +}); +const worker = new Worker( + `const {workerData}=require("node:worker_threads"); +process.argv=[process.execPath,workerData,"--version"]; +const api=require(workerData); +if(typeof api.runCli!=="function"||typeof api.runOpenClaw!=="function")throw Error("Missing compiled API"); +api.runOpenClaw(process.argv).catch(error=>{console.error(error);process.exitCode=1;});`, + { eval: true, workerData: entry, env, stdout: true, stderr: true, execArgv: [] }, +); +let stdout = ""; +let stderr = ""; +worker.stdout.on("data", (bytes: Buffer) => { + stdout = (stdout + bytes.toString("utf8")).slice(-65536); +}); +worker.stderr.on("data", (bytes: Buffer) => { + stderr = (stderr + bytes.toString("utf8")).slice(-65536); +}); +const timeout = setTimeout(() => void worker.terminate(), 30000); +let exitCode: number; +try { + exitCode = await new Promise((resolve, reject) => { + worker.once("exit", resolve); + worker.once("error", reject); + }); +} finally { + clearTimeout(timeout); +} +fs.writeFileSync(path.join(output, "worker-version.log"), stdout + stderr); +assert.equal(exitCode, 0, stderr); +assert.match(stdout, /OpenClaw 2026\.7\.1/); +results.push({ + control: "owned-worker-import-and-explicit-api-with-declared-undici-only", + passed: true, + stdout: stdout.trim(), +}); +fs.writeFileSync( + path.join(state, "openclaw.json"), + JSON.stringify({ + gateway: { + mode: "local", + bind: "loopback", + auth: { mode: "token", token: "owned-compiler-control-token" }, + }, + }), +); +const config = spawnSync(process.execPath, [entry, "config", "validate", "--json"], { + cwd: app, + env, + encoding: "utf8", + timeout: 45000, + maxBuffer: 1024 * 1024, +}); +fs.writeFileSync( + path.join(output, "config-validate.log"), + (config.stdout ?? "") + (config.stderr ?? ""), +); +assert.equal(config.status, 0, config.stderr); +assert.equal((JSON.parse(config.stdout) as { valid?: boolean }).valid, true); +results.push({ + control: "actual-config-validation-with-declared-undici-only", + passed: true, + stdout: config.stdout.trim(), +}); +fs.writeFileSync( + path.join(output, "compiled-controls.json"), + JSON.stringify( + { + schemaVersion: 1, + classification: "actual-compiled-code-controls", + platform: process.platform, + architecture: process.arch, + nodeVersion: process.version, + portableProof: portable, + neighboringDependencyTreeAbsent: false, + declaredSidecars: ["undici"], + unrelatedNeighboringDependenciesAbsent: true, + sourceTreeIsolationVerified: false, + originalBuildTreeAccess: + "Not asserted by this script; a separate OS-denied control records that boundary.", + controls: results, + runtimeClosureProven: false, + agentResponseQualified: false, + }, + null, + 2, + ) + "\n", +); +console.log("PASS: compiled CLI, owned Worker API, and configuration validation."); diff --git a/packaging/windows/app/test-prebuilt-choice-plugins.mts b/packaging/windows/app/test-prebuilt-choice-plugins.mts new file mode 100644 index 00000000000..c0bcc203ca5 --- /dev/null +++ b/packaging/windows/app/test-prebuilt-choice-plugins.mts @@ -0,0 +1,292 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 +// Real compiled registry/gateway control. External channel/search activity is deliberately disabled. +import assert from "node:assert/strict"; +import { spawn } from "node:child_process"; +import { createHash } from "node:crypto"; +import fs from "node:fs"; +import net from "node:net"; +import path from "node:path"; +import { setTimeout as delay } from "node:timers/promises"; +import { nativeOpenClawOptions, type NativeOptions } from "../runtime/native-options.mts"; +function javascriptStringLiteral(value: string) { + return JSON.stringify(value).replace( + /[<>/\u2028\u2029]/gu, + (character) => `\\u${character.charCodeAt(0).toString(16).padStart(4, "0")}`, + ); +} +const argument = (name: string) => { + const i = process.argv.indexOf(name); + assert(i >= 0 && process.argv[i + 1]); + return process.argv[i + 1]; +}; +const app = path.resolve(argument("--app-root")), + output = path.resolve(argument("--output")), + choice = argument("--choice"); +assert(["brave", "discord", "slack", "tavily"].includes(choice)); +if (!process.argv.includes("--portable-proof")) { + assert.equal(process.platform, "win32"); + assert.equal(process.arch, "arm64"); + assert.equal(process.version, "v22.23.2"); +} +assert(!fs.existsSync(output)); +fs.mkdirSync(output, { recursive: true }); +const state = path.join(output, "state"); +fs.mkdirSync(state); +const code = path.join(app, "openclaw-app.cjs"), + codeHash = createHash("sha256").update(fs.readFileSync(code)).digest("hex"); +assert.equal( + codeHash, + JSON.parse(fs.readFileSync(path.join(app, "openclaw-resource-closure.json"), "utf8")).compiler + .mainSha256, +); +const options: NativeOptions = + choice === "brave" || choice === "tavily" + ? { search: { provider: choice, credentialStored: true } } + : { + messaging: { + [choice]: { + credentialStored: true, + allowedUsers: [], + ...(choice === "slack" ? { appCredentialStored: true } : {}), + }, + }, + }; +const selected = nativeOpenClawOptions(options); +const config = { + ...selected, + plugins: { ...selected.plugins, load: { paths: [path.join(app, "plugins", choice)] } }, + update: { checkOnStart: false, auto: { enabled: false } }, + agents: { list: [{ id: "main", default: true }], defaults: { skipBootstrap: true } }, +}; +const env: NodeJS.ProcessEnv = {}; +for (const [key, value] of Object.entries(process.env)) + if ( + [ + "systemroot", + "windir", + "systemdrive", + "comspec", + "path", + "pathext", + "temp", + "tmp", + "programfiles", + "programfiles(x86)", + "os", + "processor_architecture", + "lang", + "lc_all", + "tmpdir", + ].includes(key.toLowerCase()) + ) + env[key] = value; +Object.assign(env, { + HOME: state, + USERPROFILE: state, + LOCALAPPDATA: state, + APPDATA: state, + OPENCLAW_STATE_DIR: state, + OPENCLAW_HOME: state, + OPENCLAW_COMPILED_ASSET_ROOT: app, + OPENCLAW_NO_RESPAWN: "1", + OPENCLAW_SKIP_CHANNELS: "1", + OPENCLAW_NO_AUTO_UPDATE: "1", + OPENCLAW_GATEWAY_STARTUP_TRACE: "1", + NODE_DISABLE_COMPILE_CACHE: "1", +}); +const systemRoot = Object.entries(env).find(([name]) => name.toUpperCase() === "SYSTEMROOT")?.[1]; +env.PATH = [ + path.dirname(process.execPath), + ...(systemRoot ? [path.join(systemRoot, "System32"), systemRoot] : ["/usr/bin", "/bin"]), +].join(path.delimiter); +const attempts = path.join(output, "package-manager-attempt"); +const trap = `const cp=require("node:child_process"),fs=require("node:fs");for(const name of ["spawn","spawnSync","execFile","execFileSync"]){const original=cp[name];cp[name]=function(...args){if(/(?:npm|npx|pnpm|yarn|pip)(?:\\b|[-.])/i.test(JSON.stringify(args.slice(0,2)))){fs.appendFileSync(${javascriptStringLiteral(attempts)},name+"\\n");throw Error("Unexpected package-manager invocation");}return original.apply(this,args);};}require("node:module").syncBuiltinESMExports();`; +function start(label: string, source: string) { + const file = path.join(output, label + ".cjs"); + fs.writeFileSync(file, trap + source, { flag: "wx" }); + const child = spawn(process.execPath, [file], { + cwd: app, + env, + stdio: ["ignore", "pipe", "pipe", "ipc"], + }); + let stdout = "", + stderr = ""; + child.once("error", (error) => { + stderr += error.message; + }); + child.stdout!.on("data", (data) => { + stdout += data; + if (stdout.length > 2 * 1024 * 1024) child.kill(); + }); + child.stderr!.on("data", (data) => { + stderr += data; + if (stderr.length > 2 * 1024 * 1024) child.kill(); + }); + let closed = false; + const completion = new Promise((resolve) => + child.once("close", (code) => { + closed = true; + resolve(code); + }), + ); + return { + child, + completion, + isClosed: () => closed, + stdout: () => stdout, + stderr: () => stderr, + save: () => { + fs.writeFileSync(path.join(output, label + ".stdout.log"), stdout); + fs.writeFileSync(path.join(output, label + ".stderr.log"), stderr); + }, + }; +} +async function finish(child: ReturnType, milliseconds: number) { + const timer = setTimeout(() => child.child.kill(), milliseconds); + try { + return await child.completion; + } finally { + clearTimeout(timer); + child.save(); + } +} +async function observeRecurringHealth(_origin: string) { + const samples: { ts: number; observedAtMs: number; ok: boolean }[] = []; + for (const index of [0, 1]) { + if (index) await delay(65000); // Cross the unchanged 60s background health interval. + const probe = start( + "health-" + index, + `const entry=${JSON.stringify(code)};process.argv=[process.execPath,entry,"health","--json","--timeout","15000"];require(entry).runCli(process.argv).catch(error=>{console.error(error);process.exitCode=1;});`, + ); + assert.equal(await finish(probe, 30000), 0, "The actual gateway health RPC failed."); + const response = JSON.parse(probe.stdout()); + assert.equal(response.ok, true); + assert(Number.isFinite(response.ts)); + samples.push({ ts: response.ts, observedAtMs: Date.now(), ok: true }); + } + assert(samples[1].ts > samples[0].ts, "The configured health snapshot did not refresh."); + return { + samples, + naturalIntervalWaitMs: 65000, + healthRpcRequestsSent: 2, + observation: + "successful repeated canonical health RPC plus no background refresh errors across the unchanged timer interval; not a passive timer-only measurement", + }; +} + +let primary: unknown; +let gateway: ReturnType | undefined; +const result: Record = { + schemaVersion: 1, + classification: "compiled-prebuilt-choice-convergence", + choice, + codeSha256: codeHash, + channelConnectionsStarted: false, + liveSearchTested: false, + modelTested: false, + windowsQualified: false, +}; +try { + fs.writeFileSync(path.join(state, "openclaw.json"), JSON.stringify(config)); + const registered = path.join(output, "registered.json"); + const inspect = start( + "inspect", + `const entry=${JSON.stringify(code)},api=require(entry);process.argv=[process.execPath,entry,"plugins","inspect",${JSON.stringify(choice)},"--runtime","--json"];api.registerPrebuiltPlugins(${JSON.stringify(config)}).then(result=>{fs.writeFileSync(${JSON.stringify(registered)},JSON.stringify(result));return api.runCli(process.argv);}).catch(error=>{console.error(error);process.exitCode=1;});`, + ); + assert.equal(await finish(inspect, 30000), 0); + assert.deepEqual(JSON.parse(fs.readFileSync(registered, "utf8")).registered, [choice]); + const report = JSON.parse(inspect.stdout()); + assert.equal(report.plugin?.id, choice); + assert.equal(report.plugin?.status, "loaded"); + assert.equal(report.plugin?.imported, true); + assert.equal(report.install?.source, "path"); + assert.equal(report.install?.installPath, path.join(app, "plugins", choice)); + assert.equal(report.install?.sourcePath, report.install.installPath); + assert.equal(report.install?.version, "2026.7.1"); + assert.deepEqual(report.diagnostics, []); + result.runtimeInspection = { + status: report.plugin.status, + capabilities: report.capabilities, + install: report.install, + }; + const allocator = net.createServer(); + await new Promise((r) => allocator.listen(0, "127.0.0.1", r)); + const port = (allocator.address() as net.AddressInfo).port; + await new Promise((r) => allocator.close(() => r())); + const origin = "http://127.0.0.1:" + port; + const gatewayConfig = { + ...config, + gateway: { + mode: "local", + bind: "loopback", + port, + auth: { mode: "none" }, + controlUi: { root: path.join(app, "dist/control-ui"), allowedOrigins: [origin] }, + }, + logging: { file: path.join(output, "gateway.jsonl") }, + }; + fs.writeFileSync(path.join(state, "openclaw.json"), JSON.stringify(gatewayConfig)); + // A new process must converge from the actual persisted metadata, without + // running the registration API again or inheriting a prior CLI checkpoint. + gateway = start( + "gateway", + `const entry=${JSON.stringify(code)};process.argv=[process.execPath,entry,"gateway","run","--allow-unconfigured","--port",${JSON.stringify(String(port))},"--bind","loopback","--auth","none"];process.on("message",message=>{if(message==="stop")process.emit("SIGINT");});require(entry).runCli(process.argv).catch(error=>{console.error(error);process.exitCode=1;});`, + ); + const started = performance.now(); + let healthy = false; + while (!gateway.isClosed() && performance.now() - started < 45000) { + try { + const response = await fetch(origin + "/healthz", { signal: AbortSignal.timeout(500) }); + if (response.ok) { + healthy = true; + break; + } + } catch {} + await delay(100); + } + assert(healthy, "The configured compiled gateway did not become healthy."); + result.recurringHealth = await observeRecurringHealth(origin); + assert.equal(gateway.isClosed(), false); + const trace = fs + .readFileSync(path.join(output, "gateway.jsonl"), "utf8") + .split("\n") + .filter(Boolean) + .map((line) => JSON.parse(line).message) + .find( + (line: unknown) => + typeof line === "string" && line.startsWith("startup trace: plugins.gateway-load "), + ); + assert.equal(typeof trace, "string"); + for (const metric of [ + "loaderNativeMissesCount", + "loaderSourceTransformForcedCount", + "loaderSourceTransformFallbacksCount", + ]) + assert.match(trace, new RegExp(metric + "=0\\.0(?: |$)")); + result.loaderTrace = trace; + assert.doesNotMatch( + gateway.stdout() + gateway.stderr(), + /Cannot find (?:module|package)|failed to load plugin|(?:initial |background )?refresh failed|building.*Control UI|runtime plugin downloads are disabled/i, + ); + assert(!fs.existsSync(attempts)); + result.packageManagerInvocations = 0; +} catch (error) { + primary = error; +} finally { + if (gateway) { + if (!gateway.isClosed()) gateway.child.send("stop"); + const code = await finish(gateway, 30000); + if (code !== 0) primary ??= new Error("The configured gateway did not close successfully."); + result.gatewayExitCode = code; + } + result.verdict = primary ? "fail" : "pass"; + result.error = primary instanceof Error ? primary.message : null; + fs.writeFileSync(path.join(output, "result.json"), JSON.stringify(result, null, 2) + "\n"); +} +if (primary) throw primary; +console.log( + "PASS prebuilt " + + choice + + " registration, fresh convergence and real recurring health; no package manager or channel/search request.", +); diff --git a/packaging/windows/app/test-windows-configured-plugin-install.mts b/packaging/windows/app/test-windows-configured-plugin-install.mts new file mode 100644 index 00000000000..47825bb4dfb --- /dev/null +++ b/packaging/windows/app/test-windows-configured-plugin-install.mts @@ -0,0 +1,128 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 +import assert from "node:assert/strict"; +import fs from "node:fs"; +import path from "node:path"; +import { createRequire } from "node:module"; +import { guardWindowsConfiguredPluginInstall } from "./openclaw-app-resources.mts"; + +const source = path.resolve(process.argv[process.argv.indexOf("--source-root") + 1] ?? ""); +const relative = "dist/missing-configured-plugin-install-jsvFew4a.js"; +const original = fs.readFileSync(path.join(source, relative), "utf8"); +const patched = guardWindowsConfiguredPluginInstall(relative, original); +const syntax = createRequire(import.meta.url)( + path.join(source, "node_modules/typescript"), +) as typeof import("typescript"); +function body(text: string) { + const tree = syntax.createSourceFile( + "repair.js", + text, + syntax.ScriptTarget.Latest, + true, + syntax.ScriptKind.JS, + ); + const functions = tree.statements + .filter(syntax.isFunctionDeclaration) + .filter((node) => node.name?.text === "repairMissingPluginInstalls"); + assert.equal(functions.length, 1); + return functions[0].getText(tree); +} +async function control(text: string, platform: string, mode: "new" | "recorded" | "healthy") { + const calls: string[] = []; + const records: Record = + mode === "new" ? {} : { discord: { source: "path", healthy: mode === "healthy" } }; + const bindings = { + process: { platform, env: {} }, + VERSION: "2026.7.1", + loadManifestMetadataSnapshot: () => ({ + plugins: mode === "healthy" ? [{ id: "discord", origin: "config" }] : [], + }), + loadInstalledPluginIndex: () => ({ plugins: [] }), + collectEffectiveConfiguredChannelOwnerPluginIds: () => new Map(), + collectConfiguredPluginIdsWithMissingChannelConfigDescriptors: () => new Set(), + loadInstalledPluginIndexInstallRecords: async () => records, + resolveRegistryUpdateChannel: () => "stable", + normalizeUpdateChannel: () => undefined, + collectInstalledPluginIdsWithRepairablePackageDiagnostics: () => new Set(), + collectInstalledPluginIdsWithStaleVersionBoundRuntimePackages: () => new Set(), + collectOfficialReplacementInstallCandidates: () => new Map(), + isLegacyPackageUpdateDoctorPass: () => false, + shouldDeferConfiguredPluginInstallRepair: () => false, + isInstalledRecordMissingOnDisk: (record: { healthy?: boolean }) => !record.healthy, + forceNpmInstallRecordRepair: (record: unknown) => record, + resolveCompatibilityHostVersion: () => "2026.7.1", + updateNpmInstalledPlugins: async () => { + calls.push("package-manager-repair"); + return { + config: { plugins: { installs: { discord: { source: "path", healthy: true } } } }, + outcomes: [], + }; + }, + collectDownloadableInstallCandidates: () => [ + { pluginId: "discord", label: "Discord", npmSpec: "@openclaw/discord" }, + ], + installCandidate: async () => { + calls.push("package-manager-install"); + return { + records: { discord: { source: "path", healthy: true } }, + changes: [], + notices: [], + warnings: [], + }; + }, + writePersistedInstalledPluginIndexInstallRecords: async () => { + calls.push("persist-records"); + }, + }; + const params = { + cfg: { plugins: { entries: { discord: { enabled: true } } } }, + env: {}, + pluginIds: new Set(["discord"]), + channelIds: new Set(["discord"]), + blockedPluginIds: new Set(), + }; + // Execute the actual source function with install APIs replaced by observation + // boundaries. No package manager, filesystem writer or network client runs. + const invoke = new Function(...Object.keys(bindings), `return (${body(text)});`)( + ...Object.values(bindings), + ); + try { + return { calls, result: await invoke(params), error: null }; + } catch (error) { + return { calls, result: null, error }; + } +} +let controls = 0; +for (const mode of ["new", "recorded"] as const) { + const before = await control(original, "win32", mode); + assert.equal(before.error, null); + assert(before.calls.some((name) => name.startsWith("package-manager-"))); + const denied = await control(patched, "win32", mode); + assert(denied.error instanceof Error); + assert.match( + denied.error.message, + /Repair or update NemoClaw.*runtime plugin downloads are disabled/u, + ); + assert.deepEqual(denied.calls, []); + const portable = await control(patched, "linux", mode); + assert.equal(portable.error, null); + assert(portable.calls.some((name) => name.startsWith("package-manager-"))); + controls += 3; +} +const healthy = await control(patched, "win32", "healthy"); +assert.equal(healthy.error, null); +assert.deepEqual(healthy.calls, []); +controls++; +assert.throws( + () => guardWindowsConfiguredPluginInstall(relative, original + "\n"), + /source changed/u, +); +controls++; +console.log( + JSON.stringify({ + controls, + actualSourceFunction: true, + packageManagerExecuted: false, + platformClaim: "controlled function branches; full Windows gateway checked separately", + }), +); diff --git a/packaging/windows/app/test-windows-plugin-file-url.mts b/packaging/windows/app/test-windows-plugin-file-url.mts new file mode 100644 index 00000000000..6972fe10323 --- /dev/null +++ b/packaging/windows/app/test-windows-plugin-file-url.mts @@ -0,0 +1,118 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 +import assert from "node:assert/strict"; +import fs from "node:fs"; +import path from "node:path"; +import os from "node:os"; +import Module, { createRequire } from "node:module"; +import { fileURLToPath, pathToFileURL } from "node:url"; +import { normalizeWindowsNativePluginRequire } from "./openclaw-app-resources.mts"; + +const index = process.argv.indexOf("--source-root"); +if (index < 0 || !process.argv[index + 1]) + throw new Error("The pinned materialized source root is required."); +const source = path.resolve(process.argv[index + 1]); +const relative = "dist/plugin-module-loader-cache-uqaaAPup.js"; +const original = fs.readFileSync(path.join(source, relative), "utf8"); +const patched = normalizeWindowsNativePluginRequire(relative, original); +const syntax = createRequire(import.meta.url)( + path.join(source, "node_modules/typescript"), +) as typeof import("typescript"); +const names = new Set([ + "isJavaScriptModulePath", + "isMissingTargetModuleError", + "isSourceTransformFallbackError", + "tryNativeRequireJavaScriptModule", + "requireWithOptionalAliases", + "withNativeRequireAliases", +]); +type Result = { ok: boolean; moduleExport?: { identity?: string } }; +function actualLoader(text: string, platform: string) { + const parsed = syntax.createSourceFile( + "loader.js", + text, + syntax.ScriptTarget.Latest, + true, + syntax.ScriptKind.JS, + ); + const functions = parsed.statements.filter( + (statement) => + syntax.isFunctionDeclaration(statement) && statement.name && names.has(statement.name.text), + ); + assert.equal( + functions.length, + names.size, + "The exact native loader functions must be extracted.", + ); + return new Function( + "process", + "path", + "nodeRequire", + "fileURLToPath", + "pathToFileURL", + "moduleWithResolver$1", + functions.map((item) => item.getText(parsed)).join("\n") + + "\nreturn tryNativeRequireJavaScriptModule;", + )({ platform }, path, createRequire(import.meta.url), fileURLToPath, pathToFileURL, Module) as ( + file: string, + options: Record, + ) => Result; +} +const root = fs.mkdtempSync(path.join(os.tmpdir(), "native plugin URL ü ")); +const options = { + allowWindows: true, + fallbackOnMissingDependency: true, + fallbackOnNativeError: true, +}; +const results: string[] = []; +try { + fs.writeFileSync(path.join(root, "package.json"), JSON.stringify({ type: "module" })); + const entry = path.join(root, "entry space ü.js"); + fs.writeFileSync(entry, 'export const identity="native-entry";\n'); + const url = pathToFileURL(entry).href; + const before = actualLoader(original, "win32"), + after = actualLoader(patched, "win32"); + assert.equal(before(url, options).ok, false, "The observed file-URL native miss must reproduce."); + results.push("original-file-url-native-miss"); + assert.equal(after(url, options).moduleExport?.identity, "native-entry"); + results.push("windows-file-url-native-esm-hit"); + assert.equal(after(entry, options).moduleExport?.identity, "native-entry"); + results.push("plain-path-native-hit-preserved"); + assert.equal(actualLoader(patched, "darwin")(url, options).ok, false); + results.push("other-platform-behavior-unchanged"); + for (const target of [ + pathToFileURL(path.join(root, "missing.js")).href, + "https://invalid.example/entry.js", + "file:///invalid%2Fencoded.js", + ]) + assert.equal(after(target, options).ok, false); + results.push("missing-nonfile-malformed-targets-not-admitted"); + const alias = path.join(root, "alias.js"); + fs.writeFileSync(alias, 'export {identity} from "reviewed-alias";\n'); + const resolver = (Module as unknown as { _resolveFilename: unknown })._resolveFilename; + assert.equal( + after(pathToFileURL(alias).href, { ...options, aliasMap: { "reviewed-alias": entry } }) + .moduleExport?.identity, + "native-entry", + ); + assert.equal((Module as unknown as { _resolveFilename: unknown })._resolveFilename, resolver); + results.push("existing-native-aliases-and-restoration-preserved"); + assert.equal(normalizeWindowsNativePluginRequire("unrelated.js", original), original); + assert.throws( + () => normalizeWindowsNativePluginRequire(relative, original + "\n"), + /reviewed native plugin loader changed/, + ); + results.push("unrelated-source-unchanged-and-pin-drift-rejected"); + console.log( + JSON.stringify({ + passed: true, + controls: results, + nativePlatform: process.platform, + branchExercised: "win32", + realNodeRequire: true, + windowsExecutionObserved: process.platform === "win32", + }), + ); +} finally { + fs.rmSync(root, { recursive: true, force: true }); +} diff --git a/packaging/windows/app/test-windows-update-owner.mts b/packaging/windows/app/test-windows-update-owner.mts new file mode 100644 index 00000000000..a8e50895945 --- /dev/null +++ b/packaging/windows/app/test-windows-update-owner.mts @@ -0,0 +1,191 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 +import assert from "node:assert/strict"; +import fs from "node:fs"; +import path from "node:path"; +import { createRequire } from "node:module"; +import { guardWindowsInstallerUpdate } from "./openclaw-app-resources.mts"; + +const position = process.argv.indexOf("--source-root"); +if (position < 0 || !process.argv[position + 1]) + throw new Error("The pinned materialized source root is required."); +const source = path.resolve(process.argv[position + 1]); +const relative = "dist/update-B0wRhzt_.js"; +const original = fs.readFileSync(path.join(source, relative), "utf8"); +const patched = guardWindowsInstallerUpdate(relative, original); +const syntax = createRequire(import.meta.url)( + path.join(source, "node_modules/typescript"), +) as typeof import("typescript"); +const parse = (name: string, text: string) => + syntax.createSourceFile(name, text, syntax.ScriptTarget.Latest, true, syntax.ScriptKind.JS); +function declaration(file: string, name: string) { + const tree = parse(file, fs.readFileSync(path.join(source, "dist", file), "utf8")); + const found = tree.statements.find( + (statement) => + (syntax.isFunctionDeclaration(statement) && statement.name?.text === name) || + (syntax.isVariableStatement(statement) && + statement.declarationList.declarations.some((item) => item.name.getText(tree) === name)), + ); + assert.ok(found, `The actual pinned declaration must exist: ${name}`); + return found.getText(tree); +} +const protocol = new Function( + declaration("schema-BuOFpc7K.js", "ErrorCodes") + + "\n" + + declaration("schema-BuOFpc7K.js", "errorShape") + + "\nreturn {ErrorCodes,errorShape};", +)() as { + ErrorCodes: { UNAVAILABLE: string; INVALID_REQUEST: string }; + errorShape: (code: string, message: string) => Record; +}; +const validation = new Function( + "ErrorCodes", + "errorShape", + "formatValidationErrors", + declaration("validation-BlJXIosl.js", "assertValidParams") + "\nreturn assertValidParams;", +)(protocol.ErrorCodes, protocol.errorShape, () => "controlled invalid request") as ( + ...args: unknown[] +) => boolean; +type Input = { + params: unknown; + respond: (...args: unknown[]) => void; + client: unknown; + context: unknown; +}; +function handler(text: string, platform: string, valid: boolean) { + const tree = parse("update.js", text); + const statement = tree.statements.find( + (node) => + syntax.isVariableStatement(node) && + node.declarationList.declarations.some( + (item) => item.name.getText(tree) === "updateHandlers", + ), + ); + assert.ok(statement && syntax.isVariableStatement(statement)); + const initializer = statement.declarationList.declarations.find( + (item) => item.name.getText(tree) === "updateHandlers", + )?.initializer; + assert.ok(initializer && syntax.isObjectLiteralExpression(initializer)); + const member = initializer.properties.find( + (item) => syntax.isPropertyAssignment(item) && item.name.getText(tree) === '"update.run"', + ); + assert.ok(member && syntax.isPropertyAssignment(member)); + const calls: string[] = []; + let validations = 0; + const context = { + getRuntimeConfig: () => ({ update: {} }), + logGateway: { info() {}, warn() {} }, + }; + const dependencies: Record = { + process: { platform, env: {}, argv: ["node", "owned-entry"] }, + assertValidParams: (...args: unknown[]) => { + validations++; + return validation(...args); + }, + validateUpdateRunParams: () => valid, + __nemoUpdateErrorShape: protocol.errorShape, + __nemoUpdateErrorCodes: protocol.ErrorCodes, + resolveControlPlaneActor: () => ({ actor: "owned-control" }), + parseRestartRequestParams: () => ({}), + extractDeliveryInfo: () => ({}), + normalizeUpdateChannel: () => undefined, + tryResolveProcessCwd: () => "owned-root", + resolveOpenClawPackageRoot: async () => { + calls.push("package-root-probe"); + return "owned-root"; + }, + resolveUpdateInstallSurface: async () => { + calls.push("install-surface-probe"); + return { kind: "package", mode: "npm", root: "owned-root" }; + }, + detectRespawnSupervisor: () => null, + isRestartEnabled: () => true, + runGatewayUpdate: async () => { + calls.push("update-mutation"); + return { status: "ok", mode: "npm", steps: [], durationMs: 0 }; + }, + runPostCoreFinalizeAfterGatewayUpdate: async () => ({ status: "ok" }), + foldPostCoreFinalizeIntoResult: (result: unknown) => result, + buildUpdateRestartSentinelPayload: () => ({}), + writeRestartSentinel: async () => { + calls.push("sentinel-mutation"); + }, + recordLatestUpdateRestartSentinel: () => {}, + scheduleGatewaySigusr1Restart: () => { + calls.push("restart"); + return null; + }, + formatControlPlaneActor: () => "owned-control", + }; + const execute = new Function( + ...Object.keys(dependencies), + "return (" + + member.initializer + .getText(tree) + .replace("import.meta.url", JSON.stringify("file:///owned/update.js")) + + ");", + )(...Object.values(dependencies)) as (input: Input) => Promise; + const responses: unknown[][] = []; + return { + calls, + responses, + validations: () => validations, + run: () => + execute({ params: {}, client: {}, context, respond: (...args) => responses.push(args) }), + }; +} + +const before = handler(original, "win32", true); +await before.run(); +assert.ok( + before.calls.includes("install-surface-probe") && before.calls.includes("update-mutation"), +); +const blocked = handler(patched, "win32", true); +await blocked.run(); +assert.equal(blocked.validations(), 1); +assert.deepEqual( + blocked.calls, + [], + "Refusal must precede every package probe, mutation and restart.", +); +assert.equal(blocked.responses.length, 1); +assert.equal(blocked.responses[0][0], false); +assert.equal(blocked.responses[0][1], undefined); +assert.equal( + (blocked.responses[0][2] as Record).code, + protocol.ErrorCodes.UNAVAILABLE, +); +assert.match( + String((blocked.responses[0][2] as Record).message), + /NemoClaw installer.*update or repair/, +); +const invalid = handler(patched, "win32", false); +await invalid.run(); +assert.deepEqual(invalid.calls, []); +assert.equal( + (invalid.responses[0][2] as Record).code, + protocol.ErrorCodes.INVALID_REQUEST, +); +const other = handler(patched, "linux", true); +await other.run(); +assert.deepEqual( + other.calls, + before.calls, + "Other-platform handler behavior must remain unchanged.", +); +assert.equal(guardWindowsInstallerUpdate("unrelated.js", original), original); +assert.throws( + () => guardWindowsInstallerUpdate(relative, original + "\n"), + /reviewed gateway update handler changed/, +); +console.log( + JSON.stringify({ + passed: true, + controls: 6, + actualPinnedHandlerAndProtocol: true, + windowsBranchRefusedBeforeProbeOrMutation: true, + originalValidationPreserved: true, + otherPlatformUnchanged: true, + updaterExecuted: false, + }), +); diff --git a/packaging/windows/app/windows-app-build.lock.json b/packaging/windows/app/windows-app-build.lock.json new file mode 100644 index 00000000000..17afbb3d1ac --- /dev/null +++ b/packaging/windows/app/windows-app-build.lock.json @@ -0,0 +1,77 @@ +{ + "schemaVersion": 1, + "classification": "windows-application-build-inputs", + "openclaw": { + "version": "2026.7.1", + "url": "https://registry.npmjs.org/openclaw/-/openclaw-2026.7.1.tgz", + "integrity": "sha512-ge/Xss99CHAjPL/ikmH/UFoiOrjcxDB4sW3y9mhyCD+dYW3wzV7TKbAVdkrXFgAG2d2BjpJofP97zUZ+umxo8g==", + "sha256": "67ad539d9915efb63d5f294beeb9290b7172d23c92d8052110a9c8355f783458", + "bytes": 19887736 + }, + "compilerPackages": [ + { + "package": "esbuild", + "version": "0.27.4", + "url": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.4.tgz", + "integrity": "sha512-Rq4vbHnYkK5fws5NF7MYTU68FPRE1ajX7heQ/8QXXWqNgqqJ/GkmmyxIzUnf2Sr/bakf8l54716CcMGHYhMrrQ==" + }, + { + "package": "@esbuild/win32-arm64", + "version": "0.27.4", + "url": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.4.tgz", + "integrity": "sha512-Z9SExBg2y32smoDQdf1HRwHRt6vAHLXcxD2uGgO/v2jK7Y718Ix4ndsbNMU/+1Qiem9OiOdaqitioZwxivhXYg==" + }, + { + "package": "@esbuild/darwin-arm64", + "version": "0.27.4", + "url": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.4.tgz", + "integrity": "sha512-b7xaGIwdJlht8ZFCvMkpDN6uiSmnxxK56N2GDTMYPr2/gzvfdQN8rTfBsvVKmIVY/X7EM+/hJKEIbbHs9oA4tQ==" + } + ], + "sharedNodeLock": "../hermes/official-runtime.lock.json", + "sharedNodeArtifactId": "node", + "sharedNodeVersion": "22.23.2", + "target": { + "platform": "win32", + "architecture": "arm64" + }, + "dependencyLifecycleScripts": "not executed by materializer; native build admission remains separate", + "additionalPackages": [ + { + "package": "@openclaw/brave-plugin", + "version": "2026.7.1", + "target": "plugins/brave", + "url": "https://registry.npmjs.org/@openclaw/brave-plugin/-/brave-plugin-2026.7.1.tgz", + "integrity": "sha512-7Z+GZ/6K6a8LlkTsWVnAZ1hv8EarORzHQvFHD7ekcg033FGJOXYPEZSbvvE3qR9vM+vnoZplNjMZ7vFMRcvQgw==", + "sha256": "f5198ea18ea0adebc376c669b8e5e1100781f07ec2d9e24e86c90cb82acb039c", + "bytes": 8149 + }, + { + "package": "@openclaw/discord", + "version": "2026.7.1", + "url": "https://registry.npmjs.org/@openclaw/discord/-/discord-2026.7.1.tgz", + "integrity": "sha512-tZfdC1YA8oVLvc2BK1w0F6rUljS5ugCOp2uWe0vPsbG1fbzVVIO4V32RoqZznGHe5u2R9u4n1aV5Z/qa1m2oFg==", + "sha256": "28f1511de04906def70f7ff6950cd2d26f52be0ec93c5efce8f5c07cb46bc521", + "bytes": 14438562, + "target": "plugins/discord" + }, + { + "package": "@openclaw/slack", + "version": "2026.7.1", + "url": "https://registry.npmjs.org/@openclaw/slack/-/slack-2026.7.1.tgz", + "integrity": "sha512-dwVGEVCmoTQrOIeZaSCIOPg8pT7hB883QQEXdp9EZUDzTGuvSc+KxH2iERSOV/59hROQctYdcobGn/vdB1H4XA==", + "sha256": "d6ae8745867d812560e917707e633c8b66b36f7270124a8cca9602c6dc98ef46", + "bytes": 3860207, + "target": "plugins/slack" + }, + { + "package": "@openclaw/tavily-plugin", + "version": "2026.7.1", + "url": "https://registry.npmjs.org/@openclaw/tavily-plugin/-/tavily-plugin-2026.7.1.tgz", + "integrity": "sha512-JI9RIGmZVmtCnt8F+OwQb973pOTa7X0b/tDi7B8cIjYr5Ieq9IlzgLNTgnUBNZbSnJSh7p89QIaeUQ98LFVAHQ==", + "sha256": "c8d7c2fb40b0c6a3f8ad99e927c1851ef501bef89ce049e88ab79083ff6dcb09", + "bytes": 262410, + "target": "plugins/tavily" + } + ] +} diff --git a/packaging/windows/assets/NemoClaw.ico b/packaging/windows/assets/NemoClaw.ico new file mode 100644 index 0000000000000000000000000000000000000000..7d8eb86af53d97bfc944d4a930ddff90203d745f GIT binary patch literal 9771 zcmaiYV{j!*xAlq5iS116pm}jd{y7Ax?R=Pz4oqM z{b$wQYc&7>27m&fq5}R|BmhHj06^oP8xGEYFgzpx(DYA?gycW?8#DmW{m*7*{tteJ z2LNUf0RSPP|6pTe0ALIo00>i3kVJyV`zH%Pl9m!v`RDxC3#hRF)B=d_zKj6?a4Kmr zVKtA;tOP|Vb!F5cKj$gWr&j~qR4t=w9h?h&42;&Y3GpURERmoND{SL5C|oGCD!Xs3 zaI`)Q0a(!1ex+7uVs?eL*!e~k6HDGtTWPJ+wxqN(wo}Y^Kb?cq90FY{`Jx#hlGY8A zbi*E!Zq9DZI|qV$D#FvMNs_^je%Gz2IkC4aKa>K9^ zHHWTC=f`+4i!HH^m5R1-^4WV+^_W{wSPxXEWJbh#S&@C3!REAwAkK~(qe&AJxH?X* z);EvqE5n@w94c9u;;%k$5!zYwQ2Xh#Yd9&S$qyS+9ZZf@fRrLBuCY`eIe+gorRc<+ zzQ$zTyr+@s&gID5FfyzWWMbz@tABaHhSw&Z`K!wifK6)h0((DerDXNURY)Ic(%?pl z7Go1^0=%*mZBBW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Z3K7|hLO-;Ej z5hMtHAyG!3vJR${N)S&}<`^em#nDK?_U@~j)0z@}Z|Xx6@#JojW^HeH#9VgH+oT88 zh_xa~WyMkaoxvG)#1tkU4^#F+(Cz*#nYl$7fA475uQ}c25)|B}ci@SxWWkH2iV%my zrt=B%)qC?3aU-2ierB?T?Nz!EJN7tm*agB0qrRys{vtlCyG*=Iv2wF0b$)a9^&~2Z z)6wx%AuS&nsZOKBCw@E!Z|=0{L$hXs3$IDrIGAG|9ZeJq&+GeBba`i8{Gz7M`ZlI= z=F(6VoL_oQuDSLPmu&NhoH1ABu+1-J-tDlZq%ovt;PIZgziEg)wIPbuY2$>5huq+Dd8&Ht$RLr0mx4VXNL-F)6}r(FwWSk{rcHyjXyU>)|~W{%ihWB80+B^2SPM?tElrX z0z3@WoOW6<>I#vB+XX4MRjUzh0f*5|v$0+;sH zE7sR*s-PxsdlcOIX(|fq@_5gg4COLD?ux@y%qS20k(#-#{O%1y3gZB&xz}slzc7x@ z1nL4;Bpz+W8!KR4xoxwZ;)XIM=p;mHfJCJ|em`CX1^h#b~-Zw)^CZ-P`BeFaLOlFK#7TrKxtgHybjh z8N|ICWM?wpyS2ZH=nbGWS)UL$`Ag24f6U3zs=5|<>~`n#-S|8IyD|Cy1M-(l=N|Qc YPKT!aDh}a){ebdTSV}1Wwa(}N0ab?fO8@`> literal 0 HcmV?d00001 diff --git a/packaging/windows/assets/desktop-icons/NemoClaw.ico b/packaging/windows/assets/desktop-icons/NemoClaw.ico new file mode 100644 index 0000000000000000000000000000000000000000..7d8eb86af53d97bfc944d4a930ddff90203d745f GIT binary patch literal 9771 zcmaiYV{j!*xAlq5iS116pm}jd{y7Ax?R=Pz4oqM z{b$wQYc&7>27m&fq5}R|BmhHj06^oP8xGEYFgzpx(DYA?gycW?8#DmW{m*7*{tteJ z2LNUf0RSPP|6pTe0ALIo00>i3kVJyV`zH%Pl9m!v`RDxC3#hRF)B=d_zKj6?a4Kmr zVKtA;tOP|Vb!F5cKj$g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!G!PN2+uD6-TPuld6($8W zKmgjQ^&x?WZ$C#Q=RW&ZwKy+@`lcV~hb+>SGw;br4^mPwEsk0$pZ7l+JSy3J)*SUX zCtvf-M=~fjeZhL?Bz|TsFlNE1oT~$2=ZP!nFulSx9J?agZMxh0fE!8 zTS{wDHFxk1-KDuq2ViF(Ou0rFN{4l3>j7ySJ|f%V8vr{VL2VX|NkfeWh2un9GHV>f z*U*EJO#Y?dnnX1yU??9qp#<^sTC`)M@RGR`w2ZzGmL{T!cL+wA1-Qh@2L%E?-$R$z z*dDpy1igFdz|^gv_WD_>@-bYjz_6M2OFW8SWGjN z-ekvl+JqC-qPD))P+6|Lr2&0MlbCvNF)bMB;>q + + +# Desktop agent icons + +These desktop icons retain the existing agent artwork: + +- `NemoClaw.ico` is the unchanged installer icon from `../NemoClaw.ico`. +- `openclaw.ico`, `langchain-deepagents-code.ico`, and `nemocua.ico` wrap the existing onboarding PNG bytes in a Windows ICO container. +- `pi.ico` renders the existing `../../onboarding/assets/pi.svg` mark at 256 × 256 pixels, then wraps the PNG in an ICO container. +- `hermes.ico` is a separately retained UI asset: the unchanged `hermes_cli/web_dist/favicon.ico` from the official `hermes_agent-0.19.0-py3-none-any.whl` (MIT license). It is not evidence of, or installed from, the separately pinned Hermes 0.21.1 runtime. The source wheel SHA-256 is `bd0bac012aee38a60894781f4597dc29ee7bedb3448540249921f10d3bef327f`; the retained icon SHA-256 is `aefe65e6574e6f46d3382588f46c508e1b3f3b3c9ce3dec6d335403a5374add9`. + +The build packages exactly the six ICO files. Shortcut targets use the installed launcher with an explicit agent identity; they contain no provider keys. diff --git a/packaging/windows/assets/desktop-icons/hermes.ico b/packaging/windows/assets/desktop-icons/hermes.ico new file mode 100644 index 0000000000000000000000000000000000000000..7a949324da9d03b448247867439b632a216d884d GIT binary patch literal 8482 zcmaKxWmFtNx2^~G!9BPK4esvl?(VL^-5r8E1c%@jJh%n7;1*fWW}z+n{DP6n!~nFD}oTFmmST2B5i1xA1+0Kne3>*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ua.ico new file mode 100644 index 0000000000000000000000000000000000000000..9d45310054b10271670b3b141f6ec62c01ea1d1f GIT binary patch literal 3666 zcmV-Y4z2M30096206;(h0096X06Y!=02TlM0EtjeM-2)Z3IG5A4M|8uQUCw|KmY&$ zKnMl^0063Kaozv`4g*OZ6}d8R-+Z3beefjW*cwxG0Jr%)ps2#_H&b^|43LK>;;P+67%4QUoKb<4EHq$Ds+ z8laS7Y%TBIckeyt*FT<~5e9D<(o%FJjg~*oxxdf-o!|03N202{pNHXnJ|+N60GI$U z0bl~a1b_(u69C?~!+*CXP6owKI<#0dAd8|B->p}%fcJmF=y!v z0YT&%5C$=TpCC>J5f2fAk2K78ibHYDmmq=w@}2}BB2wwWOg{wC4lMws0|yiUt5kAl zsj8CU2vmrJ5YG=W2-qC*I;f) zl3Au@4jXs~mNr{(NKxk)3^PSJQG`##?F2T1EX9eSzp8*K`!9%y^n$6N7N8>$|K!s+ z#TJ~amNO8J4q`kM%9CLG3*6s5M;GpC#+8rBG^3m?aDf*vOAORU8(ZYv@QCqQV4neq zi1g^|hF{euhiJ$}2%i(-SU=nu2v7@I4I9P`WhoDN%9_k!h!|}(yqa|A$nMryxtTcv z%lv@ZC}b&Cz##8jjM#4gi+aWDsWc2Jy_iZxZIXyz`wW*EkCkD};q@x`Aru*f2oECMzHOAj_4BnlevVZGvM4O^oop0` z;EMsz2QP%84yycvD(j!$#$7!X&5~XTw}S1ds9k!iL@hJuLb%#^_<2epa^Qh`p8zC? zNl*vSwOKlhVO>z-`1(l0&HVtZ9Iwi0LB!F{LY9(+F`@CG$oQ+FZ7jd7q9e(m_y9?V7R!5ON;rjY#x0y(-Em+L zb_+m6q^GCh@+%&ZSwV?!L}iYv4mI+6sf{qJ@lbVy&)>2@UtY3Bf-`2}DyUtuL4v6t z<{Srq0DMMZYTLoE{Xe;HZKt057LemqnP-$0LCguY5gZOzo`heo@>G^`{*7npv%S6I z^}aDSd_8R8kJDj_x0}Xy3m{3vB#F9Jo8)3I;A_UCRI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oq=3;ioRs)EDd7}iW4wd73;_R#mbE`?bf+kPo9==-5hJYb=C*eEA+5+)BT8z)#OZz0+x)r-*iv-=By0W^RyULS@ zY=O0wRzITe$^rQTsEVN$#26i0OQf;S<2Jmggy#x=WHaWjIbAQF^b|t?x6aji*Je4d zG>ISkF$-!#6xt}Vv^)vl=KQce!b#n8^xkAp{GN*1q(h5_SR>xL+4|I)Q}sNX(`haL z_w}>&qVdg2*MQs-wy-p>H7dxk zjAt`8+MFNxF~48bIZ6zHIx^$&OOzh~-+k^i`kHkfeXx41ncI{%DmFkLbNsE6ty?(%)EJd3YW$**ZFY zy%n3}L!rkP5tjHdZS@hXI-Kzd;ufga_*ZLLw)RYYbk}yh`TLAsr1E;xbUuc!1|f&1 zBdClkmG)T>X)dyCqkOO>=uXosN(LQfkM~M!9p_^DJJ!So3Ccw7gfQ#0PVUS}u%Q z_(W}(d%9=qXWwf6D<6@`CgudITmUSLT4+s2Kpk~sh@w`=Q+B9w9fg@Ep7GY)(bGR{(j-o*B2ZTWh zvKk`@-=fM5Yv$?mn@gLBlQGLg+0R;4@gxGm|>?Yo=}p4)yf_tb_O=}%1K1jIQgGH@340wj#b{#NJT z6}}?{cdY5upEc*&`U*Pz5QITovx!>NE8Z~&bB0rvpezVWcvwX9+9F;j;GLZ4|?Th`3S;7gbO{NV~q#((Vd2yy`3_>EdV<; zKad1*It?f{O`cCQEQ zlfTC@O-CNpkXT-w=7n?gxw+?dW*@fP_PEo<~$2qR4Al)iA`-2>=rSCICzT km;f*VU;@AdfcM?_AD!MM;fES>^8f$<07*qoM6N<$f&`EHBme*a literal 0 HcmV?d00001 diff --git a/packaging/windows/assets/desktop-icons/openclaw.ico b/packaging/windows/assets/desktop-icons/openclaw.ico new file mode 100644 index 0000000000000000000000000000000000000000..57f4032af6840829daf27e1f83ee51bb1e3ee2a3 GIT binary patch literal 5942 zcmZX2c{mha)c?#d!q}H#>|1tWhLCNPHM=ZD#$Ze%TP6E82+3}2W1Uh`b_Q8P$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|JwkzpZ@}`f&QZafL(49soO-Xr9b6A&cwh% KzxpaV=6?Vl@A&ut literal 0 HcmV?d00001 diff --git a/packaging/windows/assets/desktop-icons/pi.ico b/packaging/windows/assets/desktop-icons/pi.ico new file mode 100644 index 0000000000000000000000000000000000000000..f3db3254e13933db10ed4adf39ca0267f96e4d3b GIT binary patch literal 1295 zcmZQzU<5)CU}R8W_{qY+AO>W22Kc%2a!GLknY^AJEoLfvGMK*H$j#u+>EK)ShN*#pWhqGXsWg~NK=tsEUc+%9 z_Pp%gdk^B|=Fge_<>-feCItqj4Ko-x8W?oc7=WB^&ISgK14%C_{*P_Fp-}vr-^AqUDPbYsq jpHo(p|^ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packaging/windows/bootstrapper/DownstreamOptions.xaml.cs b/packaging/windows/bootstrapper/DownstreamOptions.xaml.cs new file mode 100644 index 00000000000..8246e490a3d --- /dev/null +++ b/packaging/windows/bootstrapper/DownstreamOptions.xaml.cs @@ -0,0 +1,90 @@ +// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +using System.Diagnostics; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; + +namespace Nvidia.NemoClaw.Bootstrapper; + +public partial class DownstreamOptions : UserControl +{ + private string agent = string.Empty; + public DownstreamOptions() => this.InitializeComponent(); + + internal void SetAgent(string value) + { + if (this.agent == value) return; + this.agent = value; + this.ClearSecrets(); + foreach (var checkbox in new[] { this.SearchEnabled, this.TelegramEnabled, this.DiscordEnabled, this.SlackEnabled }) checkbox.IsChecked = false; + this.SearchProvider.Items.Clear(); + if (value == "openclaw") this.SearchProvider.Items.Add(new ComboBoxItem { Content = "Brave Search", Tag = "brave" }); + if (value is "openclaw" or "hermes") this.SearchProvider.Items.Add(new ComboBoxItem { Content = "Tavily", Tag = "tavily" }); + this.SearchProvider.SelectedIndex = this.SearchProvider.Items.Count > 0 ? 0 : -1; + this.Visibility = value is "openclaw" or "hermes" ? Visibility.Visible : Visibility.Collapsed; + } + + internal NativeSetupOptions ReadOptions() + { + if (this.SearchEnabled.IsChecked == true && this.SearchProvider.SelectedItem is not ComboBoxItem) + throw new InvalidOperationException("Choose a supported search provider."); + var channels = new Dictionary(); + if (this.TelegramEnabled.IsChecked == true) channels["telegram"] = UserIds(this.TelegramUsers.Text); + if (this.DiscordEnabled.IsChecked == true) channels["discord"] = UserIds(this.DiscordUsers.Text); + if (this.SlackEnabled.IsChecked == true) channels["slack"] = UserIds(this.SlackUsers.Text); + var result = new NativeSetupOptions + { + SearchProvider = this.SearchEnabled.IsChecked == true ? (this.SearchProvider.SelectedItem as ComboBoxItem)?.Tag as string : null, + Messaging = channels, + }; + result.Validate(this.agent); + return result; + } + + internal NativeServiceCredentials CopyCredentials() + { + var result = new NativeServiceCredentials(); + try + { + if (this.SearchEnabled.IsChecked == true && this.SearchProvider.SelectedItem is ComboBoxItem { Tag: string service }) result[service] = this.SearchKey.SecurePassword; + if (this.TelegramEnabled.IsChecked == true) result["telegram"] = this.TelegramKey.SecurePassword; + if (this.DiscordEnabled.IsChecked == true) result["discord"] = this.DiscordKey.SecurePassword; + if (this.SlackEnabled.IsChecked == true) { result["slack-bot"] = this.SlackBotKey.SecurePassword; result["slack-app"] = this.SlackAppKey.SecurePassword; } + if (result.Values.Any(secret => secret.Length == 0)) throw new InvalidOperationException("Enter the required keys for each enabled integration."); + return result; + } + catch { result.Dispose(); throw; } + } + + internal void ClearSecrets() + { + foreach (var box in new[] { this.SearchKey, this.TelegramKey, this.DiscordKey, this.SlackBotKey, this.SlackAppKey }) box.Clear(); + } + + private static string[] UserIds(string text) => text.Split(new[] { ',', ' ', '\t', '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).Distinct(StringComparer.Ordinal).ToArray(); + + private void SelectionChanged(object sender, RoutedEventArgs args) + { + if (this.SearchFields is null) return; + this.SearchFields.Visibility = this.SearchEnabled.IsChecked == true ? Visibility.Visible : Visibility.Collapsed; + this.TelegramFields.Visibility = this.TelegramEnabled.IsChecked == true ? Visibility.Visible : Visibility.Collapsed; + this.DiscordFields.Visibility = this.DiscordEnabled.IsChecked == true ? Visibility.Visible : Visibility.Collapsed; + this.SlackFields.Visibility = this.SlackEnabled.IsChecked == true ? Visibility.Visible : Visibility.Collapsed; + } + + private void SearchProviderChanged(object sender, SelectionChangedEventArgs args) + { + if (this.SearchKey is null) return; + this.SearchKey.Clear(); + this.SearchHelp.NavigateUri = new Uri((this.SearchProvider.SelectedItem as ComboBoxItem)?.Tag as string == "brave" ? "https://api-dashboard.search.brave.com/" : "https://app.tavily.com/home"); + } + + private void OpenHelp(object sender, RoutedEventArgs args) + { + if (sender is not Hyperlink { NavigateUri: Uri uri } || uri.Scheme != "https") return; + try { Process.Start(new ProcessStartInfo { FileName = uri.AbsoluteUri, UseShellExecute = true })?.Dispose(); } + catch (Exception) { this.HelpError.Text = $"Open this official page in your browser: {uri.AbsoluteUri}"; this.HelpError.Visibility = Visibility.Visible; } + } +} diff --git a/packaging/windows/bootstrapper/MainWindow.xaml b/packaging/windows/bootstrapper/MainWindow.xaml new file mode 100644 index 00000000000..34e3df2b4a5 --- /dev/null +++ b/packaging/windows/bootstrapper/MainWindow.xaml @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +