Skip to content

fix(openclaw-id): replayed revocation removes a device that was approved again - #193146

Merged
jalehman merged 1 commit into
mainfrom
openclaw-6d2/bounded-authority-state
Nov 5, 2026
Merged

jalehman merged 1 commit into
mainfrom
openclaw-6d2/bounded-authority-state

Conversation

@jalehman

@jalehman jalehman commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Related: #192230 (closed in favor of this PR), #192335

What Problem This Solves

Fixes: a captured OpenClaw ID revocation, submitted again through the Discovery mailbox, removes an owner device or member browser that an owner approved again after the revocation was signed. Invite records also pile up with no limit, so a stolen owner device could grow the claw record until the Gateway can no longer save it.

User Impact

  • A replayed revocation no longer removes a device that was approved again. A revocation signed after the re-approval still removes it.
  • An invite lasts at most a week, a claw keeps at most 100 invites, and expired invites are deleted. Removing an owner device also deletes the open invites it created.
  • Signed format change (draft protocol): a Revocation must now carry claw_id and seq, and the old form is refused as malformed. Gateways run none of this code until the OpenClaw ID Gateway stack (feat(openclaw-id): add Gateway membership authority and publication behind the Labs flag #192335) merges.

Why This Change Was Made

@SebTardif found the replay in #192230 and fixed it by keeping every applied revocation signature. That list only grows. The claw stopped keeping history on 2026-11-02 because its earlier revoked list outgrew the 256-entry statement limit, so this PR fixes the replay without a list.

A revocation now covers only what its signer saw. It names the claw and the membership seq the signer last read. Every listed key records the seq at which it was listed, and listing a key that is still listed anywhere keeps its earliest seq. A revocation removes a key only if it was listed at or before that seq, together with every device the key approved. A re-approval is a new listing the old signature never covered, so the replay is refused with seq_conflict and changes nothing. Invites get the same treatment: each one expires within a week, so the claw no longer has to remember used invites forever.

Tradeoff: a revocation signed from a view older than the key's re-approval is refused (seq_conflict). The signer has to sign it again at the current seq.

Evidence

  • vitest over packages/openclaw-id-protocol: 21 files, 141 tests passed. New tests are in revocation-scope.test.ts (6) and invite-retention.test.ts (4).
  • The replay regressions fail without the fix: with the seq check removed, the three replay tests fail and the other two pass. The removed-device invite test fails without the cleanup.
  • Type checks (pnpm tsgo:core, package tests) report no errors. oxlint finds no problems in the 16 changed files, and the max-lines ratchet passes.
  • Test-lines ratchet passes: 279 new test lines, covered by config/test-lines-allocations/openclaw-id-bounded-authority-state.txt (slack 76 against main 658e3db2a46).
  • Independent review found one P2: a key that was still listed, copied into another record, got a fresh seq. Fixed with the earliest-listing rule plus a regression; the re-review was clean.
  • The Gateway half is in feat(openclaw-id): add Gateway membership authority and publication behind the Labs flag #192335, rebased onto this PR. It adds a mailbox replay regression through the real authority, deletes spent invites and their reports before each write, and checks that a claw at every cap still fits the plugin-state value limit.

Follow-ups

…at was approved again

A Revocation now names its claw and the membership seq its signer saw, and every
listed key records the seq at which it was listed (re-adding a listed key keeps
it). A revocation removes only keys listed at or before its seq, together with
every device they approved; a key listed again later is refused as seq_conflict,
so replaying captured bytes changes nothing and no list of past revocations is
kept.

Invites stay bounded the same way: a cap may expire at most a week after
registration, a claw keeps at most 100 invites, spent records are deleted before
counting, and removing an owner device deletes the open invites it registered.

Prompted by #192230 (thanks @SebTardif).
@clawsweeper

clawsweeper Bot commented Nov 5, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 5, 2026
@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR scopes revocations to a claw and membership sequence and bounds invite lifetime, count, and retention.

Example: A revocation signed at seq 2 removes device B, which is approved again at seq 3.

  • Before: Replaying the captured revocation removes B again.
  • After: The replay returns seq_conflict without removal effects; a fresh seq 3 revocation can remove B.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful, coherent protocol repair with no definite code finding, but supplied tests do not establish the required final authority effects.
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: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Captured revocations can undo a later device approval, and unrestricted invite accumulation can exhaust the future Gateway's saved claw record.
Reason: The source demonstrates the replay defect, and the protocol owner explicitly chose bounded current state, scoped revocations, and invite limits.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep this PR: current main still has the reported replay bug, and this maintainer-directed replacement preserves bounded authority state; no definite introduced code defect was found.

Priority: P2
Reviewed head: a34b315a70d487b255b3d3fa2562372f8da33f76

Before merge

  • Add real behavior proof - Authority-chain proof required: supplied tests exercise the real in-memory protocol authority, while historical staging evidence predates this change and companion-PR assertions provide no inspectable trace of the new scenarios. Supply redacted logs or terminal output through the actual Gateway mailbox and removal owners showing fresh authorized removal succeeds, captured replay after reapproval causes no disconnect or token invalidation, and a removed signer is rejected before effects; also exercise invite-cap exhaustion and cleanup through Gateway registration. Redact IPs, API keys, phone numbers, and non-public endpoints. This package defines in-memory reference state and adds no persistence writer. 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 - The current-owner signature gate remains intact, but the changed authority scope needs final-effect validation.
  • Resolve merge risk - Before merge, the PR owner must establish that scoped revocations and current-signer authorization remain enforced through the downstream Gateway's final removal effects.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied Gateway mailbox trace covers replay after reapproval through connection and token effects, and the reported red check removes the new guard rather than exercising the original implementation.
Agent review details

How this fits together

The protocol package validates signed statements and transforms in-memory membership state into updated state and removal events; the downstream Gateway owns persistence, connections, tokens, and publication.

flowchart LR
  A[Signed statements] --> B[Schema validation]
  B --> C[Current owner verification]
  C --> D[Scoped authority rules]
  D --> E[Membership state]
  D --> F[Removal events]
  F --> G[Gateway effects]
Loading

Technical review

Best possible solution:

Keep listing sequences and invite bounds in the existing protocol authority, with its consumers using the same signed contract.

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

Current main unconditionally removes a presently listed revocation target, so capture, removal, reapproval, and replay follow directly from source; this review executed no target code.

Is this the best way to solve the issue?

The bounded listing-sequence design addresses replay without restoring an ever-growing history, preserves the existing cascade owner, and keeps distinct regression cases; the documented stale-view tradeoff already has owner direction.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Prove enforcement through the Gateway (recommended)
    The PR owner supplies final-effect evidence through the actual mailbox and removal owners for authorized removal, captured replay after reapproval, and a signer removed before processing.

Provenance checked

  • Revocation scope and cascades changes intended behavior with a stated reason (ed57ed7: The protocol introduction established per-claw current allowlists and transitive removal without certificate chains or revocation history.)
  • Listing metadata keeps the original intent (ed57ed7: Membership records represented current approvals; bounded sequence metadata preserves that design while distinguishing a later reapproval.)
  • Invite registration and retention changes intended behavior with a stated reason (ed57ed7: Registered invites retained redemption state; this PR explains the exhaustion problem and retains consumed records until expiry and pending records for owner resolution.)

Testing

Proof path: in-process harness.

Security

Needs attention: The current-owner signature gate remains intact, but the changed authority scope needs final-effect validation.

Evidence

What I checked:

Likely related people:

  • Josh Lehman: Raw commit ed57ed7 adds packages/openclaw-id-protocol/src/authority/state.ts:118 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ed57ed752e35; files: packages/openclaw-id-protocol/src/authority/state.ts)

PR surface

Source +276, Tests +279, Docs +28, Other +2. Total +585 across 21 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 12 360 84 +276
Tests 5 300 21 +279
Docs 3 39 11 +28
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 21 701 116 +585

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
Required signed fields 2 Revocation now requires claw_id and seq; the PR explicitly documents rejection of the old draft form.
Invite bounds 100 records; 7-day lifetime plus clock tolerance These are fixed protocol limits, with no added configuration option.

Root-cause cluster

Relationship: canonical
Canonical: #193146
Summary: This PR explicitly replaces the earlier signature-ledger repair for the same replay-after-reapproval defect.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: This addresses a concrete reference-authority bug before the Gateway integration ships, with no established current stable-release outage.
  • add merge-risk: 🚨 security-boundary: The change determines which signed authority can remove current approvals, and final Gateway enforcement is not established by the supplied protocol tests.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: This addresses a concrete reference-authority bug before the Gateway integration ships, with no established current stable-release outage.
  • merge-risk: 🚨 security-boundary: The change determines which signed authority can remove current approvals, and final Gateway enforcement is not established by the supplied protocol tests.
  • 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.

Rank-up moves

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

  • Add final-effect proof for captured mailbox replay and a removed signer, showing rejection before disconnect or token invalidation while fresh authorized revocation still works.

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.

Reviewed November 4, 2026, 10:03 PM ET / November 5, 2026, 03:03 UTC.

@jalehman

jalehman commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Landing note for a34b315 (Josh asked to land this PR).

Inherited CI failure. CI run 41957539527, attempt 1, has one failed job, checks-fast-baseline-ratchets; openclaw/ci-gate fails only because of it. The failing ratchet is test-lines: "over by: 49; net delta: +279". It comes from main, not this PR:

  • main's tree alone at the CI baseline 982f3b1ee2b is over by the same 49 lines with net delta 0. Latest main (32fff4b857b) is also over by 49.
  • This PR adds 279 test lines and allocates exactly 279 (config/test-lines-allocations/openclaw-id-bounded-authority-state.txt). Against its merge base 658e3db2a46 it passes with slack 76.
  • pr-failure-report labels the row "new" only because the newest scheduled main run predates the main commit that went over the ceiling.

This lands through the pre-existing-failure route; the failure itself still needs a fix on main.

Proof scope. ClawSweeper found no code issues on this head. It asked for Gateway-level traces (mailbox replay after re-approval, a removed signer refused, invite cap through Gateway registration). Nothing on main uses these protocol rules yet. The Gateway authority that adopts them is #192335, which adds the revoke → re-approve → replay test through the real mailbox and authority. Gateway proof belongs there. Discovery and claw-loader re-vendor this package separately.

Local checks on a34b315: pnpm test packages/openclaw-id-protocol (21 files, 141 tests), pnpm tsgo:core, oxlint on the changed files, test-lines ratchet against the merge base. All pass.

@jalehman
jalehman merged commit 0809cf3 into main Nov 5, 2026
99 of 102 checks passed
@jalehman

jalehman commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

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

@jalehman
jalehman deleted the openclaw-6d2/bounded-authority-state branch November 5, 2026 04:07
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
…at was approved again (openclaw#193146)

A Revocation now names its claw and the membership seq its signer saw, and every
listed key records the seq at which it was listed (re-adding a listed key keeps
it). A revocation removes only keys listed at or before its seq, together with
every device they approved; a key listed again later is refused as seq_conflict,
so replaying captured bytes changes nothing and no list of past revocations is
kept.

Invites stay bounded the same way: a cap may expire at most a week after
registration, a claw keeps at most 100 invites, spent records are deleted before
counting, and removing an owner device deletes the open invites it registered.

Prompted by openclaw#192230 (thanks @SebTardif).
jalehman added a commit that referenced this pull request Nov 5, 2026
…seq it last read

A Revocation now carries the claw id and the membership seq the signer saw
(#193146), so the owner-devices dialog signs with the link's claw id and seq.
A browser without that seq refuses to sign, and a device approved again since
the dialog loaded is refused by the Gateway as a concurrent change.
jalehman added a commit that referenced this pull request Nov 5, 2026
…seq it last read

A Revocation now carries the claw id and the membership seq the signer saw
(#193146), so the owner-devices dialog signs with the link's claw id and seq.
A browser without that seq refuses to sign, and a device approved again since
the dialog loaded is refused by the Gateway as a concurrent change.
jalehman added a commit that referenced this pull request Nov 6, 2026
…seq it last read

A Revocation now carries the claw id and the membership seq the signer saw
(#193146), so the owner-devices dialog signs with the link's claw id and seq.
A browser without that seq refuses to sign, and a device approved again since
the dialog loaded is refused by the Gateway as a concurrent change.
jalehman added a commit that referenced this pull request Nov 6, 2026
…seq it last read

A Revocation now carries the claw id and the membership seq the signer saw
(#193146), so the owner-devices dialog signs with the link's claw id and seq.
A browser without that seq refuses to sign, and a device approved again since
the dialog loaded is refused by the Gateway as a concurrent change.
jalehman added a commit that referenced this pull request Nov 6, 2026
…seq it last read

A Revocation now carries the claw id and the membership seq the signer saw
(#193146), so the owner-devices dialog signs with the link's claw id and seq.
A browser without that seq refuses to sign, and a device approved again since
the dialog loaded is refused by the Gateway as a concurrent change.
jalehman added a commit that referenced this pull request Nov 6, 2026
…seq it last read

A Revocation now carries the claw id and the membership seq the signer saw
(#193146), so the owner-devices dialog signs with the link's claw id and seq.
A browser without that seq refuses to sign, and a device approved again since
the dialog loaded is refused by the Gateway as a concurrent change.
jalehman added a commit that referenced this pull request Nov 6, 2026
…seq it last read

A Revocation now carries the claw id and the membership seq the signer saw
(#193146), so the owner-devices dialog signs with the link's claw id and seq.
A browser without that seq refuses to sign, and a device approved again since
the dialog loaded is refused by the Gateway as a concurrent change.
jalehman added a commit that referenced this pull request Nov 6, 2026
…seq it last read

A Revocation now carries the claw id and the membership seq the signer saw
(#193146), so the owner-devices dialog signs with the link's claw id and seq.
A browser without that seq refuses to sign, and a device approved again since
the dialog loaded is refused by the Gateway as a concurrent change.
jalehman added a commit that referenced this pull request Nov 6, 2026
…seq it last read

A Revocation now carries the claw id and the membership seq the signer saw
(#193146), so the owner-devices dialog signs with the link's claw id and seq.
A browser without that seq refuses to sign, and a device approved again since
the dialog loaded is refused by the Gateway as a concurrent change.
jalehman added a commit that referenced this pull request Nov 6, 2026
…nd the Access page (#192352)

* feat(openclaw-id): add the Control UI account menu, linking dialogs and the People plugin

* fix(openclaw-id): sign Your devices revocations for this claw at the seq it last read

A Revocation now carries the claw id and the membership seq the signer saw
(#193146), so the owner-devices dialog signs with the link's claw id and seq.
A browser without that seq refuses to sign, and a device approved again since
the dialog loaded is refused by the Gateway as a concurrent change.

* fix(openclaw-id): make one recovery kit per Make reachable preparation

Pressing Continue twice could send two preparations. A late second answer
returned the dialog to the owner-key step after the owner had saved kit A, and
the next Create recovery kit made kit B while the dialog still counted the kit
as saved, so B could link the claw unsaved. One preparation now runs at a time,
only the name step accepts its answer, and each new kit starts unsaved.

* fix(openclaw-id): report an owner key stored only after IndexedDB commits it

A request's success event does not mean its transaction committed, so a write
could resolve, and notify approval lifetimes, while the transaction then
aborted and the non-extractable owner key was never stored. Writes now wait for
the transaction to complete.

* fix(openclaw-id): store the first owner device key before linking with it

The browser stored D1 only after the commit answered. The Gateway pins the
root and admits D1 before it publishes and answers, so a reload or dropped
connection in between left a linked claw whose only owner device key was never
stored. The key is now stored before the commit, and a key this origin already
holds for the claw is reused rather than replaced.

* fix(openclaw-id): close OpenClaw ID dialogs when the Labs switch turns off

Make reachable, Your devices and owner approval each ran in their own modal
host with no tie to the feature, so turning the Labs switch off left them open,
including a recovery kit on screen, and the reachability toast could still open
Make reachable. The enabled feature's mounted lifetime now owns them: they open
only while it runs and close when it ends, and Make reachable drops its kit
secrets however it closes.

* fix(openclaw-id): open sign-in and print windows without an opener

The sign-in popup and the recovery-kit print window called window.open
directly, which the Control UI boundary guard forbids. They now reserve the
window with reserveExternalWindowForDeferredNavigation, which cuts the opener
before any page loads; the sign-in callback answers through localStorage and
needs no opener. A blocked popup falls back to openExternalUrlSafe.

* refactor(openclaw-id): type the approval handoff as JSON and explain a key mock

* chore(test): allocate the OpenClaw ID UI review regression test lines

* fix(openclaw-id): style the Make reachable name step outside Settings

The dialog opens from the account menu on any page, but SettingsRow's styles load only with the Settings pages, so the claw name title and hint ran together. The dialog chunk now imports them.

* docs(openclaw-id): merge the OpenClaw ID remote access sections and count the People plugin

#192335 added a short OpenClaw ID remote access section to the Labs docs; this PR's fuller section now carries its off-state and configuration-key details, so the page has one heading. The plugin inventory and reference index count the bundled openclaw-id-access plugin on the new base.

* feat(openclaw-id): rename the People page to Access

The page that controls who may reach this claw through OpenClaw ID is now
Access in the sidebar and titled Remote access. Its People section keeps
invites, approvals and members, so later Your devices and Nodes sections fit
beside it. Nodes are not people, the sidebar already has Users, and chat
details already has a People section.

- Page and navigation id `people` -> `access`; navigation label Access, page
  title and heading Remote access, with a one-line pointer to Settings ->
  Devices for devices paired with this Gateway.
- Plugin display name "OpenClaw ID remote access"; the plugin id
  `openclaw-id-access` and the `openclawId.people` RPC are unchanged.
- Labs copy, docs, plugin inventory and reference page, config baseline
  hashes, tests and the test-line allocation follow the rename.

* test(openclaw-id): call the real IndexedDB add without an unbound method reference

Main's core lint now rejects typescript(unbound-method); the abort test captures IDBObjectStore.prototype.add with Reflect.get and calls it with Reflect.apply.

* perf(openclaw-id): keep the config form analyzer out of the Chat and New Session boot graphs

config-sections.ts is part of the boot graph, and its new visibleConfigSchema imported view-schema.tsx, which pulled the config form analyzer and utilities into Chat and New Session boot (+6 KiB gzip and two more Chat requests). The helper now lives in config-page-state.ts, which only the Settings page loads.

* fix(openclaw-id): name the removed device in the Your devices removal preview

Remove access is offered only for other devices, but its confirmation said "This browser loses access now". It now names the device being removed. The approved-by test keeps a real owner key for the claw and checks the preview text; the test-line allocation grows to 3,683.

* perf(control-ui): budget the OpenClaw ID sidebar mounts and account menu styles

Approved by Josh Lehman (2026-11-06). main 0a65906 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; each ceiling is that 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. Request counts stay within their existing limits.

* fix(openclaw-id): check the default claw name with the account's link code

Turn on remote access fills the link code from the signed-in account and then checks the default name. Solid settles the code signal later, so the check read an empty code and never asked the Gateway. The acquired code is now passed to the check directly; the one-preparation test also expects that check_name request (it fails without the fix).

* test(openclaw-id): drop the recovery kit field-copy test

kit-export.test.ts only repeated the helper's interpolation without saving or printing a kit (ClawSweeper). recoveryKitLines is now module-private, so its Knip production-scan entry goes too. The test-line allocation is 3,667.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 7, 2026
…nd the Access page (openclaw#192352)

* feat(openclaw-id): add the Control UI account menu, linking dialogs and the People plugin

* fix(openclaw-id): sign Your devices revocations for this claw at the seq it last read

A Revocation now carries the claw id and the membership seq the signer saw
(openclaw#193146), so the owner-devices dialog signs with the link's claw id and seq.
A browser without that seq refuses to sign, and a device approved again since
the dialog loaded is refused by the Gateway as a concurrent change.

* fix(openclaw-id): make one recovery kit per Make reachable preparation

Pressing Continue twice could send two preparations. A late second answer
returned the dialog to the owner-key step after the owner had saved kit A, and
the next Create recovery kit made kit B while the dialog still counted the kit
as saved, so B could link the claw unsaved. One preparation now runs at a time,
only the name step accepts its answer, and each new kit starts unsaved.

* fix(openclaw-id): report an owner key stored only after IndexedDB commits it

A request's success event does not mean its transaction committed, so a write
could resolve, and notify approval lifetimes, while the transaction then
aborted and the non-extractable owner key was never stored. Writes now wait for
the transaction to complete.

* fix(openclaw-id): store the first owner device key before linking with it

The browser stored D1 only after the commit answered. The Gateway pins the
root and admits D1 before it publishes and answers, so a reload or dropped
connection in between left a linked claw whose only owner device key was never
stored. The key is now stored before the commit, and a key this origin already
holds for the claw is reused rather than replaced.

* fix(openclaw-id): close OpenClaw ID dialogs when the Labs switch turns off

Make reachable, Your devices and owner approval each ran in their own modal
host with no tie to the feature, so turning the Labs switch off left them open,
including a recovery kit on screen, and the reachability toast could still open
Make reachable. The enabled feature's mounted lifetime now owns them: they open
only while it runs and close when it ends, and Make reachable drops its kit
secrets however it closes.

* fix(openclaw-id): open sign-in and print windows without an opener

The sign-in popup and the recovery-kit print window called window.open
directly, which the Control UI boundary guard forbids. They now reserve the
window with reserveExternalWindowForDeferredNavigation, which cuts the opener
before any page loads; the sign-in callback answers through localStorage and
needs no opener. A blocked popup falls back to openExternalUrlSafe.

* refactor(openclaw-id): type the approval handoff as JSON and explain a key mock

* chore(test): allocate the OpenClaw ID UI review regression test lines

* fix(openclaw-id): style the Make reachable name step outside Settings

The dialog opens from the account menu on any page, but SettingsRow's styles load only with the Settings pages, so the claw name title and hint ran together. The dialog chunk now imports them.

* docs(openclaw-id): merge the OpenClaw ID remote access sections and count the People plugin

openclaw#192335 added a short OpenClaw ID remote access section to the Labs docs; this PR's fuller section now carries its off-state and configuration-key details, so the page has one heading. The plugin inventory and reference index count the bundled openclaw-id-access plugin on the new base.

* feat(openclaw-id): rename the People page to Access

The page that controls who may reach this claw through OpenClaw ID is now
Access in the sidebar and titled Remote access. Its People section keeps
invites, approvals and members, so later Your devices and Nodes sections fit
beside it. Nodes are not people, the sidebar already has Users, and chat
details already has a People section.

- Page and navigation id `people` -> `access`; navigation label Access, page
  title and heading Remote access, with a one-line pointer to Settings ->
  Devices for devices paired with this Gateway.
- Plugin display name "OpenClaw ID remote access"; the plugin id
  `openclaw-id-access` and the `openclawId.people` RPC are unchanged.
- Labs copy, docs, plugin inventory and reference page, config baseline
  hashes, tests and the test-line allocation follow the rename.

* test(openclaw-id): call the real IndexedDB add without an unbound method reference

Main's core lint now rejects typescript(unbound-method); the abort test captures IDBObjectStore.prototype.add with Reflect.get and calls it with Reflect.apply.

* perf(openclaw-id): keep the config form analyzer out of the Chat and New Session boot graphs

config-sections.ts is part of the boot graph, and its new visibleConfigSchema imported view-schema.tsx, which pulled the config form analyzer and utilities into Chat and New Session boot (+6 KiB gzip and two more Chat requests). The helper now lives in config-page-state.ts, which only the Settings page loads.

* fix(openclaw-id): name the removed device in the Your devices removal preview

Remove access is offered only for other devices, but its confirmation said "This browser loses access now". It now names the device being removed. The approved-by test keeps a real owner key for the claw and checks the preview text; the test-line allocation grows to 3,683.

* perf(control-ui): budget the OpenClaw ID sidebar mounts and account menu styles

Approved by Josh Lehman (2026-11-06). main 88a8ee9 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; each ceiling is that 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. Request counts stay within their existing limits.

* fix(openclaw-id): check the default claw name with the account's link code

Turn on remote access fills the link code from the signed-in account and then checks the default name. Solid settles the code signal later, so the check read an empty code and never asked the Gateway. The acquired code is now passed to the check directly; the one-preparation test also expects that check_name request (it fails without the fix).

* test(openclaw-id): drop the recovery kit field-copy test

kit-export.test.ts only repeated the helper's interpolation without saving or printing a kit (ClawSweeper). recoveryKitLines is now module-private, so its Knip production-scan entry goes too. The test-line allocation is 3,667.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant