Skip to content

Sandboxing UI for gateway tool calls #852

Closed as not planned
Closed as not planned

Description

@samanthamsong

Epic: «Secure & contained node (MXC)» (#837)
Backlog Doc ID: (after #38) · Priority: P1 · Area: containment

Description
Once the gateway is contained, add configuration controls to sandbox gateway tool calls (end-to-end governance).

Definition of done
Users can configure sandboxing for gateway tool calls from the Node UI.

Part of the «Secure & contained node (MXC)» tracking issue (#837).

Activity

  1. clawsweeper commented on Jun 26, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 29, 2026, 4:45 PM ET / 20:45 UTC.

    Summary
    Keep this open. The existing Sandbox page and MXC path govern Windows-node system.run, while gateway-side tools remain a separate execution and policy surface; defining a UI for that surface requires an explicit security and product decision before implementation.

    Reproducibility: not applicable. This is a request for a new gateway-policy configuration surface, not a report of a defined current behavior failing.

    Root-cause cluster
    Relationship: canonical
    Canonical: #852
    Summary: This is the canonical child item for gateway-tool-call sandbox UI. The related MXC work establishes Windows-node containment and validation but does not own gateway-local policy.

    Members:

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

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.
    • Include redacted logs or terminal output.

    Maintainer decision needed

    Question Recommendation
    Should the Windows companion be allowed to configure and display the containment policy for gateway-resident tools, and if so, what gateway-owned policy contract and enforcement guarantees must exist first? Define a gateway-owned policy contract: Specify a durable gateway configuration and enforcement API, then add a scoped companion UI that reads and updates only that contract.

    Why: Current code proves containment for Windows-node execution, but gateway-local tools are intentionally outside that UI's scope. Choosing who owns policy, persistence, and fail-closed behavior is a security-boundary decision rather than a mechanical UI change.

    Next step
    A security and product decision is required to define the gateway-owned policy contract before a safe UI or repair task can be scoped.

    Security
    Needs attention: This issue proposes a new security control plane, so the gateway policy owner and enforcement guarantees need explicit review before implementation.

    Review details

    Best possible solution:

    Agree on a gateway-owned containment and policy API first, then expose that supported contract in the Node UI with clear scope copy, paired-auth enforcement, upgrade behavior, and end-to-end gateway proof.

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

    Not applicable. This is a request for a new gateway-policy configuration surface, not a report of a defined current behavior failing.

    Is this the best way to solve the issue?

    Unclear. A UI can be appropriate only after maintainers define the gateway-owned policy and enforcement contract; reusing the node-only Sandbox UI without that boundary would be misleading.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • A Node UI toggle without a gateway-owned sandbox policy contract could imply that it governs gateway-local tools when it does not, creating a misleading security boundary.
    • Persisting or editing gateway containment settings from the companion requires decisions on authentication, precedence, migration, and behavior when the gateway cannot enforce the requested policy.

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

    Label changes

    Label justifications:

    • P1: The item governs containment for tool execution and is already prioritized P1 in the issue history by a repository collaborator.
    • impact:security: The requested controls define sandboxing and authority boundaries for gateway tool calls.
    Evidence reviewed

    Security concerns:

    • [high] Define gateway containment authority before adding UI
      The current Sandbox surface controls Windows-node execution, not gateway-local tools. A companion UI must not claim or persist gateway sandbox policy until the gateway exposes an authenticated, enforceable contract with defined fallback behavior.
      Confidence: 0.94

    What I checked:

    • Requested boundary remains distinct: The issue specifically asks for user-configurable sandboxing of gateway tool calls, while the prior current-main review established that the existing UI excludes commands run directly on the gateway. (src/OpenClaw.Tray.WinUI/Pages/SandboxPage.xaml, c04c5fb06238)
    • Existing sandbox feature is node-scoped: Merged work for the Sandbox page describes MXC containment for Windows-node system.run and explicitly excludes gateway-side WSL tools, so it does not implement this issue's gateway governance request. (src/OpenClaw.Tray.WinUI/Pages/SandboxPage.xaml, 62533e2901bd)
    • Gateway-to-node containment is already proven but is not gateway containment: The merged Gateway MXC proof covers Gateway to node.invoke to Windows node to system.run to MXC. That validates the node execution route, not policy for tools executed by the gateway itself. (tests/OpenClaw.E2ETests/Setup/MxcSetupAndConnectTests.cs, e70868d82bf0)
    • Parent roadmap still tracks this as a distinct child: The open MXC epic retains this issue as its dedicated child for gateway-tool-call sandbox UI, alongside separate validation, SDK, session-management, tool-containment, and allowlist work.
    • Collaborator-authored item requires human handling: The issue author association is COLLABORATOR, so this cleanup workflow must keep the item open for explicit maintainer judgment.

    Likely related people:

    • bkudiess: Introduced the merged MXC Sandbox page and companion-side command-containment implementation, including the explicit scope boundary separating it from gateway-side tools. (role: sandbox feature introducer; confidence: high; commits: 62533e2901bd; files: src/OpenClaw.Tray.WinUI/Pages/SandboxPage.xaml, src/OpenClaw.Shared/Mxc/MxcCommandRunner.cs)
    • TheAngryPit: Added the merged real gateway-to-Windows-node MXC proof, making them a useful technical routing contact for preserving the distinction between node invocation and gateway-local tools. (role: gateway-to-node containment proof contributor; confidence: high; commits: e70868d82bf0; files: tests/OpenClaw.E2ETests/Setup/MxcSetupAndConnectTests.cs, docs/WINDOWS_NODE_TESTING.md)
    • samanthamsong: Authored both this child item and the open Secure & contained node tracking epic that lists it as a separate dependency. (role: epic and child-issue scope author; confidence: medium)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2
    impact:security
    issue-rating: 🌊 off-meta tidepool
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    clawsweeper:needs-security-review
    on Jun 26, 2026
  3. added
    P1
    and removed
    P2
    on Jun 26, 2026
  4. added theissue type on Jun 26, 2026
  5. moved this from Backlog to Containment in Windows Companion Appon Jul 13, 2026
  6. github-actions commented on Jul 25, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  7. github-actions commented on Aug 6, 2026

    @github-actions
    Contributor

    Closing due to inactivity.
    If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.

  8. moved this from Containment to Channels in Windows Companion Appon Aug 6, 2026
  9. locked as resolved and limited conversation to collaborators on Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1clawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:needs-security-reviewclawsweeper:no-new-fix-primpact:securityissue-rating: 🌊 off-meta tidepoolstale

    Type

    Fields

    Priority

    High

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions