Repository navigation
Conversation
Add an independent .NET 10 NativeAOT bootstrap host, pinned gateway payload workflow, x64 and ARM64 MSIX composition, protected Artifact Signing support, reset and repair UX, tests, and public documentation. Co-authored-by: Copilot <[email protected]> Copilot-Session: 44c67666-9bfb-4db1-bda6-becae62926cb
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 25, 2026, 5:32 PM ET / 21:32 UTC. ClawSweeper reviewWhat this changesThis PR adds a standalone Windows MSIX package that stages a pinned OpenClaw Gateway and Node runtime, forwards CLI commands, and adds build, signing, test, and documentation support. Merge readinessKeep open for maintainer product direction and two P1 fixes. The current release contract still pauses MSIX distribution, while this branch enables a separately signed Gateway package that also takes the established Priority: P2 Review scores
Verification
How this fits togetherThe proposed MSIX bootstrapper receives the Windows flowchart LR
A[Windows openclaw command] --> B[MSIX bootstrapper]
B --> C[Payload verification and staging]
C --> D[User-scoped prepared payload]
D --> E[Bundled Node runtime]
E --> F[OpenClaw Gateway CLI]
G[Build and signing workflow] --> H[MSIX artifacts]
Decision needed
Why: The branch intentionally creates a new distribution and signing route, while current release documentation explicitly pauses MSIX and existing users already rely on the native/npm command and shared state contract. Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: First obtain explicit release and command-routing approval; if approved, use a coexistence-safe command contract, remove the unconditional exit prompt for forwarded commands, and prove install, upgrade, uninstall, and existing-install coexistence on Windows. Do we have a high-confidence way to reproduce the issue? Yes. The current-head proof shows Is this the best way to solve the issue? No. The staging and signing implementation has useful mechanics, but its release path and global command ownership conflict with current policy and need a coexistence decision before implementation details can be accepted. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8ff0353919cf. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
Keep OpenClaw command forwarding transparent while marking the packaged runtime as externally supervised and disabling automatic updates. Release the installation lock before launching OpenClaw, prevent lock-handle inheritance, and add unsigned, temporary test-signing, and policy-gated official-signing workflow modes. Co-authored-by: Copilot <[email protected]> Copilot-Session: 44c67666-9bfb-4db1-bda6-becae62926cb
Recommend OpenClaw's explicit classic local onboarding command without rewriting forwarded arguments. Record the known packaged Node executable and use the Windows process-image API as a fallback so reset registration works inside the MSIX container. Co-authored-by: Copilot <[email protected]> Copilot-Session: 44c67666-9bfb-4db1-bda6-becae62926cb
Forward every command-line argument unchanged to the packaged OpenClaw CLI. Keep host-specific payload paths internal and use the bootstrap menu for full verification. Co-authored-by: Copilot <[email protected]> Copilot-Session: 44c67666-9bfb-4db1-bda6-becae62926cb
Explain why normal launches avoid full staged-payload hashing, identify the current same-user modification boundary, and record the planned move to a dedicated isolated agent session. Co-authored-by: Copilot <[email protected]> Copilot-Session: 44c67666-9bfb-4db1-bda6-becae62926cb
This comment has been minimized.
This comment has been minimized.
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Limit the bootstrapper to payload preparation and repair. Leave Gateway shutdown and shared-state removal to OpenClaw's documented uninstall flow, while preserving atomic replacement of stale prepared payloads. Co-authored-by: Copilot <[email protected]> Copilot-Session: 44c67666-9bfb-4db1-bda6-becae62926cb
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Thank you for putting this together. This is a substantial and thoughtful first contribution. The provenance metadata, payload validation, x64/ARM64 structure, signing-policy work, tests, and documentation show a lot of care. The feedback below is intended to help us settle the Windows product and lifecycle contract, rather than to discount the implementation work already here. Overall directionI think a small Windows launcher is reasonable. Windows needs a real executable for an MSIX App Execution Alias, and the launcher has useful work to do before invoking the Node-based OpenClaw CLI. NativeAOT is also a reasonable implementation choice for a small, stable launcher because it gives us a self-contained native executable with no installed .NET dependency. NativeAOT is not itself required by MSIX, though. A self-contained managed .NET executable could do the same job. The important architectural decision is the launcher and package lifecycle, not AOT specifically. Naming and product identityI think The internal project name There is also a product-identity question: the package is named App Execution AliasAn App Execution Alias is the native MSIX mechanism for exposing a CLI command, so the manifest approach is correct in isolation. The unresolved concern is ownership of the global Today an npm installation provides Before taking the global alias, I think we need an explicit decision between these models:
My preference is model 1 as the eventual user experience, but model 2 while this is still an experimental distribution path. Keep command behavior cross-platformPackaging can be platform-specific, but The Windows launcher should be as transparent as possible. Currently, a zero-argument invocation is intercepted for package preparation instead of being forwarded to OpenClaw as it is on other platforms. That makes behavior depend on the installation channel. I would prefer explicit setup and repair experiences, such as Reconsider extracting the application from the MSIXThe largest architectural concern is not NativeAOT. It is packaging a tar archive inside the MSIX and then copying the application into That gives us two copies of the application and requires custom hashing, inventory markers, locks, rollback, repair, cleanup, and update coordination. It also moves the executable code out of the immutable, tamper-protected MSIX package into a same-user-writable directory. Some of the strongest benefits of MSIX are therefore lost. Before committing to that design, I think we should prove whether bundled If extraction is genuinely required because of Node/npm layout constraints, that requirement should be documented with evidence. The extracted layout should then use immutable, content-addressed version directories. New processes can select the new version without renaming or deleting the directory used by an already-running Gateway. Merge-blocking correctness issuesI independently reviewed the current head and agree with these three blockers:
Proof still neededBefore treating this as a production distribution path, I would want to see:
The focused host tests and signing-policy fixtures pass, which is a good foundation. They do not currently cover the three lifecycle/signing blockers above. Suggested landing pathI would preserve this work but separate experimentation from global product ownership:
Again, there is a lot of solid engineering here. The remaining questions are mostly about choosing a durable Windows product boundary so this launcher stays small and understandable instead of becoming a second package manager around OpenClaw. |
|
Important clarification on my review above: the intended model is that the Companion/Windows Node app is distributed through the Microsoft Store, while the Gateway is a separate, non-Store MSIX that the Companion optionally acquires and installs. That context changes a few parts of the assessment:
It also makes the boundary between the two packages more important. Before treating this as the release architecture, I think we need a written and tested contract for:
This model strengthens the argument for making the Gateway MSIX itself simple and immutable. Ideally it contains the runnable Node/OpenClaw payload, while the Companion updates the whole signed package. Extracting another mutable application copy and implementing a second repair/update system inside So my adjusted recommendation is:
Thank you for the architectural context. It makes the two-package direction much clearer and narrows the key design question to the contract between Companion, Gateway MSIX, and the existing cross-platform CLI. |
|
Thanks for the detailed review @shanselman. The worry that I have with app execution alias if that we will always have to do catchup with whatever happens in the actual openclaw gateway which I want to avoid if possible. Seems like you already made it optional in your adjusted recommendation. Things that will be captured in next set of PRs specifically for MSIX:
|
|
|
Closing to be safe, this has been moved to https://github.com/openclaw/openclaw-msix-packaging |
What Problem This Solves
OpenClaw does not currently have a public, independently buildable MSIX path for packaging a pinned OpenClaw Gateway revision together with its Node.js runtime and a first-launch bootstrap experience.
What This Adds
This PR adds a standalone Gateway MSIX implementation under
packaging/gateway-msix:The package is separate from the Companion application and uses the
OpenClaw.Gatewaypackage identity.Runtime Behavior
Launching
openclawwithout arguments prepares the bundled payload under%USERPROFILE%\.openclaw-msix\appand offers fast or full verification. Preparation uses a temporary directory and atomic promotion, so an existing payload is replaced only after the new payload is extracted and verified. Explicit arguments are forwarded unchanged to the bundledopenclaw.mjs; the host does not reserve, consume, reject, rewrite, or implement OpenClaw commands.Every child process receives:
These settings make the MSIX the owner of packaged code updates while leaving command behavior and enforcement to OpenClaw itself.
For first-run local setup, the documented command is:
Payload Integrity Boundary
The immutable payload archive inside the MSIX is hash-verified on launch. The prepared payload marker is then used to avoid re-hashing every extracted file during normal startup because complete per-file verification substantially delays launch. Users can explicitly request full verification and repair from the bootstrap menu.
The prepared directory is writable by the current user and is treated as user-owned application state, not as a tamper-resistant boundary against that same user context. The longer-term design is to run the Gateway payload in a dedicated isolated agent session rather than the interactive human session. That isolation is not part of this initial MSIX implementation.
Signing and Release Controls
Pull-request and push builds produce unsigned validation packages. Manual runs support:
unsigned: any branch, tag, or commit;test: any ref, signed with a temporary runner-generated certificate;official: only the immutable approved commit inrelease-policy.json, only frommain, using the protectedrelease-signingenvironment and Azure OIDC.No signing private key is stored in the repository or uploaded as an artifact.
Current-Head Validation
Tested packaging head:
fbc07162eb3409975d78a83c299f72fa0f428f5aBundled OpenClaw commit:
0790d9f593ad30c940ed93b5872a8cf6d6f3cf8c./build.ps1: passed. All repository projects built and documentation validation passed for 47 Markdown files.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: passed. 3,791 passed, 0 failed, 32 skipped.dotnet test ./packaging/gateway-msix/OpenClaw.Gateway.MSIX.slnx --configuration Release --no-restore: passed. 42 passed, 0 failed, 0 skipped.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: blocked locally. The assembly started and discovered the test file but produced no results for ten minutes, reproducing the existing local hang.0.1.13.0: built with 0 warnings and 0 errors and was test-signed successfully. SHA-256:AD6E06A64435F68A400CDBD99E9C634480063C8797092B16C107937FEE340155.Windows Installation Proof
The following evidence was captured from the test-signed x64 package built from the current PR head,
fbc07162eb3409975d78a83c299f72fa0f428f5a.Tested package metadata:
fbc07162eb3409975d78a83c299f72fa0f428f5a0790d9f593ad30c940ed93b5872a8cf6d6f3cf8c0.1.13.0AD6E06A64435F68A400CDBD99E9C634480063C8797092B16C107937FEE340155Artifact provenance and matching package hash
The generated metadata identifies the clean packaging commit, bundled OpenClaw commit, package version, signing type, and expected package hash.
Get-FileHashindependently reports the same SHA-256 for the tested MSIX.Installed package identity
Windows reports the current package as
OpenClaw.Gatewayversion0.1.13.0, x64, installed under the packaged WindowsApps location with the expected OpenClaw Foundation publisher.Windows command resolution
Both
Get-Command openclaw -Allandwhere.exe openclawresolve the tested command to the packaged Windows App Execution Alias.Real packaged CLI execution and argument forwarding
openclaw --versionloads and verifies the packaged payload, forwards the explicit argument to the bundled OpenClaw CLI, reports bundled version2026.7.1 (0790d9f), and observes child exit code 0. The finalPress Enter to close this window...line also reproduces the outstanding review finding that explicit forwarded commands currently wait for an extra Enter.openclaw --helplikewise reaches the bundled CLI and displays its real command and option output through the installed package.Compatibility and State Ownership
OpenClaw currently assumes one default
openclawcommand and one default state root per user. Multiple Gateway instances are supported only through explicit isolation with--profileor separateOPENCLAW_STATE_DIR,OPENCLAW_CONFIG_PATH, and port settings. This MSIX follows that existing single-default-install model rather than attempting to introduce a general side-by-side installation solution.The package currently registers the
openclaw.exeApp Execution Alias. If maintainers require simultaneous npm/native and MSIX installations, the project needs an explicit product-level command-routing, state-isolation, upgrade, and uninstall contract. If only one default installation is supported, the alias should instead be reviewed as the intended replacement and servicing path.The bootstrapper deliberately performs no Gateway shutdown or state deletion. OpenClaw shutdown and shared-state cleanup are delegated to the documented
openclaw uninstallflow. Removing the MSIX may leave the prepared%USERPROFILE%\.openclaw-msixdirectory, which users can remove manually after OpenClaw is stopped.Maintainer Decisions Requested
openclaw.exealias or use a separate coexistence route.Change Type
Scope
winnodeReview Conversations