# AGENTS.md — watch/ (':watch') > Scoped supplement. Global rules in root `AGENTS.md` apply. - Gradle: :watch / dir: watch/ - Package roots present: ui, platform, service - Entry files: MainActivity.kt, Route.kt, Navigation.kt - Deps: :library:wearlink - Metadata: metadata_data/watch.md (present) - Rust: no / screenshotTest: yes ## Overview **Purpose:** Phone half of the Watch conduit — the sole phone<->watch messaging app on the phone. It is the only phone app that holds Bluetooth permissions and the only one that owns a real `WearLinkNode` (appId `watch_conduit`, in `service/ConduitService` via `ConduitHost` in `:library:wearlink`). Every other app reaches the watch through `WearLinkClientNode` bound to this app's conduit service. **Architecture / data-flow:** `service/ConduitService` (foreground, `connectedDevice`) hosts `ConduitHost` -> `ConduitRouter`, which routes by first path segment between local Messenger clients and the peer. `platform/BootReceiver` restarts it on boot/replacement. The single status screen renders `ConduitRuntime.state` (link state, registered apps, per-app counters) and offers the Bluetooth permission grant. **Entry points + reading order:** `Route` (`Status`) → `MainActivity.kt` → `Navigation.kt` → `ui/WatchStatusScreen.kt`; service side: `service/ConduitService.kt` → `:library:wearlink` conduit package. **Gotchas:** - `applicationId com.vayunmathur.watch` and the signing key are shared with `:watch:wear` on purpose: the handshake token and the `com.vayunmathur.watch.permissions.CONDUIT` signature permission both require one identity. - Do not add Bluetooth permissions anywhere else. wearlink declares none; this app and :watch:wear are the only Bluetooth holders. ## Key files ### Root — entry + navigation - com/vayunmathur/watch/MainActivity.kt - com/vayunmathur/watch/Navigation.kt - com/vayunmathur/watch/Route.kt ### service/ — conduit host - com/vayunmathur/watch/service/ConduitService.kt ### platform/ — boot restart - com/vayunmathur/watch/platform/BootReceiver.kt ### ui/ — status screen - com/vayunmathur/watch/ui/WatchStatusScreen.kt ## Verify (this module only) ``` ./gradlew :watch:compileDevKotlin ./gradlew :watch:lint ./gradlew :watch:checkMetadata ```