Repository navigation
improve(setup): install latest stable Gateway from npm - #1312
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 8, 2026, 5:26 PM ET / 21:26 UTC (Revision 6). ClawSweeper reviewWhat this changesManaged Windows setup switches to npm release selectors, migrates legacy selections, records installed Gateway versions, removes release-promotion and fallback UI paths, and expands requested bootstrap scopes. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 8 items remain This remains useful work absent from main, but the limited-bootstrap blocker persists and wizard-only execution has another source-proven regression. The collaborator-authored PR also retains explicit security-policy and upgrade decisions. Priority: P2 Review scores
Verification
How this fits togetherWindows managed setup installs a Gateway inside WSL, configures it, and pairs the Windows companion. Release selection controls which package executes, while bootstrap credentials and handshake checks govern the subsequent connection. flowchart TD
A[New or legacy setup configuration] --> B[Release selector migration]
B --> C[Official installer in WSL]
C --> D[Installed version discovery]
E[Bootstrap credential] --> F[Gateway authorization and handshake]
D --> F
F --> G[Pairing and setup wizard]
Decision needed
Why: The PR explicitly requests approval for this changed trust model, and successful installation of one release cannot establish acceptance of future package execution or legacy migration policy. Before merge
Findings
Agent review detailsSecurityNeeds attention: Installer staging safeguards remain, but removing package eligibility and the security floor requires an explicit trust-policy decision. Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Support upstream selectors with explicit package-trust approval, preserved legacy upgrade intent, visible compatibility recovery, and handshake validation that also works when installation is skipped. Do we have a high-confidence way to reproduce the issue? Yes, source establishes both triggers: fresh operator pairing with a limited bootstrap token, and --wizard-only with an existing matching exact Gateway configuration. Neither path was executed during this read-only review. Is this the best way to solve the issue? No, the selector/installed-version separation is useful, but bootstrap scope admission must follow the upstream contract and wizard-only flows must obtain a trusted version without rerunning installation. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f9bfc871f6d1. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Install the latest stable OpenClaw package from npm during managed setup and verify the resolved runtime version through the Gateway handshake. Remove obsolete fallback promotion surfaces while retaining exact candidate and custom-installer validation. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 22f7cc0d-ff55-48d8-a2a0-65d21a79ecaa
Remove the remaining references to the retired recommendation pin and document independent npm latest resolution with protocol-v4 version verification. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 22f7cc0d-ff55-48d8-a2a0-65d21a79ecaa
Mirror upstream npm selector behavior while migrating legacy recommended, fallback, and exact configurations without changing their prior pins. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 22f7cc0d-ff55-48d8-a2a0-65d21a79ecaa
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 22f7cc0d-ff55-48d8-a2a0-65d21a79ecaa
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 22f7cc0d-ff55-48d8-a2a0-65d21a79ecaa
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 22f7cc0d-ff55-48d8-a2a0-65d21a79ecaa
9e92221 to
ea3d54e
Compare
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 22f7cc0d-ff55-48d8-a2a0-65d21a79ecaa
|
Maintainer update for #1312 (improve(setup): install latest stable Gateway from npm): the current-main integration and repair set are complete locally. Repairs include bounded bootstrap scopes for limited setup codes, strict authenticated version adoption for wizard-only connections, explicit exact-version enforcement for custom installers, restored configured fallback recovery in UI and headless output, corrected CI classification for Validation on the repaired current-main integration:
Real MXC setup proof is blocked before the changed code runs because this host's The remaining blocker is GitHub authorization, not code: both |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: improve(setup): install latest stable Gateway from npm This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Repairs the post-merge compatibility, bootstrap-profile, wizard-only, custom-installer, fallback, CI-classification, and documentation regressions from #1312.
What Problem This Solves
Windows managed setup should follow OpenClaw's npm version-selection behavior instead of requiring a Windows-owned Gateway recommendation update for every release.
Why This Change Was Made
New managed installs now use npm
latestby default. Explicit upstream selectors remain supported:latest,stable(normalized tolatest),extended-stable,beta,dev,next, and exact OpenClaw package versions.Setup keeps the requested selector separate from the exact installed version. It discovers the installed CLI version after installation and requires the protocol-v4 Gateway handshake to report that same version. Staged
.tgzcandidate validation remains a separate, explicit path.Legacy configuration is migrated by intent:
recommendedfollows upstream npmlatest.fallbackfollows upstream npmextended-stable.exact, version-only, or otherwise explicitly versioned legacy configuration retains its configured exact version.latest.An optional exact stable
FallbackVersionremains available to explicit callers after typed installed-version, protocol, or server-version failures. The obsolete setup completion fallback UI is removed. Managed Node remains pinned at24.19.0.Gateway 2026.9.1 also distinguishes full and limited setup-code bootstrap profiles. Windows now requests the upstream full bootstrap scope set, excluding
operator.pairing; the opaque bootstrap token remains the server-enforced authority boundary and stripsoperator.adminfor limited or plaintext-LAN setup codes. Revocation recovery proof now explicitly approves both the replacement device and its separate node command-trust request before asserting effective capabilities.The rebase preserves current-main installer hardening: randomized mode-0700 staging, bounded HTTPS download timeouts, non-empty download validation, stdin execution, and cleanup.
User Impact
New managed Gateway installations receive the current stable npm release without waiting for a Windows policy update. Operators can still request an official channel or exact historical package. Versionless legacy recommended/fallback configurations track the corresponding upstream npm stream instead of freezing an increasingly stale Windows-owned version.
Previously shipped Windows binaries are unchanged and retain the policy compiled into those releases.
Change Type
Scope
winnodeRequired proof pools
windows-wsl-gateway-e2e: current-head npm selection, protocol-v4 pairing, Gateway invocation, setup-code bootstrap, revocation recovery, and MXC containment.windows-wsl-mxc: real WSL Gateway to Windows nodesystem.runpath.windows-winui-interactive: current-head setup window launch, restart UX preservation, and obsolete fallback UI removal.windows-clean-installer-upgrade: clean latest-default install plus legacy-config migration behavior.windows-11-arm64: managed installer and WinUI setup behavior on the ARM64 development host.Validation
Validated through commit
ea3d54efwithOPENCLAW_REPO_ROOTset to the isolated worktree..\build.ps1: passed, 5 projects built and 47 Markdown files validated.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 3,941 passed, 34 environment-dependent skips, 0 failed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 2,860 passed, 0 failed.dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore: 1,108 passed, 0 failed..\scripts\validate-mxc-e2e.ps1: 17 passed, 0 failed.SetupAndConnectTests: 17 passed, 1 environment-gated skip, 0 product failures.RevocationAndRecoveryTests: 1 passed, 0 failed after explicit replacement-device and node command-trust approval.Real Behavior Proof
ea3d54ef.latest, with no Windows-owned exact version supplied.2026.9.1.4, server version2026.9.1.system.run, and containment proofs passed, 17/17.operator.adminwithout requiringoperator.pairing; command approval remained effective.27860, responsive with window titleOpenClaw Setup.C:\Users\biilai\AppData\Local\Temp\OpenClawTray\karkarl-symmetrical-couscous-karkarl-default-gateway-latest-fef4b636.Yes/No/N/A): No.Security Impact
Yes/No): Yes.Yes/No): No.Yes/No): Yes.Yes/No): No.Yes/No): No.operator.adminduring setup-code bootstrap so Gateway 2026.9.1 can honor its full-access setup profile. The client does not infer authority from the request. The opaque bootstrap token carries the Gateway-issued profile, the server intersects requested scopes with that profile, limited/plaintext-LAN tokens strip admin, andoperator.pairingis never requested or handed off by setup code.Compatibility and Migration
Yes/No): Yes, with intentional tag-based migration for versionless official selections.Yes/No): Yes.Yes/No): Automatic.Selectionvalues are deserialized and cleared in memory. Versionless officialrecommendedandfallbackselections becomelatestandextended-stable; explicitly recorded versions remain exact. Versionless custom-installer selections retain their prior exact values because custom installers require an exact version.Gateway.Version; exact stable recovery versions remain configurable throughGateway.FallbackVersion.Review Conversations