Skip to content

feat: support Sandbox-backed Windows file transfers - #2028

Merged
bkudiess merged 16 commits into
openclaw:mainfrom
bkudiess:bkudiess-windows-file-command-plan
Nov 9, 2026
Merged

bkudiess merged 16 commits into
openclaw:mainfrom
bkudiess:bkudiess-windows-file-command-plan

Conversation

@bkudiess

@bkudiess bkudiess commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Contributor: @bkudiess. Repair commit cb84ee136 preserves Barbara's co-author credit.

What Problem This Solves

Windows nodes need typed file and directory transfers governed by the same Sandbox settings as command execution.

User Impact

Users can invoke file.stat, file.fetch, file.create, file.write, dir.list, dir.fetch, fs.listDir and terminal.upload through their applicable authenticated Gateway/MCP paths, including binary transfers through winnode.

Upload storage is now automatic and private to the profile. The Sandbox page retains permission controls and the main containment explanation, but no longer exposes staging-location or transfer-budget editors. Valid saved transfer limits remain enforced.

Ready for review. The current-head cancellation repair passed Windows core validation; overall CI status is recorded below. Earlier source-bound native evidence at cb84ee136 passed bearer replacement during a live transfer, queued real-store approval revocation, and two saved-profile restart cases. Those five cases used a separately compiled TEST-INSTRUMENTED Companion with the production authorization/SDK path intact. The overall run still failed: its deliberate negative-control helper rejected a stale harness hash before the intended red/restored-green control ran. That control and official signed/installed, native ARM64 and SAC/upgrade acceptance remain unverified. Platinum is not claimed.

Browser/Canvas reads intentionally use the shared Sandbox boundary and may be denied. Positively unsupported Windows retains explicit uncontained compatibility; supported-Windows containment errors do not allow host fallback.

Why This Change Was Made

One capability registry serves Gateway and local MCP. The shared executor owns committed policy admission, approval revalidation, native process/pipe lifetime and verified worker leases. A fixed native worker performs retained-handle I/O with bounded streams/archives, no-clobber creation and identity-owned cleanup.

A trusted metadata owner atomically establishes only the exact derived upload root with private ACL and native ownership before SDK launch. Uploaded bytes and reaping remain in the worker. No parent or Downloads write grant is added. Ordinary profile upload access is read-only and profile-wide, not per-upload/session isolation. Explicit ReadOnly/NoAccess and protected-path restrictions win.

The repair also adds real cancellation checkpoints and an executor-owned-work join, filters denied listing children before pagination without weakening direct-target/archive denials, and makes the voice-disposal regression scheduling-independent. Temporary chat experiments and diagnostic Gateway/Companion instrumentation are not in shipping source.

Evidence

Published head: d46e746878d0f74cfe4e24ed80deefdd55be6a3f, tree 77dc51585767972a2d101eb62a022094cb1e7aa3. The conflict-resolution merge and hard-link owner checks are retained; the latest commit changes only the cancellation-observation test fixture. Both signed follow-ups preserve contributor credit.

Current-head CI: Build and Test 42672557043, attempt 2 completed successfully at 19:11:58 UTC, including CI Gate. Fresh checks were 19 passed, 7 skipped, none failed or pending. Attempt 1 passed the repaired test and Core/Tray/UI/recovery lanes, but its gate failed because fast validation, setup/connect E2E, x64 smoke and MSIX were reported as abandoned before job execution. One failed-jobs-only retry ran those missing lanes and the bundle successfully, retaining the earlier same-head successes. The abandonment cause remains unresolved; retry success is not attributed to a code repair. The core and Tray counts below are actual attempt-1 executions carried forward, not duplicate executions. The new setup/connect artifact 13702351849 contains 53 passed, 7 not executed, zero failures. Release-only signing/promotion and native ARM64 release lanes remain skipped.

The Windows checkout was merge 70077e35d4f6886e53e7f83d974e9b30c324b2e1, parents main 045d13ac and PR d46e7468, with exactly the published tree. Core artifact 13698503284 was downloaded and all four TRXs inspected: Shared 5,182 passed/11 not executed, Connection 1,746/1, WinNode CLI 141/0 and FileWorker 75/0, with zero failures. The formerly flaky heartbeat/disposal case passed in 5.019 seconds; all four new NativeEntry hard-link/file/directory cases passed. The Tray job records Tray 5,385 passed, Tray integration 64/4 and SetupEngine 2,597/4. Counts are per suite, not a unique total.

Historical CI for cb84ee136: Build and Test 42554643237, attempt 1 completed successfully, including CI Gate, core/CLI, Tray/setup/integration, UI/accessibility, all three WSL E2E jobs, packaging and smoke. No rerun or test weakening was used. Release-only signing/promotion lanes were skipped.

Core, Tray and UI logs identify actual checkout merge d0996ebdef36c1de526278760b9b8b0a87cb1447, tree 249b7a86dc42704fbd31d96b1625a4fd7db01302, with parents main a39bd70aab55bfdc0053b278756a87c8a3305bcf and historical PR head cb84ee136. This is not relabeled as the bare PR-head tree or the earlier local integration with e7029248.

Downloaded and inspected all 18 test-result TRXs, with zero failed outcomes. Exact per-suite counts and skips are below. Verified artifacts:

Native evidence used frozen v11 source at original head 3c477a78 plus patch SHA-256 b2c110a884e58507f2597fb5d5fb2c07d8867f6776d9835cc1784931b3a95f56. All 42 postimages were verified before/after execution and match committed tree 55af9e2b26f29875c8b436d79a4f035eed7cda55 exactly. This establishes source correspondence, not a new run after the commit.

  • Native core receipt: full build and Shared/Tray/FileWorker/CLI passed.
  • Live Companion/MXC collection: all eight commands, streaming, limits/no-clobber, protected/RO/NoAccess/cross-profile denials and retention recovery.
  • Real Gateway/UI collection: strict real Gateway/MXC 18/18, current Sandbox proof, genuine admin/non-admin controls and causal MCP cancellation.
  • Real registered Gateway binary create/fetch/cancellation subsequently passed in a user-authorized Gateway TEST-INSTRUMENTED copy. The finite service was normally registered in the genuine file-transfer owner and used injected ctx.openNodeDuplex; owner/auth/path-policy guards were unchanged. Copied results appear below. This is not a stock external CLI claim.

Historical whole-candidate P0-P3 review for cb84ee136 covered all 123 changed paths against true merge base 96ea36fe60667f942c55dfd4cf1b68f2ca49f963. Six passes found a listing P2, fixed with three intended native red cases followed by three greens. Independent repair-delta follow-up was scoped-clean. Separate implementation/proof-plan reviews addressed metadata ownership, cancellation, real cleanup joining and their negative controls. Static review is not native proof. The new five-case native evidence below addresses those final-effect and source-built profile requests. The deliberate native negative/reversal control remains open.

Historical evidence retained, not used as current acceptance

Earlier green CI at cd640092 and native x64/ARM64 summaries at 6f14dcd4 remain historical. The historical ARM64 report had 29 owner-suite failures; later source repairs and x64 CI do not establish a complete post-fix native ARM64 run. The former NumberBox normalization experiment and failed viewport-remount experiment were retired, not shipped as the final UI or scrolling repair. Existing three Copilot inline conversations were previously verified resolved; the current top-level ClawSweeper proof checklist is not silently treated as complete.

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

Required proof pools

  • windows-wsl-mxc: actual x64 contained file operations and strict real Gateway system.run passed. Native TEMP lifecycle retains its separate limit. The new five-case authorization/profile run passed, but its deliberate negative/reversal control is unrun.
  • windows-wsl-gateway-e2e: strict native 18/18 and real file/admin/binary paths exercised against pinned Gateway 2026.11.2; historical hosted setup/revocation/network lanes passed with their recorded skips; current-head CI is recorded above.
  • windows-11-arm64: native ARM64 loading/execution remains unverified for this repair. ARM64 MSIX construction is not native execution.
  • windows-winui-interactive: source-qualified Sandbox structure verified in Debug and unsigned Release. Independent history/accessibility failures are preserved.
  • windows-clean-installer-upgrade: native owner compatibility and live former-root recovery pass; exact installed old-to-new upgrade remains unverified.
  • windows-11-sac-on: official signed payload under enforcing reputation policy remains unverified.

These are applicable obligations with stated coverage, not whole-pool completion claims.

Validation

Current-head cancellation fixture repair

A pending read could cancel and unwind, unregistering the fixture’s scoped cancellation callback before dispatch reached it. The fixture now publishes its receipt from a filtered OperationCanceledException catch after awaited listener cleanup, then rethrows. Production code, heartbeat/wrong-node/sequence assertions and timeouts are unchanged.

A controlled .NET 10 probe used the actual compiled fixture and production frame channel, changing scheduling only: old execution was cancelled but its receipt remained false; repaired execution was cancelled with its receipt true. Twenty forced-order executions passed. An uncancelled readiness failure retained its original exception without a cancellation receipt. On Linux, dotnet test tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore --filter 'FullyQualifiedName~GatewayFileTransportTests|FullyQualifiedName~FileFrameChannelTests|FullyQualifiedName~InvocationCancellationRegistryTests' passed 58/58 with zero skips twice. These local results are separate from the Windows CI above.

The complete one-file repair and owner/caller context passed a canonical P0-P3 review with zero findings. This does not recertify the earlier 123-path integration review, which remains incomplete because required context exceeded the tool’s input limit. Local setup/full build require Windows. Full Shared/Tray attempts on Linux encountered Windows API and other failures and were stopped with partial logs retained, not counted as passes. Current-head Windows Shared/Tray evidence is linked above. No timeout increase, weakened assertion or lucky rerun was used as the test repair.

Earlier native and CI evidence (source-qualified)

Native commands used short task-owned NTFS TEMP/NuGet paths and isolated data/roaming/local roots. Fresh test projects were built before no-restore calls. Report/logger arguments are omitted here; actual command receipts are retained in the work sessions.

Native command / scope Actual result
./build.ps1 All 5 projects passed
dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore 5,158 passed; 28 ordinary opt-in skips
dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore 5,272 passed
dotnet test ./tests/OpenClaw.FileWorker.Tests/OpenClaw.FileWorker.Tests.csproj --no-restore 71 passed
dotnet test ./tests/OpenClaw.WinNode.Cli.Tests/OpenClaw.WinNode.Cli.Tests.csproj --no-restore 141 passed
DevBuild settings/Sandbox subset 31 passed
Full SetupEngine, qualified ordinary CI owner 2,597 passed; 4 explicit skips
Full FunctionalUI 19 passed
./scripts/validate-mxc-e2e.ps1 -NoBuild -Configuration Debug -RuntimeIdentifier win-x64 18 passed, 0 skipped; wrapper rebuilt E2E project
Full ordinary unsigned Release fixture 38 profile/app and 82 UI passed
validate-docs.ps1, validate-agent-skills.ps1, test-agent-skills-validator.ps1, test-ci-workflow-contract.ps1, git diff --check Passed, including 27 validator fixtures

Historical hosted results from CI merge d0996ebd above:

Suite Passed Not executed
Shared 5,182 11
Connection 1,746 1
FileWorker 71 0
WinNode CLI 141 0
Tray 5,325 0
SetupEngine 2,597 4
Tray integration 64 4
Dev settings 31 0
Tray UI 654 7
Functional UI 19 0
Accessibility 21 13
Fixture UI / app / released profile 82 / 38 / 1 0
Hardware after 12 0
Setup-connect E2E 53 7
Network / revocation E2E 2 / 1 0

These separate reports can overlap and are not a unique-test total. All 18 TRXs have zero failures. Exact skipped names remain in artifacts; native MXC, CUDA, distinct-volume and interactive opt-ins are not proved by skips.

An earlier independent integration with main e7029248 passed full build, Shared 5,182/11 skips, Tray 5,314, workflow/crash-metadata contracts, docs/skills and Release Sandbox/history 2/2. It is not asserted identical to the newer CI merge.

Independent or unattributed native findings are retained, not automatically charged to this PR: focused Release history restore; accessibility 31/34; native TEMP lifecycle 9/10; Connection 1,742 passed/4 failed/1 skip; TrayIntegration 64 passed/1 failed/3 skips. A hardlink case failed its fixture prerequisite before the product oracle. The where.exe case crosses the changed executor and remains causally unresolved. Unchanged files are not runtime baseline proof. A later full-category pass does not erase an earlier focused failure. No assertion, approval, foreground or Sandbox guard was weakened.

Real Behavior Proof

  • Environment tested: actual Windows 11 Pro 25H2 build 26200.9725; Companion Session1 Medium and observed workers Low AppContainer. Task-owned data, sentinels and runtimes. SSH/build-owner contexts are separately identified.
  • PR head or commit tested: source-bound v11 postimages match cb84ee136 as described above; CI actually tested merge d0996ebd. Actual app/test/worker hashes were retained per invocation.
  • Exact steps: winnode --list-tools and all eight commands; real authenticated MCP framed create/fetch; normal AllowOnce system.run consumption; actual Gateway operator/admin/non-admin calls; genuine owning-service ctx.openNodeDuplex.
  • Evidence after fix, copied native observations:
Strict first upload: managed root initially absent; exact private ACL/EA/native identity established.
MCP: all 8 commands invoked; 2,097,275-byte framed roundtrip; zero bytes; no-clobber.
SHA256: 602dd2e5523bf6dae7a6ea7c0f1bc8d8df1363720e8c22b5714d17b704a4c87a
Denials: protected paths, saved ReadOnly/NoAccess, both cross-profile directions.
Normal AllowOnce system.run: upload read succeeded; deletion denied; content preserved.
Real WSL Gateway/MXC: 18 passed, 0 skipped, including protected settings-write denial.
Real non-admin operator: fs.listDir and terminal.upload rejected for missing operator.admin.
MCP close after real ACK: worker/partial cleanup at 630 ms before app shutdown (30 s deadline).
Gateway owning-service create/fetch: 2,097,275 bytes, 3 ACKs each, byte-for-byte equality.
Gateway caller close after ACK: settled at 1,217 ms (60 s deadline); worker/partial gone
while both Companion and Gateway remained alive.
  • Observed result: allowed recorded-source operations and the named native denial/cancellation boundaries passed. Ordinary cancellation is not substituted for bearer rotation or real queued approval revocation.
  • Screenshot or artifact links verified? Yes for the linked historical CI artifacts and retained native captures. SandboxPageKeepsPermissionControlsWithoutTransferConfigurationCards passed in 5.1203507 seconds. The UI artifact contains GatewayFixture/75b000f2df544e81a8ecc112a66f8e88/sandbox-managed-staging.png and sandbox-containment-scope.png; hashes match capture metadata. CI shows containment unavailable, disabled permission controls and a warning toast, so these prove recorded UI structure, not functioning MXC. Separate native Windows 11 captures show the enabled Sandbox state. Artifact downloads/team evidence can require sign-in; no private local path is represented as a public image URL.
  • Compatibility evidence: actual settings/unknown-field/legacy-record owner tests, real private worker execution and remembered former-root deny/reap/interrupted-inventory recovery with an unknown sibling preserved. This is not a live pre-EA migration or official installed upgrade claim.
  • New native run, November 9, 08:47-08:53 UTC: actual Windows 11 Pro 25H2, Session1 Medium Companion, observed Low AppContainer workers/payloads. Full Git checkout at cb84ee136ed1f1e0bfc12d5750bd9562cf098f3d, tree 55af9e2b26f29875c8b436d79a4f035eed7cda55; all 2,232 native hashes matched published blobs. Actual PS7 parse 41/41, ./scripts/setup-dev.ps1 -CheckOnly, five-project ./build.ps1, and uninstrumented winnode --list-tools/create/fetch passed. The diagnostic app was then built with -p:OpenClawAuthorizationProof=true in a separate checkout. Patch SHA256 1eff0041a8365d6c86670fac5261b9ac7d32ed3957e1ae542e510aad46546f1f; harness SHA256 ac6dea3db94404a801a83dbc324745e21b8b3b02196e762644ff2b7d10d08cc5. Eight observed native images matched recorded compiled artifacts. This is not a stock-binary or official installed-upgrade claim.
  • Actual cases: 5/5 passed before app shutdown. QueuePositive ran both native payloads. Bearer rotated the same service after a genuine ACK, rejected old authentication and stale leases, restored the file inventory before app shutdown, and completed a fresh-B write. QueueRevoked changed the real persisted approval store while the target was queued, retained the Sandbox fingerprint and rejected the target before SDK delegation. Legacy/Prefeature performed real save and process restart, preserving unknown fields and 7 MiB/50 MiB budgets; oversized operations and RO/NoAccess controls denied without modifying sentinels. The unused legacy root was not adopted.
  • Not verified / blocked: deliberate native negative mutation, intended forbidden-effect red, and restored-green rebuild/reproof. At negative-control-and-reversal.ps1:8, the sealed helper required old harness 2fc0cc48... instead of approved ac6dea3d... and failed before mutation/build. The overall driver exited 1, streams drained. Its secondary restoration warning came from reversing an unapplied patch in the pristine negative copy. A separate full audit verified all 2,232 files clean in each of source, diagnostic copy (restored), and negative copy (pristine). A 15-minute reserve-check discrepancy is retained for investigation. No shortened reserve, assertion waiver or rushed replay was used.
  • Cleanup: the first supported STOP was accepted but Azure deletion returned HTTP500; after coordinator cleanup advanced, the same-owner recovery completed. Independent inspection verified released/cleanup complete/no host/no remaining resources at 09:05 UTC, before the 09:10 deadline. All 19 retained archives rehashed successfully after deletion. All five case apps exited; Proof owner/child were absent; the final native audit found no remaining task-root processes. Retained archive SHA256 b12be583adf75a38f32a666e3d1e1f5724c29ecf5995d31a4fd62de40230fb94; final immutable snapshot SHA256 e6d7a65528b3e8822eaaaa78ced44a25dddf7a5729d37c90452375a9088e9df4, with all 149 file hashes checked. A digest is integrity evidence, not a public download link. Inspectable selected receipts are copied below. Earlier failed/unknown attempts remain retained, not promoted.
New native final-effect receipts (selected fields copied from retained outputs)

Command: pwsh -NoProfile -NonInteractive -File Proof-Driver.ps1 -Mode Proof. It invokes Invoke-AuthorizationProof.ps1 separately with each of the five -Case values below. App/CLI/payload paths are bound in diagnostic-build/binary-identity.json; diagnostic app SHA256 F3FAB027A4B7F5CC9C602332BBF688D81C290EDCD59B5C05B2566E2801C45942. Instrumentation coordinates the real owner and observes synchronous SDK delegations; it does not replace production data-policy or approval-store decisions. Managed-code binding: OpenClaw.Tray.WinUI.dll SHA256 0BBB0300504B0C4926A87FE9B6CD1CDB77F5C8695E3C60430E1AF6EACB91567B, OpenClaw.Shared.dll SHA256 01EAA968FB87BFB297B643AA9A32C6BF6D31489BB2EECC907126E3B3D6C1CC50. Source restoration does not relabel these compiled diagnostic binaries as stock binaries.

{
  "QueuePositive": {
    "acceptance": {
      "case": "QueuePositive",
      "nonce": "3b01cb7dfe184c58b9f4d0de4029ea62",
      "passed": true
    },
    "teardown": {
      "appExited": true,
      "profileRetained": true
    },
    "finalOwner": {
      "diagnosticOnly": true,
      "anchorSdkDelegations": 1,
      "targetSdkDelegations": 1,
      "heldSequence": 1,
      "queuedSequence": 2,
      "releasedSequence": 3,
      "fault": null
    }
  },
  "Bearer": {
    "acceptance": {
      "case": "Bearer",
      "nonce": "f59f37e7402b4581af8df392f4d68c50",
      "passed": true
    },
    "teardown": {
      "appExited": true,
      "profileRetained": true
    },
    "rotation": {
      "ownerPid": 6356,
      "atMs": 514,
      "generationResetCompleted": true
    },
    "beforeAppShutdown": {
      "tokenValuesRecorded": false,
      "appAlive": true,
      "oldHttpStatus": 401,
      "newTokenWorks": true,
      "targetAbsent": true,
      "inventoryRestored": true
    },
    "staleLeaseRejections": [
      "FILE_CHANNEL_INVALID: Invalid, expired, busy, or already attached file channel.",
      "FILE_CHANNEL_INVALID: Invalid, expired, busy, or already attached file channel.",
      "FILE_CHANNEL_INVALID: Invalid, expired, busy, or already attached file channel."
    ],
    "freshB": {
      "ok": true,
      "size": 4096,
      "sha256": "191e3cefaeb258764d1bbfa43e08184bfffc537f5f3442c3c6fd500b7604a9c4",
      "status": "created"
    }
  },
  "QueueRevoked": {
    "acceptance": {
      "case": "QueueRevoked",
      "nonce": "04c98330f4b34b819fdd64c945f9e202",
      "passed": true
    },
    "teardown": {
      "appExited": true,
      "profileRetained": true
    },
    "finalOwner": {
      "diagnosticOnly": true,
      "anchorSdkDelegations": 1,
      "targetSdkDelegations": 0,
      "heldSequence": 1,
      "queuedSequence": 2,
      "releasedSequence": 3,
      "fault": null
    },
    "denial": {
      "content": [
        {
          "type": "text",
          "text": "Command approval changed before launch. Retry for a fresh approval."
        }
      ],
      "isError": true
    },
    "persistedRevocation": {
      "beforeHash": "1bf58637f3c9c0eebb54307cbb36cdeb70ad690b93efd63a67215b3d39a28ada",
      "setHash": "e351b7949b80c7288f8275f33b3615594a9c9c2965bfb5245ecfabe64910fafe",
      "afterHash": "e351b7949b80c7288f8275f33b3615594a9c9c2965bfb5245ecfabe64910fafe",
      "fileSha256": "E351B7949B80C7288F8275F33B3615594A9C9C2965BFB5245ECFABE64910FAFE"
    }
  },
  "Legacy": {
    "acceptance": {
      "case": "Legacy",
      "nonce": "3c25ef658c2f4c51a939b3dee4d535df",
      "passed": true
    },
    "teardown": {
      "appExited": true,
      "profileRetained": true
    },
    "compatibility": {
      "budget": 7340032,
      "restartVerified": true,
      "unknownFieldsPreserved": true,
      "legacyNotAdopted": true,
      "officialInstalledUpgrade": false
    }
  },
  "Prefeature": {
    "acceptance": {
      "case": "Prefeature",
      "nonce": "b2ec72ff684946d09c5256e1b3d80c2b",
      "passed": true
    },
    "teardown": {
      "appExited": true,
      "profileRetained": true
    },
    "compatibility": {
      "budget": 52428800,
      "restartVerified": true,
      "unknownFieldsPreserved": true,
      "legacyNotAdopted": true,
      "officialInstalledUpgrade": false
    }
  }
}

The Bearer pending call returned isError:true with text "request timed out". Acceptance also required settlement before the operation deadline, the exact worker to exit, and target/partial cleanup while the app remained alive. The generic wording is retained, not relabeled as a distinct cancellation code. The deliberate negative mutation was never applied, so intended native red/restored-green evidence remains missing.

Shared/Tray suites were not rerun in this finite phase; earlier source-qualified native suites and current CI above remain their evidence. No new Gateway path or official installed upgrade is claimed. Official signed/installed distribution, native ARM64, SAC/Store and independent where.exe attribution remain open.

Security Impact

  • New permissions or capabilities? (Yes/No) Yes: eight typed file/directory commands preserving applicable agent/operator authority.
  • Secrets or tokens handling changed? (Yes/No) Yes: immutable MCP authentication-generation publication and generation-fenced leases. Owner regressions and the new TEST-INSTRUMENTED native bearer case pass; the deliberate negative/reversal control remains unrun. Gateway credential precedence/storage is unchanged.
  • New or changed network calls? (Yes/No) Yes: authenticated control/progress/input over existing Gateway and local MCP transports.
  • Command or tool execution surface changed? (Yes/No) Yes: verified fixed worker and shared executor; local-only app tools remain excluded from Gateway exposure.
  • Data access scope changed? (Yes/No) Yes: existing Sandbox policy governs file operations and Browser/Canvas reads. Upload sharing is intentionally profile-wide, not per-upload/session isolation.
  • If any answer is Yes, explain the risk and mitigation: retained native identities/no-follow checks, bounded streams/archives, no-clobber, integrity checks, operation fencing, exact-root metadata bootstrap, committed policy epochs and real owned-work cleanup. Infrastructure authority stays distinct from caller data. Final queue admission revalidates approvals. Signed worker bytes are hashed before manifest embedding; missing official signed inputs fail closed. The new authority-revocation cases use real transfer/approval-store/SDK effects, with diagnostic instrumentation separated from shipping binaries. The deliberate negative/reversal control remains unrun.

Compatibility and Migration

  • Backward compatible? (Yes/No) Intended for existing command/wire contracts, with Browser/Canvas tightening disclosed. Owner-level persistence and legacy ownership tests pass; exact installed upgrade acceptance remains unverified.
  • Config or environment changes? (Yes/No) Yes: valid saved SandboxMaxTransferBytes remains effective (50 MiB default, 1024 MiB hard cap and lower command caps). SandboxUploadStagingPath is retained for compatibility but grants nothing automatically; new uploads use the derived private root. No separate file permission store or caller-authored execution environment.
  • Migration needed? (Yes/No) No manual migration intended. Remembered roots require native ownership/identity and current rights. Unused arbitrary configured roots are not adopted or deleted; unknown/unbound interrupted state remains preserved for review.
  • If yes, list the exact upgrade steps: N/A. Install the matching-RID worker and configure existing permissions. Managed staging needs no parent/Downloads grant. Do not delete uncertain profile/cache state as automatic repair. The source-built Legacy and Prefeature save/restart/budget/permission cases now pass; official signed old-to-new installation remains a separate gate.

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.

The previous three inline notification, rollback and framing threads were verified resolved. The last inspected ClawSweeper review of cb84ee136 (Revision 5) rated readiness/proof Gold 3/6 and patch quality 4/6, with no findings or security findings. It recognized native authorization and source-built profile evidence; official installed-upgrade, native ARM64 and enforcing-SAC acceptance remain separate obligations. This is not a ClawSweeper review of the newer commits. The focused cancellation-repair review is scoped-clean, while the broader integration review remains incomplete. The budget-display finding is addressed by the user-approved removal of both controls, not by claiming the retired normalization experiment is shipping. Private work-session links remain removed under the contributor’s explicit privacy decision; credit and public evidence are preserved. The deliberate native negative/reversal control remains unrun. Platinum is not achieved or self-assigned.

bkudiess and others added 7 commits October 30, 2026 15:28
Share system.run policy and execution ownership across eight typed file commands, Gateway and MCP transports, and winnode. Package a verified native worker with bounded identity-backed code caching and retained filesystem operations.

Native MXC, installed deployment, Gateway/MCP/UI and native ARM64 acceptance remain pending on a clean proof host. This commit is a validation candidate, not a shipping-readiness claim.

Co-authored-by: Copilot App <[email protected]>
Preserve bounded stdout, stderr, readiness, native exit/finalization and cleanup evidence even when a namespace child exits before READY. Keep native argv, containment policy and assertions unchanged.

Co-authored-by: Copilot App <[email protected]>
Compare PowerShell inline startup with the unchanged file-based namespace proofs using identical synthetic script and direct-SDK policy. Preserve original failures and assertions; do not override execution policy or fall back to host execution.

Co-authored-by: Copilot App <[email protected]>
Remove unused forwarding methods, obsolete worker-path state, redundant overwrite state, and duplicate coverage. Separate failure-first and deterministically gated cancellation tests while preserving native ownership and rollback contracts.

Validated with the full build, required suites, and fresh x64 MCP and real Gateway functional proof. ARM64 and release-specific acceptance remain separate.

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

MxcFolderAdmission.ReadMetadata now passes extended-length (\\?\ or
\\?\UNC\) paths to CreateFileW so metadata reads succeed past MAX_PATH
when LongPathsEnabled is off. A long-path theory row covers this and
fails without the fix.

Test fixture corrections:
- Create resolver/cache hardlinks through extended-length paths.
- Set the copied private ACL owner to the current user so the unowned
  root test reaches its "root ownership changed" assertion.
- Run the FileWorker apphost cache test from a short temp root and fall
  back to it when RUNNER_TEMP is absent.

Document extended-length native paths, symlink privilege, and the
temp-root apphost fixture in TEST_COVERAGE.md.

Co-authored-by: Copilot App <[email protected]>
The CreateHardLink test helper unconditionally prepended \\?\, so an
OPENCLAW_REPO_ROOT already spelled with an extended prefix produced
\\?\\\?\C:\... and failed fixture creation with Windows error 123
before reaching the alias-rejection assertion.

Keep existing extended paths, convert ordinary UNC paths to \\?\UNC\,
and prefix other paths after full-path normalization. Add a
hardlink-extended case that fails with error 123 before this change
and asserts the same "file aliases" rejection afterward.

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

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦞👀
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 priority bug or improvement with limited blast radius. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. 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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex review: blocked before merge.

What this changes

Adds eight Sandbox-governed Windows file commands, authenticated streaming, automatic upload storage, and a packaged native worker.

Example: Fetch C:\Data\sample.bin containing 2,097,275 bytes through winnode with maxBytes=52428800 and an allowed Sandbox path.

  • Before: The Windows node does not expose file.fetch.
  • After: The binary transfer produces a local file whose size and SHA256 match the source.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful implementation with meaningful native production-path evidence and no new actionable findings; upgrade and native distribution acceptance remain incomplete.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Windows agents lack typed file and directory transfers governed by the user's existing Sandbox settings.
Reason: The collaborator-authored direction supplies useful Gateway/MCP functionality and explicitly accepts the containment and profile-sharing tradeoffs.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep this maintainer-authored PR open: it adds a useful capability absent from main, but remains a draft with a reported merge conflict.

Priority: P2
Reviewed head: cb84ee136ed1f1e0bfc12d5750bd9562cf098f3d

Before merge

  • Resolve merge risk - The PR owner must resolve the GitHub-reported merge conflict before landing.
  • Await maintainer action - Authorize and schedule the declared windows-11-arm64, windows-clean-installer-upgrade and windows-11-sac-on proof pools under docs/PROOF_POOLS.md.
  • 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

None.

Tests

  • Missing end-to-end proof: Exact signed latest-stable upgrade, native ARM64 execution and enforcing Smart App Control scenarios remain unverified.
Agent review details

How this fits together

Authenticated Gateway and local MCP requests enter the shared capability registry, pass committed Sandbox admission, and reach a verified native worker that returns bounded file results or streamed bytes.

flowchart LR
A[Gateway caller] --> C[Shared capability registry]
B[winnode and local MCP] --> C
C --> D[Sandbox policy and executor]
D --> E[Verified native worker]
E --> F[Retained filesystem handles]
E --> G[Bounded results and streams]
Loading

Technical review

Best possible solution:

Ship typed file transfers through one committed Sandbox policy owner and the verified native worker.

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

This is a feature addition: current main lacks the typed commands, and the supplied current-source Windows runs exercise discovery, transfers, denials and cancellation; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The invariant is one committed Sandbox policy for commands and transfers. Sharing admission and process lifetime while isolating filesystem I/O in a fixed worker fits that boundary; inspected cache, identity and cleanup machinery serves concrete integrity or lifecycle requirements.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Resolve the conflict (recommended)
    The PR owner integrates the conflicting main changes while preserving the reviewed ownership and authorization boundaries.
  2. Retain the draft
    Keep the feature open until its owner can reconcile the branch.

Provenance checked

  • Sandbox execution and fallback keeps the original intent (c6e0f6d: The SDK migration centralized complete containment requests, bounded process lifetime and positive-unsupported-only host compatibility.)
  • Canvas local-file reads changes intended behavior with a stated reason (9fa43f3: Canvas hardening confined JSONL reads to temp with path and size validation; this PR explicitly adds shared Sandbox authorization while retaining the temp restriction.)
  • Committed settings publication keeps the original intent (f4e1cf3: The settings facade provides serialized field-scoped writes and origin-aware notifications; detached commit snapshots preserve that responsibility across concurrent saves.)
  • MCP authentication keeps the original intent (9fa43f3: The authenticated loopback listener owns bearer validation; adding generation-bound file leases preserves that boundary during rotation.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned introduction and current-main boundary: Inspected the introduced changes from 96ea36f to cb84ee1; fetched main has neither the FileTransfer subsystem nor these command registrations. (src/OpenClaw.Shared/FileTransfer/FileCapability.cs:6, cb84ee136ed1)
  • Full proof record inspected: Read the full REST body corresponding to supplied sourceBodySha256 58926761e2c4da4cdc37d4b4c18b59b808a66851384a1e0086a4357aa28b25d0, including the previously omitted native receipts. It records five passing authorization/profile cases using separately compiled diagnostic binaries, while explicitly withholding signed installed-upgrade, native ARM64 and SAC acceptance. (cb84ee136ed1)
  • Earlier authority findings addressed: Bearer and channel epoch publish together after channel invalidation; queued launches await approval revalidation before checking the committed Sandbox snapshot. Native receipts show stale authentication rejected, transfer cleanup before app shutdown, and zero target SDK delegations after persisted approval revocation. (src/OpenClaw.Shared/Mxc/NodeSandboxPolicy.cs:89, cb84ee136ed1)
  • CI success and merge conflict are separate: The reviewed head's Build and Test run completed successfully, including CI Gate; release signing was skipped. REST still reports draft=true, mergeable=false and mergeable_state=dirty. (.github/workflows/ci.yml:1139, cb84ee136ed1)
  • Accepted containment tradeoffs: The collaborator-authored direction explicitly routes Browser/Canvas reads through Sandbox policy, retains profile-wide upload sharing, and preserves uncontained execution only for positively unsupported Windows; these are disclosed product choices. (docs/WINDOWS_NODE_TESTING.md:146, cb84ee136ed1)
  • Maintainer-controlled native acceptance: The declared ARM64, signed installer/upgrade and enforcing Smart App Control pools remain incomplete; repository policy makes pool scheduling approval-dependent and maintainer-owned. (docs/PROOF_POOLS.md:34, cb84ee136ed1)

Likely related people:

  • Barbara Kudiess: Raw commit c6e0f6d adds src/OpenClaw.Shared/Mxc/MxcRequestBuilder.cs:12 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c6e0f6d56242; files: src/OpenClaw.Shared/Mxc/MxcRequestBuilder.cs)
  • Caleb Eden: Raw commit fb95382 adds src/OpenClaw.Shared/WindowsNodeClient.cs:1196 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: fb95382350dc; files: src/OpenClaw.Shared/WindowsNodeClient.cs)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Source and test growth Source +6,588/-677; tests +7,971/-71 Substantial growth implements the native worker, shared execution and transport boundaries, with distinct filesystem, persistence, cancellation and packaging coverage.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Useful new file-transfer functionality with bounded scope; the record establishes no urgent released-user regression.
  • merge-risk: 🚨 compatibility: Browser/Canvas reads intentionally acquire Sandbox restrictions, and new persisted ownership/cache state still lacks exact signed installed-upgrade acceptance.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.

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 (4 earlier review cycles)
  • reviewed 2026-11-06T01:39:32.891Z sha eaa67e9 :: needs real behavior proof before merge. :: [P1] Publish the MCP bearer and file-channel generation atomically | [P1] Revalidate command approval after the launch queue drains | [P1] Integrate the worker with release signing before manifest generation | [P2] Dispose the shared Sandbox executor during service teardown
  • reviewed 2026-11-07T05:46:51.082Z sha 3c477a7 :: needs real behavior proof before merge. :: [P2] Show the committed transfer budget after rounding
  • reviewed 2026-11-09T04:36:16.452Z sha cb84ee1 :: needs real behavior proof before merge. :: [P3] Remove private work-session links from the public description
  • reviewed 2026-11-09T09:14:01.454Z sha cb84ee1 :: blocked before merge. :: none

Reviewed November 9, 2026, 4:20 AM ET / 09:20 UTC (Revision 5).

bkudiess and others added 2 commits November 5, 2026 21:44
Set the owner explicitly in the creation-time security descriptor rather than relying on the token default owner. Preserve the protected User/System ACL and rejection of foreign-owned storage. Add independent owner-readback coverage and avoid redundant WRITE_OWNER requests in the cache fixture.

Co-authored-by: Copilot App <[email protected]>
Preserve the file-transfer PR and current main histories while recording the
validated integration, authorization, executor teardown and worker-signing fixes.

Includes regression coverage and the optional-profile worker fixture repair.
Full native ARM64 build and Shared, Tray, CLI and FileWorker suites passed.
Live Gateway/MXC and signed-package acceptance remain unverified.

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A save-notification race can publish uncommitted settings to observers, leaving them with rejected values after rollback and no corrective event.

3 open issues
What changed in this PR

This PR adds typed Windows file and directory transfers governed by the same saved Sandbox policy as system.run. It integrates file capabilities with Companion, Gateway/MCP transport, and winnode, while routing existing browser and Canvas file reads through the shared access boundary.

Changes:

  • Add file-transfer contracts, authenticated channels, worker execution, and upload ownership tracking.
  • Add transfer-budget and upload-storage settings, localized guidance, and committed-policy publication.
  • Package signed, manifest-verified workers for x64 and ARM64, with regression tests and protocol documentation.

Validation here was limited to source inspection; builds, tests, and native runtime proof were not run.

File Description
tests/​OpenClaw.WinNode.Cli.Tests/​SkillMdDriftTests.cs Includes file commands in documentation drift checks.
tests/​OpenClaw.WinNode.Cli.Tests/​OpenClaw.WinNode.Cli.Tests.csproj Builds the worker for CLI tests.
tests/​OpenClaw.Tray.Tests/​SettingsSandboxPublicationTests.cs Tests committed-policy publication and concurrent saves.
tests/​OpenClaw.Tray.Tests/​SandboxFileSettingsContractTests.cs Checks transfer-control placement and limits.
tests/​OpenClaw.Tray.Tests/​ReleaseSigningWorkflowTests.cs Checks worker signing and manifest ordering.
tests/​OpenClaw.Tray.Tests/​NodeModeUiStateTests.cs Updates shared-executor ownership assertions.
tests/​OpenClaw.Tray.Tests/​MxcCompanionPackagePathsTests.cs Checks executor context injection.
tests/​OpenClaw.Tray.Tests/​InstallerIssAssertionTests.cs Updates process-launch ownership guards.
tests/​OpenClaw.Tray.Tests/​FileWorkerManifestTests.cs Tests manifest validation and payload normalization.
tests/​OpenClaw.Tray.Tests/​CiNugetCacheWorkflowTests.cs Includes worker projects in cache checks.
tests/​OpenClaw.Tray.Tests/​AppRefactorContractTests.cs Checks executor teardown ordering.
tests/​OpenClaw.Shared.Tests/​OpenClaw.Shared.Tests.csproj Embeds worker manifest fixtures.
tests/​OpenClaw.Shared.Tests/​Mxc/​NodeSandboxPolicyTests.cs Tests policy revisions and launch admission.
tests/​OpenClaw.Shared.Tests/​Mxc/​MxcPhysicalPathsTests.cs Tests executor-private path exclusions.
tests/​OpenClaw.Shared.Tests/​Mxc/​MxcOwnedOperationTests.cs Tests identity-owned cleanup and retained operations.
tests/​OpenClaw.Shared.Tests/​Mxc/​MxcNamespaceLaunchTests.cs Tests file and inline PowerShell arguments.
tests/​OpenClaw.Shared.Tests/​Mxc/​MxcFolderAdmissionTests.cs Adds long-path metadata coverage.
tests/​OpenClaw.Shared.Tests/​Mxc/​MxcCommandRunnerTests.cs Adapts tests to shared executor ownership.
tests/​OpenClaw.Shared.Tests/​FileTransfer/​UploadRetentionCoordinatorTests.cs Tests upload inventory, recovery, and blocked cleanup.
tests/​OpenClaw.Shared.Tests/​FileTransfer/​Fixtures/​worker-manifest-x64.json Adds the x64 manifest fixture.
tests/​OpenClaw.Shared.Tests/​FileTransfer/​Fixtures/​worker-manifest-arm64.json Adds the ARM64 manifest fixture.
tests/​OpenClaw.Shared.Tests/​FileTransfer/​FileFrameChannelTests.cs Tests framing, bounds, ordering, and cancellation.
tests/​OpenClaw.Shared.Tests/​FileTransfer/​ExistingFileAdapterTests.cs Tests browser use of the Sandbox reader.
tests/​OpenClaw.Shared.Tests/​CapabilityTests.cs Injects the Canvas file-reader adapter.
tests/​OpenClaw.Shared.Tests/​A2UICapabilitySecurityTests.cs Tests missing-reader and Sandbox-denial behavior.
tests/​OpenClaw.Shared.TestHost/​Program.cs Adds worker-cache process fixtures.
tests/​OpenClaw.Shared.TestHost/​OpenClaw.Shared.TestHost.csproj Embeds cache manifest fixtures.
tests/​OpenClaw.Shared.TestHost/​Fixtures/​worker-cache-x64.json Adds the x64 cache fixture.
tests/​OpenClaw.Shared.TestHost/​Fixtures/​worker-cache-arm64.json Adds the ARM64 cache fixture.
tests/​OpenClaw.Shared.TestHost/​CacheManifestAssembly.cs Supplies manifests to process fixtures.
tests/​OpenClaw.SetupEngine.Tests/​SetupConfigTests.cs Checks file capability registration and ordering.
tests/​OpenClaw.FileWorker.Tests/​WorkerCacheProcessTests.cs Tests cache eviction with a running worker.
tests/​OpenClaw.FileWorker.Tests/​OpenClaw.FileWorker.Tests.csproj Defines the worker test project.
tests/​OpenClaw.E2ETests/​Setup/​MxcSetupAndConnectTests.cs Uses an explicit child executable path.
src/​OpenClaw.WinNode.Cli/​Program.cs Adds transfer flags and file-specific envelope limits.
src/​OpenClaw.Tray.WinUI/​Strings/​zh-tw/​Resources.resw Adds Traditional Chinese Sandbox transfer copy.
src/​OpenClaw.Tray.WinUI/​Strings/​zh-cn/​Resources.resw Adds Simplified Chinese Sandbox transfer copy.
src/​OpenClaw.Tray.WinUI/​Strings/​pt-br/​Resources.resw Adds Brazilian Portuguese Sandbox transfer copy.
src/​OpenClaw.Tray.WinUI/​Strings/​nl-nl/​Resources.resw Adds Dutch Sandbox transfer copy.
src/​OpenClaw.Tray.WinUI/​Strings/​fr-fr/​Resources.resw Adds French Sandbox transfer copy.
src/​OpenClaw.Tray.WinUI/​Strings/​en-us/​Resources.resw Adds English Sandbox transfer copy.
src/​OpenClaw.Tray.WinUI/​Services/​SettingsManager.cs Publishes saved policies and serializes persistence.
src/​OpenClaw.Tray.WinUI/​Services/​NodeService.cs Wires file capabilities, cleanup, and executor disposal.
src/​OpenClaw.Tray.WinUI/​Presentation/​SettingsStore.cs Tracks concurrent save origins without a callback lock.
src/​OpenClaw.Tray.WinUI/​Pages/​SandboxPage.xaml.cs Handles transfer settings and cleanup status.
src/​OpenClaw.Tray.WinUI/​Pages/​SandboxPage.xaml Adds storage, budget, and cleanup controls.
src/​OpenClaw.Tray.WinUI/​OpenClaw.Tray.WinUI.csproj Imports worker packaging targets.
src/​OpenClaw.Tray.WinUI/​FileWorker.Build.targets Builds, verifies, embeds, and copies worker payloads.
src/​OpenClaw.Shared/​SettingsData.cs Adds upload location and transfer budget settings.
src/​OpenClaw.Shared/​NodeCommandException.cs Defines a preservable command-owned exception.
src/​OpenClaw.Shared/​NodeCapabilities.cs Adds transport-owned channels and semantic results.
src/​OpenClaw.Shared/​Mxc/​UnsupportedWindowsCommandExecutor.cs Restricts the adapter to host start information.
src/​OpenClaw.Shared/​Mxc/​SandboxPathRules.cs Centralizes path normalization and specificity.
src/​OpenClaw.Shared/​Mxc/​NodeSandboxResources.cs Separates caller-data and infrastructure access.
src/​OpenClaw.Shared/​Mxc/​NodeSandboxPolicy.cs Orders policy persistence and launch admission.
src/​OpenClaw.Shared/​Mxc/​MxcRequestContext.cs Records executor-private runtime paths.
src/​OpenClaw.Shared/​Mxc/​MxcRequestBuilder.cs Composes shared data and infrastructure permissions.
src/​OpenClaw.Shared/​Mxc/​MxcProcessLifetime.cs Centralizes process and pipe lifetime handling.
src/​OpenClaw.Shared/​Mxc/​MxcFolderPermissions.cs Reuses shared permission specificity rules.
src/​OpenClaw.Shared/​Mxc/​MxcFolderAdmission.cs Uses extended native paths for metadata queries.
src/​OpenClaw.Shared/​Mxc/​FixedFileWorkload.cs Defines trusted worker leases and protocol callbacks.
src/​OpenClaw.Shared/​Mcp/​McpFileChannels.cs Adds authenticated file-channel leases and polling.
src/​OpenClaw.Shared/​FileTransfer/​IUploadRetentionOperations.cs Defines the upload cleanup scheduling boundary.
src/​OpenClaw.Shared/​FileTransfer/​IFileInvocationChannel.cs Defines bounded invocation messaging.
src/​OpenClaw.Shared/​FileTransfer/​GatewayFileInvocation.cs Coordinates Gateway frames and progress heartbeats.
src/​OpenClaw.Shared/​FileTransfer/​FileWorkerProtocol.cs Defines bounded binary worker packets.
src/​OpenClaw.Shared/​FileTransfer/​FileOutcomeTelemetry.cs Maps file execution mode to telemetry.
src/​OpenClaw.Shared/​FileTransfer/​FileOperations.cs Exchanges worker requests through owned pipes.
src/​OpenClaw.Shared/​FileTransfer/​FileContracts.cs Defines limits, permissions, requests, and results.
src/​OpenClaw.Shared/​FileTransfer/​FileCommandParser.cs Parses commands and validates base64 content.
src/​OpenClaw.Shared/​FileTransfer/​FileCapability.cs Exposes file commands and shapes outcomes.
src/​OpenClaw.Shared/​Capabilities/​CanvasCapability.cs Routes JSONL reads through the Sandbox adapter.
src/​OpenClaw.Shared/​Capabilities/​BrowserProxyCapability.cs Routes returned-file reads through the Sandbox adapter.
src/​OpenClaw.SetupEngine/​SetupContext.cs Advertises file capabilities independently of system tools.
src/​OpenClaw.FileWorker/​UploadOwnership.cs Defines native upload ownership metadata.
src/​OpenClaw.FileWorker/​Program.cs Implements the fixed worker’s standard-I/O entry point.
src/​OpenClaw.FileWorker/​OpenClaw.FileWorker.csproj Defines the architecture-specific worker build.
scripts/​Write-FileWorkerManifest.ps1 Validates payloads and generates digest manifests.
scripts/​Test-ReleaseExecutableSignatures.ps1 Classifies worker binaries for signature verification.
scripts/​test-ci-workflow-contract.ps1 Includes worker tests and restore inputs.
openclaw-windows-node.slnx Adds worker and worker-test projects.
docs/​RELEASING.md Documents signing before manifest generation.
docs/​MCP_MODE.md Documents authenticated file transport and bounds.
.github/​workflows/​ci.yml Adds worker testing, signing, and artifact distribution.
.agents/​skills/​winnode/​SKILL.md Documents file commands and binary-transfer flags.

Review effort: Balanced

Comment thread docs/MCP_MODE.md Resolved
bkudiess and others added 3 commits November 6, 2026 17:25
… budgets

Document repeated binary fetch chunks and acknowledgments.

Co-authored-by: Copilot App <[email protected]>
Preserve runtime-bound signed payload paths outside the source checkout for cleanup host and fixed workers.

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

bkudiess commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Please reassess current head cd64009240995a6f1af1b4d0662a98053befad21. The previous scored review was on eaa67e95.

The PR body now links completed CI run 42326156137, attempt 1, its downloaded TRX artifacts, current-head native file-owner and authorization-boundary results, settings/legacy-upload compatibility checks, and signing-workflow regressions. CI merge da744ee3dcb7b314f78ea64b6fc1855ab1275740 has the exact PR-head tree ec026eae844a2101c9d3312d590fd4fb499e7533. The 18 inspected reports contain 15,912 passed result records, zero failures and 47 skips/not-executed records.

The old token-generation, queued-approval, worker-signing and executor-disposal findings now have repairs and passing regressions; all three later inline review threads are resolved. Please evaluate those fixes and the new evidence rather than the stale body.

The body explicitly distinguishes owner/synthetic transport tests from full native authority-chain proof. Current-head composed Gateway/MXC forbidden final effects, native ARM64 acceptance, rejected-budget pixels and latest-stable installed upgrade/SAC proof remain incomplete. No platinum label or completed proof pool is being asserted.

@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

Fix bounded Gateway transfer pipelining, worker deadlines, upload retention ownership and cleanup, and retained write target validation. Add regression coverage and update the related contracts.

Co-authored-by: Copilot App <[email protected]>
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. label Nov 7, 2026
…ship

Remove manual staging controls while retaining committed limits and permission boundaries. Keep managed upload metadata, native worker cancellation and executor cleanup identity-owned, and omit denied children from allowed listings. Preserve the reviewed regression controls and validation contracts.

Co-authored-by: bkudiess <[email protected]>
@roboclaw-bot roboclaw-bot added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 9, 2026
@roboclaw-bot

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Nov 9, 2026
@roboclaw-bot roboclaw-bot added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Nov 9, 2026
@roboclaw-bot

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. labels Nov 9, 2026
@roboclaw-bot roboclaw-bot added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Nov 9, 2026
@bkudiess
bkudiess marked this pull request as ready for review November 9, 2026 10:10
@roboclaw-bot roboclaw-bot removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 9, 2026
Integrate main at 045d13a without rewriting the existing PR history. Retain the FileWorker test lane and both animation-preference proofs, with the workflow contract expecting eleven wrapped runs.

Require the existing contained hard-link rejection at NativeEntry construction for both traversal anchors and relative children. Add four native owner regression cases using only private test fixtures, preserving host compatibility and directory anchors.

Co-authored-by: bkudiess <[email protected]>
@roboclaw-bot roboclaw-bot added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 9, 2026
Replace the scoped cancellation callback in the Gateway file-transfer fixture with a filtered cancellation catch after awaited listener cleanup. The pending read can otherwise unwind and unregister the observer before cancellation dispatch reaches it.

Preserve heartbeat sequencing, pending-ACK disposal, wrong-node cancellation checks, all existing assertions and timeouts, and rethrow the original cancellation.

Co-authored-by: bkudiess <[email protected]>
@roboclaw-bot roboclaw-bot removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 9, 2026
@bkudiess
bkudiess merged commit 932bc0e into openclaw:main Nov 9, 2026
39 of 40 checks passed
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. P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants