Skip to content

chore: use MXC SDK 0.8.0 - #1234

Merged
shanselman merged 1 commit into
mainfrom
shanselman-mxc-sdk-0-8-upgrade
Aug 26, 2026
Merged

shanselman merged 1 commit into
mainfrom
shanselman-mxc-sdk-0-8-upgrade

Conversation

@shanselman

Copy link
Copy Markdown
Collaborator

@karkarl please review this MXC executor upgrade.

What Problem This Solves

OpenClaw shipped the older MXC 0.7 executor even though MXC 0.8 is now the supported npm release with native executor fixes and stronger fail-closed behavior.

Why This Change Was Made

Upgrade the packaged @microsoft/mxc-sdk and shipped wxc-exec.exe to 0.8.0. OpenClaw intentionally retains the supported 0.7.0-alpha policy contract so this PR does not also introduce schema 0.8 directional-network behavior changes.

User Impact

Sandboxed system.run uses the MXC 0.8 native executor while preserving the existing OpenClaw policy and permission behavior.

Evidence

  • npm ls @microsoft/mxc-sdk --depth=0 resolves @microsoft/[email protected].
  • The built tray tools\mxc\x64\wxc-exec.exe SHA-256 matches the npm 0.8.0 package binary: 6049C64723AF1173C3739DC6CD6B2F33F6C021BB2832C4216233CBA7F71AEE9A.
  • Structured autoreview was clean with no actionable findings.
  • Rubber-duck review found no blocking issues and confirmed the build guard, binary hash, and live containment proof form a coherent evidence chain.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Validation

  • ./build.ps1: passed, all five projects built successfully.
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 3,813 passed, 32 skipped, 0 failed.
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 2,724 passed, 0 failed.
  • ./scripts/validate-mxc-e2e.ps1 -NoBuild: passed all required non-skipping MXC proofs.

Real Behavior Proof

  • Environment tested: Windows x64, Windows SDK 10.0.26100, local WSL Gateway.
  • PR head or commit tested: 5f2f7f6b.
  • Exact steps or command run: ./scripts/validate-mxc-e2e.ps1 -NoBuild.
  • Evidence after fix: Gateway system.run returned OPENCLAW_GATEWAY_SYSTEM_RUN_MXC_OK with exit code 0 and runtime diagnostics reported executor=mxc-direct-appc, contained=True, and containment=mxc.
  • Observed result: RealGateway_SystemRun_ExecutesThroughWindowsNodeMxcSandbox, RealGateway_SystemRun_BlocksWritesToTrayDataDirectoryInMxcSandbox, and MirroredWslSafeGatewayPort_IsListeningAndRecorded all passed. The denied-write proof returned non-zero and left the protected file absent.
  • Screenshot or artifact links verified? (Yes/No/N/A): N/A
  • Not verified or blocked: None.

Security Impact

  • New permissions or capabilities? (Yes/No): No
  • Secrets or tokens handling changed? (Yes/No): No
  • New or changed network calls? (Yes/No): No
  • Command or tool execution surface changed? (Yes/No): Yes
  • Data access scope changed? (Yes/No): No
  • If any answer is Yes, explain the risk and mitigation: The native MXC executor changed from 0.7.0 to 0.8.0. OpenClaw retains its 0.7 policy contract, build-time version enforcement verifies the package, the shipped binary hash matches the dependency, and real Gateway execution plus denied-write containment passed.

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes
  • Config or environment changes? (Yes/No): No
  • Migration needed? (Yes/No): No
  • If yes, list the exact upgrade steps: N/A

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: a0b075d5-fcf9-4d2b-bd8a-d5ee4dde168f
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@shanselman
shanselman requested a review from karkarl August 26, 2026 19:48
@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Aug 26, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 3:51 PM ET / 19:51 UTC.

ClawSweeper review

What this changes

Updates the packaged Microsoft MXC sandbox SDK and build-time version check from 0.7.0 to 0.8.0 while retaining OpenClaw’s existing policy schema.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

This collaborator-owned MXC executor upgrade is not on current main and has a focused, guarded implementation with supplied real gateway containment evidence. No concrete patch defect was found; it should remain open for normal maintainer review and the active checks.

Priority: P2
Reviewed head: 5f2f7f6bd96fa6433d52285ffbb7c9bf1859b239

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused dependency update with credible current-head containment evidence and guarded packaging.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The collaborator proof gate is exempt. The PR nevertheless records a current-head WSL Gateway run that executed system.run and verified a protected write was denied.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The collaborator proof gate is exempt. The PR nevertheless records a current-head WSL Gateway run that executed system.run and verified a protected write was denied.
Evidence reviewed 4 items Current-main baseline: Current main still declares MXC SDK 0.7.0 and expects 0.7.0 in the tray project, so the requested 0.8.0 upgrade is not already implemented.
Pinned package and payload guard: The branch locks 0.8.0 with an integrity hash; the build runs npm ci, validates the exact installed version, copies the executor, and fails when it is absent.
Repository proof contract: Repository documentation defines this script as the non-skipping real Gateway to Windows-node MXC proof, including successful execution and a denied write to the tray data directory.
Findings None None.
Security None None.

