Skip to content

feat(mxc): move the MXC sandbox plugin to MXC SDK 1.0 - #167292

Draft
ChazGo wants to merge 15 commits into
openclaw:mainfrom
ChazGo:workclaw/mxc-sdk-v1-20261007
Draft

ChazGo wants to merge 15 commits into
openclaw:mainfrom
ChazGo:workclaw/mxc-sdk-v1-20261007

Conversation

@ChazGo

@ChazGo ChazGo commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The MXC sandbox plugin still uses the preview SDK 0.8 request and process APIs, which are incompatible with the released MXC SDK 1.0 runtime.

User Impact

MXC sandboxed agents keep the same workspace, network, environment, timeout, and cleanup behavior on SDK 1.0.

Operators need to account for three compatibility changes:

  • Windows requires Node.js >=24.21.0 <25 or >=26.8.0. The plugin fails activation with a remediation message on older releases.
  • mxcBinaryPath must select an SDK 1.0 architecture directory containing both wxc-exec.exe and mxc_ffi.dll. Invalid or incomplete overrides fail closed instead of falling back to bundled native components.
  • SDK 1.0 cannot request LPAC. The appcontainer-dacl and appcontainer-bfs tiers use a regular AppContainer and can reach resources granted to ALL APPLICATION PACKAGES. base-container is unchanged. The selected tier and boundary are logged and documented. Chaz accepted this boundary and the upgrade requirements for this migration.

Ordinary sandboxed exec remains non-PTY. The retained SDK PTY path owns its deadline, kills the sandbox on timeout, returns 124, and writes the timeout notice.

Why This Change Was Made

The plugin now builds an SDK 1.0 ContainerRequest, uses spawn or spawnWithPty, and pins wxc-exec.exe plus mxc_ffi.dll from one validated release directory. Launcher stream errors, backpressure, cancellation, timeout, and cleanup are explicitly owned so a failed stream cannot be reported as exit 0.

The dependency closure also pins [email protected] for [email protected] source builds on platforms without a prebuild. The packed dependency scanner records the reviewed node-pty maintainer-script findings; they are not install-time or runtime paths.

Evidence

Current branch head 0cbf9b5481de42e1ea4207c1b27fd50441e51c0b includes a test-only restoration of sandbox-policy admission coverage. Its parent merge 0722b5d9cf4b5c7612bc142b6e68ee90f3333aa7 integrates upstream 061f22646cf6eb3c199f7f776ea6bdb1b92d971a.

  • pnpm install --frozen-lockfile on Node.js 24.22.1: passed, including the 1,878-entry supply-chain policy check.
  • pnpm test extensions/mxc/test/sandbox-policy-loader.test.ts --maxWorkers=1: passed 11 tests in 14.15 seconds.
  • pnpm test:extension mxc: passed 14 files and 121 tests in 234.32 seconds.
  • pnpm tsgo:extensions:test: passed.
  • pnpm exec oxfmt --check extensions/mxc/src/mxc-backend.ts extensions/mxc/src/mxc-container-config.ts: passed.
  • node --import ./scripts/tsx.mjs scripts/check-test-mock-exports.mts --staged --base upstream/main: passed with 7,136 grandfathered factories.

The accepted Windows runtime proof is bound to candidate 6e69db30aa6bbbbb2454258a6b1f0b0008f86c52 (tree dff5db0a2d539c550f70dc63d203198b83a7c78b). The current-main merge only reconciles upstream owner/localization refactors and tests; it does not intentionally change the validated SDK 1.0 behavior. No candidate source changes arose from the runtime harness work.

  • Windows 26700.1001 x64, base-container, existing Crabbox harbor-prawn lease.
  • Run run_fbef3881c610ceafd3624e5e429dcb80, duration 48m29.9s.
  • Command exit 0, run-exit=0, and acceptance.json recorded accepted: true.
  • Exact ordered result: 16 of 16 PASS.
    S.install, L1.plain, L2.pty-request, L4.cancel, L3.timeout, L5.no-hang, D.fs.rw.write, D.fs.rw.apply-patch, D.fs.skills.exec, D.fs.skills.bridge, D.fs.hostpath, D.identity.token, D.override.missing-ffi, D.override.not-arch-dir, D.override.restored, D.no-payload-dirs.
