Repository navigation
Conversation
OpenClaw-Publication: bcef0c3f-a08a-4aad-91fd-5018bb4927d5
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
OpenClaw-Publication: f36a0807-4748-4b02-933b-ec5b1bc1df80
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
This was referenced Nov 10, 2026
… keeps running on lost keys)
…e Discovery's verified binding (J2, J7)
…ng_seq high-water
…nd email says if this wasn't you
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: pebbles
openclaw-bec(design the owner re-bind ceremony),openclaw-aab(a lost Gateway endpoint key is silently regenerated and strands the claw). Follows #194459.Draft for design review. Do not merge. Docs-only proposal. Every new section is marked "proposed", and no product code changes.
What Problem This Solves
There is no supported way to move a linked OpenClaw ID claw to new machine keys (K_srv / K_gw) under the same owner root. A lost key file is silently recreated and strands every client, and a suspected key leak has no recovery path short of an owner reset. Owner reset is not implemented yet and makes every device set up again.
User Impact
None yet: this PR only proposes the protocol design for review. Once it is implemented, owners can run
openclaw id rebindwith their recovery kit on the machine. Owner devices, members, nodes, invites and tokens stay, and every client reconnects to the new keys by itself. A linked Gateway that loses a key file fails closed and points to the re-bind instead of minting a key no client trusts.Why This Change Was Made
A re-bind is a new
ServerBindingsigned by R atbinding_seq + 1, naming new K_srv and K_gw. Pins, freshness and Discovery's republish check already follow it, so no new statement type is needed. The proposal adds:bind, an old-K_gw vouch and a pre-signed standby binding were all rejected.local_operatoronly; it works with the tunnel down..nextfile is promoted only if its derived public key matches. This rule is also theopenclaw-aabfail-closed fix.codeis required for any K_gw change. It is spent in the same transaction. It closes a takeover of the mirror by someone with a leaked kit; that takeover exists today.rebindnotice event.shutdown.The companion plan (Gateway/CLI/UI work, Discovery and loader changes, per-client gaps, test and live-proof plan, phases, open questions) is kept outside the repo, in the reviewer's workspace.
Evidence
origin/main(authority.tsprepareLinksignsbinding_seq: 1;gateway-key.tsandtunnel-child/entry.tscallloadOrCreateEndpointKey;pin.tsmovesk_gwwith each verified binding) and against Discoverymain(routes/claws.tsalready accepts a descriptor signed by the new binding's K_gw;deriveRowsdrops member rows without a matching snapshot; enrollment codes and claw updates are separate storage calls today).stale_snapshotgap, and equal-seqconflictbeing Discovery-only.oxfmt --checkandgit diff --checkpass on the changed docs.