Repository navigation
Conversation
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. |
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
…aise binding_seq (J5) Snapshot order is kept per K_gw, so a re-bind's new key is not refused as a replay. A snapshot naming a binding_seq beyond its verified binding is refused as snapshot_ahead and none of it is stored; a marker saved by the previous build is capped at the pin and loses its order on load. Discovery's unsigned 403 on refresh is a retryable failure, not removal.
…ified snapshot is removal The refresh outcome is a pure companion function, tested without Discovery.
A snapshot claiming an unverified binding is snapshot_ahead and not kept, and a retired binding below the pin is binding_rollback.
jalehman
force-pushed
the
fix/ocid-android-rebind-trust
branch
from
November 10, 2026 09:12
b51054d to
caa4386
Compare
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.
What Problem This Solves
Fixes: an Android OpenClaw ID node stops connecting for good after its claw is moved to new keys, or after a stolen or retired Gateway key signs a snapshot with an inflated binding number.
User Impact
This prepares Android node trust handling for an owner's "Move to new keys" and prevents a retired Gateway key from poisoning binding freshness. Device enrollment, reconnect and upgrade qualification remain incomplete; this draft does not establish a release-ready native-app experience.
Summary
The Android OpenClaw ID node now handles a claw's re-bind ("Move to new keys"), plus the J5 binding_seq cap. It is stacked on the #194194 draft branch.
Why This Change Was Made
snapshot_replayedforever.binding_seqcould raise the durable high-water past any binding R had signed. That let a stolen or retired K_gw lock the node out permanently withstale_binding.Changes
binding_seqbeyond its verified binding is refused assnapshot_ahead, and none of it is stored.snapshotBindingis always a verified binding's seq.clampLegacy), matching the TSclampFreshnessState(fix(openclaw-id): clients follow a re-bind, and a stolen Gateway key can't retire bindings #196402).OpenClawIdDiscoveryFailure. Only a verified snapshot that no longer lists the node means removal.Evidence
November 10 restack: current head
caa4386438847d15c2c818d2f45f41999d1e3057is based on repaired parent9894edf0d4a3dfabe52923f2e4123dd9bd64ce26, after both parent native packaging runs passed. Rebased only the four follow-up commits from their verified old parent2d4ba2aaaef4cfd659b561940dc25ac7cdeadec7; no conflicts, range-diff 4/4=, andgit diff --checkpassed. Published with an exact expected-head lease. No substantive follow-up patch changed; this is not a new whole-PR review. Exact-head native packaging passed atcaa4386438847d15c2c818d2f45f41999d1e3057. Terminal logs confirmtestPlayDebugUnitTestandtestThirdPartyDebugUnitTestexecuted and both default and opt-in Gradle builds succeeded. Workflow checks verified the default APK excludes iroh and both opt-in debug variants contain all four native ABIs. Workflow Sanity and PR evidence checks also passed; broad CI remains skipped for this draft. This is build/unit-test/packaging proof, not device runtime, release/R8, enrollment-to-Gateway or stable-upgrade qualification. Earlier-head results below remain evidence only for their named revisions.OpenClawIdTrustRebindTestcovers:binding_rollbackwithout moving the marker;Validation runs in this PR's
Android OpenClaw ID native packagingworkflow (testPlayDebugUnitTestandtestThirdPartyDebugUnitTest). This host has no Android SDK.OpenClawIdRefreshOutcomeTestnow exercises the production controller refresh → real Discovery request signing/HTTP decoding → signature verifier → persistent store. Only HTTP I/O is fixed with an OkHttp interceptor; no callback supplies an assessment. The forwarding-onlyrefreshTargethelper and tests are removed. It covers unsigned 403/404/500/503/network failure without retained-state changes; signed removal persisted before the removal exception; reopen/replay rejection; honest newer admission; and snapshot-ahead refusal without poisoning trust. Serialized store reopening is covered, not Android Keystore runtime behavior. Request-signing execution is covered; the fixture checks header presence, not an independent cryptographic signature oracle.Prior repair evidence at
b51054d. The Android OpenClaw ID native packaging workflow completed successfully on exact headb51054ddb0c474c7935d8ce230613885be3860fd. Its logs show bothtestPlayDebugUnitTestandtestThirdPartyDebugUnitTestexecuted, plus default/native APK packaging checks. Fresh independent source review of the repair reported no P0–P2 issues; Kotlin formatting passed. This host has no Android SDK. Hosted unit tests do not prove device Keystore, enrollment-to-Gateway runtime, or stable upgrades. The parent must still be qualified and merged before this follow-up can land. Native parent CI is now green and the authorized pre-merge restack is recorded below; another post-merge restack, fresh review and exact-head CI remain required before landing.Native-app runtime and stable-upgrade proof remain incomplete. Legacy tradeoff: a keyless marker loses unattributable snapshot order on load, allowing otherwise-valid older snapshots within the existing ≤3-hour freshness window until keyed order is stored again.
Review fixes,
ddee805:JsonObjectimport that brokecompilePlayDebugKotlin.snapshot_aheadand not kept; the old test expected it to become retirement evidence. A retired binding below the pin isbinding_rollback.