Frozen runtime identities
  • Plugin TGZ SHA-256: B1FE5B090A7CC593750A4D126D2649912E63844D2454D8D752D8BAA16C40C450
  • Host ZIP SHA-256: 43F3689DE35868999AE81862F2B2AA397E8A7F9AD0374E34E99A5631DE3FF3D0
  • Host manifest SHA-256: 88AD7273D36B53EA490F506414C9F4F5FEBA2737CC946222FCA81E51A546D82F
  • Node ZIP SHA-256: 158F7685B44DE51F6C0DF1D153526CBCD3E1BC739A8DFC607721CEF75DE9E541
  • R10 harness SHA-256: 062C008A942B2DB3BF74D1437F4A272E97959731E3991359486C9017935D467F
  • Harness manifest SHA-256: 99B7BE9E365474B7520ED5CB8200296C6BD8F1BDE42F9FA440D344F37CEF8142 (23/23)
  • Runtime evidence ZIP SHA-256: BEC0CE6820C9C8F4E46800B28E1C8A84A2D1B5B872DAB91D6AC3220BFA567CEF
  • Accepted receipt SHA-256: 05B3A7143CD9594FE0386E4B53598D247DFC09F1B96BB0BFF3344FBB0D8B381F
  • Final index SHA-256: BAA827281E7D63532A47852A8994AD3A2E67F8BDD6092947CA68F6864896F7F8 (10/10)

R7 through R9 are immutable harness diagnostics, not candidate failures. R10 replaced the extraction bottleneck with native tar plus exact verification of all 50,113 host files.

Not covered by the accepted run: npm/updater installation, a latest-stable SDK 0.8 upgrade on the current candidate, non-base-container tiers, or the PTY path through an OpenClaw integration. PTY timeout behavior is covered at the launcher boundary because ordinary sandboxed exec is non-PTY.

Redacted accepted runtime observations

The following is a redacted excerpt from the accepted rows.tsv and run.log. Machine-local paths, SIDs, and private file contents are omitted. These observations cover the validated Windows base-container scope only.

05:51:40Z BEGIN Install-DeployTree timeout=600s
05:53:04Z END Install-DeployTree exit 0
05:53:04Z BEGIN Runtime-B1FE timeout=1200s
06:02:46Z END Runtime-B1FE exit 0
06:02:46Z BEGIN Delta-B1FE timeout=3000s
06:37:17Z END Delta-B1FE exit 0
06:37:17Z BEGIN Assert-AcceptanceRows-B1FE-R10 timeout=120s
06:37:18Z END Assert-AcceptanceRows-B1FE-R10 exit 0

L1.plain: output matched, exit 7; launcher disappeared within about 2 seconds of child completion; no process remained 3 seconds after turn end.
L4.cancel: launcher and sandbox process tree were present before abort; all tracked PIDs disappeared in 2.934 seconds within the unchanged 10-second settlement bound; no orphan remained.
L3.timeout: exit 124 and the timeout notice were observed; launcher exited 0.3 seconds after the child; no process remained 3 seconds after turn end.
L5.no-hang: zero launcher, executor, or sandbox leftovers; the subsequent Gateway health call exited 0.
D.fs.rw.write: the production filesystem bridge wrote the expected content into the permitted workspace.
D.fs.rw.apply-patch: create, stat, rewrite, rename, and read completed through the production filesystem bridge; the original path was gone and the renamed file contained the expected value.
D.fs.skills.exec: execution was refused before launch because the requested protected skills root overlapped the writable workspace.
D.fs.skills.bridge: a write to the exact protected skills path returned a path-matched read-only denial; the corresponding host file did not exist afterward.
D.fs.hostpath: the ungranted host-private file was unreadable and its value was not returned.
D.identity.token: the sandbox token reported AppContainer with Low integrity and was distinct from the host full token.
D.override.missing-ffi: an override missing mxc_ffi.dll failed plugin activation with no fallback; the command did not run.
D.override.not-arch-dir: an override outside the required x64 layout failed plugin activation with no fallback; the command did not run.
D.override.restored: after removing the invalid override, bundled SDK 1.0 components executed normally.
D.no-payload-dirs: zero MXC payload directories and zero sandbox temporary directories remained after terminal commands.

This does not add proof for retained appcontainer-dacl or appcontainer-bfs tiers, or for an upgrade from v2026.10.6. Those remain explicit limitations and should not be inferred from the accepted base-container run.

Chaz Gordish (Agent) and others added 6 commits October 7, 2026 21:04
Move extensions/mxc from @microsoft/mxc-sdk 0.8.0 raw ContainerConfig to the
1.0 `@microsoft/mxc-sdk/v1` ContainerRequest API, launched through
spawn/spawnWithPty from the plugin's Node launcher.

- Build a v1 ContainerRequest with directional network policy (egress follows
  the network setting; ingress and host loopback stay denied), the existing
  filesystem admission, curated environment with inheritDefaultEnvironment
  off, and clearPolicyOnExit.
- Pin the native components with MXC_BIN_DIR/MXC_FFI_DIR. An mxcBinaryPath
  override must be <dir>\<arch>\wxc-exec.exe with mxc_ffi.dll beside it; any
  other layout fails closed instead of falling back to packaged binaries. The
  launcher rechecks both files and never inherits host MXC_* variables.
- Readiness probes the host through the launcher with the same pinned mxc_ffi.
- A command stopped by its timeout exits 124 with a stderr notice.
- Replace the raw wxc-exec --dry-run contract test with a probe of the
  generated request through the SDK and a real launcher run.

Co-authored-by: Copilot <[email protected]>
Replace the @microsoft/mxc-sdk 0.8 dangerous-exec entries with the 1.0.0
paths, following an independent review of the verified 1.0.0 artifact.
Counts are provisional until the real packed plugin scan runs; if it
disagrees, investigate the finding rather than raising an allowance.

Removed (0.8 paths absent from 1.0.0):
- dist/platform.js 4: replaced by dist/v1/platform.js 3 plus the moved
  bubblewrap probe scripts below.
- dist/policy.js 1: replaced by dist/v1/policy/filesystem.js 1.
- dist/sandbox.js 2: SDK v1 runs non-PTY commands through native FFI
  bindings instead of these child_process calls.

Added:
- dist/bwrap-probe-anchor.js 1, dist/bwrap-probe-helper.js 1,
  dist/bwrap-probe-worker.js 1: moved Bubblewrap version-probe behavior
  (bounded supervisor; the helper runs `bwrap --version` with fixed args).
  Linux-only; not reachable from the plugin on Windows.
- dist/v1/platform.js 3: platform discovery (dism feature query,
  `wxc-exec --probe`, `lxc-ls --version`), reached only through
  getPlatformSupport(), which the plugin does not call.
- dist/v1/policy/filesystem.js 1: icacls ACL inspection moved and narrowed
  from 0.8 policy.js; only getAvailableToolsPolicy() calls it, and the plugin
  does not.

Kept:
- dist/diagnostic.js 1: unchanged from 0.8; `whoami /user` runs at SDK import
  on Windows to name the diagnostics pipe.

Co-authored-by: Copilot <[email protected]>
MXC SDK 1.0 cannot request a least-privilege AppContainer, so the
appcontainer-dacl and appcontainer-bfs tiers now run a regular
AppContainer that can reach resources granted to ALL APPLICATION
PACKAGES. base-container has no LPAC token and is unaffected.

Readiness logs a neutral notice naming the AppContainer tier without
blocking activation, and the README documents the tiers and the
observed host builds. Also drop the launcher test's unused probe stubs
left over from the reverted guard.

Co-authored-by: Copilot <[email protected]>
Move the payload decoding and field assertion helpers out of
mxc-backend.test.ts so the SDK 1.0 cutover stays under the
line-cap ratchet without trimming coverage.

Co-authored-by: Copilot <[email protected]>
@microsoft/mxc-sdk 1.0.0 refuses native stdio, and so every non-PTY
command, on Windows below Node.js 24.21.0 within 24 or 26.8.0, which is
narrower than OpenClaw's engines range. Block activation with the
requirement and the Gateway's version instead of failing each command
with exit 127.

Co-authored-by: Copilot <[email protected]>
MXC SDK 1.0 moves its node-pty dependency from 1.2.0-beta.15 to 1.1.0,
and node-pty 1.1.0 publishes its scripts/ directory. The packed scan
reports three dangerous-exec findings there, all in maintainer tooling:

- node-pty/scripts/gen-compile-commands.js (1): line 8 runs the fixed
  string `npx --offline node-gyp configure -- -f compile_commands_json`.
  Only the manual `compileCommands` npm script reaches it.
- node-pty/scripts/increment-version.js (2): lines 47-48 run
  `npm view <name> versions --json` with fixed arguments. It is a release
  helper that no package script references.

Nothing reaches either file at runtime or at install. node-pty lib/, its
install and postinstall hooks (prebuild.js, post-install.js), the SDK
dist, and the plugin dist don't reference them. The counts are exact,
following the node-addon-api/tools precedent from 8841578.

Limitation: REVIEWED_DEPENDENCY_FINDING_LIMITS binds a finding by
dependency path and count only, not by content hash. A changed script
with the same path and count would still pass, so any node-pty version
or content change needs a fresh review even if the counts stay the same.

The entries were reviewed independently against the scanned package
bytes.

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

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR migrates the Windows MXC sandbox plugin to SDK 1.0, including request translation, native-component selection, and process lifecycle handling.

Example: An operator configures mxcBinaryPath as C:\Tools\wxc-exec.exe.

  • Before: The preview integration accepts a compatible standalone executor.
  • After: Activation requires an architecture directory such as C:\Tools\x64 containing both wxc-exec.exe and mxc_ffi.dll.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful migration with meaningful Windows evidence and resolved prior findings, held by incomplete tier qualification and an unresolved security-policy choice.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Operators adopting MXC SDK 1.0 need the Windows sandbox plugin to use its released request and process APIs.
Reason: The migration has concrete value, but its deliberate change to an existing sandbox security boundary lacks recorded maintainer approval.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep this PR open: it provides a distinct SDK 1.0 migration absent from main, but accepting the changed AppContainer boundary remains a maintainer decision.

Priority: P2
Reviewed head: 0cbf9b5481de42e1ea4207c1b27fd50441e51c0b
Owner decision: Required. See Decision needed.

Decision needed

  • Question: May this PR replace LPAC with regular AppContainer execution on appcontainer-dacl and appcontainer-bfs?
  • Recommendation: Preserve the existing isolation boundary: Defer migration of tiers that cannot preserve the accepted isolation contract until an owner-approved implementation is available.
  • Why: Main requests least privilege, while this PR deliberately permits broader access; the contributor's acceptance statement and runtime success do not establish an isolation-owner decision.

Before merge

  • Add real behavior proof - Authority-chain proof required: the added redacted Windows 26700.1001 base-container observations now substantiate command completion, caller cancellation, timeout, cleanup, permitted filesystem operations, protected-skill rejection, and ungranted host-file denial on 6e69db3. The inspected source reconciliation does not require repeating those unchanged scenarios. The contributor must still show permitted workspace access and rejection of an ungranted host-private resource through production execution on each retained DACL/BFS tier, using accessible logs or terminal output with IPs, credentials, phone numbers, and non-public endpoints redacted. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security concern: Regular AppContainer broadens resource access - The SDK 1.0 request cannot retain leastPrivilege, and activation accepts both AppContainer tiers; resources granted to ALL APPLICATION PACKAGES become reachable beyond the previous LPAC boundary.
  • Await maintainer action - A maintainer must approve the dependency graph for the reviewed head through the repository's dependency-review gate.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [medium] Regular AppContainer broadens resource access — extensions/mxc/src/readiness.ts:159

Tests

  • Missing end-to-end proof: Retained DACL/BFS tiers still need permitted-access and forbidden-host-resource observations, and v2026.10.6 needs an installed upgrade run; base-to-head regression execution was not supplied.
Agent review details

How this fits together

The optional MXC plugin translates OpenClaw sandbox commands and workspace policy into Windows container requests, returning command output and exit status while owning launcher cleanup.

flowchart TD
  A[OpenClaw sandbox command] --> B[MXC backend]
  C[Workspace and operator policy] --> B
  B --> D[Plugin launcher]
  D --> E[MXC SDK 1.0]
  E --> F[Windows sandbox process]
  F --> G[Output and exit status]
Loading

Technical review

Best possible solution:

Ship the plugin-local SDK 1.0 cutover with an explicitly approved isolation contract and demonstrated compatibility for existing installations.

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

This is an SDK migration rather than a reproduced current-main defect; main and v2026.10.6 use SDK 0.9.0, while the supplied Windows observations exercise SDK 1.0.0.

Is this the best way to solve the issue?

Updating the existing plugin adapter is the appropriate scope, and the old execution path is removed; broader isolation access requires an explicit owner decision.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a8aee07e3870.

Provenance checked

  • Windows sandbox isolation and request translation changes intended behavior with a stated reason (008f04a: The original backend established conservative workspace, network, and least-privilege ProcessContainer policies; this PR explains that SDK 1.0 cannot express LPAC.)
  • Executor selection and readiness keeps the original intent (db24ac3: fix(mxc): Windows sandbox fails to activate or run commands #158303 made readiness use the same selected executor as execution and fail visibly for incompatible overrides; this PR extends that ownership to the paired SDK 1.0 native components.)
  • Natural launcher exit and cleanup keeps the original intent (98813c2: fix: finish shutdown without disabling V8 compilers #168587 retained owned work and output until cleanup completed; the SDK 1.0 launcher continues awaiting completion rather than forcing process exit.)
  • Localized policy preparation keeps the original intent (5046692: The upstream refactor localized single-consumer preparation without changing policy; this head preserves that organization and the workspace overlap guards.)
  • Distinct policy-admission coverage keeps the original intent (9827935: The test consolidation retained distinct security and lifecycle contracts; the previously missing admission cases are now present in the policy-loader suite.)

Testing

Proof path: shipped entry point.

Security

Needs attention: The deliberate expansion from LPAC to regular AppContainer access needs explicit isolation-owner acceptance.

Evidence

Security concerns:

  • [medium] Regular AppContainer broadens resource access — extensions/mxc/src/readiness.ts:159
    The SDK 1.0 request cannot retain leastPrivilege, and activation accepts both AppContainer tiers; resources granted to ALL APPLICATION PACKAGES become reachable beyond the previous LPAC boundary.
    Confidence: 0.99

What I checked:

  • Migration remains distinct from main and stable: Fetched main and the v2026.10.6 package manifest pin @microsoft/mxc-sdk 0.9.0; this PR pins 1.0.0 and replaces the preview request API. (extensions/mxc/package.json:14, a8aee07e3870)
  • Introduced changes verified: Reviewed the pinned merge-base-to-head diff, including runtime adapters, tests, dependency closure, and scanner allowances; the obsolete SDK execution path is replaced within the existing plugin. (extensions/mxc/src/mxc-backend.ts:168, 0cbf9b5481de)
  • Existing isolation intent: Main requests leastPrivilege: true; the scoped history search traces that request to the original Windows MXC backend addition in feat(mxc): add Windows MXC sandbox backend #97086. (extensions/mxc/src/mxc-container-config.ts:179, 008f04a65650)
  • Disclosed isolation change: The README explicitly permits regular AppContainer execution on appcontainer-dacl and appcontainer-bfs, including access granted to ALL APPLICATION PACKAGES; activation logs the change without blocking it. (extensions/mxc/README.md:281, 0cbf9b5481de)
  • Updated Windows observations: The full PR body, captured under sourceRevision fdb49263a46eac569da99b58a2a5a4033c94b6739987a56f68eaf3b8933fb972, now includes redacted observations of command completion, caller cancellation, timeout, cleanup, permitted filesystem writes, protected-path rejection, and ungranted host-file denial on Windows 26700.1001 base-container at 6e69db3; it expressly excludes other tiers and stable upgrade. (6e69db30aa6b)
  • Earlier findings resolved: The launcher owns PTY timeout classification and preserves signal precedence; distinct policy-admission regressions are restored in sandbox-policy-loader.test.ts. (extensions/mxc/src/mxc-spawn-launcher.mjs:272, 0cbf9b5481de)

Likely related people:

  • Dallin Romney: Raw commit 8841578 adds scripts/plugin-npm-security-scan.mts:85 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 88415783fb41; files: scripts/plugin-npm-security-scan.mts)

PR surface

Source +313, Tests +1275, Docs +29, Config +4, Other +319. Total +1940 across 23 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 9 562 249 +313
Tests 8 2200 925 +1275
Docs 1 57 28 +29
Config 2 5 1 +4
Generated 0 0 0 0
Other 3 346 27 +319
Total 23 3170 1230 +1940

Review metrics

Metric Value Why it matters
Activation compatibility 2 tightened requirements; 0 new settings The Gateway Node range and native override layout change while existing configuration keys remain.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a concrete migration of an optional Windows backend without an established urgent production incident.
  • merge-risk: 🚨 compatibility: Previously accepted Node versions and standalone executor overrides can stop plugin activation after upgrading.
  • merge-risk: 🚨 security-boundary: Two retained isolation tiers gain access to resources granted to ALL APPLICATION PACKAGES when LPAC is removed.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

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

  • Attach final-effect observations for permitted workspace access and rejection of an ungranted host-private resource on each retained AppContainer tier.
  • Demonstrate an upgrade from v2026.10.6, which uses SDK 0.9.0, preserving saved settings and data and exercising documented override recovery.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (7 earlier review cycles)
  • reviewed 2026-10-08T15:11:05.419Z sha ecf82fa :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-08T16:42:06.232Z sha ecf82fa :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-08T17:19:38.969Z sha 79e3440 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-09T00:56:19.109Z sha 79e3440 :: blocked before merge. :: none
  • reviewed 2026-10-12T21:19:48.955Z sha eb5512c :: needs real behavior proof before merge. :: [P2] Handle the Windows PTY timeout result explicitly
  • reviewed 2026-10-23T19:26:51.536Z sha 0722b5d :: needs real behavior proof before merge. :: [P2] Retain the distinct sandbox policy admission regressions
  • reviewed 2026-10-23T19:43:23.976Z sha 0cbf9b5 :: needs real behavior proof before merge. :: none

Reviewed October 23, 2026, 4:32 PM ET / 20:32 UTC (Revision 8).

Resolves the pnpm-lock.yaml conflict on @openclaw/libterminal: keep main's ghostty-web patch hash and this branch's node-pty 1.1.0 peer.

Co-authored-by: Copilot <[email protected]>
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 9, 2026
Resolve conflicts with upstream 8656a68 while keeping the MXC SDK 1.0
cutover and its security contract.

- extensions/mxc/package.json: keep @microsoft/mxc-sdk 1.0.0; take the
  upstream 2026.10.2 plugin version.
- pnpm-lock.yaml: take upstream and re-apply only the SDK 1.0 deltas
  (mxc-sdk 1.0.0 with koffi 3.3.2, node-pty 1.1.0, semver 7.8.5;
  libterminal 0.3.9 optional node-pty peer). sha512 only.
- scripts/plugin-npm-security-scan.mts: union of the upstream shared
  upper-bound entries and the SDK 1.0 dist/v1 entries.
- src/mxc-spawn-launcher.mjs: port the SDK 1.0 launcher to natural exit
  (openclaw#168587): no process.exit; forwarded signals kill, then record the
  signal exit code after the grace period; signal and stdin listeners are
  released after wait(). Pinned native checks, 124 timeout and 127
  launcher failure are unchanged.
- tests: honor upstream low-value test removals, keep SDK 1.0 fail-closed
  native pinning and LPAC disclosure coverage, and cover listener release.

Co-authored-by: Copilot <[email protected]>
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
Chaz Gordish (Agent) and others added 3 commits October 12, 2026 14:51
MXC SDK 1.0 runs Windows ProcessContainer PTY sessions through wxc-exec
under node-pty. That result always reports timedOut: false, and the
executor's timeout status (-1) cannot be told apart from a command that
exits -1, so PTY timeouts never reached the 124 normalization.

The launcher now arms its own deadline at the request timeout for PTY
runs. It reports 124 only when its timer killed a sandbox whose
completion had not been observed and no forwarded signal had already
cancelled it. A forced signal status still wins, a genuine -1 before
the deadline is reported as-is, and a timer that fires after completion
is ignored. The executor keeps the request timeout plus 5 s as a
backstop. Non-PTY runs keep the SDK's own timedOut result.

Co-authored-by: Copilot <[email protected]>
Chaz Gordish (Agent) and others added 2 commits October 20, 2026 17:14
@ChazGo

ChazGo commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 23, 2026
@ChazGo

ChazGo commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 23, 2026
@ChazGo

ChazGo commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 23, 2026
@antsok

antsok commented Oct 23, 2026

Copy link
Copy Markdown

We want to run OpenClaw with BaseContainer only. Our intended behavior is:

  • base-container: allow execution if the workload’s settings are supported.
  • appcontainer-bfs or appcontainer-dacl: refuse execution.
  • No mode, an unknown mode or a probe error: refuse execution.

The current readiness check asks what the host supports generally, without including the workload’s actual settings.

Would you support an opt-in BaseContainer-only setting and checking each workload’s complete request before launch? We would need to confirm creation-time enforcement separately with MXC, because a successful preflight alone does not guarantee which mode will be used.

antsok commented Nov 26, 2026

Copy link
Copy Markdown

SDK 1.1 removes the ProcessContainer fallback modes, while this branch still targets 1.0 and accepts those modes. I have prepared a small follow-up patch to move this migration to 1.1, require BaseContainer at startup and remove the obsolete DACL preparation guidance.

Commands still go directly to SDK creation. The patch adds no per-command preflight, diagnostic fingerprint format or configuration option. Hosts without native PSEC support would be unsupported, so that compatibility change needs your agreement.

The plugin tests pass on Linux and Windows with native cases excluded; four existing launcher lint findings remain. Native workload and installed-upgrade qualification remain outstanding.

Would you prefer to incorporate the patch here, or receive a PR against your migration branch?

This branch has not been deployed

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

Labels

merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. plugin: mxc rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants