Repository navigation
fix(nodes): approve silent initial node surfaces and name the pending surface approval - #129795
Conversation
… approval Silent same-host device pairing carries local-grade auth — the operator themselves — but the inline initial-surface approval covered only ssh-verified and bootstrap routes, so headless silent connects (which have no approval UI to consume the silent hint) stranded the node: surface pending forever, inventory publication retrying every 5s. The gate now uses the existing deviceApprovedNonInteractively predicate. trusted-cidr stays on the manual prompt (network origin must not approve a command surface), and its dead end is repaired at the message: the inventory rejection names the pending request and the exact openclaw nodes approve command. Docs state what autoApproveCidrs does and does not approve. Fixes #128446
|
🦞👀 Pull request received. I will update this pull request when review starts. |
… the repair Reverts the silent-route inline surface approval: gateway suites (roles-allowlist-update, node-pairing-rate-limit) protect the deliberate contract that a silently paired local device exposes no declared commands until an operator approves its surface — auto-approval would hand system.run to any local process that pairs. The #128446 dead end is repaired for every route by the actionable inventory rejection naming the pending request and approve command; docs state the surface prompt applies to silent and trusted-cidr device approvals alike.
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 11:53 PM ET / August 26, 2026, 03:53 UTC. ClawSweeper reviewWhat this changesThe PR makes stalled node inventory publication name the matching pending surface approval command, documents manual surface approval for CIDR and silent pairing, and adds regression coverage. Merge readinessKeep this maintainer-authored PR open for normal merge handling. Current main still gives the generic retry despite a pending capability surface; the PR supplies the missing operator recovery path without changing the approval boundary. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherA node first completes device pairing, then its declared command surface is separately approved before it can publish runner inventory and host work. The gateway handles the inventory update and returns a retry response to the connected node when that surface remains pending. flowchart LR
A[Node connects] --> B[Device pairing]
B --> C[Capability surface pending]
C --> D[Inventory publication]
D --> E[Gateway checks pairing generation]
E --> F[Actionable approval response]
F --> G[Operator approves surface]
G --> H[Node hosts sessions]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +8, Tests +68, Docs +6. Total +82 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the separate device and capability approvals, land the localized actionable retry response after an exact-head rebase/check refresh, and preserve the CIDR and silent manual-surface tests. Do we have a high-confidence way to reproduce the issue? Yes—source establishes the path: an absent pairing generation takes the generic retry branch, while a persisted pending surface has a canonical request ID; the PR body also provides a concrete isolated-gateway scenario. Is this the best way to solve the issue? Yes. The response-layer lookup fixes the missing operator guidance while preserving the pairing owner’s intentional manual capability approval; auto-approving CIDR or silent surfaces would violate the existing trust contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4b3f764c498f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
… surface approval (openclaw#129795) * fix(nodes): approve silent initial node surfaces and name the pending approval Silent same-host device pairing carries local-grade auth — the operator themselves — but the inline initial-surface approval covered only ssh-verified and bootstrap routes, so headless silent connects (which have no approval UI to consume the silent hint) stranded the node: surface pending forever, inventory publication retrying every 5s. The gate now uses the existing deviceApprovedNonInteractively predicate. trusted-cidr stays on the manual prompt (network origin must not approve a command surface), and its dead end is repaired at the message: the inventory rejection names the pending request and the exact openclaw nodes approve command. Docs state what autoApproveCidrs does and does not approve. Fixes openclaw#128446 * fix(nodes): keep silent surfaces on the manual prompt; the message is the repair Reverts the silent-route inline surface approval: gateway suites (roles-allowlist-update, node-pairing-rate-limit) protect the deliberate contract that a silently paired local device exposes no declared commands until an operator approves its surface — auto-approval would hand system.run to any local process that pairs. The openclaw#128446 dead end is repaired for every route by the actionable inventory rejection naming the pending request and approve command; docs state the surface prompt applies to silent and trusted-cidr device approvals alike.
* origin/main: (24 commits) fix(gateway): reject rootless session permission modes (#128149) docs(memory): document shipped turn-taint propagation for network tool output (#129837) fix(ui): pool reply-less wake activity into one chat rollup (#128442) fix(package): prevent installs from deleting validated runtime assets (#129724) fix(nodes): approve silent initial node surfaces and name the pending surface approval (#129795) fix(backup): preserve configured agent state roots (#129773) fix(ui): own chat history issuance with a closed state machine (#129776) fix(cron): preserve cancellation reason after late finalization (#129331) fix(cron): prevent run waits from failing after clock changes (#129805) fix(telegram): route commentary through one frozen progress owner (#128259) fix(release): start approved VCR mirror recovery jobs (#129829) test: complete current-plugin-metadata-snapshot mock factories (#129791) test(telegram): remove duplicate reaction case (#129848) fix(channels): honor supported account reply-threading policies (#129679) refactor(cli): deduplicate lazy subcommand registration (#129351) fix(ai): report interrupted local-model streams instead of empty success (#129794) refactor(cli): consolidate Gateway fallback and hook ownership (#129802) fix(qa): reject token confidence lanes without executed evidence (#129830) fix(tui): fence session state and delayed actions (#129810) fix(control-ui): keep task progress full width on hover (#129832) ...
What Problem This Solves
#128446: a node whose device pairing is approved non-interactively (trusted-CIDR — and, as live reproduction showed, silent same-host pairing too) dead-ends: device paired, capability surface pending, and the node host retries
node.runnerInventory.updateevery 5 seconds withnode runner inventory publication is not current; retry after pairing completes— which misdescribes the state (device pairing DID complete) and names no way out.Why This Change Was Made
server.roles-allowlist-update,server.node-pairing-rate-limit) protect the same contract for silent same-host pairing: a silently paired local device exposes no declared commands (system.run,canvas.snapshot, …) until an operator approves its surface. An earlier revision of this branch auto-approved silent surfaces; those suites correctly rejected it — auto-approval would hand privileged commands to any local process that pairs. SSH-verified pairing and node-profile setup codes keep their existing inline surface approval (machine-ownership proof / recorded admin consent).node capability surface is awaiting operator approval; run \openclaw nodes approve ` (see `openclaw nodes pending`), then this node retries automatically`. The pending lookup runs only on this error path.autoApproveCidrsexample now states the CIDR (and silent) routes approve the device only, the surface still needsopenclaw nodes approve, and which routes approve the initial surface automatically and why.openclaw nodes pending" claim did not reproduce on current main (pending entries list correctly in both shapes); recorded as a rig transient from the original report.User Impact
Nodes paired via CIDR auto-approval or silent same-host pairing no longer spin on an unactionable retry: the node host log states exactly what to run, and approval heals the node without reconnect. No trust-model change.
Evidence
Live on a dev rig (isolated state dirs):
autoApproveCidrs→ devicetrusted-cidr, surface pending as designed, node log shows the new actionable message; running the exact printed command (openclaw nodes approve 87de0c4f-…) healed the node to session hosting (32/32 slots) without reconnect.approved_via=silent, surface pending, endless generic retries); the message path is route-agnostic, andopenclaw nodes pending/approvewas verified to list and heal it live.Tests:
nodes.read.test.tsregression: inventory publication without a pairing generation and with a pending surface responds with the approve command (verified failing pre-fix for the intended reason).server.node-pairing-auto-approve.test.ts(real-gateway LAN e2e) extended: CIDR pairing assertsapprovedVia=trusted-cidr, no approved surface, and a defined pending surface — pinning the intentional manual prompt.pnpm check:changedgreen. Production LOC: +10/-2 (error-path lookup + message); tests +72; docs +8.Fixes #128446