Repository navigation
feat(openclaw-id): approve an app's node together with its owner device - #197573
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 real behavior proof before merge. What this changesThis PR lets one owner-device approval also enroll the app’s separate node key and manage its removal. Example: An owner adds a Mac Studio that offers system.run and screen.capture.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this useful draft open: it implements the agreed combined approval design through existing owners, with no confirmed introduced defect. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe browser signs an owner-approved membership change; the shared protocol authority records device and node membership, and the Gateway supplies admission, pairing cleanup, and UI projections. flowchart LR
App[New app device] --> SAS[Browser verification]
SAS --> Change[Signed membership change]
Change --> Authority[Membership authority]
Authority --> Admission[Gateway node admission]
Authority --> Cleanup[Revocation and pairing cleanup]
Authority --> UI[Devices and Access views]
Technical reviewBest possible solution: Retain the combined approval in the existing membership and pairing owners, then demonstrate the assembled enrollment and removal behavior. Do we have a high-confidence way to reproduce the issue? This is a new enrollment capability; source confirms that current main uses separate node invitations, and no target code was executed. Is this the best way to solve the issue? The approach fits the agreed direction and reuses existing signing, membership, admission, and cleanup owners without introducing a parallel authority system. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3b13df5767c2. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: unit tests only. SecurityNeeds attention: The new persistent node grant requires validation across its authorization and removal boundaries. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +392, Tests +275, Docs +30. Total +697 across 27 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 1:11 AM ET / 06:11 UTC. |
19279d5 to
b9918ba
Compare
…ce (openclaw#197573) * feat(openclaw-id): bind an app's node to its owner device approval * feat(openclaw-id): approve an app's node with its owner device in the Control UI * fix(openclaw-id): deduplicate owner approval tool labels * fix(openclaw-id): say the recovery kit stays valid after unexpected use
What Problem This Solves
The Mac app is moving to sign-in-first OpenClaw ID enrollment: the owner signs in and approves the Mac as an owner device. Its node (running tools on the Mac) should come from that same approval, not a separate node invite and six-digit ceremony.
User Impact
Why This Change Was Made
Protocol (unshipped v1-draft):
MembershipChangeadd_owner_devicegains an optionalnode { peer_key, label, description }. The node is listed innode_peer_keys(tunnel and relay admission unchanged) asNodeRecord { owner_device: fp(D) }with noinvite_id. Auto-pairing is bounded by the approveddescription, as for invited nodes.remove_noderemoves only the node. A re-add withnodeturns it back on.startgains an optionalnode { peer_key, description }, covered by the commitment and transcript, so the compared code binds the node key and the surface shown. Starts and changes withoutnodeare byte-identical to before.isNodeDescriptionis exported for approvers.Gateway: the owner link view exposes
ownerDeviceon nodes andnodePeerKeyon owner devices.Supersedes the operator-key approach of #197413 (closed). Discovery re-vendor: openclaw/discovery#13. Design: sign-in-first Mac enrollment (Josh, 2026-11-11).
Evidence
node scripts/run-vitest.mjs run packages/openclaw-id-protocol/src: 224/224.owner-device-node.test.ts: binding, human-key refusal, remove_node keeps the device, self re-add, revocation and approver cascade, inactivity cascade, kit path withkit_used, and a stolen node key.ui/src/lib/openclaw-id/owner-approval.test.ts: 15/15. New: node approved in the change; browser unchanged; malformed node ignored; kit-used notice names the device.tsgo:core,tsgo:ui,tsgo:extensionsclean.pnpm check:changed: pass (exit 0).