How this fits together

The Windows node routes gateway command requests through the MXC AppContainer executor. The tray build restores the locked npm package, copies its native executor into the app payload, and runtime code uses that payload to enforce sandbox policy.

flowchart LR
  A[Gateway command request] --> B[Windows node policy]
  B --> C[MXC configuration]
  C --> D[Packaged native executor]
  D --> E[AppContainer process]
  E --> F[Command result and containment diagnostics]
Loading

Before merge

  • Resolve merge risk (P1) - A native executor upgrade can change containment or command compatibility outside the exercised configurations; the supplied MXC proof and completion of the active checks are the relevant safeguards.
  • Complete next step (P2) - This actively landing collaborator PR has no concrete automated repair finding; complete the normal checks and maintainer review.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Change scope 5 files affected, 11 added, 10 removed The update is limited to the dependency lock and version guards, schema documentation, and an installer assertion.

Merge-risk options

Maintainer options:

  1. Confirm completed MXC containment checks (recommended)
    Merge after required checks preserve current-head gateway execution and denied-write containment for the packaged 0.8.0 executor.
  2. Pause the executor upgrade
    Retain the existing executor if maintainers need broader configuration compatibility evidence before accepting the native-binary change.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Require completed required checks and MXC containment validation for the current head.

Technical review

Best possible solution:

Land the exact locked 0.8.0 executor only after current-head MXC containment validation and required checks complete, while retaining the 0.7 policy schema until directional-network behavior has its own compatibility review.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a dependency upgrade, not a report of a failing workflow. The PR supplies a current-head real Gateway execution and denied-write containment run.

Is this the best way to solve the issue?

Yes. Updating the locked package and exact build-time version guard while preserving the existing policy schema is the narrowest maintainable route to the executor fixes.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1e18866d9b42.

Labels

Label changes:

  • add P2: This is a bounded sandbox-executor upgrade with security-sensitive but non-emergency scope.
  • add merge-risk: 🚨 compatibility: A new native executor may alter existing system.run behavior even though the policy schema is retained.
  • add merge-risk: 🚨 security-boundary: The dependency supplies the native process executor responsible for system.run containment.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The collaborator proof gate is exempt. The PR nevertheless records a current-head WSL Gateway run that executed system.run and verified a protected write was denied.

Label justifications:

  • P2: This is a bounded sandbox-executor upgrade with security-sensitive but non-emergency scope.
  • merge-risk: 🚨 compatibility: A new native executor may alter existing system.run behavior even though the policy schema is retained.
  • merge-risk: 🚨 security-boundary: The dependency supplies the native process executor responsible for system.run containment.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The collaborator proof gate is exempt. The PR nevertheless records a current-head WSL Gateway run that executed system.run and verified a protected write was denied.

Evidence

What I checked:

Likely related people:

  • shanselman: Authored this upgrade and the recent main-side MXC repair. (role: recent MXC area contributor; confidence: high; commits: 5f2f7f6bd96f, 4206611f2b2e; files: src/OpenClaw.Shared/Mxc/MxcPolicyBuilder.cs, src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj)
  • Vitor Cepeda Lopes: Authored the main-history commit that established the MXC 0.7 package and build validation path being updated. (role: introduced MXC SDK validation; confidence: medium; commits: ce3294d40624; files: package.json, package-lock.json, src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Allow the in-progress required checks to complete against the current head.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@shanselman
shanselman merged commit 911f368 into main Aug 26, 2026
26 checks passed
@shanselman shanselman removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Aug 26, 2026
@shanselman
shanselman deleted the shanselman-mxc-sdk-0-8-upgrade branch August 26, 2026 23:40
@karkarl

karkarl commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Post-merge MXC E2E validation

Validated commit 5f2f7f6bd96fa6433d52285ffbb7c9bf1859b239 on a native Windows ARM64 MXC-capable host after public npm access became available.

.\scripts\validate-mxc-e2e.ps1 -RuntimeIdentifier win-arm64

The run used the Microsoft NuGet package-feed proxy and public registry.npmjs.org for @microsoft/[email protected]. -AllowSkip was not used.

Test Run Successful.
Total tests: 17
     Passed: 17
 Total time: 4.4391 Minutes

Build succeeded.
    0 Warning(s)
    0 Error(s)

Gateway MXC proof passed: MirroredWslSafeGatewayPort_IsListeningAndRecorded
Gateway MXC proof passed: RealGateway_SystemRun_ExecutesThroughWindowsNodeMxcSandbox
Gateway MXC proof passed: RealGateway_SystemRun_BlocksWritesToTrayDataDirectoryInMxcSandbox

MXC validation completed successfully.

This proves the retained 0.7.0-alpha policy/config projection executes successfully through the MXC SDK 0.8.0 wxc-exec.exe, including the real WSL Gateway to Windows node system.run path and protected tray-data write denial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants