openclaw-windows-node icon indicating copy to clipboard operation
openclaw-windows-node copied to clipboard

🦞 Tracking: Connect & pair reliably — local and remote

Open samanthamsong opened this issue 5 months ago • 3 comments

🦞 Tracking issue (epic) — this rolls up the scenario below. It holds no code itself; the work lives in the child issues in the checklist below. Triage here, build there.

Outcome

I can connect and pair my node reliably, for local and remote gateways.

Definition of done

Pairing (incl. the QR flow) is robust for local and remote gateways, recovers from restarts, and we can test it when we make fixes.

Child issues

  • [ ] #710 — remote pairing broken (token scopes empty)
  • [ ] #720 — QR pairing stuck in 'node' role
  • [ ] #667 — WebSocket handshake 1006 on WSL2
  • [ ] #844 — Connection / pairing reliability — local and remote
  • [ ] #845 — End-to-end testing — cover the QR-code pairing flow
  • [ ] #846 — WSL integration reliability + orchestration

Backlog: One-pagers/FY27-Windows-Node-work-items.md • Narrative: User-scenarios/scenario-s2-connect-and-pair.md

samanthamsong avatar Jun 26 '26 18:06 samanthamsong

Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 4, 2026, 6:04 PM ET / 22:04 UTC.

Summary Keep open. This collaborator-owned epic remains the coordination point for active local/remote pairing and WSL reliability work; current main has substantial recovery coverage, but the two open child issues mean the stated end-to-end outcome is not yet demonstrated.

Reproducibility: not applicable. to this tracking issue. It aggregates distinct pairing and WSL scenarios rather than providing one executable failure path.

Root-cause cluster Relationship: canonical Canonical: https://github.com/openclaw/openclaw-windows-node/issues/835 Summary: This issue is the explicit umbrella for active pairing and WSL reliability children, rather than a duplicate implementation report.

Members:

  • partial_overlap: https://github.com/openclaw/openclaw-windows-node/issues/844 - It is explicitly scoped as a child reliability report for the same local/remote pairing outcome.
  • partial_overlap: https://github.com/openclaw/openclaw-windows-node/issues/846 - It is explicitly scoped as a child report for the WSL reliability portion of this epic.

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
Which local, remote, QR, restart, and WSL scenarios form the supported completion matrix for this epic, and should the two active child issues remain its implementation scope? Define and retain the epic: Publish a narrow completion matrix and keep the active child issues as the implementation and proof owners.

Why: Current code proves several recovery mechanisms, while the open child reports describe remaining broad outcomes; only maintainers can set the supported product boundary and acceptance proof.

Next step A maintainer must define the supported completion matrix before the active child repairs and proofs can be prioritized or accepted.

Review details

Best possible solution:

Maintain this epic as the parent, define a supported local/remote and restart/recovery proof matrix, and close it only after its remaining child work has verified that matrix.

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

Not applicable to this tracking issue. It aggregates distinct pairing and WSL scenarios rather than providing one executable failure path.

Is this the best way to solve the issue?

Unclear. Current main supplies several narrow recovery mechanisms, but retaining the epic is the best coordination path until maintainers define the supported scenario and proof matrix.

AGENTS.md: found and applied where relevant.

Remaining risk / open question:

  • Unit coverage and source inspection do not establish reliable pairing against both a remote gateway and WSL across restart/recovery scenarios.
  • Without a maintainer-owned completion matrix, the active child issues cannot be consistently prioritized or judged complete.

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

Label changes

Label justifications:

  • P1: Pairing and connection reliability remains active work affecting core node workflows, but this umbrella report does not establish an emergency current failure.
  • impact:auth-provider: The tracked behavior includes bootstrap credentials, device tokens, scopes, and pairing roles.
  • impact:other: The epic also covers connection lifecycle, remote transport, restart recovery, and WSL orchestration beyond the specific owned impact taxonomy.
Evidence reviewed

What I checked:

  • Current pairing architecture: The current architecture documents QR/setup-code registration, persisted device-token handoff, explicit approval boundaries, and a dedicated connection test suite, showing that major subpaths are owned and covered but not proving the epic's complete remote and WSL outcome. (docs/CONNECTION_ARCHITECTURE.md:227, 6e225e4758e1)
  • Bootstrap handoff implementation: After a device token is received, the manager persists it, retains the bootstrap token until both role tokens are durable, then schedules a bounded reconnect using the durable operator credential. (src/OpenClaw.Connection/GatewayConnectionManager.cs:1802, 6e225e4758e1)
  • Regression coverage: Current tests verify that bootstrap credentials are cleared only after durable operator and node tokens exist, and that a bootstrap connection reconnects after the operator token is persisted. (tests/OpenClaw.Connection.Tests/GatewayConnectionManagerTests.cs:3485, 6e225e4758e1)
  • Recent connection-recovery provenance: Recent current-main history includes local gateway listener/token-drift recovery, so important subpaths have changed since the original reports without establishing the full epic completion matrix. (src/OpenClaw.Connection/GatewayConnectionManager.cs:1802, bc210e048aa9)
  • Remaining active work: The issue body and supplied current timeline identify open child work for connection/pairing reliability and WSL orchestration. Those reports prevent treating the umbrella outcome as implemented.

Likely related people:

  • Barbara Kudiess: Authored the recent listener and token-drift recovery work in the central connection manager. (role: recent connection recovery contributor; confidence: high; commits: bc210e048aa9, c04c5fb06238; files: src/OpenClaw.Connection/GatewayConnectionManager.cs)
  • Vincent Koc: Authored the current-main fix for recovering saved SSH tunnels after disconnect in the same connection manager. (role: recent remote-connection contributor; confidence: medium; commits: d7d153ca5d40; files: src/OpenClaw.Connection/GatewayConnectionManager.cs)
  • Scott Hanselman: Authored a recent gateway connection fix and marked this tracking work as an EPIC in the supplied timeline. (role: recent adjacent contributor; confidence: medium; commits: 277936553135; files: src/OpenClaw.Connection/GatewayConnectionManager.cs)
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.

clawsweeper[bot] avatar Jun 26 '26 18:06 clawsweeper[bot]

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

github-actions[bot] avatar Jul 26 '26 04:07 github-actions[bot]

Closing: replaced by project board Scenarios view (Mission field). Scope tracked there going forward.

samanthamsong avatar Aug 07 '26 21:08 samanthamsong