Repository navigation
feat: support Sandbox-backed Windows file transfers - #2028
Conversation
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]>
Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesAdds 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherAuthenticated 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]
Technical reviewBest 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 optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource 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
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed November 9, 2026, 4:20 AM ET / 09:20 UTC (Revision 5). |
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]>
There was a problem hiding this comment.
🟡 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
… 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]>
Co-authored-by: Copilot App <[email protected]>
|
@clawsweeper re-review Please reassess current head 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 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. |
|
🦞👀 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]>
…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]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
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]>
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]>



Contributor: @bkudiess. Repair commit
cb84ee136preserves 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.listDirandterminal.uploadthrough their applicable authenticated Gateway/MCP paths, including binary transfers throughwinnode.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
cb84ee136passed 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, tree77dc51585767972a2d101eb62a022094cb1e7aa3. 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
abandonedbefore 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 main045d13acand PRd46e7468, 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, tree249b7a86dc42704fbd31d96b1625a4fd7db01302, with parents maina39bd70aab55bfdc0053b278756a87c8a3305bcfand historical PR headcb84ee136. This is not relabeled as the bare PR-head tree or the earlier local integration withe7029248.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
3c477a78plus patch SHA-256b2c110a884e58507f2597fb5d5fb2c07d8867f6776d9835cc1784931b3a95f56. All 42 postimages were verified before/after execution and match committed tree55af9e2b26f29875c8b436d79a4f035eed7cda55exactly. This establishes source correspondence, not a new run after the commit.file-transferowner and used injectedctx.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
cb84ee136covered all 123 changed paths against true merge base96ea36fe60667f942c55dfd4cf1b68f2ca49f963. 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
cd640092and native x64/ARM64 summaries at6f14dcd4remain 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
Scope
winnodeRequired 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
OperationCanceledExceptioncatch 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.
./build.ps1dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restoredotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restoredotnet test ./tests/OpenClaw.FileWorker.Tests/OpenClaw.FileWorker.Tests.csproj --no-restoredotnet test ./tests/OpenClaw.WinNode.Cli.Tests/OpenClaw.WinNode.Cli.Tests.csproj --no-restore./scripts/validate-mxc-e2e.ps1 -NoBuild -Configuration Debug -RuntimeIdentifier win-x64validate-docs.ps1,validate-agent-skills.ps1,test-agent-skills-validator.ps1,test-ci-workflow-contract.ps1,git diff --checkHistorical hosted results from CI merge
d0996ebdabove: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
e7029248passed 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.execase 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
cb84ee136as described above; CI actually tested merged0996ebd. Actual app/test/worker hashes were retained per invocation.winnode --list-toolsand all eight commands; real authenticated MCP framed create/fetch; normal AllowOnce system.run consumption; actual Gateway operator/admin/non-admin calls; genuine owning-servicectx.openNodeDuplex.SandboxPageKeepsPermissionControlsWithoutTransferConfigurationCardspassed in 5.1203507 seconds. The UI artifact containsGatewayFixture/75b000f2df544e81a8ecc112a66f8e88/sandbox-managed-staging.pngandsandbox-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.cb84ee136ed1f1e0bfc12d5750bd9562cf098f3d, tree55af9e2b26f29875c8b436d79a4f035eed7cda55; all 2,232 native hashes matched published blobs. Actual PS7 parse 41/41,./scripts/setup-dev.ps1 -CheckOnly, five-project./build.ps1, and uninstrumentedwinnode --list-tools/create/fetch passed. The diagnostic app was then built with-p:OpenClawAuthorizationProof=truein a separate checkout. Patch SHA2561eff0041a8365d6c86670fac5261b9ac7d32ed3957e1ae542e510aad46546f1f; harness SHA256ac6dea3db94404a801a83dbc324745e21b8b3b02196e762644ff2b7d10d08cc5. Eight observed native images matched recorded compiled artifacts. This is not a stock-binary or official installed-upgrade claim.negative-control-and-reversal.ps1:8, the sealed helper required old harness2fc0cc48...instead of approvedac6dea3d...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.b12be583adf75a38f32a666e3d1e1f5724c29ecf5995d31a4fd62de40230fb94; final immutable snapshot SHA256e6d7a65528b3e8822eaaaa78ced44a25dddf7a5729d37c90452375a9088e9df4, 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 invokesInvoke-AuthorizationProof.ps1separately with each of the five-Casevalues below. App/CLI/payload paths are bound indiagnostic-build/binary-identity.json; diagnostic app SHA256F3FAB027A4B7F5CC9C602332BBF688D81C290EDCD59B5C05B2566E2801C45942. 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.dllSHA2560BBB0300504B0C4926A87FE9B6CD1CDB77F5C8695E3C60430E1AF6EACB91567B,OpenClaw.Shared.dllSHA25601EAA968FB87BFB297B643AA9A32C6BF6D31489BB2EECC907126E3B3D6C1CC50. 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:truewith 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.exeattribution remain open.Security Impact
Yes/No) Yes: eight typed file/directory commands preserving applicable agent/operator authority.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.Yes/No) Yes: authenticated control/progress/input over existing Gateway and local MCP transports.Yes/No) Yes: verified fixed worker and shared executor; local-only app tools remain excluded from Gateway exposure.Yes/No) Yes: existing Sandbox policy governs file operations and Browser/Canvas reads. Upload sharing is intentionally profile-wide, not per-upload/session isolation.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
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.Yes/No) Yes: valid savedSandboxMaxTransferBytesremains effective (50 MiB default, 1024 MiB hard cap and lower command caps).SandboxUploadStagingPathis retained for compatibility but grants nothing automatically; new uploads use the derived private root. No separate file permission store or caller-authored execution environment.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.Review Conversations
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.