Skip to content

feat(openclaw-id): add the Control UI account menu, linking dialogs and the Access page - #192352

Merged
jalehman merged 18 commits into
mainfrom
openclaw-id/pr-ui-people
Nov 6, 2026
Merged

jalehman merged 18 commits into
mainfrom
openclaw-id/pr-ui-people

Conversation

@jalehman

@jalehman jalehman commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

With the Gateway parts in place, an owner still needs a way to use OpenClaw ID from the Control UI: sign in, turn on remote access for a claw, keep the recovery kit, approve their other browsers, and invite and manage people. This PR adds those Control UI surfaces and the bundled Access plugin.

User Impact

No user-visible change while the gateway.openclawId.enabled Labs switch is off (the default): the account menu, dialogs, the Labs entry's dependent surfaces, the gateway.openclawId settings, the Access page and its plugin catalog entry, grants and asset routes are all absent.

With the switch on, owners get:

  • Account menu (sidebar avatar): Sign in with OpenClaw ID, Turn on remote access, Your devices, Copy claw link, Sign out of OpenClaw ID, depending on the connection and setup state. Members see their own account and role, and no Access or setup actions.
  • Turn on remote access: choose a claw name, create and save the recovery kit (download, print, or save to 1Password), then link. Each linking step reports its own progress and failure.
  • Owner approval: approve a new owner browser from an existing one with a short authentication string (SAS) check.
  • Your devices: list approved owner browsers and remove one; the confirmation names that device and any devices removed with it.
  • Access page (bundled openclaw-id-access plugin, under Pages, titled Remote access): who may reach this claw through OpenClaw ID. Its People section invites by email, approves or denies requests, shows members' devices and activity, and removes members. A one-line pointer sends readers to Settings → Devices for devices paired with the Gateway.

There is no owner reset in this version; the docs say so.

Why This Change Was Made

Builds on the Gateway core PR (#192335) and the tunnel and sign-in PR (#192345), both merged. It is the last PR of the Gateway split of the OpenClaw ID stack.

  • ui/src/lib/openclaw-id/**: browser-side account storage and sign-in popup, link ceremony steps, recovery-kit export, owner device keys (non-extractable WebCrypto Ed25519 in IndexedDB), owner-approval SAS, device mail and remote sign-out.
  • Your devices signs each revocation with the claw id and the seq it last read (fix(openclaw-id): replayed revocation removes a device that was approved again #193146), so it covers only the listing on screen; a device approved again since is refused as a concurrent change, and the dialog refreshes.
  • ui/src/components/openclaw-id/**: the account menu, Make reachable, recovery kit, owner approval and Your devices dialogs, with the Control UI's existing menu and modal components.
  • Sidebar and settings: an optional, feature-owned extension of the identity menu (app-sidebar-identity-menu.tsx), the Labs registry entry, and gateway.openclawId hidden from settings search and the config form while the switch is off.
  • extensions/openclaw-id-access/**: the Access page (display name "OpenClaw ID remote access"), a bundled plugin enabled by default whose Control UI module loads only while the switch is on.
  • Gateway: the Control UI document carries a public data-openclaw-id-enabled attribute only when the switch is on; the plugin catalog, tab grants, asset routes and managed-plugin list hide openclaw-id-access while it is off, and a switch change broadcasts plugins.controlUi.changed.
  • New dependency: @1password/save-button 1.3.0 in ui (the recovery kit's Save in 1Password button).
  • Config surface: the plugin config baseline grows from 4,997 to 5,018 entries for the new bundled plugin (docs/.generated/config-baseline.counts.json). The gateway.openclawId core keys landed with the earlier PRs.
  • Docs: docs/concepts/experimental-features.md (OpenClaw ID remote access) and the plugin reference and inventory.
Notes for review
  • The account menu conflicted with main's fix that keeps the profile avatar element stable (fix(ui): phone account menu truncates Help, blanks the avatar and scrolls #189747). The OpenClaw ID initial is rendered inside that stable avatar instead of replacing it.
  • Type assertions in the new browser code either carry // SAFETY: comments or were removed (stepOfKind in the Make reachable dialog, the role select on the Access page).
  • Exports that focused tests use but production does not import have Knip production-scan entries; the full-tree scan still checks them.

Review

An independent review (GPT-6 Astra) found three issues; all are fixed here:

  • Two overlapping "Create recovery kit" requests could show one kit while another root signed the link, leaving a kit that cannot recover the claw. Overlapping requests now share one kit (regression test in link.test.ts).
  • The config editor removed the gateway.openclawId settings even with the switch on, because it filtered the schema a second time without the flag.
  • The owner-approval toast could open its dialog after the switch turned off. It now checks whether the feature is still on.

Later changes on this branch:

  • people-error.test.ts builds its credentialed-URL fixture at runtime (new URL with username/password), so the diff holds no user:password@ literal for secret scanners. The test still checks that such a URL is stripped from diagnostics.

  • docs/concepts/experimental-features.md: clientId is listed with the settings needed to turn on remote access, not as optional. The account menu offers Turn on remote access only after OpenClaw ID sign-in, which needs clientId (ClawSweeper P3).

  • Access page actions reach the Gateway authority from feat(openclaw-id): add Gateway membership authority and publication behind the Labs flag #192335, which decides access; the page grants nothing itself. Invites must be signed by a current owner device (service.invites.test.ts: registration is refused over the mailbox or from an unidentified client); openclawId.people and the authority actions refuse viewers, operators, LAN clients and expired owner devices (people-access.test.ts).

  • Rebased onto feat(openclaw-id): add the tunnel transport, OpenClaw ID sign-in and relayed-device Gateway auth #192345 and main at 258d034391a. main dropped per-row Documentation links from Labs (improve(ui): drop per-row docs links from Labs and config paths from Talk #191418), so the OpenClaw ID Labs row no longer has one and the off-state e2e no longer expects it.

  • Rebased onto main at 49f8a60f227. main now requires an explicit toast severity (fix(ui): require explicit toast severity #192453), so the OpenClaw ID toasts set one: errors are error, sign-in and link copy are success, the reachability offer and approval notice are info, and partial sign-out is warning. Labs labels follow main's renames.

  • The raw config editor's schema filter is now a named helper, omitEditorOwnedConfigLeaves, so config/view.tsx stays within the 700-line cap.

A second independent review (GPT-6 Astra) found one P1 and three P2s; all are fixed here. Each fix has a regression test, and each test fails with its fix reverted:

  • One recovery kit per preparation (P1). Pressing Continue twice in Turn on remote access could start two preparations, save one recovery kit and link with the other. A second press now does nothing while one preparation runs, and a late answer cannot send the dialog back to a step that makes another kit (make-reachable-dialog.tsx).
  • The first owner device key is stored before linking (P2). The browser now keeps its non-extractable owner key before the link is committed, so a link never names a device key the browser has lost. If two tabs race, the first key stored wins (make-reachable-dialog.tsx, device-key.ts).
  • Key storage is reported only after IndexedDB commits (P2). Success waits for the transaction's complete event, so an aborted write is reported as a failure (device-key.ts).
  • Dialogs close when the Labs switch turns off (P2). Turn on remote access, owner approval, Your devices and their notifications close when the switch turns off, and the recovery kit is discarded on close (feature-lifetime.ts).

Repository guards found three more issues, also fixed: sign-in and recovery-kit print windows now open through the Control UI's opener-free window helpers, the owner-approval handoff is typed as JSON instead of using a chained type assertion, and a device-key test mock documents why it does not keep the module's real exports.

  • Screenshots for this PR showed the claw name title and hint in Turn on remote access running together: SettingsRow's styles load only with the Settings pages, and the dialog opens from the account menu on any page. The dialog now imports them (make-reachable-dialog.tsx).
  • Rebased onto main at 5310c71fb32 (now 9977465), because main changed the config baseline and the PR conflicted on its generated hash file. That hash was regenerated; every other file's change is unchanged.
  • People page renamed to Access (9977465, first pushed as 761915c, at Josh's request): the sidebar entry is Access, and the page title and heading are Remote access. The page and route id is now access (plugin?plugin=openclaw-id-access&id=access) and the plugin display name is "OpenClaw ID remote access". Nodes will join this page, the sidebar already has Users, and chat details already has a People section. Invites, approvals and members stay under a People section heading. The plugin id openclaw-id-access and the openclawId.people RPC are unchanged. Labs copy, docs, the plugin inventory and reference page, config-baseline hashes and tests follow the rename. Checks on the Studio: the Access plugin tests, the OpenClaw ID UI tests, the Labs-off and account-menu e2e suites, tsgo:ui, tsgo:test:ui, tsgo:extensions, changed-file oxlint and oxfmt, lint:ui:i18n, check:docs, the plugin inventory check and config:docs:check all pass. The test-line allocation is now 3,662.
  • After the rebase, CI found two docs issues, fixed in 0080431: docs/concepts/experimental-features.md had two "OpenClaw ID remote access" headings, because feat(openclaw-id): add Gateway membership authority and publication behind the Labs flag #192335 had added a short section. This PR's section now carries that section's off-state and configuration-key details, and the page has one heading. The plugin inventory and reference index now count the bundled openclaw-id-access plugin.
  • Rebased onto main at 2394bff0c01 after feat(openclaw-id): add the tunnel transport, OpenClaw ID sign-in and relayed-device Gateway auth #192345 merged (59b8a114bf6). Only the generated files conflicted: the config baseline counts and hashes and the Control UI raw-copy baseline were regenerated on the new base. Every other file's change is identical to the previous head (8f6b458).
  • Rebased onto main at 0a6590652dc (head 9cbe690). Earlier, only the performance budgets conflicted, because main lowered its boot JS ceilings (improve(ui): stop loading unused CJK tables during boot #194241); the budgets below are measured on the current base.
  • CI fixes. Core lint's new typescript(unbound-method) rule flagged device-key.test.ts; the test now calls the real IDBObjectStore.add through Reflect. The Control UI performance check found larger Chat and New Session boot graphs: config-sections.ts is in them, and its new visibleConfigSchema helper imported view-schema.tsx, which pulled the config form analyzer into boot (+6 KiB gzip and two more Chat requests). The helper now lives in config-page-state.ts, which only Settings loads.
  • Performance budgets (approved by Josh Lehman). main at 0a6590652dc already exceeds its own Chat, New Session and largest-chunk ceilings. On it, this branch measures Chat boot JS at 1,288,774 B, New Session boot JS at 797,124 B (Linux CI) and the largest shared chunk at 560,277 B gzip; those ceilings are now the measurement plus 256 B for main's concurrent growth. Total CSS measures 325,045 B gzip / 1,675,690 B raw; its ceilings are the measurement plus 64 B. What this PR adds is the lazy OpenClaw ID sidebar mounts, the sign-in callback check in main.ts and the account menu styles. Request counts stay within their existing limits.
  • Your devices copy. Remove access is offered only for other devices, but its confirmation said "This browser loses access now". It now names the device being removed (owner-devices-dialog.test.tsx; the test fails with the fix reverted).
  • Default name check (ClawSweeper P3). Turn on remote access fills the link code from the signed-in account, then checks the default claw name. Solid settles the code signal later, so the check read an empty code and never asked the Gateway; it now receives the acquired code directly (make-reachable-dialog.test.tsx expects the check_name request and fails without the fix).
  • kit-export.test.ts only repeated the helper's text and is removed (ClawSweeper); recoveryKitLines is now module-private and its Knip entry is gone.

Live proof on a staging Gateway

The studio lab Gateway, one of the four testnet Gateways, runs this PR's head 9977465 against staging Discovery and the claw loader on main's protocol (discovery#4 and claw-loader#4, then their #5 preview-access changes). The later commits (from the lint fix to 608a551) change tests, the config page's import graph, one confirmation string, the initial name check and the performance budgets; none touches the Access page's signing or the Gateway. Hostnames, invite secrets and the request location are redacted.

  • Upgrade. This build requires the agent database at schema v40; openclaw doctor --fix migrated it from v39. Afterwards the claw's link, root, owner devices with their approvers, members and invites matched a copy taken before the upgrade, and the new Discovery accepted its snapshot with protocols {"statement":[1],"descriptor":[1]}.
  • Owner, over the tunnel, on Access. Created an invite (an InviteCap signed by this browser's owner device). The member's request appeared on Access 840 ms after it was sent, with no refresh. Approve (a MembershipChange add) admitted the member, who reached the Control UI 5 s later. Remove closed the member's tunnel connection.
  • Member, over the tunnel. No Access page. GET /_openclaw-id/v1/membership returned 403 not_owner_device; POST /_openclaw-id/v1/statements with an add_owner_device change signed by the member's own key returned 403 not_an_owner. The seq did not change.
  • Signers. The Access page's InviteCap and MembershipChange statements were sent to the same authority from four signers. A root-listed owner device S1 registered an invite and approved device S2, which the Gateway recorded as approved by S1. A key that was never listed, S2 after the root revoked it, and S3 after its certificate expired were each refused with not_an_owner, for the invite and for the change; S3's invite had been accepted before it expired. After every refusal the seq, owner devices and invites were unchanged.
  • Your devices and device approval. Browser A enrolled with the recovery kit and approved browser B by matching codes. Your devices showed B as approved by A and, on Remove access for A, named B as removed with it. The removal closed both tunnels; both browsers were refused on reconnect; Discovery's relay admission refused both keys and still admitted the owner's and the claw's; Discovery's snapshot verified and lists only current devices.

Access page: a pending request with Approve and Deny.

Access page with a pending request

After Approve: the member is listed with Remove.

Access page with the approved member

Approving a new browser: the code the owner compares (claw loader).

Approval code on the approving browser

Your devices: the removal preview. Taken at 9977465, before the copy fix above, so it still says "This browser loses access now".

Your devices removal preview

A removed browser is refused.

A removed browser is refused

Evidence

  • On 608a551, on a macOS arm64 host through Crabbox: the OpenClaw ID UI tests (17 files), pnpm tsgo:ui, tsgo:test:ui, changed-file oxlint and oxfmt and pnpm deadcode:exports pass, and the name-check test fails with its fix reverted. On 8751edc, pnpm ui:check-performance:base fc53c551f5e measured the budgets above. On the same commits rebased on 6f3cd220d44: the OpenClaw ID UI and config page tests (74 files), the Labs-off and account-menu e2e suites, pnpm tsgo:ui, tsgo:test:ui, changed-file oxlint and oxfmt, lint:ui:i18n, ui:i18n:verify, config:docs:check, check:docs, the plugin inventory check, mock exports, the performance script tests and the base performance check pass. With the Your devices copy fix reverted, its test fails.
  • On 0080431, on the same host: pnpm check:docs (formatting, markdownlint, MDX, links, config examples) and the plugin inventory check pass.
  • On 25d1354 (the styles fix above), on the same host: the Labs-off and account-menu e2e suites, the OpenClaw ID dialog tests and pnpm tsgo:ui pass.
  • On 3da34a9, on a macOS arm64 host through Crabbox: the OpenClaw ID UI tests (18 files), the Access plugin and the Gateway Control UI bootstrap, document and plugin-asset tests pass. pnpm tsgo:ui, tsgo:test:ui and tsgo:core pass, as do oxlint and oxfmt on the 108 changed code files, the mock-export, raw-window.open, chained-assertion, Control UI i18n, config-docs, unused-export and Madge checks. On the previous head, each of the four review fixes above was reverted in turn and its regression test failed.
  • pnpm test over the 34 test files this PR adds or changes (UI unit, browser and e2e suites, the People plugin, and the Gateway Control UI bootstrap, document and plugin-asset tests): 37 files, 316 tests passed (with management-service.test.ts).
  • Labs switch off: openclaw-id-off.e2e.test.ts drives the built Control UI in Chromium with the switch absent and with it false. Across the shell, Pages, the account menu, Settings, Labs and the command palette it finds no OpenClaw ID copy or elements, loads no OpenClaw ID, recovery-kit or 1Password assets, and sends no config writes or chat requests; an unsent draft survives; control-ui-plugin-assets.test.ts checks that the plugin catalog, grants and asset routes disappear at once when the switch turns off; the bootstrap tests check the document attribute is absent.
  • pnpm tsgo:core, pnpm tsgo:ui and pnpm tsgo:extensions passed. pnpm ui:i18n:verify passed after regenerating the raw-copy baseline (two recovery-kit strings). pnpm check:changed: see the comment below for the run on the published head.
  • Test-line ratchet: config/test-lines-allocations/openclaw-id-ui-people.txt allocates exactly the 3,667 test lines this PR adds (new tests for new surface).
  • Staging: see the live proof above.

CI failures inherited from main

These fail on main itself and are not caused by this PR (which touches none of the inputs):

  • deep-research plugin build. On main, extensions/deep-research/browser/index.tsx and pane.tsx import ./client.js, which 097f990 ("retire unused research browser client") deleted before feat(research): add native session research pane #177232 added the imports. The plugin asset build, tsgo:extensions and the deep-research e2e fail with Could not resolve "./client.js" / TS2307: build-artifacts, check-prod-types, checks-node-changed, checks-node-changed-compact-small-*, checks-ui-e2e (deep-research shard) and PostgreSQL conformance (its build step).
  • Test-line ratchet. main at 0a6590652dc alone reports over by: 52; net delta: 0. Tree is over the ceiling; this change does not add test lines (main's CI skips this job). This PR's allocation equals the test lines it adds.
  • chat-goal-replace.e2e.test.ts fails on main 0a6590652dc on a macOS arm64 host as well.
  • On the previous head, chat-composer-overflow.browser.test.tsx, chat-composer-display-snapshot.e2e.test.ts and settings-layout.e2e.test.ts failed in CI; all three pass on both main and this branch on a macOS arm64 host, and main fixed the settings-layout locator in fix(ui): update agent menu title selector in layout test #194277.

control-ui-performance was this PR's and is fixed by the approved budgets above.

Screenshots

Taken from the built Control UI in Chromium on a macOS arm64 host, with a mocked Gateway and a synthetic account ([email protected], claws.example.test). The menu shots are from 3da34a9; the Turn on remote access shots include the styles fix in 25d1354.

Before: Labs switch off (the default). The account menu has no OpenClaw ID section; openclaw-id-off.e2e.test.ts checks this across the shell.

Account menu with the Labs switch off

After: switch on, signed out, then signed in on this computer.

Account menu offering Sign in with OpenClaw ID

Account menu signed in, offering Turn on remote access

Turn on remote access, name step (light and dark).

Turn on remote access dialog, light

Turn on remote access dialog, dark

Remote access on: desktop (dark) and phone width.

Account menu with remote access on, dark

Account menu with remote access on, phone width

Not shown here: the recovery kit step (it displays a generated secret). The Access page, approval and Your devices are in the live proof above.

@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here.

Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update.

Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it.

View the workflow run.

@jalehman

jalehman commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Local pnpm check:changed --base HEAD~1 on 6a53361dea4 (stacked on #192345): two checks failed, both inherited from main:

  • Knip dead-export scan: ui/src/pages/systems/systems-sidebar.tsx: systemKind. A rerun of the scan on this head reports only that export.
  • Lint: max-lines errors in six files this stack doesn't touch: extensions/anthropic/cli.runtime.ts, extensions/codex/src/app-server/event-projector.ts, extensions/crabbox/src/crabbox-worker-node-enrollment.test.ts, extensions/oc-path/src/cli.test.ts, extensions/tlon/src/monitor/index.test.ts and src/agents/plugin-model-catalog.ts.

pnpm tsgo:ui, tsgo:extensions, tsgo:core, the UI test typecheck shards, ui:i18n:verify, the config docs baseline and the test-line ratchet passed.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts size: XL labels Nov 3, 2026
@jalehman

jalehman commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@jalehman
jalehman force-pushed the openclaw-id/pr-ui-people branch from 6a53361 to c8db556 Compare November 3, 2026 22:46
@jalehman

jalehman commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Pushed c8db5568ee3: regenerated the plugin inventory docs (pnpm plugins:inventory:check now passes). No code changes since 6a53361dea4.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 3, 2026
@jalehman
jalehman force-pushed the openclaw-id/pr-tunnel-signin branch 2 times, most recently from 530a604 to 7c7e47b Compare November 4, 2026 09:15
@jalehman
jalehman force-pushed the openclaw-id/pr-ui-people branch from c8db556 to 5367189 Compare November 4, 2026 09:18
@jalehman

jalehman commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Adds Labs-gated account actions, remote-access setup, recovery-kit saving, browser approval, device management, and an Access page.

Example: An owner invites [email protected] as an operator.

  • Before: The Gateway supports signed membership changes, but the Control UI has no invitation workflow.
  • After: The owner creates an invitation on Access, approves the request, and can later remove the member.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful implementation with inspected live evidence for Access, but local approval authority proof and attribution of failing current-head checks remain unresolved.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Owners need an in-product way to configure remote access, retain recovery material, approve browsers, and manage invited people.
Reason: The feature completes already-merged foundations, remains opt-in, and its direction is established by the maintainer-authored change.

Merge readiness

⛔ Blocked before merge - 3 items remain

This PR completes useful, maintainer-directed UI for the merged OpenClaw ID foundations; the previous name-check finding is fixed, and no new discrete correctness defect was established.

Priority: P2
Reviewed head: 608a551cc82a78e25f6033728bd053d34cedaa85

Before merge

  • Add real behavior proof - Authority-chain proof required: inspected staging screenshots and recorded outcomes cover Access invitations, approval, removal, forbidden signers and removed-browser rejection at 9977465. The SAS screenshot exercises the claw loader; the new local Control UI notification, dialog and owner-approval.ts path still has mocked transport coverage. Supply sanitized live output or a recording with diagnostics showing successful local approval and rejection when the approver is revoked or expires before membership submission or sealed handoff; redact credentials, IPs and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security review attention item - No concrete authorization bypass was established, but local-approver final-effect coverage remains incomplete.
  • Resolve merge risk - Before merge, the PR owner must establish that a revoked or expired local approver cannot admit another browser or release its sealed handoff.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied staging proof does not show the new local Control UI approver succeeding and then refusing membership submission or sealed handoff after its authority is revoked or expires.
Agent review details

How this fits together

The Control UI and bundled Access plugin turn owner actions into browser-signed requests; the existing Gateway membership authority decides admission and enforces removal.

flowchart LR
  Owner[Owner browser] --> UI[Account menu and dialogs]
  Owner --> Access[Access plugin]
  UI --> Keys[Browser owner keys]
  Access --> Keys
  Keys --> Gateway[Gateway membership authority]
  Gateway --> Discovery[Discovery mailbox and publication]
  Gateway --> Tunnel[Tunnel admission]
Loading

Technical review

Best possible solution:

Complete the Labs-gated UI over the existing Gateway authority while preserving browser-held keys and feature-off behavior.

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

This is a feature addition; current main contains the Gateway foundations but lacks these Control UI surfaces.

Is this the best way to solve the issue?

The UI adapters and bundled Access plugin appropriately reuse the existing membership authority; the simplification pass found no concrete need for replacement architecture.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Verify local approval at the final effects (recommended)
    The PR owner supplies allowed-browser approval and revoked-or-expired approver rejection through the local Control UI, including membership submission and sealed-handoff delivery.

Provenance checked

  • Gateway membership and feature-off contract keeps the original intent (428ca7d: Establish one Gateway membership authority behind the disabled-by-default Labs switch.)
  • Account-menu avatar and layout keeps the original intent (e40ffa3: Keep the avatar node stable across menu rebuilds and preserve readable phone rows.)
  • Native bundled plugin UI keeps the original intent (de50262: Allow native bundled plugin UI without requiring the custom-plugin Labs opt-in.)
  • Control UI performance ceilings changes intended behavior with a stated reason (8751edc: Existing ceilings constrain boot growth; the current maintainer explicitly accepts measured sidebar and account-menu overhead with bounded headroom.)

Testing

Proof path: shipped entry point.

Security

Needs attention: No concrete authorization bypass was established, but local-approver final-effect coverage remains incomplete.

Evidence

What I checked:

Likely related people:

  • Josh Lehman: Raw commit 428ca7d adds src/gateway/openclaw-id/device-mail-relay.ts:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 428ca7daffc9; files: src/gateway/openclaw-id/device-mail-relay.ts)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is an opt-in feature completing usable remote-access management, without evidence of an urgent released regression.
  • merge-risk: 🚨 security-boundary: The new local browser flow signs owner-device grants and releases enrollment material across a device trust boundary.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Prove successful local Control UI approval and final-effect rejection after approver revocation or expiry.
  • Have the CI owner classify the failing current-head checks from their diagnostics before assigning repairs.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-11-04T09:39:12.997Z sha a93e0c5 :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-05T22:33:00.598Z sha 2cf0aed :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-06T01:05:42.091Z sha 90a2c76 :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-06T15:00:47.504Z sha 25d1354888eb7a65af51716223f4c63167535df8 :: needs real behavior proof before merge. :: [P2] [P2] Regenerate the complete plugin inventory
  • reviewed 2026-11-06T15:17:05.853Z sha 0080431a0d3dac8940961f08e3efc7a06c109efe :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-06T15:42:15.973Z sha 9977465 :: needs real behavior proof before merge. :: [P2] [P2] Restore the existing Control UI boot asset budgets
  • reviewed 2026-11-06T18:13:39.122Z sha dfa0d582e27dba7abe7438ff795c2abefe50f842 :: needs real behavior proof before merge. :: [P3] Pass the acquired link code directly to the initial name check
  • reviewed 2026-11-06T18:24:34.347Z sha 8751edc :: needs real behavior proof before merge. :: [P3] Pass the acquired link code directly to the initial name check

Reviewed November 6, 2026, 1:48 PM ET / 18:48 UTC (Revision 10).

@jalehman
jalehman force-pushed the openclaw-id/pr-ui-people branch from 5367189 to a93e0c5 Compare November 4, 2026 09:31
@jalehman

jalehman commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 4, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 4, 2026
@jalehman

jalehman commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants