Skip to content

feat(openclaw-id): Move to new keys and key warnings in the Control UI - #196456

Merged
jalehman merged 13 commits into
mainfrom
feat/ocid-rebind-control-ui
Nov 11, 2026
Merged

jalehman merged 13 commits into
mainfrom
feat/ocid-rebind-control-ui

Conversation

@jalehman

@jalehman jalehman commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Inherited failures — November 11

At exact PR head caeec22cb022cc6159a86210bf9febf3030b34da, CI run 42958044169, attempt 1 remains failed, not green. Five UI E2E shards failed 18 cases in 11 files. A bounded offline comparison ran only these 11 files, exactly once per head:

  • Main without this UI PR: ea1a0dd431ab554f263c58f328b6d94fe4094666 — 41 passed, 18 failed, zero skipped; 311.7 seconds.
  • UI candidate: caeec22cb022cc6159a86210bf9febf3030b34da — 41 passed, 18 failed, zero skipped; 314.6 seconds.
  • The same 18 cases failed on both heads. All 18 full failure messages were identical after only checkout-root and ANSI-format normalization. Zero PR-only or main-only failures. Both tracked source trees remained clean and pinned.
File under ui/src/e2e/ Main passed / failed PR passed / failed Disposition
agent-channel-runtime-status.e2e.test.ts 0 / 1 0 / 1 Inherited
agent-identity-save-status.e2e.test.ts 0 / 1 0 / 1 Inherited
agent-model-fallback-ownership.e2e.test.ts 0 / 6 0 / 6 Inherited
agent-page-scope.e2e.test.ts 0 / 2 0 / 2 Inherited
chat-cold-load-anchor.e2e.test.ts 2 / 1 2 / 1 Inherited
chat-composer-capability-menu.e2e.test.ts 13 / 1 13 / 1 Inherited
chat-flow.navigation-presentation.e2e.test.ts 8 / 1 8 / 1 Inherited
config-form-integrity.e2e.test.ts 2 / 1 2 / 1 Inherited
plugins-config-mutation.e2e.test.ts 0 / 1 0 / 1 Inherited
session-sources.e2e.test.ts 4 / 2 4 / 2 Inherited
settings-loading-skeletons.e2e.test.ts 12 / 1 12 / 1 Inherited

The observed failures include missing Agent settings controls/30-second waits, sidebar ordering, Camera where Skills was expected, two exact Worked for 3m matches, and session-source loading/count expectations. The hosted failed jobs are 1/7, 2/7, 4/7, 5/7, and 6/7. The aggregate CI gate is downstream of these failures.

Limits: This was an 11-file slice, not a replay of the full hosted shards or their preceding tests. Actual launcher/fork workers used Node 24.22.1, Playwright 1.64.1 / Chromium 1248, isolated forks, the four-worker bundled cap and one-worker serial cap, and unchanged timeouts. The local shared Linux host had 16 logical CPUs and about 64 GiB memory, with tested processes restricted to CPUs 0–3; hosted CI reported four CPUs and about 16.6 GB capacity. Cold caches, test ordering and resource pressure differ. Hosted CI tested synthetic merge 299d228940755abcdd5b3a253445656412e2b1c9 onto 31d0a5420bcb414ca6d4d018d8fdcde2f82954ae; that synthetic merge was not locally reproduced. The requested raw heads above were used, with no third run. Root cause remains unknown: these observations do not distinguish stale tests from a product regression already present on main, and are not a flakiness claim.

The complete local reports, logs and case-by-case comparison are retained operator-locally in local-e2e-attribution/; they are not hosted attachments. The coordinating maintainer accepted the concrete inherited-failure attribution and directed landing through the native pre-existing-failure route under Josh's scoped landing approval. No CI retry, source/test/timeout repair, extra review or additional live proof was performed. Other review/security/exact-head gates remain enforced; this is not a declaration that CI passed. Main's E2E breakage is a separate work item, not repaired in this PR.

Authorized landing — November 11

Parent #196388 landed as 5f2f21a7ee193fdd4aa8ac42a407eefc04905255 through the approved inherited-ratchet route. Its landed patch and all 49 changed files were independently verified identical to the reviewed candidate.

This UI branch is now caeec22cb022cc6159a86210bf9febf3030b34da, rebased onto main ea1a0dd431ab554f263c58f328b6d94fe4094666. All 13 UI-only commits have identical stable patch IDs, with the same 43 changed files; git diff --check passed. The update used an exact expected-head lease against 0613286b55883e15ffb8388dbef2b012d5911fd5.

Josh approved the two-PR landing sequence. After the new-head CI failure and the bounded comparison above, the coordinating maintainer accepted the inherited-only disposition and directed native inherited-failure landing of this exact UI head. CI remains failed; the exception does not waive independent review or security gates. No UI merge or Gateway deployment is claimed by this pre-landing update. Existing source-scoped reviews and proofs retain their actual tested revisions and limitations. The earlier locally unreproduced fanout failure and all single-retry receipts below remain historical evidence, not a claim that this new head has passed CI. No additional review request, live proof, test matrix, assertion change or retry was made for this patch-identical rebase.

Installation API rate-limit reruns — November 11

Each job below failed solely with the independently inspected GitHub installation API rate-limit error. The coordinator authorized one retry per affected job after at least 60 minutes from its logged failure; this is an elapsed-time disposition, not proof of a response-header reset. Head, terminal original workflow, original attempt 1 and retry receipts were checked before submission. Grouped requests were restricted to workflows whose failed-job set exactly matched the approved IDs; successful/skipped job records retain their original execution timestamps. Each listed retry budget is now spent (1/1).

All timestamps are UTC on November 11. Every listed upload retry passed. Results below include terminal completion times; the original installation rate-limit failures remain disclosed.

Original job Logged failure Retry accepted Actual attempt-2 job Observed result
130266028581 · Scan changed paths (precise) 2026-11-11T01:54:16.5885919Z 2026-11-11T02:54:35.695062+00:00 130289187799 success · 2026-11-11T02:55:43Z
130266346094 · Security High (core-auth-secrets) 2026-11-11T01:57:29.4884705Z 2026-11-11T02:57:31.838295+00:00 130290212060 success · 2026-11-11T02:59:40Z
130266345937 · Security High (channel-runtime-boundary) 2026-11-11T01:57:07.5561802Z 2026-11-11T02:57:31.838295+00:00 130290211785 success · 2026-11-11T02:59:40Z
130266345925 · Security High (network-ssrf-boundary) 2026-11-11T01:57:06.2522198Z 2026-11-11T02:57:31.838295+00:00 130290212084 success · 2026-11-11T02:59:15Z
130266345942 · Security High (mcp-process-tool-boundary) 2026-11-11T01:57:29.1966360Z 2026-11-11T02:57:31.838295+00:00 130290211933 success · 2026-11-11T02:59:55Z
130266345976 · Security High (plugin-trust-boundary) 2026-11-11T01:57:13.0211394Z 2026-11-11T02:57:31.838295+00:00 130290212088 success · 2026-11-11T02:59:35Z

All six approved upload jobs have now received their single authorized retry. The final group was submitted at 02:57:30.081649 UTC, after every individual 60-minute eligibility time. No upload retries remain unspent. The separate one-time receipt-fanout rerun remains governed by its unreproduced-failure disposition below.

Current qualification — November 10

Historical head: 0613286b55883e15ffb8388dbef2b012d5911fd5, then stacked on #196388 at ea630d2be76073af022d9622a7536d6c57353a3f. This checkpoint is superseded by the authorized landing section above. The parent has landed and the coordinator released both landing holds after Josh’s approval. UI landing still requires qualification of the rebased head; Gateway deployment remains a separate coordinator-owned step. Previous-head 0613286 CI completed: the single UI rerun and all six approved upload retries passed, with no failed or pending checks in the 03:08 UTC readback. The rebased current head and inherited-failure CI disposition are identified above. Historical results below retain their actual tested revisions.

Parent lifetime-guard restack

Restacked onto the queued durable-write lifetime repair in #196388. All 13 UI commits are patch-identical (git range-diff reports every commit unchanged); no UI source repair, repeated local matrix or new UI review request was made. The existing clean UI review is retained. This head gets normal CI only. The separately authorized parent live proof on exact ea630d2be760 passed and cleanup was independently verified on November 11 at 02:40 UTC (redacted receipt). It proves the parent local-RPC/relayed/lifetime boundaries, not a current-head Control UI recovery-menu execution. The parent CI disposition and landing hold were subsequently resolved by its authorized native merge, as recorded above.

CI-only receipt-fanout failure on 0613286: locally unreproduced

The original checks-ui (3/3) failure was chat-receipt-fanout.test.ts → keeps unchanged tool work and disclosure state while dispatching current file actions: the initial wait expected two .chat-tool-row__toggle elements and observed zero. The job reported 8,904 tests passed and one failed.

The authorized bounded comparison ran only this file, five times on current head 0613286b55883e15ffb8388dbef2b012d5911fd5 and five times on exact stack base ea630d2be76073af022d9622a7536d6c57353a3f (the commit before the first of the 13 UI commits). Both revisions passed 5/5 executions, four cases each: 20/20 per revision, 40/40 total. The tests/assertions, source and dependency versions were unchanged; both checkouts stayed clean.

The comparison used the checksum-pinned CI Bun fork 1.4.4-canary.1+191755ec1, Node launcher 24.22.1, forks, isolation, maxWorkers=3, CI=true and all four UI Bun environment settings. It did not replay preceding shard files, hosted two-vCPU resources or prewarmed CI caches. Shard slicing was omitted to select only the authorized file.

The shared application-context fixture change adds only a no-op refreshOpenClawId method to the empty sidebar-attention store. It changes no existing entries, subscriptions, normalization condition or tool data. Its callers are sidebar/key-recovery controls; the tool toggle renders from linkedRow(). Test, renderer and relevant render/fixture helper blobs are identical between the two revisions. No direct mechanism from the added no-op field to the missing toggle was found. The cause is unknown, and a broader interaction has not been excluded. This is a CI-only, locally unreproduced failure, not an inherited-failure or flakiness claim.

The coordinator authorized one checks-ui (3/3) rerun after this evidence was recorded. The job-specific request was accepted at 02:47:54 UTC, 2026-11-11; actual retry job 130286797113 is workflow attempt 2 at the unchanged head. Passed at 02:55:41 UTC on November 11; retry budget 1/1 spent. The original CI-only failure remains UNREPRODUCED. Its cause is still unknown and a broader interaction has not been excluded; the passing retry is not an inherited-failure or root-cause claim. No additional local matrix, assertion change or repeat rerun is authorized. Evidence and ten raw per-run reports are operator-local under ui-0613286-fanout/, not hosted artifacts.

Three-test disposition on 829e19d639a0

The original normal CI run 42885829576 failed two cases. Exactly one authorized rerun of failed jobs passed. Nine authorized concurrent local matrix executions completed against candidate 829e19d639a0 and pinned main 6d811790acb43c46e3a7c950f22c3bed22b17f17: seven passed; two failed only the matching layout-shift cases below. No additional matrix or CI rerun was performed.

Test Observed evidence Disposition
Attachment focus Original failure; authorized rerun pass, 4195 ms; all five local executions passed. UNREPRODUCED. Original cause remains unclassified. No matching main-history failure was found; do not call this a flake or inherited failure.
Fast/Ultrafast quick-thinking persistence Original failure; authorized rerun pass, 3782 ms; all four local executions passed. UNREPRODUCED. Original cause remains unclassified. No matching main-history failure was found; do not call this a flake or inherited failure.
Settings-exit layout shift Candidate and pinned main each first passed 635 cases, then each repeated with 633 passes and the same two failures: /usage and /templates → /settings/model-providers, 1280 px, sidebar-footer-build, shift 0.00004839366277058919, assertion 140:28. Main-shared intermittent failure, not a PR-caused failure in this comparison. No font/timing root cause or matching hosted-main failure is established.

Limits: the attachment/quick-thinking history audit covered 20 terminal main runs and 10 other-PR runs, with only one main execution of each target (both passed). The additional 20-run layout audit found two actual main-source passes, 15 skipped UI matrices, two no-job runs and one different-checkout dispatch excluded from main credit. Absence outside these samples is unproven. Local shared-host resources are not hosted CI resources or synthetic merge sources. Eighteen relevant settings/build/footer/style/test owner blobs are identical across candidate, stacked base and pinned main. The shifted element alone does not establish causality.

Disabled-feature notification repair

A separate PR defect was verified: the disabled refreshOpenClawId() branch published even when keyAttention was already null. The production projection invalidates on each publication, so this caused unnecessary subscriber work. The owner now publishes only when it actually clears an existing attention item; generation invalidation and all asynchronous scope checks remain unchanged. This is not claimed to fix or explain the main-shared layout shift. No layout, copy, dependency, timeout, assertion weakening or performance allowance change was made.

  • Regression-first: the real public store subscription failed on 829e19d639a0 with two unwanted notifications. With the fix, it observes one clear notification, then no repeated disabled notifications or RPCs.
  • Focused/related tests: 37/37 across two files, 1.56 s local run duration. The changed six-case file contributes about 22 ms of test time in that run. New-head CI duration is not yet available.
  • Format, type-aware lint (zero warnings/errors), UI types, all eight UI/test type shards, controller guard, test-line and max-line ratchets, and staged diff checks pass.
  • New test allocation: 10 lines, exactly the existing regression's net growth; shared scalar and unrelated allocations unchanged. Production delta: +2 net lines.
  • Independent OpenClaw Astra delta review: no verified P0–P2 findings against 829e19d639a0; eight frozen input hashes matched the final committed source. Narrative read-only review, not helper-certified isolation or a fresh review of the original 42-file PR. The reviewer did not rerun tests.
  • Review limit: the pre-existing pending-reply assertion does not prove an RPC was already in flight before disable (refresh first yields at import). No new in-flight cancellation proof is claimed; the scope/generation checks are unchanged.

Evidence is operator-local under /tmp/ocid-rollout-evidence/, not downloadable GitHub artifacts: ui-829e-three-test-disposition.md; ui-829e-concurrent-repro/expanded-matrix-report.md and parent-r02-r03-verification.json, parent-r04-r06-verification.json, parent-r07-verification.json; ui-829e-flake-history/report.md; ui-829e-layout-attribution/report.md, summary.json, source-proof.json, parent-verification.json, SHA256SUMS, SHA256SUMS.external; ui-disabled-notification-red.log, ui-disabled-notification-green.log, ui-disabled-notification-gates.log, and ui-disabled-notification-review/review.md with its frozen manifest. Earlier screenshots and integrated staging proof below remain historical, not new-head live proof.

Earlier settlement and menu repair

  • A committed move with a follow-up failure remains committed: show the warning/next step, close the completed plan and do not cancel or rotate again.
  • Owner People events refresh the open menu. A rejected refresh retains an established warning and remedy within its owner scope; client/revision replacement retires that scope without leaking old warnings or late replies.
  • The feature-gated Inbox read now imports its non-JSX helper/catalog only when needed and checks current ownership again before dispatch. The same warning icon retains var(--warn) through inline styling; only the redundant PR-owned CSS rule was removed.
  • No new cache, retry, artificial delay, dependency change or budget increase. Exact new test allocation: 186.

Earlier validation on 829e19d639a0

  • Fresh independent Astra review of the complete thirteen-file repair: no verified P0–P2 findings, earlier rejected-refresh P2 resolved. Narrative read-only review, not independently executed tests or helper-certified isolation.
  • Reviewed patch SHA-256 fdc634cc1cee216c6d5ab85e63c9c1a4ec9dea7430e6ba94d91d0fc8051b552a exactly matches the final repair commit after restacking. All UI source blobs remain byte-identical to the reviewed/tested candidate. Range-diff: ten identical commits, one parent type-import context adjustment, one documentation-only availability conflict resolved while retaining parent warning guidance.
  • Final-head rerun: 103/103 focused menu/dialog/Inbox tests across eight files, 12.45s, plus UI and owning test types. Shared signing 5/5, registered CLI 8/8, browser rebind library 6/6, three shards 6.29s.
  • On the identical reviewed UI source: targeted lint, controller/manual-import guards, style, format, allocation and diff checks pass. Source-map readback confirms the emitted menu and owner repairs. Existing screenshots/Chromium results below are historical, not new final-head visual/live proof.

Paired performance — no allowance increase

Official pnpm ui:check-performance:base 6d811790acb43c46e3a7c950f22c3bed22b17f17, Node 24.22.1, both sources built: exit 0, 130.005s. All approved deltas and hard caps pass.

Normalized gzip bytes Current main Repaired UI Growth Approved growth
Chat boot JS 1,300,641 1,301,131 490 2,580
New boot JS 803,181 803,664 483 2,522
Largest ordinary JS 564,489 564,972 483 2,527
Total CSS 328,859 328,859 0 0

Chat/New boot request counts remain 20/15. This defers feature cost rather than deleting it: the whole asset catalog adds two JS assets and +791 raw/+5,381 normalized-gzip bytes versus the pre-reduction candidate. No interaction-latency, CPU or memory improvement is claimed. This source-equivalent paired build predates the mechanical restack; it is not a final-commit build-ID attestation.

Historical CI failures reproduced on current main

Pinned main 6d811790acb43c46e3a7c950f22c3bed22b17f17, Node24.22.1/pnpm12.15.0:

  • ui:i18n:check: same catalog fallback baseline drift, exit1. On main the saved source hash is 0999ee373eae84ab19cad775db7ce861e98c3f0b139b5e1580d8a17fffcf2380, actual c32faa5257b56d5897d79b338dd1bafc03133e5140b738e4ab36122296e90ce6. scripts/control-ui-i18n-verify.ts and the fallback artifact are unchanged between the historical PR and tested main. The PR also adds English copy; additional PR-induced generated drift remains unquantified. No foreign locale artifact was rewritten.
  • QA smoke2/6: subagent-completion-direct-fallback, [public:visible] timed out after 60000ms, same terminal bus kinds. Full profile:2 passed/1 failed,143.89s.
  • QA smoke3/6: subagent-empty-completion-recovery, timed out after 60000ms, same terminal bus kinds. Full profile:2 passed/1 failed,157.95s.
  • QA source tree is identical (d362e436205ddebd93e3850cd837af0d8e9dfd0f), selected cases/order match; actual main executions—not skipped hosted lanes—establish these signatures. Host/runtime-envelope differences remain; no flakiness or exhaustive root-cause claim.

The older draft/manual workflow failures are not final-head CI. The disclosed normal CI rerun on 829e19d639a0 passed. The notification follow-up needs its own exact-head CI; one hosted reassessment is authorized after publication. Historical integrated acceptance below keeps its original revisions and limitations. Final-head real-relayed/lifetime proof is being coordinated in the parent ceremony lane, not claimed here.

What Problem This Solves

Fixes: on the computer that runs a claw, the Control UI had no way to move it to new keys, and it never said why remote access stopped when a key file was lost or newer keys were published elsewhere. Only openclaw id rebind and openclaw id status could tell or fix that.

User Impact

User impact: the owner can recover a claw with lost or leaked keys from the browser, with the recovery code and their signed-in account. The account menu and system Inbox show each key problem with its fix.

Why This Change Was Made

  • Account menu, this computer only: offers Move to new keys while signed in with OpenClaw ID.
  • Dialog flow:
    • the link code comes from the signed-in account (account_link_code), with nothing to paste;
    • the recovery code typed in the browser derives R, which signs the staged keys' binding;
    • the J7 check of Discovery's published binding runs in the browser;
    • the owner confirms the owner, endpoint and Gateway key fingerprints, then rebind_commit stores the binding and publishes it.
  • Signing owner: signRebind moves from src/cli into the protocol package, so the CLI and the browser share one implementation.
  • Warnings with fixes:
    • keys_refused: a key file is missing or doesn't match;
    • binding_superseded: Discovery lists newer keys;
    • needs_link_code: new keys aren't published yet, with Publish new keys, which also uses the account's code.

Stacked on #196388 (feat/ocid-owner-rebind).

Changes

  • packages/openclaw-id-protocol/src/enrollment/rebind.ts: signRebind, moved from src/cli/id-cli-rebind.ts together with its tests.
  • ui/src/lib/openclaw-id/rebind.ts: prepare/sign, commit, cancel and publish-with-code. A non-kit string is refused before anything is staged.
  • ui/src/components/openclaw-id/move-keys-dialog.tsx: the dialog.
  • account-menu.tsx and identity-menu.tsx: warning rows and actions. The publication state is read from openclawId.people, owner-only, on this computer.
  • docs/cli/id.md: describes the Control UI path.

Evidence

Before / after (signed in, linked, 1280 px): the menu gains Move to new keys.

Before After
before after

Warnings:

Key file missing Newer keys published New keys not published
keys refused superseded needs link code

Dialog:

Recovery code Confirm
recovery code confirm

All data is synthetic, from the mocked Gateway.

Tests:

  • ui/src/e2e/openclaw-id-move-keys.e2e.test.ts (mocked Gateway, real Chromium), 2/2:
    • the three warnings each show their action;
    • the dialog sends exactly account_link_code, rebind_prepare, rebind_commit, and the committed binding is signed by the kit's root with the account's code.
  • ui/src/lib/openclaw-id/rebind.test.ts: real kit signing that verifies under R, a non-kit refused before any request, and another claw's kit refused.
  • account-menu.test.tsx: the warnings appear only on this computer, and Publish uses the account's code.
  • Results:
    • Earlier-head UI unit suites for OpenClaw ID: 79/79;
    • protocol rebind.test.ts: 5/5, moved from the CLI;
    • the existing account-menu e2e test still passes;
    • tsgo:ui, oxlint, stylelint, the controller guard and the i18n baseline are clean.

Review fixes:

  • Dismissal during a running step (P2): Escape or the backdrop during a running check or commit is refused, so a move that completes is never reported as cancelled. move-keys-dialog.test.tsx fails on the previous head and passes now.
  • Signing before confirmation (P2), not changed: the binding is still signed at Check, as in openclaw id rebind. The signature stays in browser memory and is sent only by Move to new keys; Cancel discards it. Signing later would mean keeping the recovery code in memory until confirmation, which is worse custody for no protection gained.
  • Secret handling on close:
    • The kit secret S and the derived seed are byte arrays, zeroed inside signRebind.
    • R is a non-extractable CryptoKey, dropped after signing.
    • The typed recovery code and the signed binding are JS strings, which can't be overwritten. Cancel, close and a finished move release them and scrub the input field.

Not covered:

  • Historical integrated staging evidence appears below; final-head real-relayed and lifetime proof remains outstanding.
  • The new Inbox screenshots have been inspected locally; the images above show the earlier account-menu/dialog surfaces, not the Inbox.

Earlier account-lifetime repair

A checked plan now retains its original account/sign-out custody, rechecked against the account owner's live storage immediately before rebind_commit, including before another tab's storage event. Sign-out/account replacement retires the confirmation and releases the recovery text, code and signed plan. Late Check results cannot republish into a disposed dialog. Fresh-code publication also rechecks custody before sending. The account guard is shared with link-code retrieval rather than duplicating account authority in the dialog.

Retirement after a commit has already been dispatched keeps its settlement visible: success resolves true, and a failure after retirement produces an error notice before resolving false. Labs-off no longer silently disposes a pending commit.

Proof: the re-bind tests now use the real account owner, not a mocked account-code provider. Both cross-tab commit regressions fail before the repair and pass afterward. The focused real-account/menu/dialog suites pass 34/34; the Chromium J7/move-keys e2e passes 2/2. Typecheck, targeted type-aware lint, controller guard and allocation checks pass. Fresh independent review: the feature-disposal finding was repaired and rechecked, with no remaining P0–P2 findings. Existing publication-code retry/persistence is independently covered by Gateway service tests; the menu's forwarding assertion is not claimed as publication behavior proof.

No layout or copy changes in this repair. Existing sanitized dialog/banner screenshots remain applicable. Staging account/Discovery proof and stable-upgrade qualification remain outstanding.

Inbox recovery and asynchronous publication

At d8bbb616302b, missing, mismatched, and superseded keys also appear in the system Inbox on this computer, with recovery guidance and the Move to new keys action. Owner, connection, scope, and Labs changes fence stale reads. Publication settlement refreshes the warning through the existing owner-authorized People event, including refusals without an owner account ID. A successful delayed publication clears the warning; a later superseded binding creates it.

Validation on the reviewed source tree:

  • Gateway publication suite: 10 passed. The deferred-refusal notification regression failed before the repair and passed afterward.
  • Focused sidebar/attention/account-menu suites: 51 passed; account-menu 17 passed again after the final error-wrapper correction.
  • Real Chromium with mocked Gateway: 2 passed, now retaining the warning after commit until delayed publication emits its event.
  • UI typecheck and scoped core/UI type-aware lint passed; the full affected-UI lint retained four existing Solid warnings.
  • Review evidence correction resolved by a fresh independent Astra review of exact commit d8bbb616302b against a6663b26ecc1: no verified P0–P2 findings across the complete 40-file diff. The reviewer confirmed both sides of publication-settlement invalidation, account custody and signer extraction. Report SHA-256 bae89ccb89e9f00ae0a7e61273a831c00397cc288c5070d0171c529f7818c95b; reviewed binary-diff SHA-256 683e43427c2dbd8077e796181c0365da6e3d1f64387ffa385221ee0dff7584f0, independently matched after delivery. This narrative review used instruction-enforced read-only access, not helper sandbox certification. It ran signing smoke assertions and diff checks, not full suites or live proof. It replaces reliance on the earlier unretrievable follow-up report.
  • Exact PR test-line allocation: 767; no allocation added for inherited baseline debt.

The committed tree was verified byte-for-byte against the reviewed patch. These checks do not establish current-head hosted CI or live Discovery proof. The PR remains draft. A separate combined proof branch includes the per-key freshness changes without changing this PR's base. Live staging, replacement-tunnel, and stable-upgrade proof remain outstanding.

Historical same-host bundle budget attribution

Reviewed candidate 5ba2144b8c9d is now published; local, remote branch and PR head match. Independent Astra delta review found no verified P0–P2 issues and confirmed the cold-menu repair. The earlier full review covers 93a5336cbc05; the final review covers its four-file delta, not a rerun of the full review. Review of the first reduction (93a5336cbc05) found a missing stylesheet on cold account-menu recovery; this candidate explicitly imports the shared stylesheet from the lazy dialog. It does not rely on opening Inbox first.

Measurements use separate Studio checkouts, Node 24.22.1, pnpm 12.15.0, frozen dependency installs and pnpm build:runtime. Base and pinned-main builds reproduced their prior measurements. The final repaired candidate was rebuilt. Bytes below are normalized gzip unless marked raw.

Metric Base #196388 a6663b26ecc1 Published d8bbb616302b Candidate 5ba2144b8c9d Pinned main 802f67d8d410 Candidate delta from base
Startup JS 91,884 91,884 91,884 91,888 0
Chat boot JS 1,299,971 1,302,578 1,302,551 1,300,664 +2,580
New boot JS 803,821 806,370 806,343 803,766 +2,522
All CSS gzip 326,469 326,673 326,488 326,509 +19
All CSS raw 1,681,996 1,682,398 1,682,080 1,682,167 +84

On November 10, Josh approved the remaining JavaScript cost for owner warnings that remote access is off or keys have moved, as relayed by the coordinator. Only the measured increase over the actual PR base is added to each exceeded JS cap:

JS cap Before Approved increase After Remaining inherited overage
Chat boot 1,298,697 2,580 1,301,277 1,274
New boot 803,364 2,522 805,886 457
Largest ordinary chunk 564,484 2,527 567,011 274

The largest ordinary chunk measures 564,758 bytes on base and 567,285 on the candidate. No inherited overage is absorbed. No CSS, startup, request-count or dependency limit changes. Both fixed CSS ceilings pass: 326,575 gzip and 1,682,231 raw bytes. Pinned main has a different chat cap and is not the PR baseline.

The reduction removes the custom dialog stylesheet and reuses metadata-row styles, with an explicit lazy import for cold-menu access. It also consolidates warning construction. Signing, recovery-kit derivation and dialog copy were already lazy; they were not the source of boot growth. The remaining increase supplies missing/mismatched/superseded key warnings, recovery actions, and owner/connection-scoped refresh after publication settles.

Validation: the new cold-menu regression first reproduced four unstyled block rows, then passed with the repair. All three Chromium cases pass, covering cold account menu, Inbox recovery and delayed publication refresh against a mocked Gateway. UI typecheck, focused type-aware lint, all 50 performance-checker tests and the exact-base test-lines ratchet pass. Test allocation increases by the regression's 16 net lines; inherited allocation debt is not absorbed. Prior reduction unit coverage was 20/20.

The fresh synthetic cold-menu confirmation screenshot was visually inspected: labels, old/new fingerprints, binding sequence and trailing confirmation action are visible. Evidence: /tmp/ocid-rollout-evidence/cold-menu-green/dialog-confirm-account-menu.png (local, not an uploaded attachment or live Gateway proof). Studio and Linux dialog source SHA-256 match: dda4ea65e0cd27669aa567a452df413876fe0b10be6e980e444f943fbad59750. Hosted exact-head CI and live staging proof remain outstanding. The PR remains draft; passing performance-checker tests do not mean the strict bundle budget passes—the three inherited JS overages remain as disclosed.

Integrated staging acceptance and final cleanup — November 10

This closes the earlier pending same-claw staging run, not exact-head hosted CI or every PR-specific test gap. The isolated Gateway used combined source f864514d93a08efda68c14eabc42768f081af854; the repaired registered CLI used f08fea43c6979223ebf44f8b05020dd3033414ea. These are integrated proof refs, not the individual PR heads.

  • Actual Control UI rotation 1→2 committed and published, preserving the root and admitted native node (studio-ui-rebind-v4-call-result.json).
  • The earlier CLI 2→3 committed but reported failure; that defect remains recorded above/in feat(openclaw-id): move a claw to new keys with its recovery kit (openclaw id rebind) #196388. A deliberately new repaired CLI 3→4 exited 0, reported moved:true/published:true, and authenticated readback confirmed binding/published 4. Root, two owner certificates and membership remained intact (studio-cli4-owner-follow-call-result.json).
  • The same persistent remote owner browser and saved native node followed 3→4 and reconnected after a separate actual Gateway restart. Production SQLite trust load showed pin/freshness 4 before native dialing; system.which(uname) passed (studio-cli4-restart-call-result.json). This does not retroactively prove owner-browser following of each earlier rotation.
  • Actual native transport with copied real node trust refused a signed snapshot claiming binding 4 under verified binding 3 as snapshot_ahead, without advancing pin/freshness or connecting. This used an isolated signed HTTP fixture, not a malicious write to staging (studio-snapshot-ahead-native-result.json).
  • Production readStoredClaw/publishClaw used real old binding-3 SQLite and keys against staging: HTTP 409 stale_binding carried binding 4, verified under the root, producing non-retryable binding_superseded. Current-key authentication succeeded before/after; current Gateway/native/owner recovery then passed. This is persisted-state/publisher integration, not a full old-Gateway boot (studio-rollback3-publisher-result.json, studio-post-rollback4-recovery-call-result.json).
  • Final exact-claw retirement completed once; database checks showed no claw/member/relay-key rows and a reserved retired hostname. Independent existing-owner authentication obtained descriptor 404. Owned processes/listeners/transports were absent; private Studio/fsn1 profiles, snapshots, keys and kit copies were removed, with tracked checkouts clean. The original lock holder exited 0, the same canonical lock was verified available, and four reservation-owner release notices were queued. No merge or production deployment occurred.

Shipped older-writer limitation: the remotely verified latest stable v2026.11.2 and beta v2026.11.5-beta.1 examined here contain neither src/gateway/openclaw-id nor packages/openclaw-id-protocol. A compatible shipped writer was not available in that bounded set, so a shipped-writer upgrade was not executed and cannot be claimed. This is not an exhaustive statement about every historical release. See shipped-old-writer-feasibility.json.

Evidence files above are operator-local under /tmp/ocid-rollout-evidence/, not downloadable GitHub attachments. Final receipts: studio-final-retirement-descriptor-result.json, studio-final-cleanup-result.json, studio-final-private-state-cleanup-result.json, studio-final-lock-release-result.json; full run chronology: studio-harness-integration-audit.md.

@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes size: XL labels Nov 10, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Adds browser-based key replacement and actionable OpenClaw ID warnings to the account menu and system Inbox.

Example: The endpoint key for studio-e61zr.crabd.xyz is missing.

  • Before: The owner needs CLI recovery to replace the keys.
  • After: The Control UI shows the missing-key warning and offers recovery-code entry followed by fingerprint confirmation.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The source repairs address the prior findings, but historical positive controls and synthetic screenshots do not qualify the changed authority chain.
Proof confidence 🧂 unranked krab (1/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 cannot recover lost or leaked claw keys from the browser or readily discover why remote access stopped.
Reason: The maintainer-approved direction provides recovery at the point where owners encounter the failure and reuses existing authority.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep this useful recovery feature open; the earlier findings are addressed, and the recorded parent-PR landing hold remains in force.

Priority: P2
Reviewed head: cd6ce9545711a051c32d76948e911a4172ee1d42

Before merge

  • Add real behavior proof - Authority-chain proof required: the inspected screenshots establish synthetic menu/dialog appearance, and the full body credits a historical real-browser 1→2 move on combined source f864514. It expressly leaves current-source qualification outstanding. Provide sanitized evidence of successful local browser recovery, actual relayed prepare/commit rejection before persistence or publication, and sign-out/account replacement after preparation preventing commit and fresh-code publication; include ended-feature/service lifetime rejection where the parent owns it. Retain before/after binding and publication readback. The current Inbox captures are operator-local rather than inspectable attachments. Redact recovery codes, tokens, 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 - Local-only and account-custody guards remain in source, with their acceptance qualification tracked in the proof assessment.
  • Await maintainer action - Retain the recorded landing hold until feat(openclaw-id): move a claw to new keys with its recovery kit (openclaw id rebind) #196388 lands and the coordinating maintainer releases that hold.

Findings

None.

Tests

  • Low-value test ui/src/components/openclaw-id/account-menu.test.tsx: Remove or replace the added publication-forwarding case: it asserts mocked authority calls without checking the visible publication outcome.
  • Missing end-to-end proof: Supply current-source local browser recovery and final-effect rejection evidence through a real Gateway and compatible Discovery, including account retirement and actual relayed callers, plus the final Inbox visual evidence.
Agent review details

How this fits together

The local browser obtains an account link code and signs replacement keys through the shared protocol package; the Gateway commits the binding and publishes it to Discovery.

flowchart LR
  A[Local owner browser] --> B[Account and recovery dialog]
  B --> C[Shared protocol signer]
  B --> D[Gateway authority]
  C --> D
  D --> E[Existing binding store]
  D --> F[Discovery publication]
  D --> G[Menu and Inbox warnings]
Loading

Technical review

Best possible solution:

Retain the shared signer and existing Gateway authority, completing the browser recovery qualification before releasing the landing hold.

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

This is an approved feature addition; current main lacks the browser replacement action, while the PR supplies synthetic browser coverage and historical staging results.

Is this the best way to solve the issue?

Sharing the existing signer and keeping persistence in the Gateway is an appropriate implementation; no unnecessary competing authority or new storage model was found.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

Needs attention: Local-only and account-custody guards remain in source, with their acceptance qualification tracked in the proof assessment.

Evidence

What I checked:

Likely related people:

  • Josh Lehman: Raw commit e29577b adds ui/src/components/openclaw-id/identity-menu.tsx:17 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e29577b7d7df; files: ui/src/components/openclaw-id/identity-menu.tsx)
  • Peter Steinberger: Raw commit adb8920 adds ui/src/components/sidebar-attention-store.ts:104 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: adb8920e42e5; files: ui/src/components/sidebar-attention-store.ts)
  • Vyctor H. Brzezowski: Raw commit cabe4ba adds ui/src/components/sidebar-attention-store.ts:50 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: cabe4bade07a; files: ui/src/components/sidebar-attention-store.ts)

PR surface

Source +812, Tests +979, Docs +5, Other +10. Total +1806 across 43 files. Added test files: 5.

View PR surface stats
Area Files Added Removed Net
Source 23 975 163 +812
Tests 15 1130 151 +979
Docs 1 7 2 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 4 13 3 +10
Total 43 2125 319 +1806

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.

Review metrics

Metric Value Why it matters
Test capture configuration 1 test-only environment variable: OCID_MENU_EVIDENCE Enables synthetic browser screenshots without adding a production configuration option.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Adds useful recovery for the optional OpenClaw ID surface without establishing an urgent released regression.
  • merge-risk: 🚨 security-boundary: Browser account custody and recovery-kit signatures now feed persistent key replacement and Discovery publication.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab 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.

  • Add final-effect proof that relayed callers and signed-out or replaced browser accounts cannot commit or publish replacement keys.

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 (3 earlier review cycles)
  • reviewed 2026-11-10T05:32:46.230Z sha 5955e9ef92a6a500db30a0a634e7bc9735a9dbda :: needs real behavior proof before merge. :: [P2] Reject prepared moves after the browser account signs out
  • reviewed 2026-11-10T17:46:20.115Z sha 9d55d1dbbd1e63d2e0568527ac262b08e066290a :: needs real behavior proof before merge. :: [P2] Refresh account-menu publication warnings when People changes
  • reviewed 2026-11-10T18:18:20.038Z sha 13bb0fb :: needs real behavior proof before merge. :: [P2] Refresh account-menu publication warnings when People changes

Reviewed November 10, 2026, 6:53 PM ET / 23:53 UTC (Revision 4).

@jalehman
jalehman force-pushed the feat/ocid-owner-rebind branch from f7c409d to 8a6df43 Compare November 10, 2026 05:48
@jalehman
jalehman force-pushed the feat/ocid-rebind-control-ui branch 2 times, most recently from 2f605fa to f23819b Compare November 10, 2026 06:49
@jalehman
jalehman force-pushed the feat/ocid-owner-rebind branch from 61df9ed to a6663b2 Compare November 10, 2026 07:02
@jalehman
jalehman force-pushed the feat/ocid-rebind-control-ui branch from f23819b to 46844c5 Compare November 10, 2026 07:02
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 10, 2026
@jalehman
jalehman force-pushed the feat/ocid-rebind-control-ui branch from 5ba2144 to 8d7a7bb Compare November 10, 2026 13:29
@jalehman
jalehman force-pushed the feat/ocid-owner-rebind branch from 19fabbf to 4a5dc30 Compare November 10, 2026 16:21
@jalehman
jalehman force-pushed the feat/ocid-rebind-control-ui branch from 8d7a7bb to 0b44018 Compare November 10, 2026 16:40
@jalehman
jalehman force-pushed the feat/ocid-owner-rebind branch 2 times, most recently from 14d804f to 2753903 Compare November 10, 2026 17:36
@jalehman
jalehman force-pushed the feat/ocid-rebind-control-ui branch from 0b44018 to 9d55d1d Compare November 10, 2026 17:36
@jalehman

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@jalehman
jalehman force-pushed the feat/ocid-rebind-control-ui branch from cd6ce95 to 0613286 Compare November 11, 2026 01:52
Base automatically changed from feat/ocid-owner-rebind to main November 11, 2026 04:13
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Security-sensitive guard cleared

Current revision: caeec22cb022cc6159a86210bf9febf3030b34da

This PR no longer changes files in the maintainer security-review tier.

Separate CODEOWNERS requirements still apply to security policy and enforcement files.

The CLI and the local Control UI both sign a re-bind with the kit typed on
this machine, so signRebind and its binding_seq choice (J7) live in one owner.
On the computer that runs the claw, the account menu offers Move to new keys:
the recovery code typed in the browser signs the staged keys' binding (J7
verification included), the link code comes from the signed-in account, and
the owner confirms the key fingerprints before the Gateway commits. The menu
warns when remote access is off for a missing or mismatched key file, when
Discovery lists newer keys (binding_superseded), and when new keys still need
publishing (needs_link_code), each with its fix.
…s; e2e proof and docs

The confirmation lists the owner key, binding and both key changes as
unbroken fingerprints. A mocked browser flow proves the account-menu warnings
and the dialog: the binding the browser signs with the kit's root and the
account's link code reach rebind_commit.
Escape or the backdrop during a running check or commit no longer resolves
the dialog as cancelled and queues rebind_cancel while the move completes; its
outcome is always shown.
…ove to new keys closes

S and the derived seed were already zeroed in signRebind and R is a
non-extractable key. The typed code and the signed binding are JS strings:
cancel, close and a finished move drop them and scrub the field.
@jalehman
jalehman force-pushed the feat/ocid-rebind-control-ui branch from 0613286 to caeec22 Compare November 11, 2026 04:15
@jalehman
jalehman merged commit 65c2e61 into main Nov 11, 2026
151 of 159 checks passed
@jalehman
jalehman deleted the feat/ocid-rebind-control-ui branch November 11, 2026 05:06
@jalehman

Copy link
Copy Markdown
Contributor Author

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

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
openclaw#196456)

* refactor(openclaw-id): move re-bind signing into the protocol package

The CLI and the local Control UI both sign a re-bind with the kit typed on
this machine, so signRebind and its binding_seq choice (J7) live in one owner.

* feat(openclaw-id): Move to new keys and key warnings in the Control UI

On the computer that runs the claw, the account menu offers Move to new keys:
the recovery code typed in the browser signs the staged keys' binding (J7
verification included), the link code comes from the signed-in account, and
the owner confirms the key fingerprints before the Gateway commits. The menu
warns when remote access is off for a missing or mismatched key file, when
Discovery lists newer keys (binding_superseded), and when new keys still need
publishing (needs_link_code), each with its fix.

* feat(openclaw-id): confirm Move to new keys with readable fingerprints; e2e proof and docs

The confirmation lists the owner key, binding and both key changes as
unbroken fingerprints. A mocked browser flow proves the account-menu warnings
and the dialog: the binding the browser signs with the kit's root and the
account's link code reach rebind_commit.

* fix(openclaw-id): keep Move to new keys open while a step runs

Escape or the backdrop during a running check or commit no longer resolves
the dialog as cancelled and queues rebind_cancel while the move completes; its
outcome is always shown.

* fix(openclaw-id): release the recovery code and signed binding when Move to new keys closes

S and the derived seed were already zeroed in signRebind and R is a
non-extractable key. The typed code and the signed binding are JS strings:
cancel, close and a finished move drop them and scrub the field.

* test(openclaw-id): size the Control UI re-bind test-line allocation

* fix(openclaw-id): retire browser re-bind plans when account custody changes

* fix(ui): surface OpenClaw ID key recovery in Inbox

* fix(ui): reuse recovery dialog styles and simplify key warnings

* fix(ui): load key confirmation styles on the cold menu path

* test(openclaw-id): use shared rebind preparation type

* fix(ui): preserve key warnings across settlement and retire stale reads

* fix(openclaw-id): avoid inbox refreshes when key attention is already empty
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 cli CLI command changes 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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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.

1 participant