Skip to content

Session-aware Node routing skill #1323

Closed as not planned
Closed as not planned

Description

@samanthamsong

Summary

Add a skill/agent behavior that understands when the Gateway is running inside a constrained Session and, when the Node advertises the needed capability and policy permits it, prefers executing the operation on the Windows Node.

This addresses the documented problem where a Gateway may fail to intelligently select/use a Node, especially when Gateway and Node are on different devices.

Scope

  • Detect when Gateway is running inside a constrained MXC Session
  • Query Node advertised capabilities and policy permissions
  • Routing logic: prefer Node execution when Gateway is constrained and Node has the capability
  • Integrate with existing node capability declarations and system.run path
  • Handle fallback when Node is unavailable or policy denies

Related

Activity

  1. added
    P0
    on Sep 4, 2026
  2. added this to the MXC Update milestone on Sep 4, 2026
  3. added
    P3
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    clawsweeper:no-new-fix-pr
    issue-rating: 🌊 off-meta tidepool
    and removed
    P0
    on Sep 4, 2026
  4. clawsweeper commented on Sep 4, 2026

    @clawsweeper

    Codex review: this still needs some work. Reviewed September 22, 2026, 6:27 PM ET / 22:27 UTC.

    Summary
    Keep open: existing guidance does not implement constrained-session detection and conditional node routing. The collaborator-sponsored request remains distinct from the related investigations and setup work.

    Reproducibility: not applicable. this requests new conditional routing behavior; no failing scenario against an established session-aware contract is supplied.

    Maintainer decision needed

    Question Recommendation
    Should session awareness advise explicit node selection through existing guidance, or enforce a new Gateway routing policy? Start with advisory routing: Define the trusted containment signal and extend existing guidance to select eligible nodes explicitly while preserving all authorization checks.

    Why: The skill direction is sponsored, but detection authority and fallback semantics are not defined; enforced routing would change a documented containment boundary.

    Next step
    Ask the sponsor to settle detection authority and advisory versus enforced routing before scoping implementation; this is not a bounded existing-behavior repair.

    Review details

    Best possible solution:

    Extend existing agent guidance with trusted containment and effective-capability information while preserving explicit node selection, local approvals, and clear denial or unavailable-node outcomes.

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

    Not applicable: this requests new conditional routing behavior; no failing scenario against an established session-aware contract is supplied.

    Is this the best way to solve the issue?

    Unclear until the routing contract is chosen. Extending existing guidance is the narrowest starting point; enforced routing requires agreement with the Gateway owner.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The request does not establish an authoritative signal for Gateway containment, particularly when Gateway and node run on different devices.
    • Advisory skill behavior versus enforced routing remains unspecified, including whether denial or node unavailability may select another execution host.

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

    Label changes

    Label changes:

    • add P2: This is a concrete sponsored routing improvement, but the report does not establish an emergency or blocked onboarding path.
    • add impact:other: The requested capability affects whether constrained agents can select an eligible Windows execution host.
    • remove P0: Current review triage priority is P2, so this older priority label is no longer current.

    Label justifications:

    • P2: This is a concrete sponsored routing improvement, but the report does not establish an emergency or blocked onboarding path.
    • impact:other: The requested capability affects whether constrained agents can select an eligible Windows execution host.
    Evidence reviewed

    What I checked:

    • Current guidance is static: The complete guidance payload directs agents to inspect nodes and explicitly select host=node for Windows work. It contains no constrained-session detection or conditional routing implementation. (src/OpenClaw.SetupEngine/WindowsNodeContextSection.cs:9, c7063081a2a5)
    • Routing authority and containment contract: The canonical FAQ assigns routing to the Gateway and local enforcement to the node. Lines 234-237 document explicit host=node selection so automatic selection does not silently turn sandbox execution into remote execution. (docs/OPENCLAW_GATEWAY_NODE_EXEC_FAQ.md:234, c7063081a2a5)
    • Existing permission enforcement and tests: NodeService gates command registration on the System run preference and installs the approval coordinator with a fail-closed fallback. Setup tests assert explicit node guidance and prohibit guidance disabling security or approval prompts; these are foundations to preserve, not session-aware routing. (src/OpenClaw.Tray.WinUI/Services/NodeService.cs:319, c7063081a2a5)
    • Explicit collaborator sponsorship: In Enable Companion App to use session backed OpenClaw #1236 (comment), samanthamsong explicitly requested a skill aware that its Gateway runs in a session. This supports the distinct scope of this issue. Repeated P0 selections show sponsor urgency, but the supplied report describes a capability proposal rather than a demonstrated blocked first-run path.
    • Release comparison: The latest release endpoint identifies v2026.9.4, published September 15. Its WindowsNodeContextSection contains the same static guidance; this establishes shipped guidance, not implementation of the requested session-aware behavior. (src/OpenClaw.SetupEngine/WindowsNodeContextSection.cs:9, 3c43751b2bac)
    • Related implementation remains distinct: The open feat(setup): guide native Gateway installation and onboarding #1447 (feat(setup): guide native Gateway installation and onboarding) explicitly excludes isolated MXC session provisioning. A targeted PR-body search for this issue number returned no matches; no inspected replacement establishes ownership of the requested routing behavior.

    Likely related people:

    • samanthamsong: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
    • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
    • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
    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.
  5. added
    P0
    and removed
    P3
    on Sep 14, 2026
  6. added
    P2
    and removed
    P0
    on Sep 14, 2026
  7. added
    P0
    and removed
    P2
    on Sep 15, 2026
  8. added
    P2
    and removed
    P0
    on Sep 15, 2026
  9. added
    P0
    and removed
    P2
    on Sep 22, 2026
  10. added
    P2
    impact:other
    and removed
    P0
    on Sep 22, 2026
  11. github-actions commented on Oct 7, 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.

  12. github-actions commented on Oct 15, 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.

  13. locked as resolved and limited conversation to collaborators on Oct 18, 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

    P2clawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:no-new-fix-primpact:otherissue-rating: 🌊 off-meta tidepoolstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions