Skip to content

Track Windows 25H2 build 26200.8728 MXC validation #784

Closed

Description

@TheAngryPit

Summary

This issue tracks a staged Windows 25H2 / MXC validation stack for OpenClaw Windows Node on a Portuguese Windows Release Preview machine running build 26200.8728.

The goal is to make Windows build 26200.8728 usable with MXC SDK 0.7.0 for the real OpenClaw Companion / Gateway / Windows Node system.run path, while keeping the review surface split into small, reviewable PRs.

Current stack

This issue should remain open until maintainers decide the stack shape, merge order, and long-term MXC availability policy.

Problem

There are two related problems:

  • Localized or redirected Windows known folders can expose localized display paths even when the underlying behavior is correct. Tests should compare against OS-provided known-folder locations rather than English path suffixes.
  • OpenClaw's current MXC availability and runtime validation are too narrow for Windows 25H2 Release Preview build 26200.8728. Locally, MXC SDK 0.7.0 reports usable process-container/AppContainer-DACL behavior on this build, but the current upstream gate rejects it before the real runtime path can be validated.

PR1 scope

PR1 is intentionally small and does not change runtime behavior.

It covers:

  • Compare generated sandbox grants against OS-provided known-folder paths instead of English suffixes.
  • Use invariant culture for compact technical token-count formatting.
  • Serialize tests that mutate shared app-version override state.

PR1 does not change MXC availability, Gateway behavior, WSL setup, installed Companion behavior, command execution policy, or sandbox policy.

PR2 scope

PR2 is the MXC SDK/runtime-policy slice.

It covers:

  • Update @microsoft/mxc-sdk to 0.7.0.
  • Add explicit support for Windows build 26200.8728+ for the currently usable process-container/AppContainer-DACL tier.
  • Preserve process-container support for 26300.8289+.
  • Keep isolation_session separately gated to newer supported builds.
  • Emit SDK 0.7.0 config schema 0.7.0-alpha.
  • Keep AppContainer-DACL fallback compatible by granting only backend-safe PATH directories.
  • Avoid nonexistent denied-path roots on this backend.
  • Resolve pwsh.exe before clearing the launch environment.
  • Preserve the existing host-fallback default when MXC is unavailable, for compatibility with current upstream expectations.
  • Add explicit strict fail-closed behavior behind SystemRunBlockHostFallbackWhenMxcUnavailable=true.
  • Improve MXC diagnostics without logging unnecessary local executable paths by default.

PR2 intentionally does not claim full Gateway pairing/runtime proof by itself. That broader runtime path is covered by PR3 on top of PR2.

PR3 scope

PR3 is the real runtime proof slice.

It covers:

  • Gateway -> Windows Node -> system.run -> MXC execution.
  • MXC-gated E2E proof so unsupported hosts skip instead of failing unrelated CI lanes.
  • Positive contained execution proof.
  • Negative denied-write proof for blocked app-data writes.
  • CI visibility for the named MXC proof test.
  • Installed Companion validation from the stacked PR3 build.

Local runtime proof

Local proof was run on:

  • Windows build: 26200.8728
  • Windows Insider channel: Release Preview
  • MXC SDK: 0.7.0
  • MXC observed tier: AppContainer-DACL / mxc-direct-appc
  • Companion/Gateway mode: real Gateway with paired Windows Node
  • Companion installation path: installed app under %LOCALAPPDATA%\OpenClawTray

The latest local runtime validation used an installed Companion built from the stacked PR3 branch and exercised the real Gateway path:

Gateway -> node.invoke -> Windows Node -> system.run -> MXC

Positive execution proof:

  • system.run returned ok=true.
  • Payload returned exitCode=0.
  • The marker command returned the expected stdout marker.
  • Tray diagnostics showed executor=mxc-direct-appc, contained=True, containment=mxc, allowOutbound=False, and deniedCount=7.

Negative containment proof:

  • A denied write into the app-data/settings area returned Access is denied.
  • Payload returned exitCode=1.
  • The denied target file did not exist after the run.
  • Tray diagnostics still showed MXC containment for the denied run.

The proof path above is Gateway-based. Local MCP server proof is not counted here because the installed Companion configuration used for this validation had local MCP disabled.

Validation summary

PR1:

  • implemented: locale-safe known-folder assertions, invariant technical formatting, shared app-version test serialization.
  • test_proven: focused test surfaces passed locally.

PR2:

  • implemented: MXC SDK 0.7.0, build 26200.8728 support, config/runtime policy updates, fallback compatibility, shell resolution, diagnostics hardening.
  • test_proven: focused MXC/shared test surfaces passed locally.
  • runtime_proven: PR2 runtime code is exercised through the stacked PR3 Gateway path.

PR3:

  • implemented: Gateway E2E proof for system.run through MXC plus positive/negative containment checks.
  • test_proven: focused Shared MXC and E2E tests passed locally.
  • runtime_proven: installed Companion + real Gateway + paired Windows Node executed system.run through MXC on Windows build 26200.8728.

Validation boundaries

This stack is scoped to Windows build 26200.8728, MXC SDK 0.7.0, and the currently observed AppContainer-DACL / mxc-direct-appc tier.

It does not attempt to prove:

  • isolation_session behavior on build 26200.8728, because this host is not in that tier.
  • Stable-channel Windows behavior.
  • Full Companion product-feature coverage beyond the Gateway -> Windows Node -> system.run -> MXC path.
  • A maintainer policy decision that strict fail-closed should become the default.
  • A final choice between the explicit build/UBR table and the separate probe-based MXC availability direction.

The local proof is intentionally runtime-focused and contributor-provided. PR3 adds E2E coverage and CI visibility so unsupported hosts skip/report clearly instead of failing unrelated lanes.

Maintainer decisions still needed

Maintainers still need to decide:

  • Whether this explicit Windows build/UBR support table is preferred over, or should be combined with, the separate probe-based MXC availability direction.
  • Whether the strict fail-closed setting should remain opt-in or become the default in a later PR.
  • Whether the three-PR staged stack should land as-is, be squashed, or be reorganized before merge.

Scope guard

The stack is deliberately staged:

  • PR1 should stay limited to test/locale baseline hardening.
  • PR2 should stay limited to MXC SDK/build/runtime-policy support.
  • PR3 should stay limited to real Gateway/runtime proof and the test coverage needed to preserve it.

If broader Companion product behavior, stable-channel validation, or long-term security-policy changes are needed, they should be tracked as follow-up work rather than hidden inside this issue.

Activity

  1. clawsweeper commented on Jun 18, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 20, 2026, 2:46 PM ET / 18:46 UTC.

    Summary
    Keep open: current main and the latest release still do not implement the Windows 25H2/MXC validation stack, while open PRs already carry the proposed implementation and proof slices. The remaining decision is maintainer selection of the MXC availability strategy, fallback policy, and stack landing order.

    Reproducibility: yes. for source-level reproducibility: current main rejects build 26200.8728 because MxcAvailability accepts only build 26300.8289+. I did not run the Windows runtime path because this review was read-only and the local environment is not the reported Windows host.

    Root-cause cluster
    Relationship: canonical
    Canonical: #784
    Summary: This issue is the active umbrella for the Windows 25H2/MXC validation stack; the related staged PRs are implementation candidates, while the probe-based PR is an overlapping strategy discussion.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    Open PRs already own the implementation slices, so the next action is maintainer review of stack order and the overlapping probe-based MXC strategy rather than a new ClawSweeper fix PR.

    Security
    Needs attention: The issue is security-sensitive because it changes system.run sandbox availability and host-fallback behavior.

    Review details

    Best possible solution:

    Keep this issue as the canonical umbrella until maintainers choose the MXC availability and fallback policy, then land or reject the linked staged PRs or a single narrower canonical replacement.

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

    Yes for source-level reproducibility: current main rejects build 26200.8728 because MxcAvailability accepts only build 26300.8289+. I did not run the Windows runtime path because this review was read-only and the local environment is not the reported Windows host.

    Is this the best way to solve the issue?

    Unclear until maintainers choose the policy direction: the staged explicit support-table PR and the separate probe-based PR both target the same MXC availability gap. The maintainable path is to pick the canonical strategy and then land the bounded runtime proof in order.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The explicit build/UBR table in the staged stack overlaps with the open probe-based availability strategy, so maintainers still need to choose the canonical MXC availability direction.
    • The host-fallback versus strict fail-closed policy affects the system.run sandbox boundary and upgrade behavior, so this should not be resolved by a new independent fix PR while the linked PRs are open.
    • The staged branches depend on one another, so merge order or rebase shape remains a coordination risk even though contributor proof has improved.

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

    Label changes

    Label justifications:

    • P2: This is a bounded Windows MXC validation and compatibility effort with active implementation PRs, not an emergency runtime outage.
    • impact:security: The issue affects MXC sandbox availability, host fallback behavior, and contained system.run execution boundaries.
    Evidence reviewed

    Security concerns:

    • [medium] Resolve sandbox fallback policy before closure — src/OpenClaw.Shared/Mxc/MxcCommandRunner.cs:55
      Current main still routes system.run to the host when MXC is unavailable, while the linked stack changes the fail-closed and compatibility fallback contract; that boundary needs maintainer security review before this issue can close.
      Confidence: 0.84

    What I checked:

    • Repository policy read: AGENTS.md was read in full; its read-only review implications and node/MCP/Gateway architecture guidance were applied without running build/test validation because no files were changed. (AGENTS.md:1, c0514bd2d026)
    • No VISION.md found: Repository file discovery found AGENTS.md but no VISION.md, so there is no repository-authored vision document to use as a product-scope anchor. (c0514bd2d026)
    • Current main still rejects build 26200: MxcAvailability on current main hard-codes SupportedBuild = 26300 and returns an unsupported reason whenever the Windows build differs, so build 26200.8728 is still rejected by source inspection. (src/OpenClaw.Shared/Mxc/MxcAvailability.cs:25, c0514bd2d026)
    • Current tests encode the old support table: MxcAvailabilityTests still reject non-26300 builds and only allow 26300.8289+, matching the current narrow gate rather than the requested 26200.8728 validation. (tests/OpenClaw.Shared.Tests/Mxc/MxcAvailabilityTests.cs:68, c0514bd2d026)
    • MXC SDK dependency not updated on main: package.json still depends on @microsoft/mxc-sdk ^0.6.1, not the requested 0.7.0 SDK. (package.json:7, c0514bd2d026)
    • Current config schema remains pre-0.7.0: MxcPolicyBuilder still advertises 0.4.0-alpha, and MxcConfig still uses the appContainer wire property rather than the requested SDK 0.7.0/processContainer direction. (src/OpenClaw.Shared/Mxc/MxcPolicyBuilder.cs:32, c0514bd2d026)

    Likely related people:

    • bkudiess: Merged PR history shows bkudiess authored the original MXC AppContainer sandboxing work and the direct wxc-exec replacement, and an open related PR proposes the probe-based MXC 0.7 availability strategy. (role: MXC feature owner and adjacent implementation proposer; confidence: high; commits: 62533e2901bd, cf611d4ab59f, 404ead9a97ab; files: src/OpenClaw.Shared/Mxc/MxcAvailability.cs, src/OpenClaw.Shared/Mxc/MxcCommandRunner.cs, src/OpenClaw.Shared/Mxc/MxcConfigBuilder.cs)
    • shanselman: Git history ties the current narrow 26300/8289 support gate to the commit titled 'Restrict MXC sandbox support gate', and PR metadata shows this person merged the original MXC sandboxing feature. (role: support-gate contributor and prior merger; confidence: high; commits: f52b829a6f3c, 62533e2901bd; files: src/OpenClaw.Shared/Mxc/MxcAvailability.cs, src/OpenClaw.Shared/Mxc/MxcCommandRunner.cs, tests/OpenClaw.Shared.Tests/Mxc/MxcAvailabilityTests.cs)
    • AlexAlves87: Current blame on the MXC availability, command runner, package, and test files points to a later refactor commit that reintroduced the current file contents in main. (role: recent area contributor; confidence: medium; commits: b175439fbfd4; files: src/OpenClaw.Shared/Mxc/MxcAvailability.cs, src/OpenClaw.Shared/Mxc/MxcCommandRunner.cs, tests/OpenClaw.Shared.Tests/Mxc/MxcAvailabilityTests.cs)
    • TheAngryPit: The issue discussion and open related PRs identify this person as the author of the staged PR1/PR2/PR3 validation stack for Windows build 26200.8728. (role: current validation-stack proposer; confidence: medium; commits: 0555bfa52c0d, fcd58a58f294, c2390b3d424a; files: src/OpenClaw.Shared/Mxc/MxcAvailability.cs, src/OpenClaw.Shared/Mxc/MxcCommandRunner.cs, tests/OpenClaw.E2ETests/Setup/SetupAndConnectTests.cs)
    • Peter Steinberger: Blame on the current package.json MXC SDK dependency line points to a dependency update commit that left current main on @microsoft/mxc-sdk ^0.6.1. (role: dependency updater; confidence: medium; commits: a910b49bb839; files: package.json)
    How this review workflow works
    • 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.
  2. TheAngryPit commented on Jun 18, 2026

    @TheAngryPit
    ContributorAuthor

    Published the first two draft PRs for this tracking issue:

    PR2 is currently opened against main with an explicit dependency on #785 because both branches were published from a contributor fork. After PR1 lands, or if maintainers prefer a temporary upstream base branch, PR2 can be rebased/retargeted so the review diff contains only the MXC changes.

    PR3 remains planned for full Gateway-mode and installed Companion validation; this issue should stay open until that broader path is handled.

  3. TheAngryPit commented on Jun 18, 2026

    @TheAngryPit
    ContributorAuthor

    PR3 published: #787

    Scope: runtime Gateway -> Windows node -> system.run -> MXC proof.

    Stacked after #786. PR3-only delta: TheAngryPit/openclaw-windows-node@feature/mxc-26200-sdk-0-7-validation...feature/gateway-system-run-mxc-e2e

  4. TheAngryPit commented on Jun 19, 2026

    @TheAngryPit
    ContributorAuthor

    Stack status after the latest pushes to #785, #786, and #787:

    • Fix locale-sensitive Windows tests and technical token formatting #785 (debafff) now includes the explicit test-project marker plus the unsafe request-id assertion fix. Local CI-equivalent proof: Shared.Tests 2262/2262, Tray.Tests 1088/1088. Autoreview clean.
    • Validate MXC SDK 0.7.0 on Windows build 26200.8728 #786 (ca99562) now addresses both review blockers: settings-directory deny is preserved logically before the directory exists, and PATH-sensitive tests no longer mutate process-wide PATH. Local CI-equivalent proof: Shared.Tests 2299/2299, Tray.Tests 1088/1088. Autoreview clean. Review threads resolved.
    • Add Gateway system.run MXC runtime E2E proof #787 (1763f84) now fixes the MXC E2E fixture-gating concern by moving the focused MXC proof behind an MXC-gated collection fixture and expanding the setup-connect CI filter to include it. Local runtime proof after Tray/MXC build: setup-connect+MXC shard executed 16/passed 16 with MXC diagnostics showing �xecutor=mxc-direct-appc, contained=True, �xitCode=0, and containment=mxc. Autoreview clean.

    Current split still looks coherent:

    Remaining maintainer decision is stack shape/merge order, not an unresolved local blocker from the latest review cycle.

  5. TheAngryPit commented on Jun 19, 2026

    @TheAngryPit
    ContributorAuthor

    Current proof map after the latest PR2/PR3 pushes:

    Stack status

    Proof levels

    PR2 #786

    Current head 0c1fd1c2:

    • implemented: MXC SDK 0.7 support, Windows 26200.8728 availability, fail-closed default fallback policy, legacy settings migration, explicit versioned fallback opt-in, shell resolution, Sandbox UI diagnostics.
    • test_proven: focused Shared MXC tests passed, 66 passed / 0 failed.
    • test_proven: focused Tray settings/migration tests passed, 18 passed / 0 failed.
    • build_proven: WinUI Debug win-x64 build passed after dotnet restore -r win-x64, 0 warnings / 0 errors.
    • runtime_proven for direct MXC path: earlier PR2 runtime smoke on Windows build 26200.8728 showed wxc-exec --probe with tier=appcontainer-dacl, denied-read smoke did not leak denied content, MCP system.run returned OPENCLAW_SYSTEM_RUN_MXC_OK, and logs showed executor=mxc-direct-appc, contained=True, config version=0.7.0-alpha, envKeys=[], containment=mxc.
    • runtime_proven limit: PR2 does not claim full Gateway pairing/runtime proof on current head; that is intentionally PR3.

    Final local autoreview:

    • openclaw-autoreview --mode local --engine codex --model gpt-5.5 --thinking high with PR2 fail-closed/default-migration scope ended clean: no accepted/actionable findings, overall patch is correct.

    PR3 #787

    Current head cad71667:

    • implemented: focused Gateway E2E proof for Gateway -> node.invoke -> Windows node -> system.run -> MXC process containment, with MXC availability gating and Gateway allowCommands assertions.
    • test_proven: focused Shared MXC tests passed, 66 passed / 0 failed.
    • test_proven: focused Tray settings/migration tests passed, 18 passed / 0 failed.
    • build_proven: WinUI Debug win-x64 build passed after dotnet restore -r win-x64, 0 warnings / 0 errors.
    • test_proven: E2E project compiled/listed and includes OpenClaw.E2ETests.Setup.MxcSetupAndConnectTests.RealGateway_SystemRun_ExecutesThroughWindowsNodeMxcSandbox.
    • runtime_proven: real MXC Gateway E2E passed on Windows build 26200.8728, final head cad71667: 1 passed / 0 failed / 0 skipped.

    Runtime proof markers from pr3-mxc-e2e-final.trx:

    • gateway.nodes.allowCommands includes system.run/system.run.prepare/system.which
    • OPENCLAW_GATEWAY_SYSTEM_RUN_MXC_OK
    • exitCode=0
    • executor=mxc-direct-appc
    • contained=True
    • shell=cmd
    • systemRunBlockHostFallbackWhenMxcUnavailable=true
    • containment=mxc
    • stderrChars=0

    Final local autoreview:

    • openclaw-autoreview --mode branch --base local-pr2/feature-mxc-26200-sdk-0-7-validation --engine codex --model gpt-5.5 --thinking high ended clean: no accepted/actionable findings, overall patch is correct.

    Still not claimed

    • Full installed Companion replacement/profile migration proof is still not claimed.
    • Broad full-suite green status is still not claimed.
    • Maintainers still need to choose stack order and whether the explicit build/UBR table or the separate probe-based availability direction is the canonical long-term path.
  6. TheAngryPit commented on Jun 19, 2026

    @TheAngryPit
    ContributorAuthor

    Clarification on the proof map above:

    The latest real runtime proof was run on PR3 head cad71667, but PR3 includes the current PR2 head 0c1fd1c2 plus the PR3 E2E delta. So the final-head Gateway E2E is a runtime proof of the stacked runtime behavior, including the PR2 MXC runner/settings/fail-closed code as exercised through the real path:

    Gateway -> node.invoke -> Windows node -> system.run -> MXC process containment

    The distinction is:

    • PR2 isolated checkout/head 0c1fd1c2: test_proven + build_proven + clean scoped autoreview after the fail-closed/default-migration change.
    • PR2 runtime code as part of the stacked final path: runtime_proven by PR3 final-head E2E because PR3 carries PR2 current head.
    • PR3 head cad71667: runtime_proven directly by the real Gateway E2E on Windows build 26200.8728.

    The PR3 final-head E2E proof markers included:

    • gateway.nodes.allowCommands includes system.run/system.run.prepare/system.which
    • OPENCLAW_GATEWAY_SYSTEM_RUN_MXC_OK
    • exitCode=0
    • executor=mxc-direct-appc
    • contained=True
    • shell=cmd
    • systemRunBlockHostFallbackWhenMxcUnavailable=true
    • containment=mxc
    • stderrChars=0

    So the conservative wording should not be read as "we did not runtime-test the current PR2 runtime code"; we did runtime-test it through the stacked PR3 final-head Gateway path. The only thing still not claimed is a separate PR2-only full Gateway run without the PR3 E2E harness.

  7. TheAngryPit commented on Jun 20, 2026

    @TheAngryPit
    ContributorAuthor

    @clawsweeper re-review

    Stack status update after the latest PR2/PR3 pushes.

    Current escadinha:

    What changed in this pass:

    • Fixed PR2 prepare/execution locality: system.run.prepare now reports requestedShell and effectiveShell from the same runner normalization seam used by system.run approval/execution.
    • Fixed PR2 default MXC diagnostics redaction: the redacted wxc-exec config summary no longer prints the physical wxc-exec.exe path; full path-bearing repro remains opt-in behind OPENCLAW_MXC_LOG_FULL_CONFIG=1.
    • Propagated the PR2 fix into PR3.
    • Added PR3 CI visibility so setup-connect must report the named MXC proof test in TRX, either passed or explicitly skipped with warning.

    Validation summary on Windows build 26200.8728:

    • PR1 WinUI app build passed: dotnet build src\OpenClaw.Tray.WinUI -c Debug -r win-x64, 0 warnings, 0 errors.
    • PR2 focused tests passed: 91 passed, 0 failed across MxcCommandRunner, MxcConfigBuilder, DirectAppContainerExecutor, RunPrepare, and SystemRun_WithPolicy surfaces.
    • PR2 WinUI app build passed: 0 warnings, 0 errors.
    • PR2 scoped openclaw-autoreview against PR1 passed clean: no accepted/actionable findings, patch is correct (0.82).
    • PR3 Shared/E2E builds passed: 0 warnings, 0 errors.
    • PR3 focused tests passed: 91 passed, 0 failed.
    • PR3 WinUI app build passed: 0 warnings, 0 errors.
    • PR3 scoped openclaw-autoreview on a synthetic PR2-base checkout containing only PR3 delta files passed clean: no accepted/actionable findings, patch is correct (0.86).
    • Architecture subagent review of PR1 -> PR2 -> PR3 found no P1/P2 findings.

    Runtime proof:

    • PR3 current head c2390b3 passed the real Gateway E2E: 1 passed, 0 failed, 0 skipped.
    • Runtime path proven: Gateway -> node.invoke -> Windows node -> system.run -> MXC.
    • Markers included: gateway.nodes.allowCommands has system.run/system.run.prepare/system.which; OPENCLAW_GATEWAY_SYSTEM_RUN_MXC_OK; ok=true; exitCode=0; executor=mxc-direct-appc; contained=True; shell=cmd; containment=mxc; stderrChars=0.
    • Teardown completed: tray killed, gateway service uninstalled, E2E WSL distro unregistered.

    Safe status:

    • PR2 is build/test/autoreview proven directly and runtime-proven through the stacked PR3 Gateway E2E path.
    • PR3 is build/test/autoreview/architecture-review clean and runtime-proven for the full Gateway system.run MXC path on build 26200.8728.
    • Remaining coordination risk is normal stacked-PR landing/rebase order, not an open P1/P2 found in the current local review loop.
  8. clawsweeper commented on Jun 20, 2026

    @clawsweeper

    🦞🧹
    ClawSweeper re-review requested.

    I asked ClawSweeper to review this item again.
    Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
    Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

  9. added
    P2
    impact:security
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    clawsweeper:needs-security-review
    on Jun 20, 2026
  10. TheAngryPit commented on Jun 20, 2026

    @TheAngryPit
    ContributorAuthor

    Stack status update after correcting the PR1 base push.

    I had requested re-review on PR2/PR3 before pushing the final PR1 base commit. That made the remote stack confusing even though the local branches already had the correct ancestry. The base has now been pushed and the PR stack is coherent:

    Local ancestry checks:

    • PR2 contains PR1 head a81719ba.
    • PR3 contains PR1 head a81719ba.
    • PR3 contains PR2 head 76f9bf39.

    PR1 proof

    PR1 is the locale/test/local-validation baseline.

    Current-head validation for a81719ba on Windows Release Preview 25H2 build 26200.8728:

    • ./build.ps1 passed; all builds succeeded.
    • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore passed: 2262 passed, 29 skipped, 0 failed.
    • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore passed: 1088 passed, 0 skipped, 0 failed.
    • openclaw-autoreview --mode branch --base upstream/main --engine codex --model gpt-5.5 --thinking high passed clean: no accepted/actionable findings; overall patch is correct (0.82).

    PR2 proof

    PR2 is the MXC SDK 0.7.0 / Windows build 26200.8728 support and runtime-policy slice.

    Current-head validation for 76f9bf39:

    • OPENCLAW_RUN_INTEGRATION=1 dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore --filter "FullyQualifiedName~MxcCommandRunnerIntegrationTests|FullyQualifiedName~MxcCommandRunnerTests|FullyQualifiedName~MxcConfigBuilderTests" --verbosity minimal passed: 82 passed, 0 skipped, 0 failed.
    • openclaw-autoreview --mode commit --commit HEAD --engine codex --model gpt-5.5 --thinking high passed clean: no accepted/actionable findings; overall patch is correct (0.86).

    PR2 keeps the maintainer-requested compatibility fallback by default:

    • MXC available: contained MXC execution.
    • MXC unavailable with default settings: compatibility host fallback.
    • MXC unavailable with SystemRunBlockHostFallbackWhenMxcUnavailable=true: fail closed.
    • Sandbox disabled: explicit host execution.

    Custom system.run env remains rejected before fallback while sandboxing is enabled.

    PR3 proof

    PR3 is the real Gateway runtime proof slice.

    Current-head validation for 5ac78183:

    • Shared/MXC focused validation passed: 82 passed, 0 skipped, 0 failed.
    • Gateway/MXC E2E passed: 2 passed, 0 skipped, 0 failed.
    • openclaw-autoreview --mode commit --commit HEAD --engine codex --model gpt-5.5 --thinking high passed clean: no accepted/actionable findings; overall patch is correct (0.86).

    Runtime path proven by PR3:

    Gateway -> node.invoke -> Windows Node -> system.run -> MXC

    Runtime markers included:

    • gateway.nodes.allowCommands includes system.run/system.run.prepare/system.which
    • OPENCLAW_GATEWAY_SYSTEM_RUN_MXC_OK
    • positive execution returned exitCode=0
    • denied-write execution returned non-zero exit
    • denied target file was not created
    • executor=mxc-direct-appc
    • contained=True
    • shell=cmd
    • containment=mxc

    Installed Companion smoke

    In addition to the E2E test path, a stacked PR3 build was packaged, installed, launched, paired with the real Gateway, and tested through:

    Gateway -> node.invoke -> Windows Node -> system.run -> MXC

    Installed smoke results:

    • Installed Companion launched from the normal user install path.
    • Gateway listed the Windows Node as connected.
    • Positive system.run returned ok=true, exitCode=0, and the expected stdout marker.
    • Tray diagnostics showed executor=mxc-direct-appc, contained=True, containment=mxc, allowOutbound=False, and deniedCount=7.
    • A denied write into the app-data/settings area returned Access is denied.
    • The denied write returned exitCode=1.
    • The denied target file did not exist after execution.
    • Diagnostics still showed MXC containment for the denied run.

    Local MCP server proof is not claimed; this installed smoke used the Gateway path.

    Security/fallback note

    This stack intentionally preserves the current compatibility fallback default because review feedback asked not to break existing users when MXC is unavailable. The strict fail-closed path is still implemented as an explicit setting.

    From a security perspective, I think maintainers should still reconsider making fail-closed the default in a follow-up. If a user enables sandboxing, silently falling back to host execution when MXC is unavailable is weaker than blocking and surfacing the unavailable sandbox state. The current PRs keep compatibility as requested, but leave a clear path for a future policy change.

    Validation boundaries

    Still not claimed:

    • Stable-channel Windows proof.
    • isolation_session behavior on build 26200.8728.
    • Local MCP server proof.
    • Full Companion product-feature coverage beyond the Gateway -> Windows Node -> system.run -> MXC path.
    • A final maintainer choice between the explicit build/UBR table and the separate probe-based MXC availability direction.
  11. TheAngryPit commented on Jun 24, 2026

    @TheAngryPit
    ContributorAuthor

    Stack status update after PR2 republish.

    PR1 #785 is merged, and PR2 #786 has now been republished at 770522bccc5f544417453d0b49004fae36e755d7 on top of current main e7ef2715398ccb677ad0e752503d3e61610401e1.

    What changed at the stack level:

    • PR2 no longer carries stale PR1 branch history and is no longer based on the earlier conflicting head.
    • The current PR2 head incorporates upstream's latest MXC helper restore fix instead of replacing it.
    • The PR2 MXC config path now aligns with current microsoft/mxc: processContainer is the emitted config shape; appContainer is treated as legacy/deprecated upstream alias.
    • The default compatibility fallback remains intact for MXC-unavailable cases, while custom environment requests and unsupported sandbox shells fail closed inside the sandbox-enabled path.

    Current PR2 proof summary:

    • Windows proof host: 25H2, build 26200.8737.
    • wxc-exec --probe: tier=appcontainer-dacl, DACL augmentation required, UI-blocking probes available.
    • Focused MXC/runtime tests: 94 passed, 0 skipped.
    • Full Shared tests: 2462 passed, 31 skipped.
    • Full Tray tests: 1127 passed, 0 failed.
    • WinUI build: passed.
    • ./build.ps1: passed across Shared, Cli, WinNodeCli, SetupEngine, and WinUI.
    • Scoped openclaw-autoreview against origin/main: clean, no accepted/actionable findings; patch is correct (0.78).

    Proof boundary:

    • PR2 is now build/test/autoreview proven and direct-MXC-runtime proven for the MXC SDK 0.7 / system.run policy slice.
    • Full Gateway -> Windows Node -> system.run -> MXC proof is still intentionally scoped to PR3 Add Gateway system.run MXC runtime E2E proof #787/top-of-stack validation after PR2 settles.
    • GitHub checks for the new PR2 head started after the republish and are still completing.

    Next stack step after PR2 review/checks settle: rebase PR3 #787 on this PR2 head, then run the full top-of-stack app/runtime proof before asking for publication there.

  12. TheAngryPit commented on Jun 24, 2026

    @TheAngryPit
    ContributorAuthor

    Stack status update after the PR3 republish/re-review.

    Current stack

    • PR1 Fix locale-sensitive Windows tests and technical token formatting #785 is merged at 0555bfa52c0de1d6b88055260d24995d2c2b7782.

      • Current rating: diamond lobster.
      • Status: merged.
    • PR2 Validate MXC SDK 0.7.0 on Windows build 26200.8728 #786 is open at 770522bccc5f544417453d0b49004fae36e755d7.

      • Current rating: gold shrimp.
      • Labels include proof: sufficient and status: ready for maintainer look.
      • Merge state: CLEAN.
      • GitHub checks are green for repo hygiene, tests, setup-connect E2E, revocation-recovery E2E, network-recovery E2E, win-x64 build, and win-arm64 build.
    • PR3 Add Gateway system.run MXC runtime E2E proof #787 is open at 760dc2f9f7a68d8f95eda35683d51f296d5c3b5f.

      • Current rating: platinum hermit.
      • Labels include proof: sufficient and status: ready for maintainer look.
      • Merge state: CLEAN.
      • GitHub checks are green for repo hygiene, tests, setup-connect E2E, revocation-recovery E2E, network-recovery E2E, win-x64 build, and win-arm64 build.

    What changed since the previous issue update

    PR2 was republished on current main after PR1 merged, preserving the maintainer-requested compatibility fallback while aligning with current MXC SDK 0.7.0 / processContainer behavior.

    PR3 was then rebuilt cleanly on top of that PR2 head and republished. The PR3-only diff is now limited to the Gateway/MXC E2E proof surface:

    • .github/workflows/ci.yml
    • docs/WINDOWS_NODE_TESTING.md
    • tests/OpenClaw.E2ETests/E2EFactAttribute.cs
    • tests/OpenClaw.E2ETests/Setup/MxcE2ESetupFixture.cs
    • tests/OpenClaw.E2ETests/Setup/MxcSetupAndConnectTests.cs

    Current proof summary

    PR2 #786:

    • test_proven: focused MXC/runtime tests passed locally on Windows 25H2, build 26200.8737.
    • test_proven: full Shared and full Tray test suites passed locally.
    • build_proven: WinUI build and ./build.ps1 passed locally.
    • runtime_proven: direct MXC/system.run policy slice was exercised locally with wxc-exec --probe showing tier=appcontainer-dacl, needsDaclAugmentation=true, and UI-blocking probes available.
    • review_proven: scoped openclaw-autoreview against origin/main returned clean with no accepted/actionable findings.
    • ci_proven: current GitHub checks for PR2 are green.

    PR3 #787:

    • test_proven: E2E project build passed locally.
    • test_proven: gate-off behavior passed locally with OPENCLAW_RUN_E2E unset: both MXC E2E tests skipped for the expected reason.
    • build_proven: WinUI build passed locally.
    • runtime_proven: real Gateway MXC E2E passed locally with 2 passed, 0 skipped, 0 failed.
    • runtime_proven: positive path proved Gateway -> node.invoke -> Windows Node -> system.run -> MXC with OPENCLAW_GATEWAY_SYSTEM_RUN_MXC_OK, exitCode=0, executor=mxc-direct-appc, contained=True, shell=cmd, and containment=mxc.
    • runtime_proven: negative denied-write path returned non-zero exit, did not create the target file, and still logged MXC containment.
    • review_proven: scoped openclaw-autoreview --mode branch --base tap/pr2-rebased-after-pr1-merge --engine codex --model gpt-5.5 --thinking high returned clean with no accepted/actionable findings; overall patch is correct (0.86).
    • ci_proven: current GitHub checks for PR3 are green.

    Policy / maintainer decision still open

    PR2 intentionally preserves the current compatibility fallback default because earlier review feedback asked not to break existing users when MXC is unavailable:

    • MXC available: execute contained through MXC.
    • MXC unavailable with default settings: compatibility host fallback remains allowed.
    • MXC unavailable with the explicit strict setting enabled: fail closed.
    • Sandbox disabled: explicit host execution remains intentional.

    From a security perspective, I still think maintainers should consider making fail-closed the long-term default when sandboxing is enabled. Silent host fallback after a sandbox request is weaker than blocking and surfacing the sandbox-unavailable state. The current PR2 keeps compatibility as requested and leaves the stricter path available/configurable.

    Still not claimed

    • Stable-channel Windows coverage is not claimed.
    • Full Companion product-feature coverage is not claimed.
    • Local MCP-server proof is not claimed.
    • A maintainer decision is still needed on whether the compatibility fallback should remain default long term, or whether the stricter fail-closed setting should become the default in a follow-up.
  13. TheAngryPit commented on Jun 25, 2026

    @TheAngryPit
    ContributorAuthor

    Current proof map for the #784 PR stack.

    This update corresponds to the following heads:

    Verified local stack order:

    origin/main -> PR2 #786 -> PR3 #787

    Baseline

    The separate Windows build.ps1 host-detection fix from #822 has been merged and is now part of upstream main. PR2/PR3 are rebased on that baseline and do not carry the #822 change.

    Current host used for local validation:

    • Windows build: 26200.8737
    • .NET SDK: 10.0.301
    • Gateway distro used for CLI/runtime proof: OpenClawGateway
    • Gateway CLI: OpenClaw 2026.6.10

    PR2 #786

    Current head 442de02a.

    What PR2 covers:

    • MXC SDK 0.7.0.
    • Windows 26200.8728+ processcontainer/AppContainer-DACL support.
    • Existing 26300.8289+ processcontainer support.
    • isolation_session still gated to 26300.8553+.
    • MXC config schema 0.7.0-alpha.
    • PATH/TEMP bootstrap inside the launched shell because non-empty MXC process.env is not usable on this backend.
    • Filtered readonly grants and nonexistent denied-root omission for AppContainer-DACL compatibility.
    • Compatibility host fallback preserved by default when MXC is unavailable.
    • Strict fail-closed behavior available through SystemRunBlockHostFallbackWhenMxcUnavailable=true.
    • Fallback shell approval alignment and unsupported-shell/custom-env fail-closed guards.
    • Sandbox UI diagnostics for contained, compatibility fallback, blocked, and sandbox-off states.
    • Installer assertion coverage for incremental MXC helper restore.

    Fresh current-head proof:

    • .\build.ps1 passed without setting $env:OS.
    • Shared focused tests: 141 passed, 0 failed, 0 skipped.
    • Tray focused tests: 28 passed, 0 failed, 0 skipped.

    PR2 proof limits:

    • PR2 does not claim full Gateway/installed-app runtime proof by itself. That is PR3.
    • Broad full-suite green is not claimed.
    • Clean external autoreview is not claimed; the local approval layer blocked external disclosure of local branch code and was not bypassed.

    PR3 #787

    Current head 020d861e, stacked on PR2 442de02a.

    What PR3 covers:

    • Focused Gateway MXC E2E proof.
    • MXC-specific E2E collection and availability gate.
    • Probe-based wxc-exec.exe discovery before skipping.
    • Gateway allowlist assertions for system.run, system.run.prepare, and system.which.
    • Real Gateway -> Windows Node -> system.run -> MXC success proof.
    • Real Gateway -> Windows Node -> system.run -> MXC denied-write proof.
    • Documentation for the focused Windows Node MXC proof lane.

    Fresh current-head proof:

    • .\build.ps1 passed without setting $env:OS.
    • E2E project build passed with 0 warnings, 0 errors.
    • Focused MXC E2E tests passed: 2 passed, 0 failed, 0 skipped.
    • Installed top-of-stack app was built, installed, launched, and tested through the real Gateway/Windows Node path.

    Installed-app runtime proof:

    • Installed product version includes Sha.020d861eb50d605afa400aa16d89e240c9c85c5d.
    • Connected Windows node version: 0.6.4-tap-pr3-gateway-mxc-e2e-on-pr2-770522b.1.
    • system.run available.
    • Success marker OPENCLAW_REAL_APP_MXC_26200_8737_OK_f636bbaf: exitCode=0, timedOut=false, marker present in stdout.
    • Denied-write marker OPENCLAW_REAL_APP_MXC_26200_8737_DENIED_d1d8822f: exitCode=1, timedOut=false, marker absent from stdout, target file not created.
    • Tray log confirmed executor=mxc-direct-appc, contained=True, wxcExec=<set>, version=0.7.0-alpha, envKeys=[], network default block policy, and final containment=mxc for both success and denied-write commands.

    PR3 proof limits:

    • Broad full-suite green is not claimed.
    • Full profile migration proof is not claimed.
    • Clean external autoreview is not claimed; the local approval layer blocked external disclosure of local branch code and was not bypassed.

    Maintainer Decision Surface

    This stack intentionally keeps the current compatibility fallback default while adding a strict fail-closed option. From a security standpoint, strict fail-closed is the stronger long-term default. From a compatibility standpoint, preserving fallback avoids breaking existing users when MXC is unavailable or regresses.

    The current PR2 implementation is therefore conservative for upstream compatibility while making the stricter behavior available and test-covered.

  14. modified the milestone: 0.7 ALPHA on Jun 25, 2026
  15. TheAngryPit commented on Jun 25, 2026

    @TheAngryPit
    ContributorAuthor

    Status update:

    • PR2 (#786, MXC SDK 0.7.0 validation on Windows build 26200.8728) has merged into main.
    • PR3 (#787) has been rebased onto current origin/main and now carries only the Gateway system.run MXC runtime E2E proof layer.
    • Local post-rebase PR3 validation passed:
      • git diff --check origin/main..HEAD
      • dotnet build tests/OpenClaw.E2ETests -c Debug -r win-x64
      • focused OPENCLAW_RUN_E2E=1 MXC E2E proof: 2 passed / 0 failed / 0 skipped
      • scoped autoreview over origin/main..HEAD: clean, no accepted/actionable findings

    The PR3 proof now shows both:

    • positive Gateway -> Windows Node -> MXC system.run execution with containment=mxc
    • negative denied-write behavior where the target tray-data file is not created and host fallback is blocked for the proof fixture

    Remaining unrelated base/local notes:

    • GatewayLkgVersion is still pinned to 2026.6.9 while npm latest is 2026.6.10; this is also true on current main.
    • I observed local OpenClaw.Shared.Tests timing/sanitizer flakes that reproduce against origin/main; they are not PR3 regressions.
  16. shanselman commented on Jun 25, 2026

    @shanselman
    Collaborator

    @TheAngryPit I am in here looking at this right now, in case we step on each other, FYI

  17. TheAngryPit commented on Jun 25, 2026

    @TheAngryPit
    ContributorAuthor

    @shanselman ok I will be more passive for now then, but I am here to help, trying to do my part :)

  18. TheAngryPit commented on Jun 25, 2026

    @TheAngryPit
    ContributorAuthor

    P.S. @shanselman
    Quick update: our latest local validation also works on Windows build 26200.8737, not only 26200.8728.
    Environment:
    Display version: 25H2
    Edition: Professional
    Installation type: Client
    This is the same machine after the latest Windows update, and the PR3 MXC E2E proof still passes on this build.

  19. bkudiess commented on Jul 8, 2026

    @bkudiess
    Collaborator

    Closing as addressed.

    The tracking stack has landed:

    The broader follow-up areas are already tracked separately in #837, #848, and #852, so this build-specific validation tracker can close.

  20. locked as resolved and limited conversation to collaborators on Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:needs-security-reviewclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:securityissue-rating: 🦞 diamond lobster

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions