Repository navigation
feat(node-host): support native session and policy ownership - #150344
giodl73-repo merged 12 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 12:37 AM ET / 04:37 UTC (Revision 13). ClawSweeper reviewWhat this changesAdds shared Swift and Rust interfaces for native-owned connection signing, certificate trust, command admission, request cancellation, and independently bounded WebSocket keepalives. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful prerequisite that current main does not provide. No actionable introduced correctness or security defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe shared Gateway client carries authenticated connections and requests between native applications and OpenClaw. The node runtime routes incoming commands through native admission checks before invoking platform handlers. flowchart TD
A[Native identity and credentials] --> B[Shared Gateway client]
C[Native certificate trust] --> B
B --> D[Gateway connection]
D --> E[Node command runtime]
E --> F[Native admission checks]
F --> G[Platform handler and result]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +465, Other +592. Total +1057 across 14 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep native credentials, trust, and admission with their existing owners while reusing the shared transport and runtime; assess macOS adoption and rollout separately. Do we have a high-confidence way to reproduce the issue? Not applicable: this proposes native integration interfaces rather than reporting a reproducible product failure; target code was not executed during this read-only review. Is this the best way to solve the issue? Yes: extending the existing transport and runtime owners preserves native policy ownership without adding a competing credential or authorization manager. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e6e4848bb11a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (12 earlier review cycles; latest 8 shown)
|
Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
Bind external SecTrust evaluation to the requested hostname before system trust or TOFU decisions, and route keepalive pings through a prioritized control channel so RPC write backlog cannot starve liveness checks. Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
Keep the dedicated control channel while retaining Tokio select fairness so sustained outbound command traffic cannot starve inbound responses, events, or close frames. Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
Use a valid TLS server leaf fixture, satisfy Swift lint, and move pending-request state into the existing support file to stay below the GatewayChannel line cap. Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
e396b51 to
d84564e
Compare
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
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
Co-authored-by: Copilot <[email protected]> Copilot-Session: 2c44506f-c357-47e5-a867-91775df2093d
…e-ownership-seams
…e-ownership-seams # Conflicts: # crates/openclaw-node-host/src/node.rs
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via maintainer-approved exact-head admin squash after scoped review and preparation. Source head: dc5abc1. Landed squash: 7559f6d. The required aggregate failure was independently adjudicated as unrelated session-diagnostics baseline noise; the Node runtime conformance gate and all PR-scoped proof passed. |
…w#150344) thanks @giodl73-repo Adds reusable native session, policy, TLS trust, cancellation, and keepalive ownership seams while preserving Gateway command authority. Prepared and reviewed at exact head dc5abc1; required aggregate failure adjudicated as unrelated session-diagnostics baseline noise. Co-authored-by: Gio Della-Libera <[email protected]>.
What this enables
The existing macOS app remains the owner of device identity, credentials,
certificate trust, native admission, and native tools. This PR adds the
reusable Swift/Rust seams needed for a native product to supply those decisions
while reusing the shared Rust Gateway client and node runtime.
This is the prerequisite for #149725. It intentionally contains no macOS
helper, packaging, rollout, or product integration.
Shared contracts
credential ownership into Rust;
stream before HTTP credentials are sent;
system.*handler construction;application RPC capacity.
External
SecTrustevaluation is explicitly rebound to the requested hostnamebefore system-trust or TOFU decisions. Matching explicit pins retain the
existing self-signed-certificate behavior.
Evidence
Current head:
dc5abc1af8e.cancellation, authority, compatibility, or test-coverage finding.
stream, handshake-signature rejection, and rejection/timeout/cancellation
before HTTP upgrade.
control-capacity keepalive, and transport closure.
paramsJSONcapture whileretaining the permanent conformance rule that rejects legacy direct
params.https://github.com/openclaw/openclaw/actions/runs/35435960665
Non-goals