Skip to content

feat(android): add staged Wear status bridge - #108803

Closed
IWhatsskill wants to merge 7 commits into
openclaw:mainfrom
IWhatsskill:feat/android-wear-status-bridge
Closed

IWhatsskill wants to merge 7 commits into
openclaw:mainfrom
IWhatsskill:feat/android-wear-status-bridge

Conversation

@IWhatsskill

@IWhatsskill IWhatsskill commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

[AI-assisted]

What Problem This Solves

Related: #47604

OpenClaw does not currently have a small, reviewable Wear OS vertical slice that establishes the intended phone-first product and security boundary. The earlier Wear proposal combined transport, phone proxying, watch UI, tiles, notifications, and authentication-sensitive work in one large change.

Why This Change Was Made

This change limits the first Wear capability to status: the watch asks the paired OpenClaw Android app for current Gateway connectivity and displays the result. The shared request/response contract is versioned and size-bounded, and the phone responds only from an already-running NodeRuntime; it does not start the runtime, create another identity, or expose credentials.

The watch uses Wear Data Layer capability discovery and MessageClient.sendRequest. Payloads exclude tokens, passwords, Gateway addresses or names, device IDs, sessions, and chat content. Chat, tiles, complications, notifications, voice, direct Gateway authentication, and release wiring remain out of scope.

User Impact

With matching phone and Wear builds installed, users can open OpenClaw on the watch and see whether the paired phone is reachable, whether its existing Gateway session is connected, or whether the phone/watch builds are incompatible. The screen also supports manual refresh.

The watch does not authenticate directly to the Gateway and stores no Gateway credentials.

Evidence

Note

Validation

  • ./gradlew :wear-shared:test — 3 shared-contract tests passed.
  • ./gradlew :wear:testDebugUnitTest — 3 watch-client mapping tests passed.
  • ./gradlew :app:testPlayDebugUnitTest — phone tests passed.
  • ./gradlew :app:testThirdPartyDebugUnitTest — third-party variant tests passed.
  • ./gradlew :wear-shared:ktlintCheck :wear:ktlintCheck :app:ktlintCheck — passed.
  • ./gradlew :wear:assembleDebug :wear:lintDebug — passed.
  • ./gradlew :app:assemblePlayDebug :app:lintPlayDebug — passed.
  • pnpm native:i18n:check — passed.
  • pnpm exec vitest run test/scripts/native-app-i18n.test.ts test/scripts/ci-workflow-guards.test.ts — 76 tests passed.
  • Both APKs report package ai.openclaw.app, version 2026.7.2, and the same signing certificate, with distinct Play version codes: phone 2026070201, Wear 260702011.
  • Packaged-manifest inspection confirmed the watch-only hardware feature, non-standalone metadata, and phone RPC route /openclaw/v1/status.

Tip

Real Behavior Proof

Physical Android phone and Wear OS watch behavior was verified with the matching proof APKs.

  • Environment: Pixel 10 Pro XL phone with Samsung Wear companion components and a Samsung SM-R945F watch running Android 16.
  • Security boundary: The phone owns the authenticated Gateway session; the watch uses Wear Data Layer only and has no direct Gateway identity or credentials.
  • Phone result: Gateway online, 2/2 active nodes online, and 0 pending approvals.
  • Watch result: Phone ready and Gateway connected.
  • Proof ownership: The phone screenshot is operator-provided; the watch screenshot was captured through the bound ADB transport and privacy-checked.
  • Remaining proof gap: This proof pass includes screenshots only, not video.
PhoneWatch
OpenClaw Android phone showing Gateway online and 2 of 2 nodes online OpenClaw Wear OS showing Phone ready and Gateway connected

@IWhatsskill
IWhatsskill marked this pull request as ready for review July 16, 2026 10:24
@IWhatsskill
IWhatsskill marked this pull request as draft July 16, 2026 11:33
@IWhatsskill
IWhatsskill marked this pull request as ready for review July 16, 2026 11:33
@clawsweeper

clawsweeper Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 16, 2026, 10:45 AM ET / 14:45 UTC.

Summary
Adds a status-only Wear OS companion, a versioned phone/watch RPC contract, a phone-side NodeRuntime status bridge, distinct Wear versioning, Android CI coverage, tests, licensing metadata, and proof images.

PR surface: Tests +22, Docs +7, Config +24, Other +1013. Total +1066 across 36 files.

Reproducibility: not applicable. as a bug reproduction: this PR introduces a new Wear OS capability. Its intended behavior is directly demonstrated on a physical phone/watch pair and supported by focused contract tests.

Review metrics: 2 noteworthy metrics.

  • Generated release metadata: 1 Wear version-code field added. OPENCLAW_ANDROID_WEAR_VERSION_CODE becomes a new generated artifact contract that Android release tooling must keep synchronized.
  • Wear publication wiring: 0 publication paths added. The PR builds and validates the watch artifact but intentionally does not add it to the currently documented Android release-bundle flow.

Stored data model
Persistent data-model change detected: serialized state: apps/android/wear/proguard-rules.pro, vector/embedding metadata: apps/android/wear/src/main/res/drawable/ic_openclaw_launcher.xml, vector/embedding metadata: scripts/native-app-i18n.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: canonical
Canonical: #108803
Summary: This PR is the canonical narrow status-only Wear foundation; the earlier broad MVP is superseded, while the open conversations PR is a dependent but materially broader feature.

Members:

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

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Risk before merge

  • [P1] The repository has not yet confirmed that it wants to own and publish an official Wear OS companion; merging without that decision can leave a maintained but undistributed product surface.
  • [P1] The broader dependent work at feat(android): add Wear conversations, voice, agents, and sessions #108997 substantially expands conversation, voice, agent, session, and persisted-preference behavior and should receive a separate product and security decision rather than inheriting approval from this status slice.

Maintainer options:

  1. Decide the mitigation before merge
    If the Android owner sponsors Wear OS, land the status-only phone-first bridge as phase one, explicitly define its release and ownership path, and keep the broader interaction work in feat(android): add Wear conversations, voice, agents, and sessions #108997 gated behind a separate review.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P2] The Android owner must decide whether OpenClaw should own and ship an official Wear companion; there is no remaining narrow code defect suitable for automated repair.

Maintainer decision needed

  • Question: Should OpenClaw sponsor an official Wear OS companion beginning with this phone-first, status-only slice?
  • Rationale: The implementation is bounded and well proven, but it creates a new official application and long-term release/maintenance surface that contributor code quality alone cannot authorize.
  • Likely owner: obviyus — Repository documentation explicitly assigns Android app ownership to @obviyus.
  • Options:
    • Sponsor status-only Wear (recommended): Accept the narrow phone-first status surface, require Android-owner review, and define the Wear publication path before announcing user availability.
    • Review the full Wear program: Pause this slice and evaluate it together with feat(android): add Wear conversations, voice, agents, and sessions #108997 as one coordinated product and security direction.
    • Decline official Wear support: Close the Wear PR series and avoid adding a new first-party application and release obligation.

Security
Cleared: No concrete security or supply-chain regression was found: the bridge exposes only bounded connectivity status over Wear Data Layer's matching-package/signature boundary and does not transfer Gateway credentials.

Review details

Best possible solution:

If the Android owner sponsors Wear OS, land the status-only phone-first bridge as phase one, explicitly define its release and ownership path, and keep the broader interaction work in #108997 gated behind a separate review.

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

Not applicable as a bug reproduction: this PR introduces a new Wear OS capability. Its intended behavior is directly demonstrated on a physical phone/watch pair and supported by focused contract tests.

Is this the best way to solve the issue?

Yes for implementation shape: the status-only, phone-first slice is narrower and safer than the earlier broad Wear proposal and relies on the platform's same-package/signature transport boundary. Product acceptance and release ownership still require an explicit maintainer decision.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a0d6cd724ab6.

Label changes

Label changes:

  • add P3: This is a well-proven but optional new product surface with no urgent regression or existing-user failure.
  • remove P2: Current review triage priority is P3, so this older priority label is no longer current.
  • remove merge-risk: 🚨 automation: Current PR review selected no merge-risk labels.
  • remove merge-risk: 🚨 security-boundary: Current PR review selected no merge-risk labels.

Label justifications:

  • P3: This is a well-proven but optional new product surface with no urgent regression or existing-user failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Physical-device screenshots directly show the phone's connected Gateway state and the watch's corresponding ready/connected result; later head commits only repair and format artifact versioning, with current-head APK metadata inspection also reported.
  • proof: sufficient: Contributor real behavior proof is sufficient. Physical-device screenshots directly show the phone's connected Gateway state and the watch's corresponding ready/connected result; later head commits only repair and format artifact versioning, with current-head APK metadata inspection also reported.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Physical-device screenshots directly show the phone's connected Gateway state and the watch's corresponding ready/connected result; later head commits only repair and format artifact versioning, with current-head APK metadata inspection also reported.
Evidence reviewed

PR surface:

Tests +22, Docs +7, Config +24, Other +1013. Total +1066 across 36 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 25 3 +22
Docs 3 10 3 +7
Config 1 27 3 +24
Generated 0 0 0 0
Other 29 1018 5 +1013
Total 36 1080 14 +1066

What I checked:

Likely related people:

  • obviyus: The Android README and CONTRIBUTING.md explicitly assign the Android app to @obviyus, and the timeline shows that account was mentioned and subscribed during this review cycle. (role: Android app maintainer and likely product-decision owner; confidence: high; files: apps/android/README.md, apps/android/app/src/main/AndroidManifest.xml, apps/android/app/src/main/java/ai/openclaw/app/NodeRuntime.kt)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (2 earlier review cycles)
  • reviewed 2026-07-16T11:22:04.104Z sha a4b8ae9 :: found issues before merge. :: [P2] Give the Wear artifact a unique version code
  • reviewed 2026-07-16T14:04:28.623Z sha 21f998e :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts labels Jul 16, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. and removed P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 16, 2026
IWhatsskill added a commit to IWhatsskill/openclaw that referenced this pull request Jul 16, 2026
@steipete

Copy link
Copy Markdown
Contributor

Superseded by #109433, which landed the complete phone-proxy Wear OS companion in 8d5e39afcd59c8af711029d3a7cedb2fe4cda24b with the shared protocol, bounded transport, app UI, tests, packaging, release setup, docs, and exact-head Android CI proof.

Thank you @IWhatsskill for the staged bridge work and device proof. Your contribution is credited in the landed Android changelog.

@steipete steipete closed this Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants