Skip to content

fix: preserve definite command refusals in Gateway responses - #1794

Merged
shanselman merged 10 commits into
openclaw:mainfrom
paulcam206:draft/hub-denial
Oct 28, 2026
Merged

shanselman merged 10 commits into
openclaw:mainfrom
paulcam206:draft/hub-denial

Conversation

@paulcam206

@paulcam206 paulcam206 commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: Gateway callers lose a definite command refusal when local approval or execution policy rejects a Windows node command.

User Impact

Callers receive the actual refusal rather than an ambiguous execution failure, without relaxing approval, filesystem policy, or containment requirements.

Why This Change Was Made

Preserve the known outcome through the approval coordinator, command execution and Gateway response. A confirmed refusal remains a refusal; unreadable policy, prompt infrastructure errors and uncertain execution failures remain distinct. The Node prerequisite merges cleanly with main's 24.22.1; there is no remaining GatewayInstallPolicy delta.

Published candidate: c9bf312e9f9a6f5f791e767be06b2a49d87c8068, with parents 2521b90d4179674c6cc65c3c74ef9bb3eca4057e and d318127350b5a42586a654ddd3657c28a73c27f9. No runtime source overlay or substituted historical composition is used for the current proof below.

Evidence

Fresh exact-head runtime proof: formal WSL -> Gateway -> Windows node -> MXC suite 18/18 PASS, zero skips; six native approval/refusal cases 6/6 PASS. Both used the same freshly built c9bf312e9f9a6f5f791e767be06b2a49d87c8068 app, with no source overlay or version override. The formal suite includes real Gateway command execution and its port-lease contracts.

Runtime check Executed Passed Failed Skipped
scripts\validate-mxc-e2e.ps1 -NoBuild 18 18 0 0
Native approval/refusal matrix, actual app + Gateway + native UI Automation 6 6 0 0

Actual executable SHA256: 83093677A3CD5D0D86EC5B7B519120E02B866144E0F82232E634E2293C2B958A. All 168 frozen executables, DLLs and packaged PowerShell outputs were read back unchanged before/after native proof. The formal in-flight fixture and actual loaded native fixture DLL matched SHA256 E8EF0B0D3C1A81A2284B326D1D7E10FA2B6F71379F4DE5D9AC24BD966E492C5E. There is no substituted historical runtime binary.

Exact-head formal WSL receipts

Actual guest Console Host showing c9bf exact source, executable and fixture hashes, all 18 formal cases, and zero skips

Copied completed-run terminal output:

Source HEAD: c9bf312e9f9a6f5f791e767be06b2a49d87c8068
Genuine full Git history: True. Overlay: False.
Actual compiled native app SHA256:
83093677A3CD5D0D86EC5B7B519120E02B866144E0F82232E634E2293C2B958A
Formal and loaded native fixture DLL SHA256:
E8EF0B0D3C1A81A2284B326D1D7E10FA2B6F71379F4DE5D9AC24BD966E492C5E
Executed: scripts\validate-mxc-e2e.ps1 -NoBuild
REAL WSL Gateway -> Windows node -> system.run -> MXC
Executed 18; passed 18; failed 0; skipped 0; AllowSkip=False
Gateway: 2026.10.5. Linux Node: v24.22.1
TRX SHA256:
4B8A98148D191D924F57BB7963B1A3D4BDF711BC43E2FA4350D1E9DD1E891BBA

Exact-head native approval and execution

Actual guest terminal showing six native cases, unchanged 300-second expiry, rejected late Invoke, and SDK spawn counts

Native case Result Definite refusal Actual SDK spawn count
Unavailable policy PASS False 0 -> 0
Native user Deny PASS True 0 -> 0
Production native prompt expiry PASS, unchanged 300 seconds, retained late Invoke rejected False 0 -> 0
Real allowed MXC command PASS, execution output observed, exit 0 False 0 -> 1
Specific protected-settings filesystem restriction PASS, native access denied, forbidden content not returned False 1 -> 2
Confirmed policy denial PASS True 2 -> 2

The actual native app process owned all six decisions. Native decisions used real native UI Automation; dispatch used ordinary Gateway/operator/node admission in the disposable fixture. Authenticated MCP tools/list and tools/call (device.info) additionally bound discovery/version to that app. No host-installed Gateway, credentials, profile, or device pairing was modified. The proof-only native adapter initially mangled WSL JSON arguments; passing its RPC script through bash -s stdin restored normal dispatch. No source, pairing approval, runtime pin, case assertion or 300-second timeout changed to obtain acceptance.

Copied terminal result:

Native cases: 6 passed. Same app binary as formal suite: True
PASS unavailable-policy-not-definite-refusal
PASS native-user-denial
PASS production-native-prompt-expiry-not-definite-refusal
     UNCHANGED deadline: 300s; retained late Invoke rejected: True
PASS real-allowed-mxc-command
PASS specific-protected-settings-filesystem-restriction
PASS confirmed-policy-denial
Containment tier: UNKNOWN. The denied canary is not a PSEC attestation.

Source and binary correspondence

Actual terminal displaying c9bf compiled assembly and native-runtime hashes with 168 unchanged frozen files

Actual executed build output SHA256
OpenClaw.Tray.WinUI.exe 83093677A3CD5D0D86EC5B7B519120E02B866144E0F82232E634E2293C2B958A
OpenClaw.Tray.WinUI.dll 0E8F171D97C95CCF7F02197F26B7306D79339BD9A69CF919A1D6AADB89FD91D6
OpenClaw.Shared.dll 3BD8CE1E2D00A0109B6D26AE12C271BFC8A739F78E65E26C41ECD21944DEC20B
Microsoft.Mxc.Sdk.dll 05ADA5E94BE2E2A374CC9E8AEBE04776CB21F7B680AE1DFD460A83A9F527798F
mxc_ffi.dll 56B152836698771FBE56D2AB8BE72F2F619031601DD2F00188B95C0FEC2A53DE
Selected Linux Node executable E32E2D16081CF644F88392934288086E7662529D0D43277C34F7AAD2207CFAFB

Genuine product version: 2026.10.7-draft-hub-denial.1+146.Branch.draft-hub-denial.Sha.c9bf312e9f9a6f5f791e767be06b2a49d87c8068.c9bf312e9f9a6f5f791e767be06b2a49d87c8068.

Redacted executed-outcome receipt:

{
  "sourceHead": "c9bf312e9f9a6f5f791e767be06b2a49d87c8068",
  "sourceFullHistory": true,
  "trackedSourceChanges": [],
  "overlayApplied": false,
  "versionOverrideUsed": false,
  "appSha256": "83093677A3CD5D0D86EC5B7B519120E02B866144E0F82232E634E2293C2B958A",
  "actualCompiledBinaryCount": 168,
  "actualCompiledBinariesReadBackUnchanged": true,
  "formalAndNativeSameAppBinary": true,
  "formal": { "executed": 18, "passed": 18, "failed": 0, "skipped": 0, "allowSkip": false },
  "native": { "executed": 6, "passed": 6, "approvalDeadlineSeconds": 300, "lateInvokeRejected": true, "appliedBackendTier": "unknown" }
}

These are actual exclusive guest-desktop pixels of Console Host windows rendering the completed-run receipts, not generated terminal images. Each capture has a window-owner/time/image/text-hash receipt. All three PNG URLs are pinned to normal fork asset commit 43c4f17cc4db5cfe57665616de6077b268490bb8, parent main ed1444b0; anonymous GET returned HTTP 200 for each, and downloaded bytes matched the inspected originals. No upstream upload permission was bypassed. Reviewed receipt archive SHA256: C5397E70E88AD427CCCDC24CC68DCACF0CB13F023BA5B4ABFBD43B2246489473 (retained locally, not represented as a public archive URL).

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: real Gateway -> Windows node -> MXC behavior, not a Linux-only proxy. The formal exact-head run below supplies the relevant end-to-end evidence; no broader inventory-bound pool completion is asserted.

Validation

  • Exact clean c9bf source full build: C:\crabbox\exact1794\tools\pwsh\pwsh.exe -NoProfile -ExecutionPolicy Bypass -File C:\crabbox\exact1794\source\build.ps1: PASS, exit 0.
  • Fresh formal proof: C:\crabbox\exact1794\tools\pwsh\pwsh.exe -NoProfile -ExecutionPolicy Bypass -File C:\crabbox\exact1794\source\scripts\validate-mxc-e2e.ps1 -NoBuild -ResultsDirectory C:\crabbox\exact1794\formal18: PASS, exit 0, actual 18/18/0 skips, no -AllowSkip.
  • Native runtime driver: dotnet build <owned-payload>\native\NativeProof.csproj -c Debug, then dotnet <owned-payload>\native\bin\Debug\net10.0-windows\win-x64\NativeProof.dll: PASS, exit 0, actual six native cases. The native driver loaded the hash-verified fixture and the same app binary observed in the formal run.
  • Current-head hosted CI: GREEN, including CI Gate. Full-history clean-clone local review: patch correct, confidence 0.88, zero code findings; this is supporting code review, not a substitute for hosted review.
  • Prior c9bf High-suite outcomes are retained, not rewritten: Shared 4727 passed / 1 failed / 8 unexecuted; Connection 1690 / 4 / 1; Setup 2477 / 1 / 1; Tray 4561 / 0 / 0. Paired exact-main comparisons accounted for four identical failures and two unreproduced originals. Correct Debug app staging fixed the earlier 21 missing-executable fixture cases on both heads. Full corrected integration was 54 passed / 1 failed / 3 skipped versus main 55 / 0 / 3; its socket-collision case then passed 5/5 on c9bf and 5/5 on main in one guest with checkout switching. Those passing focused runs do not retroactively change the full-suite result.
  • Earlier WSL evidence exists, but is superseded for this review by the fresh exact-c9bf run above.

Real Behavior Proof

  • Environment tested: exclusive throwaway Hyper-V Windows normal interactive guest with nested WSL2; provider lease cbx_a892f9f4e147, no provider run URL returned. Gateway 2026.10.5, Linux Node v24.22.1, .NET SDK 10.0.402, PowerShell 7.6.7, official app-local VC.Tools CRT. Four CPUs / 16 GiB configured; an initial guest-memory observation is not a constant-resident-memory claim.
  • PR head or commit tested: exact c9bf312e9f9a6f5f791e767be06b2a49d87c8068, genuine full history, no tracked edits, no overlay or version override. Build/runtime interval: 2026-10-27T03:04:01.0662261Z to 2026-10-27T04:28:22.3713298Z.
  • Exact steps or command run: fresh source build, formal validate-mxc-e2e.ps1 -NoBuild, six-case native approval/refusal driver, authenticated MCP discovery/invocation, in-flight and final source/binary hash readbacks.
  • Evidence after fix: formal TRX 18 executed / 18 passed / 0 failed / 0 skipped; native six passed with unchanged 300-second expiry and rejected late native Invoke; all 168 frozen build outputs unchanged. Parent independently verified all 18 reviewed artifact sizes/hashes.
  • Observed result: real allowed execution remains available, native Deny and confirmed policy refusal remain definite; unavailable policy and prompt expiry are not incorrectly promoted to definite refusal. Protected-filesystem canary denied access without returning forbidden content.
  • Screenshot or artifact links verified? (Yes/No/N/A) Yes, three commit-pinned real terminal PNGs, anonymous HTTP 200 and image-byte hash matches verified. Raw private logs, credentials and profiles were not uploaded.
  • Not verified or blocked: applied backend/PSEC tier remains unknown; this negative canary is not tier attestation or proof of every containment control. No Gateway MSIX hosting or fresh ETW claim. All owned tasks/processes/distros/nested WSL VM processes were removed; host WSL and foreign VMs were untouched. Parent released the exact lease normally at 2026-10-27T04:43:06.0935727Z, verified VM absence and unchanged parent VHDX metadata.

Security Impact

  • New permissions or capabilities? (Yes/No) No.
  • Secrets or tokens handling changed? (Yes/No) No.
  • New or changed network calls? (Yes/No) No.
  • Command or tool execution surface changed? (Yes/No) Yes, refusal propagation on the existing command surface.
  • Data access scope changed? (Yes/No) No.
  • If any answer is Yes, explain the risk and mitigation: no command is granted automatically; local approval, pairing, policy and containment remain authoritative. Proof uses only disposable guest/device state, not the developer's host or installed Gateway. Denied canary access is not independent containment-tier attestation.

Compatibility and Migration

  • Backward compatible? (Yes/No) Yes, existing commands and approval defaults remain.
  • Config or environment changes? (Yes/No) No product configuration migration; the setup prerequisite agrees with main's Node 24.22.1.
  • Migration needed? (Yes/No) No.
  • If yes, list the exact upgrade steps: N/A.

Review Conversations

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

Extract the independently reviewed reliability seam without the held native timeout consumer. No change to executor releases, package pins or sandbox enforcement.
Expose the actual synthetic-loopback response envelopes through the existing test output channel for public behavior receipts. Preserve every refusal, infrastructure-error and zero-runner-call assertion. No product or native dependency changes.
@clawsweeper

clawsweeper Bot commented Oct 21, 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

Preserves confirmed command refusals in Gateway responses while distinguishing unavailable policy, prompt failures, and uncertain execution outcomes.

Example: The Windows owner denies a system.run request for ["where.exe", "cmd.exe"].

  • Before: The Gateway receives an error message without a structured refusal code.
  • After: The Gateway receives error.code SYSTEM_RUN_DENIED, and the command does not launch.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Current-head runtime evidence and focused transport coverage support the fix; no actionable correctness or security defect remains, and stored policy format and defaults are unchanged.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Exact c9bf native-app receipts exercise real Gateway dispatch, native Deny, unavailable policy, unchanged 300-second expiry with rejected late approval, allowed MXC execution, protected-filesystem denial, and confirmed policy denial; the separate formal WSL/Gateway/MXC run passes 18 cases without skips, and matching source/app/fixture hashes resolve the previous correspondence gap.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Gateway callers cannot reliably distinguish a confirmed refusal from an uncertain command failure.
Reason: The collaborator discussion supports the direction, and the patch preserves the established fail-closed contract while making its outcomes accurate.

Merge readiness

✅ Ready for maintainer review

Keep open: current main still loses structured command-refusal codes, and this PR supplies a useful fix with no actionable code findings.

Priority: P2
Reviewed head: c9bf312e9f9a6f5f791e767be06b2a49d87c8068

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: A failing base run of the added regressions is not supplied; current-head native approval and real Gateway/MXC behavior are demonstrated.
Agent review details

How this fits together

Gateway invocations enter WindowsNodeClient, pass through SystemCapability and local approval policy, and reach the MXC runner only when authorized; typed failures return through the existing Gateway response paths.

flowchart LR
  G[Gateway invocation] --> W[WindowsNodeClient]
  W --> S[SystemCapability]
  S --> A[Approval coordinator]
  A --> P[Policy store and native prompt]
  S --> M[MXC command runner]
  M --> R[Gateway response]
  A --> R
Loading

Technical review

Best possible solution:

Land the existing refusal-propagation change once the draft is ready.

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

Current-main source deterministically drops structured refusal information when serializing Gateway errors; this review ran no target code.

Is this the best way to solve the issue?

Typed provenance in the existing approval, runner, and response owners fixes the reporting boundary without weakening execution checks or introducing another authorization path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • AlexAlves87: Raw commit 76f4d52 adds src/OpenClaw.Shared/ExecApprovals/ExecApprovalV2UiPromptHandler.cs:26 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 76f4d52c3b5e; files: src/OpenClaw.Shared/ExecApprovals/ExecApprovalV2UiPromptHandler.cs)
  • Caleb Eden: Raw commit fb95382 adds src/OpenClaw.Shared/Capabilities/SystemCapability.cs:640 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/Capabilities/SystemCapability.cs)

Review metrics

Metric Value Why it matters
Introduced change size Production +170/-75; tests +770/-46; docs +40/-0 Most growth covers distinct policy, prompt-lifecycle, prelaunch, and two-format wire contracts.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: Incorrect refusal reporting affects Windows command callers without demonstrating an authorization bypass or broad execution outage.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

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

Workflow

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

History

Review history (7 earlier review cycles)
  • reviewed 2026-10-21T04:28:32.727Z sha ecb7229 :: needs real behavior proof before merge. :: [P2] Distinguish failed policy reads from confirmed revocation
  • reviewed 2026-10-21T21:58:57.090Z sha fcc1bb6 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-22T05:15:47.296Z sha fcc1bb6 :: needs real behavior proof before merge. :: [P2] Pin the disposed-store regression to its temporary state directory
  • reviewed 2026-10-22T07:19:08.188Z sha 609dbd9 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-22T08:15:56.808Z sha 609dbd9 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-22T10:11:31.721Z sha 609dbd9 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-27T01:42:56.803Z sha c9bf312 :: needs real behavior proof before merge. :: none

Reviewed October 27, 2026, 12:49 AM ET / 04:49 UTC (Revision 8).

@shanselman

shanselman commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Update from GitHub Copilot triage (not Scott personally): I closed this draft during a batch review without first getting Scott's approval. That was my mistake, and the PR is open again. Sorry for the confusing message.

The direction here looks useful. The main concern raised by the current review is that a policy-file read failure may be reported as a confirmed denial. That distinction matters, but this is a draft and there is no rush created by my earlier comment. Please continue when it makes sense for you.

@paulcam206

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@paulcam206

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 22, 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 rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 22, 2026
@paulcam206

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@paulcam206

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@paulcam206

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

Pin Node 24.22.1 for the current official installer and verify the installed runtime against that same contract. Add an independent runtime response regression. This fixes the proven setup prerequisite, not the unresolved 15-second reload-restoration timeout. Host focused tests: 46 passed, zero skipped. Full guest build, Shared, Tray, and live WSL/MXC proof remain pending. Hold all pushes.
@paulcam206

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@paulcam206

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 27, 2026
@paulcam206
paulcam206 marked this pull request as ready for review October 27, 2026 04:53
@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 28, 2026
Return the definite pre-execution refusal code for both run commands when the live permission guard rejects a cached invocation. Cover revocation after advertisement on both node wire transports.

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

Copy link
Copy Markdown
Collaborator

Copilot triage agent here, not Scott. Thank you, Paul. Added the small maintainer patch 52ae73361296a9ba25d15beb8bc52ed19194afdc directly to your branch: disabling Run system tools now preserves SYSTEM_RUN_DENIED for both system.run and system.run.prepare, before approval dispatch or execution. Four wire cases revoke permission after command advertisement across both transports. All four failed at the missing-code assertion before the fix; the complete wire suite now passes 46/46. Independent rubber-duck review found no issues.

Validation: ./build.ps1 passed on ARM64. dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 4,713 passed, 1 symlink-privilege failure reproduced on main 9470c6e, 26 skipped. dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 4,557 passed, 4 ARM64 prerequisite-test failures reproduced 4/4 on the PR's main base d3181273. ./scripts/validate-docs.ps1 passed. Exact-head hosted CI, attempt 2 passed, including CI Gate. Attempt 1 had one unchanged ChatReadiness loopback fixture hit its 3-second timeout; its focused class passed 18/18 locally and the failed-lane replay passed without changing tests or timeouts. This replay does not erase the first failure. Current-head MXC runtime proof remains blocked by the no-runtime-changes constraint: ./scripts/validate-mxc-e2e.ps1 -NoBuild -AllowSkip unexpectedly began WSL provisioning, so I stopped its installers and verified no task distro remained registered. The existing c9bf 18/18 WSL/MXC and 6/6 native proof remains prior-head evidence, not proof for this patch.

@shanselman
shanselman merged commit 849cba5 into openclaw:main Oct 28, 2026
42 of 44 checks passed
@shanselman shanselman removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 28, 2026
larroy pushed a commit to larroy/openclaw-windows-node that referenced this pull request Oct 30, 2026
…w#1794)

* fix: preserve definite command refusals in Gateway responses

Extract the independently reviewed reliability seam without the held native timeout consumer. No change to executor releases, package pins or sandbox enforcement.

* test: capture actual command refusal wire responses

Expose the actual synthetic-loopback response envelopes through the existing test output channel for public behavior receipts. Preserve every refusal, infrastructure-error and zero-runner-call assertion. No product or native dependency changes.

* fix: preserve refusal provenance through SDK prelaunch checks

* test: separate wire execution scratch from protected settings

* fix: keep expired approval prompts out of definite refusals

* fix: preserve unavailable approval-store provenance without claiming denial

* test: isolate disposed-store approval regression

* fix(setup): use sqlite-capable Node for official WSL installer

Pin Node 24.22.1 for the current official installer and verify the installed runtime against that same contract. Add an independent runtime response regression. This fixes the proven setup prerequisite, not the unresolved 15-second reload-restoration timeout. Host focused tests: 46 passed, zero skipped. Full guest build, Shared, Tray, and live WSL/MXC proof remain pending. Hold all pushes.

* fix: preserve refusals after system tools permission is revoked

Return the definite pre-execution refusal code for both run commands when the live permission guard rejects a cached invocation. Cover revocation after advertisement on both node wire transports.

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

---------

Co-authored-by: Scott Hanselman <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants