Skip to content

feat(rust): add authenticated node sidecar bridge - #116863

Merged
giodl73-repo merged 3 commits into
openclaw:mainfrom
giodl73-repo:agent/rust-sidecar-runtime-bridge
Sep 16, 2026
Merged

giodl73-repo merged 3 commits into
openclaw:mainfrom
giodl73-repo:agent/rust-sidecar-runtime-bridge

Conversation

@giodl73-repo

@giodl73-repo giodl73-repo commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #116450.

Summary

Adds the authenticated sidecar runtime bridge on the merged node-host stack. This PR is based on #116450 merge commit 29069179def687067d1362df98da9d673b3fdab2.

Its standalone incubation and conformance source is giodl73-repo/openclaw-rust-node#16, stacked on #15. The architecture and repository-placement decision remain tracked in openclaw/rfcs#54.

Scope

This layer contains only:

  • authenticated, sequence-bound framing with explicit byte ceilings;
  • portable version, feature, and limit negotiation;
  • mutually authenticated handshake;
  • immutable secret-free configuration;
  • ordinary-command product-adapter bridging;
  • cancellation and channel-retirement cleanup;
  • four byte-exact TypeScript/Rust fixture corpora; and
  • a real separate-process configuration, manifest, admission, invocation, and result proof.

Gateway authority remains with OpenClaw. The sidecar does not own endpoint selection, pairing, signing, issued-token acquisition or persistence, manifest authorization, or product policy.

Product-selected IPC, protected bootstrap, executable verification, process supervision, packaging, rollout/rollback, Windows integration, worker/session hosting, workspace transfer, plugins, host statistics, system.run, PTY, MCP, and skills remain outside this PR.

Byte-exact fixture evidence

  • handshake: 0b22c949fa53078106f6c7196f0c07f2fa1c0504
  • negotiation: fad7e133a2b27c588fea72310e543f1f28452801
  • protocol: 5081e7321a74d427d1aac4c4de5bb691425f3ba3
  • runtime: 33c1435763ad9e5edb1149d56bc88ad6bab34f00

Validation

  • current proof head: 833c9293b1729cb2383b409494b82ded70f15572;
  • merged feat(rust): add the embeddable node runtime lifecycle #116450 commit: 29069179def687067d1362df98da9d673b3fdab2;
  • Rust workspace: 141 passed, 0 failed;
  • sidecar process proof: 2/2 passed;
  • Rustfmt, Clippy -D warnings, rustdoc -D warnings, and git diff --check passed; and
  • independent sidecar-delta review found no findings.

Authority proof

SidecarRuntimeBridge runs through the public CommandRuntime::run path and a real WebSocket node session. The proof observes one allowed native effect, local denial with no adapter invocation, and channel retirement during awaited adapter work with no later native effect.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime app: linux size: XL maintainer Maintainer-authored PR labels Jul 31, 2026
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 16, 2026, 2:28 PM ET / 18:28 UTC (Revision 22).

ClawSweeper review

What this changes

Adds an authenticated, bounded Rust bridge that lets a separate node-runtime process negotiate configuration and dispatch commands through a product-owned adapter.

Merge readiness

✅ Ready for maintainer review

This remains a distinct, useful addition. The merged prerequisites resolve the earlier stack-wide adoption concern, and the reviewed sidecar delta has no actionable correctness or security finding.

Priority: P3
Reviewed head: 833c9293b1729cb2383b409494b82ded70f15572

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent, bounded addition with relevant production-boundary evidence and no actionable introduced defect.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The exact-head report and inspected harnesses cover production framing across a real child-process TCP boundary and the public Rust runtime over WebSocket, including allowed dispatch, local denial before invocation, and retirement during awaited work. Coverage is appropriate to this transport-neutral layer and does not establish product deployment readiness.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The exact-head report and inspected harnesses cover production framing across a real child-process TCP boundary and the public Rust runtime over WebSocket, including allowed dispatch, local denial before invocation, and retirement during awaited work. Coverage is appropriate to this transport-neutral layer and does not establish product deployment readiness.
Evidence reviewed 9 items Pinned contribution boundary: The host-verified introduction range contains only the sidecar implementation, dependency additions, protocol documentation, and its fixtures and tests. The shared client, Linux migration, and node lifecycle belong to merged prerequisites.
Prerequisite merged and historical routing: GitHub verifies #116450 merged at 2026-09-16T18:22:30Z. Local history also identifies #116050 as the preceding shared-client foundation; GitHub commit metadata associates both with giodl73-repo. These merges materially change the earlier review's repository-adoption context.
Still absent from main and latest release: The fetched main tree contains the shared client and node-host foundation but no sidecar modules. Inspection of latest-release commit 3a9d69d found no crates subtree, so v2026.9.4 does not supply this addition.
Findings None None.
Security None None.

How this fits together

The Rust node host receives Gateway-authorized commands and runs native handlers through its bounded command runtime. The sidecar layer adds authenticated framing, immutable configuration, and local admission while leaving credentials, process supervision, and platform permissions with the embedding product.

flowchart TD
  A[Product supervisor] --> B[Authenticated handshake]
  B --> C[Immutable configuration]
  C --> D[Sidecar bridge]
  E[Gateway invocation] --> D
  D --> F[Local admission]
  F --> G[Native adapter]
  G --> H[Bounded result or cancellation]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +753, Docs +229, Other +4387. Total +5369 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 755 2 +753
Docs 1 229 0 +229
Config 0 0 0 0
Generated 0 0 0 0
Other 6 4387 0 +4387
Total 13 5371 2 +5369

Review metrics

Metric Value Why it matters
Production versus validation growth Production +2,433 lines; tests and fixtures +2,678 net lines Physical Rust-source counts separate inline tests and fixtures; production growth implements the explicitly bounded sidecar contract without claiming existing-code savings.

Technical review

Best possible solution:

Keep the bridge within the unpublished node-host runtime, with production bootstrap, native permissions, packaging, and rollout owned by separately reviewed product integrations.

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

Not applicable: this proposes a new bridge rather than repairing a reported bug; the submitted boundary scenarios demonstrate its intended behavior.

Is this the best way to solve the issue?

Yes, for this bounded layer: it reuses the merged command-runtime owner and keeps product-specific process and permission decisions outside the protocol.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is an incubation capability with no immediate user-facing rollout or reported urgent regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The exact-head report and inspected harnesses cover production framing across a real child-process TCP boundary and the public Rust runtime over WebSocket, including allowed dispatch, local denial before invocation, and retirement during awaited work. Coverage is appropriate to this transport-neutral layer and does not establish product deployment readiness.
  • proof: sufficient: Contributor real behavior proof is sufficient. The exact-head report and inspected harnesses cover production framing across a real child-process TCP boundary and the public Rust runtime over WebSocket, including allowed dispatch, local denial before invocation, and retirement during awaited work. Coverage is appropriate to this transport-neutral layer and does not establish product deployment readiness.

Evidence

What I checked:

  • Pinned contribution boundary: The host-verified introduction range contains only the sidecar implementation, dependency additions, protocol documentation, and its fixtures and tests. The shared client, Linux migration, and node lifecycle belong to merged prerequisites. (833c9293b172)
  • Prerequisite merged and historical routing: GitHub verifies feat(rust): add the embeddable node runtime lifecycle #116450 merged at 2026-09-16T18:22:30Z. Local history also identifies feat(rust): add shared gateway client and node host #116050 as the preceding shared-client foundation; GitHub commit metadata associates both with giodl73-repo. These merges materially change the earlier review's repository-adoption context. (crates/openclaw-node-host/src/runtime.rs, 29069179def6)
  • Still absent from main and latest release: The fetched main tree contains the shared client and node-host foundation but no sidecar modules. Inspection of latest-release commit 3a9d69d found no crates subtree, so v2026.9.4 does not supply this addition. (crates/openclaw-node-host/src/lib.rs, b31ad046ef90)
  • Authentication and retirement: Inbound frames verify HMAC before interpreting headers, then enforce direction, generation, sequence, session, and payload validity. Validation failures retire the channel; retirement is shared with bridge admission and invocation waits. (crates/openclaw-node-host/src/sidecar_protocol.rs:492, 833c9293b172)
  • Existing runtime remains the execution owner: Bridge activation requires the configured runtime-side channel and consumes the exchange's activation state. The bridge builds the existing CommandRuntime, preserving its manifest, concurrency, deadline, admission, and cancellation gates. (crates/openclaw-node-host/src/sidecar_runtime.rs:684, 833c9293b172)
  • Production-boundary authority proof: The captured PR body identifies this exact head and reports 141 passing workspace tests. Its authority scenario uses NodeClient and CommandRuntime::run over a real WebSocket, checks LOCAL_DENY and SIDECAR_CHANNEL_RETIRED responses, and observes three admissions, two adapter invocations, and one native-effect counter increment. Source inspection confirms that entrypoint and those assertions; this review did not execute them. (crates/openclaw-node-host/tests/node_session.rs:370, 833c9293b172)

Likely related people:

  • giodl73-repo: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.

History

Review history (21 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-15T23:24:24.617Z sha 68a7c7a0fac77908a6f5539a22f333eb91ce051e :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-15T23:47:22.752Z sha bd7659f4272c067dd23f269cb79ba03c3ca72965 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-16T00:03:42.833Z sha 4e9753f :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-16T05:29:41.816Z sha c0b693ab478e8246a8f492cdc7028177565bf5ea :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-16T06:03:24.300Z sha 73d9956 :: blocked before merge. :: none
  • reviewed 2026-09-16T16:55:24.167Z sha 3a8784a0374270bb483da24effa7b7241da23363 :: blocked before merge. :: none
  • reviewed 2026-09-16T17:13:14.044Z sha 3a8784a0374270bb483da24effa7b7241da23363 :: blocked before merge. :: none
  • reviewed 2026-09-16T17:27:56.252Z sha 5f504e43cb060f230ea61dd3cbe3b74edb9e21dd :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 31, 2026
@giodl73-repo
giodl73-repo force-pushed the agent/rust-sidecar-runtime-bridge branch from 8d0a1b0 to 8ead00a Compare August 12, 2026 19:07
@openclaw-barnacle openclaw-barnacle Bot added the app: android App: android label Aug 12, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 12, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 16, 2026
@giodl73-repo giodl73-repo self-assigned this Sep 16, 2026
@giodl73-repo
giodl73-repo force-pushed the agent/rust-sidecar-runtime-bridge branch from 73d9956 to 3a8784a Compare September 16, 2026 16:47
@giodl73-repo

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@giodl73-repo
giodl73-repo marked this pull request as ready for review September 16, 2026 17:00
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
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 rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 16, 2026
@giodl73-repo
giodl73-repo force-pushed the agent/rust-sidecar-runtime-bridge branch from 3a8784a to 5f504e4 Compare September 16, 2026 17:16
@giodl73-repo

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Sep 16, 2026
giodl73-repo and others added 3 commits September 16, 2026 11:23
Co-authored-by: Copilot <[email protected]>

Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
Co-authored-by: Copilot <[email protected]>

Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
@giodl73-repo
giodl73-repo force-pushed the agent/rust-sidecar-runtime-bridge branch from 5f504e4 to 833c929 Compare September 16, 2026 18:23
@giodl73-repo

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@giodl73-repo
giodl73-repo merged commit ce4f1d7 into openclaw:main Sep 16, 2026
193 of 194 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
Adds the bounded authenticated sidecar bridge on the merged Rust node runtime. The unique sidecar delta passed focused Rust and process proof, and exact-head ClawSweeper review found no actionable code or security issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

1 participant