Repository navigation
feat(openclaw-id): owners can approve a member's new browser - #200088
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. What this changesLets owners approve an existing member’s new browser through an unverified Inbox request and a member-read verification code. Example: Alice, an operator, clears her only approved browser’s site data.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR adds useful, maintainer-approved recovery behavior that main lacks; all four earlier findings are resolved, and no new correctness defect was verified. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherDiscovery relays browser requests to the Gateway and owner browser; the existing signed membership authority decides admission, persists state, and publishes membership. flowchart LR
A[Member browser] --> B[Discovery mailbox]
B --> C[Gateway notice store]
C --> D[Owner Inbox]
B --> E[Owner SAS approval]
D --> E
E --> F[Signed membership authority]
F --> A
Technical reviewBest possible solution: Keep the existing SAS, signed admission, and atomic storage owners, with bounded notices serving only discovery and presentation. Do we have a high-confidence way to reproduce the issue? Current-main source and enrollment documentation establish that losing every approved member browser requires another invitation; no target code was executed during this review. Is this the best way to solve the issue? The implementation appropriately extends the existing account-bound SAS and member-device admission paths rather than introducing another authority. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4940240568f1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +635, Tests +1172, Docs +40, Other +9. Total +1856 across 44 files. Added test files: 3. 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. LabelsLabel 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 HistoryReview history (1 earlier review cycle)
Reviewed November 16, 2026, 1:11 PM ET / 18:11 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…w#200088) * feat(openclaw-id): bind member owner-approval claims in SAS * feat(openclaw-id): approve current member browsers with compared codes * feat(openclaw-id): define display-only member browser notices * feat: surface bounded member browser requests in owner Inbox * fix(openclaw-id): retire denied browser before notice cleanup * docs: explain member browser request assertion safety * fix: preserve member browser recovery and approval ownership * test: account for member approval review regressions * perf: defer owner inbox action implementation * test: clarify owner inbox mock isolation
Related: OCF-551 (Linear) · companion PRs: openclaw/discovery#18, openclaw/claw-loader#37
What Problem This Solves
Fixes: a member who loses their only approved browser (site data cleared, new machine) is locked out of the claw until the owner sends a new invite.
User Impact
User impact: a current member can ask the owner to approve a new browser for their existing account. The owner gets an Inbox item ("Browser request from …", marked unverified) and approves by typing the six-digit code the member reads to them over a channel they trust. The member keeps the same account, role and access; no new invite is needed. Owners who are not on their own Control UI can follow the Inbox link to the loader approval page.
Why This Change Was Made
Discovery's sender metadata is untrusted, so a one-click approval based on it would let a compromised Discovery impersonate a member. The claimed account is bound into the SAS commitment and the owner must enter the code the member reads; the owner never sees the code. Approval reuses
add_member_device, so role and owner lineage are unchanged and membership/owner capability are rechecked at commit time. The Inbox notice is display-only: bounded per member (one live notice, three accepted request IDs per rolling 30 minutes), refused for non-members and removed members, retired on approval, denial or removal, and grants nothing. Denial and cancellation always retire the request and send the SAS abort before best-effort notice cleanup.Landing order (three repos): openclaw → discovery → claw-loader. Discovery and the loader vendor the OpenClaw ID protocol synced byte-for-byte from openclaw
8b0ce1f85d901502a4099905d9609d601c521d0f; the protocol change is an unshipped v1-draft addition (newmember_account_idSAS binding and a display-onlymember_browser_requestnotice), with no version bump and no change to signed statements, certificates, admission rules or Discovery grants. Recovery kit (OCF-552) PRs will follow and rebase onto these.Evidence
b307684bdb5a, with suites run serially and workers capped at eight: Gateway/protocol 709 passed (101 files; 23 tests in two files skipped); scoped UI/Inbox 273 passed, three isolated lazy-import regressions passed, and the retention E2E passed; dedicated Chromium presentation 31 passed across three files. UI production types, changed test-graph types, changed-file lint/format, all baseline ratchets, additional boundaries, import-cycle/madge and Kysely checks passed.a97d3d4f033a, without changing performance budgets.pnpm ui:check-performance:base a97d3d4f033a258136c963f8c7d1fc55ee6cae92: chat boot gzip 1,313,429 → 1,312,751 B (-678 B); new boot 815,897 → 815,219 B (-678 B); initial startup 91,024 B unchanged. Largest ordinary JS is 558.2 KiB gzip. Existing base CSS ceiling warnings and chat request-count excess remain inherited; the same-base gate passes. Owner Inbox actions load only on activation, with captured presentation/client lifetime checks and recovery refresh covering even an outer chunk-load failure.6f5d3b399b31855501cc3f38f1221f7165554c59used its real compiled state worker to create a physical state DB with OpenClaw ID data, an unrelated sentinel and a profile. Candidateb307684bdb5aopened that DB, accepted a member-browser notice, closed/reopened, cancelled it, and closed/reopened again. Theplugin_state_entriestable/index SQL, all eight prior logical plugin-state rows, and the one profile remained unchanged; the new notice key persisted and retired correctly. The temporary proof harness ran under the existing database-worker test project; original tests were restored afterward.8b0ce1f85d90.🦞 Made with OpenClaw