Modern Apps git

← Modern-Apps.git

docs: AGENTS.md for kart, securemail, communicate, library/tv; refresh stale paths

Commit
94e912a9f80ed7bf35c699244fd8d44d5daeee85
Author
Vayun Mathur <[email protected]>
When
2026-11-21 09:04 UTC (15 days ago)
Parents
5cea1bd
Four modules lacked AGENTS.md - written in sibling format
(kart's Rust engine gates, securemail's relay/biometric flow,
communicate's five lines and RingRTC-only calls, library/tv's
D-pad and image-slot rules). Note communicate/.gitignore
matches *.md, so its file needed a force-add.

Stale-reference refresh in seven files: almost all from the
util->platform and widget/glance->flat widget migrations
(maps 49 refs incl. its car/ section moving to platform/,
photos 27, weather, auto 7, email, notes' removed backup
agent line, library/ui's ConnectivityCompose belonging to
library/network). Every reference verified to exist afterwards.

Docs only; no builds.

Diff

auto/AGENTS.md
diff --git a/auto/AGENTS.md b/auto/AGENTS.mdindex 3914ce2fd3..44f20e85e5 100644--- a/auto/AGENTS.md+++ b/auto/AGENTS.md@@ -17,8 +17,8 @@ _Install: ./install auto (dev by default)._ - USB + wireless transports (`network/UsbConnector`/`WifiDirectConnector`, `HeadUnitServer`) speaking the GAL protocol in `:auto:protocol` (framing, TLS, video/input/sensor codecs) - Car cards: nav guidance, media now-playing + capture, call cards, messaging with voice reply, TTS, sensor feed (speed/gear/night-mode) - Role negotiation (MAOS host vs mirror), pairing flow, boot/startup services, `telephony/` in-call services for car calls-**Architecture / data-flow:** Transports → `:auto:protocol` codecs/sessions → `platform/` channels (video/audio/input/sensor/nav/media/messaging) → `CarAppHost` + card pushers → car display; `service/ProjectionService` owns the session, `platform/AutoViewModel` (+ `PairingViewModel`) drives `ui/` phone-side pairing/status.-**Entry points + reading order:** `Route` → `MainActivity.kt` → `platform/CarAppHost.kt` → `service/ProjectionService.kt` → `network/HeadUnitServer.kt` → `:auto:protocol` `GalConnection.kt`.+**Architecture / data-flow:** Transports → `:auto:protocol` codecs/sessions → `platform/` channels (video/audio/input/sensor/nav/media/messaging) → `HostManager`/`HostSession` (owned by `service/CarAppHostSession`) + card pushers → car display; `service/ProjectionService` owns the session, `platform/AutoViewModel` (+ `PairingViewModel`) drives `ui/` phone-side pairing/status.+**Entry points + reading order:** `Route` → `MainActivity.kt` → `service/CarAppHostSession.kt` → `service/ProjectionService.kt` → `network/HeadUnitServer.kt` → `:auto:protocol` `GalConnection.kt`. **Gotchas:** - Never evaluate this module on a phone screen — `./dhu` is the loop; car-display geometry comes from the head unit - Driver-distraction rules constrain the car UI (cards, not free navigation) — keep car surfaces templated@@ -35,7 +35,9 @@ _Install: ./install auto (dev by default)._ - com/vayunmathur/auto/network/UsbConnector.kt - com/vayunmathur/auto/network/WifiDirectConnector.kt ### platform/ — host, cards, channels, pairing, receivers-- com/vayunmathur/auto/platform/CarAppHost.kt+- com/vayunmathur/auto/platform/HostSession.kt — successor to the old `CarAppHost` (one hosted car-app session)+- com/vayunmathur/auto/platform/HostManager.kt — multi-app host fan-in+- com/vayunmathur/auto/service/CarAppHostSession.kt — session-scoped host owner - com/vayunmathur/auto/platform/AutoViewModel.kt - com/vayunmathur/auto/platform/PairingViewModel.kt - com/vayunmathur/auto/platform/AutoConnectionState.kt@@ -43,13 +45,7 @@ _Install: ./install auto (dev by default)._ - com/vayunmathur/auto/platform/CarDisplay.kt - com/vayunmathur/auto/platform/CarPresentation.kt - com/vayunmathur/auto/platform/CarApps.kt-- com/vayunmathur/auto/platform/CarDrawerView.kt-- com/vayunmathur/auto/platform/CarRailView.kt-- com/vayunmathur/auto/platform/CarNavCard.kt-- com/vayunmathur/auto/platform/CarMediaCard.kt-- com/vayunmathur/auto/platform/CarCallCard.kt - com/vayunmathur/auto/platform/CallCardPush.kt-- com/vayunmathur/auto/platform/CarUiKit.kt - com/vayunmathur/auto/platform/CarTts.kt - com/vayunmathur/auto/platform/VideoEncoder.kt - com/vayunmathur/auto/platform/VideoSinkChannel.kt
communicate/AGENTS.md
diff --git a/communicate/AGENTS.md b/communicate/AGENTS.mdnew file mode 100644index 0000000000..fc5ffe542a--- /dev/null+++ b/communicate/AGENTS.md@@ -0,0 +1,81 @@+# AGENTS.md — communicate/ (':communicate')++> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `communicate/` + allowed shared modules. Do not root-scan.++_Install: ./install communicate (dev by default)._+<!-- last-reviewed: 2026-11-21 -->+- Gradle: :communicate / dir: communicate/+- Package roots present: ui, data, domain, intents, service, telephony, notifications+- Entry files: MainActivity.kt, Route.kt, Navigation.kt+- Deps: :library:network, :library:image, :library:room, :library:aosp-stubs (compileOnly)+- Metadata: metadata_data/communicate.md (present)+- Rust: yes (two crates) / screenshotTest: yes++## Overview+**Purpose:** Multi-line messenger + dialer: SIM (SMS/MMS/calls), Google Voice, WhatsApp, Signal and RCS lines unified in one conversation list, with E2EE on the closed-loop lines. Requires internet + telephony permissions.+**Key features:**+- Five lines behind one `CommunicateLine` model: SIM via framework telephony, Google Voice (protojson RPC + SIP-over-WSS), WhatsApp primary client (Noise + Double Ratchet), Signal (libsignal + Rust protocol), RCS (SIP/MSRP + MLS E2EE)+- In-app calling over WebRTC/RingRTC for the internet lines; framework `InCallService`/`ConnectionService` for SIM + Google Voice telecom integration+- Android Auto car templates (`service/car/`), assistant send/read intents, voicemail tab with plain ExoPlayer playback+**Architecture / data-flow:** `ui/` tabs + conversation screens → `data/CommunicateRepository*` (per-line splits: `Sim`, `Send`, `Rcs`, `RcsGroup`, `Signal`, `WhatsApp`, `WhatsAppCalls`, `Merged`) over Room (`data/signal/SignalDatabase`, `data/rcs/RcsDatabase`, WhatsApp Room DB) and per-line transports in `data/<line>/`; `telephony/` owns framework call/SMS services, `service/car/` the car host. There is no `platform/` or `network/` root in this module — line transports live under `data/<line>/transport/` and framework glue under `telephony/`; don't create those roots here.+**Entry points + reading order:** `Route` (`Messages` / `Dialer` / `CallLogs` / `Accounts` / `Conversation(threadId, …)` / `Call` / registration wizards) → `MainActivity.kt` → `Navigation.kt` → `ui/MessagesScreen.kt` → `data/CommunicateRepository.kt`.+**Gotchas:**+- Two Rust crates, two JNI libs: `communicate_signal` (`src/main/rust/`, Signal protocol v3) via `data/signal/e2e/RustSignalCrypto`, and `communicate_mls` (`src/main/rust-mls/`, OpenMLS) via `data/rcs/e2e/RustMlsCrypto` — both guarded by `NativeLoader` + `isAvailable`; never call them unguarded and never merge the crates (own dependency trees).+- Protobuf is hand-rolled: AGP 9 breaks both Wire and protobuf Gradle plugins, so `build.gradle.kts` resolves `protoc` from Maven and runs `GenerateProtoTask` over `src/main/proto/` (11 Signal/WhatsApp protos) — don't add a proto plugin.+- RingRTC is the ONLY WebRTC distribution allowed on the classpath (it bundles `org.webrtc` and binds it via JNI names); never add another WebRTC dep. libsignal desktop natives (`*.dylib`/`*.dll`) and `libsignal_jni_testing.so` are stripped in packaging — keep those excludes.+- `:library:aosp-stubs` is `compileOnly` only (framework `@SystemApi` RCS/backup transport stubs) — it must never be packaged.+- Registration wizards are route sub-stacks (`Route.WhatsAppRegistration`, `Route.SignalRegistration`) carrying cc/number in arguments; reaching `Done` replaces the sub-stack — keep step state in route args, not in held selection state.+- Car code (`service/car/`) is the only car-app-library consumer here; phone UI, sync services and crypto paths must stay car-free.++## Key files+### Root — entry + navigation+- com/vayunmathur/communicate/MainActivity.kt+- com/vayunmathur/communicate/Navigation.kt+- com/vayunmathur/communicate/Route.kt+### data/ — unified repository (per-line splits)+- com/vayunmathur/communicate/data/CommunicateModels.kt+- com/vayunmathur/communicate/data/CommunicateRepository.kt+- com/vayunmathur/communicate/data/CommunicateRepositoryMerged.kt — plus per-line splits (`Sim`, `Send`, `Rcs`, `Signal`, `WhatsApp`)+- com/vayunmathur/communicate/data/SimManager.kt+- com/vayunmathur/communicate/data/SecretSealer.kt+### data/googlevoice/ — Voice line (RPC + SIP calls)+- com/vayunmathur/communicate/data/googlevoice/GoogleVoiceClient.kt+- com/vayunmathur/communicate/data/googlevoice/GoogleVoiceSession.kt+- com/vayunmathur/communicate/data/googlevoice/call/SipClient.kt+- com/vayunmathur/communicate/data/googlevoice/call/GoogleVoiceCallManager.kt+### data/whatsapp/ — WhatsApp primary client+- com/vayunmathur/communicate/data/whatsapp/WhatsAppClient.kt+- com/vayunmathur/communicate/data/whatsapp/WhatsAppDatabase.kt+- com/vayunmathur/communicate/data/whatsapp/WhatsAppRepository.kt+- com/vayunmathur/communicate/data/whatsapp/transport/WhatsAppSocket.kt+- com/vayunmathur/communicate/data/whatsapp/e2e/WhatsAppE2E.kt+### data/signal/ — Signal line (libsignal + Rust)+- com/vayunmathur/communicate/data/signal/SignalClient.kt+- com/vayunmathur/communicate/data/signal/SignalDatabase.kt+- com/vayunmathur/communicate/data/signal/SignalRepository.kt+- com/vayunmathur/communicate/data/signal/e2e/RustSignalCrypto.kt — guarded `communicate_signal` wrapper+- com/vayunmathur/communicate/data/signal/transport/SignalSocket.kt+### data/rcs/ — RCS line (SIP/MSRP + MLS)+- com/vayunmathur/communicate/data/rcs/RcsDatabase.kt+- com/vayunmathur/communicate/data/rcs/RcsSessionManager.kt+- com/vayunmathur/communicate/data/rcs/RcsMsrp.kt+- com/vayunmathur/communicate/data/rcs/e2e/RustMlsCrypto.kt — guarded `communicate_mls` wrapper+### telephony/ — framework call/SMS services+- com/vayunmathur/communicate/telephony/CommunicateInCallService.kt+- com/vayunmathur/communicate/telephony/GoogleVoiceConnectionService.kt+- com/vayunmathur/communicate/telephony/SmsDeliverReceiver.kt+- com/vayunmathur/communicate/telephony/RcsSyncService.kt+### service/car/ + intents/ + ui/+- com/vayunmathur/communicate/service/car/CommunicateCarAppService.kt+- com/vayunmathur/communicate/intents/SendMessageIntent.kt+- com/vayunmathur/communicate/intents/GetMessagesIntent.kt+- com/vayunmathur/communicate/ui/MessagesScreen.kt+- com/vayunmathur/communicate/ui/ConversationScreen.kt+- com/vayunmathur/communicate/ui/DialerScreen.kt++## Verify (this module only)+```+./gradlew :communicate:compileDevKotlin+./gradlew :communicate:lint+./gradlew :communicate:checkMetadata+```
email/AGENTS.md
diff --git a/email/AGENTS.md b/email/AGENTS.mdindex b3c68c1c5e..0873d6b94b 100644--- a/email/AGENTS.md+++ b/email/AGENTS.md@@ -117,8 +117,7 @@ _Install: ./install email (dev by default)._ - com/vayunmathur/email/intents/SearchIntent.kt - com/vayunmathur/email/intents/EmailDataMapper.kt ### widget/ — unified-inbox home widget-- com/vayunmathur/email/widget/EmailWidget.kt-- com/vayunmathur/email/widget/EmailWidgetReceiver.kt+- com/vayunmathur/email/widget/EmailWidget.kt — includes `EmailWidgetReceiver` (one widget, one file)  ## Verify (this module only) ```
games/kart/AGENTS.md
diff --git a/games/kart/AGENTS.md b/games/kart/AGENTS.mdnew file mode 100644index 0000000000..68a9171f6a--- /dev/null+++ b/games/kart/AGENTS.md@@ -0,0 +1,70 @@+# AGENTS.md — games/kart/ (':games:kart')++> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/kart/` + allowed shared modules. Do not root-scan.++_Install: ./install games/kart (dev by default)._+<!-- last-reviewed: 2026-11-21 -->+- Gradle: :games:kart / dir: games/kart/+- Package roots present: data, domain, platform, ui+- Entry files: MainActivity.kt, Route.kt, Navigation.kt+- Deps: :sdk:games, :sdk:controller, :library:e2ee-p2p+- Metadata: metadata_data/games-kart.md (present)+- Rust: yes / screenshotTest: yes++## Overview+**Purpose:** 3D kart racer (Sunset Oval) — native Rust engine (Vulkan, with a GLES fallback for 32-bit TV hardware), kart physics, chase cam, items and AI; phones join as controllers.+**Game shape:** `Route` (`Lobby` / `Race` / `Results`) → `platform/KartViewModel` → `domain/` race/input rules + `platform/KartHost` (`:sdk:controller` lobby fan-in) → `platform/KartNative` → `src/main/rust/` engine; achievements → `:sdk:games` → hub.+**Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/KartGameScreen.kt` → `platform/KartViewModel.kt` → `platform/KartNative.kt` / `domain/PlaceholderRace.kt`.+**Gotchas:**+- Native Rust: crate `kart_engine` in `src/main/rust/` (engine/physics/track/mesh/items + `vulkan/` and `gles/` renderers, GLSL `kart.vert`/`kart.frag` compiled at runtime by the GLES path). `rustNativeLib` also opts into `armeabi-v7a` for the ONN 4K box (32-bit, Mali-G31, no Vulkan) — the only such game; don't drop the armv7 ABI.+- `platform/KartNative` is the sole `kart_engine` wrapper: every call is gated on `KartNative.isAvailable`; without the `.so` the game runs `domain/PlaceholderRace` — never call native entry points unguarded.+- Controller dep IS present (`:sdk:controller`): `platform/KartHost` advertises `_gamepad._tcp`, accepts phones and fans `ControllerInput` into the race loop (`domain/GameInputLoop`); `platform/GamepadDirect` handles a locally attached gamepad in `MainActivity`. PQC identity stays behind lambdas in `KartHost` — this module never touches the `:library:e2ee-p2p` native library directly.+- Listing images are hand-captured — Layoutlib can't render the Vulkan surface; `src/screenshotTest` previews cover only the non-surface UI.+- `KartDataStore` (`data/`) is the sole prefs owner (cup pointer + lifetime counters); countdown is in-screen state of `Route.Race`, not a destination.++## Key files+### Root — entry + navigation+- com/vayunmathur/games/kart/MainActivity.kt+- com/vayunmathur/games/kart/Route.kt+- com/vayunmathur/games/kart/Navigation.kt+### data/ — progress store + models+- com/vayunmathur/games/kart/data/KartDataStore.kt+- com/vayunmathur/games/kart/data/KartModels.kt+### domain/ — pure race + input rules+- com/vayunmathur/games/kart/domain/KartRules.kt+- com/vayunmathur/games/kart/domain/LapTracker.kt+- com/vayunmathur/games/kart/domain/GameInputLoop.kt+- com/vayunmathur/games/kart/domain/PlaceholderRace.kt+- com/vayunmathur/games/kart/domain/RumbleDecider.kt+### platform/ — ViewModel, native wrapper, controller host+- com/vayunmathur/games/kart/platform/KartViewModel.kt+- com/vayunmathur/games/kart/platform/KartNative.kt — sole guarded `kart_engine` wrapper+- com/vayunmathur/games/kart/platform/KartHost.kt — `:sdk:controller` lobby host+- com/vayunmathur/games/kart/platform/KartPairingStore.kt+- com/vayunmathur/games/kart/platform/GamepadDirect.kt+- com/vayunmathur/games/kart/platform/RacePhase.kt+- com/vayunmathur/games/kart/platform/KartUiContract.kt+- com/vayunmathur/games/kart/platform/KartAchievementsManager.kt+- com/vayunmathur/games/kart/platform/AppBackupAgent.kt+### ui/ — race screens + native surface+- com/vayunmathur/games/kart/ui/KartGameScreen.kt+- com/vayunmathur/games/kart/ui/KartGamePage.kt+- com/vayunmathur/games/kart/ui/KartSurfaceView.kt+### src/main/rust/ — native engine (kart_engine)+- src/main/rust/src/lib.rs — JNI entry points+- src/main/rust/src/engine.rs+- src/main/rust/src/physics.rs+- src/main/rust/src/track.rs+- src/main/rust/src/race.rs+- src/main/rust/src/items.rs+- src/main/rust/src/mesh.rs+- src/main/rust/src/renderer.rs+- src/main/rust/src/vulkan/mod.rs+- src/main/rust/src/gles/mod.rs++## Verify (this module only)+```+./gradlew :games:kart:compileDevKotlin+./gradlew :games:kart:lint+./gradlew :games:kart:checkMetadata+```
library/tv/AGENTS.md
diff --git a/library/tv/AGENTS.md b/library/tv/AGENTS.mdnew file mode 100644index 0000000000..6e46e554f5--- /dev/null+++ b/library/tv/AGENTS.md@@ -0,0 +1,40 @@+# AGENTS.md — library/tv/ (':library:tv')++> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/tv/` + allowed shared modules. Do not root-scan.++<!-- last-reviewed: 2026-11-21 -->+- Gradle: :library:tv / dir: library/tv/+- Package roots present: (TV Compose components — one package)+- Entry files: TvAppFrame.kt + TvTheme.kt (no MainActivity/Route — library)+- Deps: :library, :library:ui+- Metadata: metadata_data/library-tv.md (absent — libraries have none by design)+- Rust: no / screenshotTest: no++## Overview+**Purpose:** Shared ten-foot TV Compose components — always-dark themed app frame with a navigation rail, D-pad-first cards/grids/controls/inputs, states and player transport, built on `androidx.tv.material`.+**How to use:** Host app wraps screens in `TvAppFrame` (or the route-backed overload with `TvRouteDestination`s), lays bodies out in `TvGrid`, and renders items with `TvCard`/`TvInfoCard`; accent per app via `TvAccent`, spacing via `TvDimens`.+**Entry points:** `TvAppFrame.kt` → `TvTheme.kt` → `TvGrid.kt` → `TvCards.kt`.+**Gotchas:**+- Consumers are TV surfaces in several apps — `cast/tv` (the receiver), plus the TV UIs in `appstore`, `uniflix` and `youpipe` (each declares `implementation(project(":library:tv"))`). Keep components app-agnostic: no app models, routes or stores in here.+- No INTERNET and no `:library:image` by design: this module must not inherit network/image loading, so the offline cast receiver stays offline. Image-bearing components take a caller-provided image slot/composable instead of a URL — never add `:library:image` or a URL loader here.+- Icons come only from `:library:ui` (`IconXxx()`); a destination's icon is an `IconXxx()` composable, never a raw resource in this module.+- D-pad first: focus must always have a starting target (`TvInitialFocus`), focused surfaces flip near-white with dark content, and `TvTextField` raises the IME only on an explicit CENTER press.+- Draw-only transport: `TvSeekBar` renders progress/markers only — the caller owns LEFT/RIGHT scrubbing and playback state.++## Key files+- com/vayunmathur/library/tv/TvAppFrame.kt — rail app frame (`TvDestination` / route-backed `TvRouteDestination`)+- com/vayunmathur/library/tv/TvTheme.kt — always-dark theme, `TvAccent`, `TvDimens`+- com/vayunmathur/library/tv/TvLayout.kt — content insets/padding for overscan-safe screens+- com/vayunmathur/library/tv/TvGrid.kt — scrolling screen grid + full-width rows+- com/vayunmathur/library/tv/TvCards.kt — media/catalog card (`TvAspect` ratios)+- com/vayunmathur/library/tv/TvInfoCard.kt — full-information list-row card+- com/vayunmathur/library/tv/TvControls.kt — `TvButton` / `TvIconButton`+- com/vayunmathur/library/tv/TvInput.kt — D-pad text field (IME on CENTER only)+- com/vayunmathur/library/tv/TvStates.kt — initial-focus helper + empty/error states+- com/vayunmathur/library/tv/TvTransport.kt — draw-only player seek bar++## Verify (this module only)+```+./gradlew :library:tv:compileDevKotlin+./gradlew :library:tv:lint+```
library/ui/AGENTS.md
diff --git a/library/ui/AGENTS.md b/library/ui/AGENTS.mdindex e11a26ce29..883b29fa80 100644--- a/library/ui/AGENTS.md+++ b/library/ui/AGENTS.md@@ -163,7 +163,7 @@ - com/vayunmathur/library/ui/odf/PdfExporter.kt - com/vayunmathur/library/ui/odf/LatexExporter.kt ### Connectivity-- com/vayunmathur/library/util/ConnectivityCompose.kt — offline banner (`OfflineAware`); `util` package but owned by this module+- com/vayunmathur/library/util/ConnectivityCompose.kt — offline banner (`OfflineAware`); lives in `:library:network`, not this module (#884) - com/vayunmathur/library/ui/Haptics.kt  ## Verify (this module only)
maps/AGENTS.md
diff --git a/maps/AGENTS.md b/maps/AGENTS.mdindex 7c8ef97d41..52e657a7c9 100644--- a/maps/AGENTS.md+++ b/maps/AGENTS.md@@ -5,7 +5,7 @@ _Install: ./install maps (dev by default)._ <!-- last-reviewed: 2026-10-16 --> - Gradle: :maps / dir: maps/-- Package roots present: ui, data, intents+- Package roots present: ui, data, domain, platform, service, intents, util (single JNI-exception file) - Entry files: MainActivity.kt (no Route.kt — `Route` + `Navigation` are inline) - Deps: :library:map, :library:image, :library:network, :library:downloadservice - Metadata: metadata_data/maps.md (present)@@ -15,28 +15,28 @@ _Install: ./install maps (dev by default)._ **Purpose:** A fast open-source map + navigation app on OpenStreetMap, with all routing on device. Internet only for new tiles, search, traffic, and transit delays. **Key features:** - On-device routing (drive/walk/bike/transit) over a single packed `.mamaps` archive, downloaded once on first launch; viewed areas keep working offline-- Turn-by-turn navigation with voice (TTS), lane guidance, speed-limit widget, and elevation; Android Auto via `car/`+- Turn-by-turn navigation with voice (TTS), lane guidance, speed-limit widget, and elevation; Android Auto via `platform/` - Place details, saved places, transit departure boards, Street View, parking, and POI search (offline index from the archive; ratings/review counts/summaries are archive-only, `poi_attrs` keys 10-12) - Google is used for exactly two opt-in features (Settings → Google services): Street View and non-review place details (photos, hours, phone/website, popular times) via `GooglePoiDataSource`. No Google search, traffic, POI discovery or reviews - Handles external `geo:` / `google.navigation:` / Google-Maps links from other apps-**Architecture / data-flow:** `ui/` map surface + sheets over per-concern `util/` ViewModels (`SelectedFeatureViewModel`, `MapsSearchViewModel`, `SavedPlacesViewModel`, …) → `data/` stores/parsers + `util/OfflineRouter*` routing against the memory-mapped archive; guidance runs in the `util/NavigationService` foreground service via `NavigationSessionManager`. `onCreateBeforeContent`: `NetworkClient.init(FIRST_PARTY)` → delete the legacy `world_z0-6.pmtiles` → route the cold-start deep link; `Content()` gates on the `.mamaps` download before the map renders.-**Entry points + reading order:** `Route` (`MapPage` / `SavedPlacesPage` / `SettingsPage`, inline) → `MainActivity.kt` (`handleIntent`, `navigateTo`) → `ui/MapPage.kt` → `util/SelectedFeatureViewModel.kt` → `util/OfflineRouterRoadRoutes.kt`.+**Architecture / data-flow:** `ui/` map surface + sheets over per-concern `platform/` ViewModels (`SelectedFeatureViewModel`, `MapsSearchViewModel`, `SavedPlacesViewModel`, …) → `data/` stores/parsers + `data/OfflineRouter*` routing against the memory-mapped archive; guidance runs in the `service/NavigationService` foreground service via `NavigationSessionManager`. `onCreateBeforeContent`: `NetworkClient.init(FIRST_PARTY)` → delete the legacy `world_z0-6.pmtiles` → route the cold-start deep link; `Content()` gates on the `.mamaps` download before the map renders.+**Entry points + reading order:** `Route` (`MapPage` / `SavedPlacesPage` / `SettingsPage`, inline) → `MainActivity.kt` (`handleIntent`, `navigateTo`) → `ui/MapPage.kt` → `platform/SelectedFeatureViewModel.kt` → `data/OfflineRouterRoadRoutes.kt`. **Gotchas:** - The `.mamaps` gate hosts app start — the archive URL must be live before a version ships; `adb push` the file to sideload a locally built archive - `singleTop` warm-start geo/navigation links arrive via `onNewIntent`, not a fresh `onCreate` - The map itself never splits panes (list/detail metadata only for settings/saved); its expanded side panel is separate inside `MapPage`-- Extra non-conforming dirs (`car/`, `ipc/`, `util/`) hold real code — closed-roots migration pending+- `util/` now holds only `OfflineRouter.kt` (JNI package exception); car, cross-app clients and ViewModels all live in closed roots (`platform/`, `intents/`)  ## Key files ### Root — entry + inline navigation - com/vayunmathur/maps/MainActivity.kt — Route, Navigation, geo-link handling, archive gate-### car/ — Android Auto surface-- com/vayunmathur/maps/car/MapsCarAppService.kt-- com/vayunmathur/maps/car/MapsSession.kt-- com/vayunmathur/maps/car/NavMapScreen.kt-- com/vayunmathur/maps/car/CarMapRenderer.kt-- com/vayunmathur/maps/car/CarManeuvers.kt-- com/vayunmathur/maps/car/CarSearchScreen.kt+### platform/ — Android Auto surface+- com/vayunmathur/maps/platform/MapsCarAppService.kt+- com/vayunmathur/maps/platform/MapsSession.kt+- com/vayunmathur/maps/platform/NavMapScreen.kt+- com/vayunmathur/maps/platform/CarMapRenderer.kt+- com/vayunmathur/maps/platform/CarManeuvers.kt+- com/vayunmathur/maps/platform/CarSearchScreen.kt ### data/ — prefs, places, POI + transit sources - com/vayunmathur/maps/data/MapPreferences.kt - com/vayunmathur/maps/data/MapLinkParser.kt — external geo/maps URL parsing@@ -58,12 +58,12 @@ _Install: ./install maps (dev by default)._ - com/vayunmathur/maps/data/transit/TransitousModels.kt ### intents/ — assistant IPC - com/vayunmathur/maps/intents/DirectionsIntent.kt-### ipc/ — cross-app estimate/lookup clients-- com/vayunmathur/maps/ipc/RideEstimateClient.kt — launches taxi intents-- com/vayunmathur/maps/ipc/OrderLookupClient.kt — launches fooddelivery intents-- com/vayunmathur/maps/ipc/FamilyLocationClient.kt-- com/vayunmathur/maps/ipc/FamilyLocationProtocol.kt-- com/vayunmathur/maps/ipc/IntentLaunch.kt+### intents/ — cross-app estimate/lookup clients+- com/vayunmathur/maps/intents/RideEstimateClient.kt — launches taxi intents+- com/vayunmathur/maps/intents/OrderLookupClient.kt — launches fooddelivery intents+- com/vayunmathur/maps/intents/FamilyLocationClient.kt+- com/vayunmathur/maps/intents/FamilyLocationProtocol.kt+- com/vayunmathur/maps/intents/IntentLaunch.kt ### ui/ — pages, sheets, layers - com/vayunmathur/maps/ui/MapPage.kt - com/vayunmathur/maps/ui/MapPageScope.kt@@ -140,46 +140,46 @@ _Install: ./install maps (dev by default)._ - com/vayunmathur/maps/ui/theme/MapTokens.kt - com/vayunmathur/maps/ui/theme/BasemapPalette.kt - com/vayunmathur/maps/ui/theme/MapChromeMetrics.kt-### util/ — ViewModels, offline router, navigation service (migration pending)-- com/vayunmathur/maps/util/SelectedFeatureViewModel.kt-- com/vayunmathur/maps/util/MapsSearchViewModel.kt-- com/vayunmathur/maps/util/MapsUiContract.kt-- com/vayunmathur/maps/util/SavedPlacesViewModel.kt-- com/vayunmathur/maps/util/MapSettingsViewModel.kt-- com/vayunmathur/maps/util/PlacePanelState.kt-- com/vayunmathur/maps/util/PoiMapViewModel.kt — map POI pins from the offline index-- com/vayunmathur/maps/util/TransitStopsViewModel.kt-- com/vayunmathur/maps/util/TransitClock.kt-- com/vayunmathur/maps/util/ParkingViewModel.kt-- com/vayunmathur/maps/util/MapTileCache.kt — `.mamaps` archive access+### platform/ + data/ + domain/ + service/ — ViewModels, offline router, navigation service+- com/vayunmathur/maps/platform/SelectedFeatureViewModel.kt+- com/vayunmathur/maps/platform/MapsSearchViewModel.kt+- com/vayunmathur/maps/platform/MapsUiContract.kt+- com/vayunmathur/maps/platform/SavedPlacesViewModel.kt+- com/vayunmathur/maps/platform/MapSettingsViewModel.kt+- com/vayunmathur/maps/platform/PlacePanelState.kt+- com/vayunmathur/maps/platform/PoiMapViewModel.kt — map POI pins from the offline index+- com/vayunmathur/maps/platform/TransitStopsViewModel.kt+- com/vayunmathur/maps/domain/TransitClock.kt+- com/vayunmathur/maps/platform/ParkingViewModel.kt+- com/vayunmathur/maps/data/MapTileCache.kt — `.mamaps` archive access - com/vayunmathur/maps/util/OfflineRouter.kt-- com/vayunmathur/maps/util/OfflineRouterRoadRoutes.kt-- com/vayunmathur/maps/util/OfflineRouterRouteBuilder.kt-- com/vayunmathur/maps/util/OfflineRouterTraffic.kt-- com/vayunmathur/maps/util/OfflineRouterTransit.kt-- com/vayunmathur/maps/util/RouteService.kt-- com/vayunmathur/maps/util/NavigationService.kt — foreground guidance service-- com/vayunmathur/maps/util/NavigationSessionManager.kt-- com/vayunmathur/maps/util/NavigationTts.kt-- com/vayunmathur/maps/util/PolylineProgress.kt-- com/vayunmathur/maps/util/GTFSProvider.kt-- com/vayunmathur/maps/util/PoiIndex.kt-- com/vayunmathur/maps/util/PoiIndexAttrs.kt-- com/vayunmathur/maps/util/PoiIndexSpatial.kt-- com/vayunmathur/maps/util/PoiIndexWords.kt-- com/vayunmathur/maps/util/PoiIndexRegion.kt — `poi_region` (kind 15) boundary links-- com/vayunmathur/maps/util/PoiIndexAdmin.kt — `poi_admin` (kind 16) hierarchy; search-row locality ("City, State, Country")-- com/vayunmathur/maps/util/PoiSearchEngine.kt — indexed name search (ordinal scans + grid join, blended text/distance rank)-- com/vayunmathur/maps/util/PoiSearchHits.kt — ordinal hit table for the search engine-- com/vayunmathur/maps/util/PoiArchive.kt — POI sections out of the archive (per-section mmaps; planet is ~80 GB)-- com/vayunmathur/maps/util/PoiCategories.kt-- com/vayunmathur/maps/util/SpatialKey.kt-- com/vayunmathur/maps/util/RegionalUnits.kt-- com/vayunmathur/maps/util/ItineraryWording.kt-- com/vayunmathur/maps/util/Wikidata.kt-- com/vayunmathur/maps/util/CameraBounds.kt-- com/vayunmathur/maps/util/ContactLookup.kt-- com/vayunmathur/maps/util/FrameworkLocationManager.kt+- com/vayunmathur/maps/data/OfflineRouterRoadRoutes.kt+- com/vayunmathur/maps/data/OfflineRouterRouteBuilder.kt+- com/vayunmathur/maps/data/OfflineRouterTraffic.kt+- com/vayunmathur/maps/data/OfflineRouterTransit.kt+- com/vayunmathur/maps/domain/RouteService.kt+- com/vayunmathur/maps/service/NavigationService.kt — foreground guidance service+- com/vayunmathur/maps/platform/NavigationSessionManager.kt+- com/vayunmathur/maps/platform/NavigationTts.kt+- com/vayunmathur/maps/domain/PolylineProgress.kt+- com/vayunmathur/maps/data/GTFSProvider.kt+- com/vayunmathur/maps/data/PoiIndex.kt+- com/vayunmathur/maps/data/PoiIndexAttrs.kt+- com/vayunmathur/maps/data/PoiIndexSpatial.kt+- com/vayunmathur/maps/data/PoiIndexWords.kt+- com/vayunmathur/maps/data/PoiIndexRegion.kt — `poi_region` (kind 15) boundary links+- com/vayunmathur/maps/data/PoiIndexAdmin.kt — `poi_admin` (kind 16) hierarchy; search-row locality ("City, State, Country")+- com/vayunmathur/maps/data/PoiSearchEngine.kt — indexed name search (ordinal scans + grid join, blended text/distance rank)+- com/vayunmathur/maps/data/PoiSearchHits.kt — ordinal hit table for the search engine+- com/vayunmathur/maps/data/PoiArchive.kt — POI sections out of the archive (per-section mmaps; planet is ~80 GB)+- com/vayunmathur/maps/data/PoiCategories.kt+- com/vayunmathur/maps/domain/SpatialKey.kt+- com/vayunmathur/maps/platform/RegionalUnits.kt+- com/vayunmathur/maps/domain/ItineraryWording.kt+- com/vayunmathur/maps/data/Wikidata.kt+- com/vayunmathur/maps/domain/CameraBounds.kt+- com/vayunmathur/maps/platform/ContactLookup.kt+- com/vayunmathur/maps/platform/FrameworkLocationManager.kt  ## Verify (this module only) ```
notes/AGENTS.md
diff --git a/notes/AGENTS.md b/notes/AGENTS.mdindex d67a9b7554..5691189266 100644--- a/notes/AGENTS.md+++ b/notes/AGENTS.md@@ -16,7 +16,7 @@ _Install: ./install notes (dev by default)._ **Key features:** - Block-based editor (`Note`/`NoteBlock`) with stylus ink (`:library:ink`) and images (`:library:image`, content-addressed `sha256.jpg`) - `.md` import/export — opens files shared from other apps, desktop file-drop, shares notes back out-- OpenAssistant read/add via `intents/`; local backup/restore via `AppBackupAgent`+- OpenAssistant read/add via `intents/`; local backup/restore via the in-app backup buttons (`BackupButtons`, no backup agent) **Architecture / data-flow:** `ui/` Compose list/detail → `platform/NotesViewModel` (+ `NotesUiContract`) → `data/NotesRepository` singleton over Room (`Note`/`NoteBlock`/`NoteDatabase`). `MainActivity.onCreateBeforeContent`: repo init → one-time legacy-notes clear + image `img_<uuid>.jpg → sha256.jpg` migration with block-reference rewrite → `ready` gate before `Navigation`. **Entry points + reading order:** `Route` (`NotesList` / `Note(id)` / `ExternalNote(uri)`) → `MainActivity.kt` → `Navigation.kt` → `platform/NotesViewModel.kt` → `data/NotesRepository.kt`. **Gotchas:**@@ -42,7 +42,6 @@ _Install: ./install notes (dev by default)._ - com/vayunmathur/notes/platform/NotesUiContract.kt - com/vayunmathur/notes/platform/NoteImageStore.kt — content-addressed image copy + migration - com/vayunmathur/notes/platform/NoteMarkdownExporter.kt-- com/vayunmathur/notes/platform/AppBackupAgent.kt ### ui/ — list/detail/ink/external screens - com/vayunmathur/notes/ui/NotesListScreen.kt - com/vayunmathur/notes/ui/NotesListPage.kt
photos/AGENTS.md
diff --git a/photos/AGENTS.md b/photos/AGENTS.mdindex 94043207ae..a7f083e68d 100644--- a/photos/AGENTS.md+++ b/photos/AGENTS.md@@ -5,7 +5,7 @@ _Install: ./install photos (dev by default)._ <!-- last-reviewed: 2026-10-16 --> - Gradle: :photos / dir: photos/-- Package roots present: ui, data, domain, platform, service+- Package roots present: ui, data, domain, platform, service, widget - Entry files: MainActivity.kt (no Route.kt — `Route` + `Navigation` are inline) - Deps: :library:map, :library:image, :library:ml, :library:room, :library:ink, :library:widgets, :library:biometric, :library:ocr, :library:downloadservice - Metadata: metadata_data/photos.md (present)@@ -18,13 +18,13 @@ _Install: ./install photos (dev by default)._ - Non-destructive editor: curves, HSL, levels, healing, liquify, layers, selective edits, undo/redo — edits stored as `data/*Data` docs, composited by `LayerCompositor` - On-device search by content (CLIP), by text (OCR layout), and by person (face recognition + segmentation); biometric-locked secure folder with optional relock-on-exit - Wallpaper/live-wallpaper, Glance home widget, motion-photo support, and background sync worker-**Architecture / data-flow:** `ui/` pages over `util/` ViewModels (`GalleryViewModel`, `PhotoEditViewModel`, `VideoEditViewModel`, `PhotoMapViewModel`, `SecureFolderViewModel`) → `data/` Room (`PhotoDatabase`, `VaultDatabase`, `PhotosRepository`/`VaultRepository`) plus MediaStore indexing (`AlbumMediaStore`); ML (faces, CLIP, OCR, segmentation) runs on `:library:ml` with a Rust native bridge (`PhotosNative`). `onCreateBeforeContent`: widget previews + `ImageLoader.init`; `Content()` provides the column-count state behind a media-permissions gate into inline `Navigation()`.-**Entry points + reading order:** `Route` (`Gallery` / `PhotoPage` / `Map` / `People` / `Albums` / `Trash` / `SecureFolder` / `VaultViewer` / `Wallpaper`, inline) → `MainActivity.kt` → `ui/GalleryPage.kt` → `util/GalleryViewModel.kt` → `data/PhotosRepository.kt`.+**Architecture / data-flow:** `ui/` pages over `platform/` ViewModels (`GalleryViewModel`, `PhotoEditViewModel`, `VideoEditViewModel`, `PhotoMapViewModel`, `SecureFolderViewModel`) → `data/` Room (`PhotoDatabase`, `VaultDatabase`, `PhotosRepository`/`VaultRepository`) plus MediaStore indexing (`AlbumMediaStore`); ML (faces, CLIP, OCR, segmentation) runs on `:library:ml` with a Rust native bridge (`PhotosNative`). `onCreateBeforeContent`: widget previews + `ImageLoader.init`; `Content()` provides the column-count state behind a media-permissions gate into inline `Navigation()`.+**Entry points + reading order:** `Route` (`Gallery` / `PhotoPage` / `Map` / `People` / `Albums` / `Trash` / `SecureFolder` / `VaultViewer` / `Wallpaper`, inline) → `MainActivity.kt` → `ui/GalleryPage.kt` → `platform/GalleryViewModel.kt` → `data/PhotosRepository.kt`. **Gotchas:** - Re-tapping a photo replaces the viewer (`pushPhoto`/`setLast`) instead of stacking — don't `add()` photo routes or back steps through stale viewers - `ACTION_VIEW` from another app (e.g. the camera) makes that one photo the stack root with no gallery beneath; in-app back handling must not swallow the system predictive-back gesture there - `MaFragmentActivity` (not `MaActivity`) — biometric + fragment-hosting requirement-- Extra non-conforming dirs (`glance/`, `util/`) hold real code — closed-roots migration pending+- Widget code is flat in `widget/` (widget + receiver in one file); ViewModels/ML/compositing live in `platform/`, pure helpers in `domain/`  ## Key files ### Root — entry + inline navigation@@ -74,12 +74,10 @@ _Install: ./install photos (dev by default)._ - com/vayunmathur/photos/domain/FaceQuality.kt — which faces may form people - com/vayunmathur/photos/domain/FaceClustering.kt — batch average-linkage grouping - com/vayunmathur/photos/domain/FaceClusterIdentity.kt — keeps person ids/names across regroups-### glance/ — home widget-- com/vayunmathur/photos/glance/PhotoGlanceWidget.kt-- com/vayunmathur/photos/glance/PhotoGlanceWidgetReceiver.kt-### platform/ — motion-photo + ET models+### widget/ — home widget+- com/vayunmathur/photos/widget/PhotoGlanceWidget.kt — includes `PhotoGlanceWidgetReceiver` (one widget, one file)+### platform/ — motion-photo - com/vayunmathur/photos/platform/MotionPhotoVideo.kt-- com/vayunmathur/photos/platform/PhotosEtModels.kt ### service/ — live wallpaper - com/vayunmathur/photos/service/LiveWallpaperService.kt ### ui/ — gallery, albums, people, map@@ -153,31 +151,30 @@ _Install: ./install photos (dev by default)._ - com/vayunmathur/photos/ui/SecureFolderPage.kt - com/vayunmathur/photos/ui/VaultViewerPage.kt - com/vayunmathur/photos/ui/VaultViewerScreen.kt-### util/ — ViewModels, ML, compositing, sync (migration pending)-- com/vayunmathur/photos/util/GalleryViewModel.kt-- com/vayunmathur/photos/util/GalleryUiContract.kt-- com/vayunmathur/photos/util/PhotoEditViewModel.kt-- com/vayunmathur/photos/util/VideoEditViewModel.kt-- com/vayunmathur/photos/util/PhotoMapViewModel.kt-- com/vayunmathur/photos/util/SecureFolderViewModel.kt-- com/vayunmathur/photos/util/SecureFolderManager.kt-- com/vayunmathur/photos/util/LayerCompositor.kt-- com/vayunmathur/photos/util/UndoRedoManager.kt-- com/vayunmathur/photos/util/OverlayRendering.kt-- com/vayunmathur/photos/util/FaceRecognizer.kt-- com/vayunmathur/photos/util/FaceCropTransformation.kt-- com/vayunmathur/photos/util/MlSegmentation.kt-- com/vayunmathur/photos/util/ClipEmbedder.kt-- com/vayunmathur/photos/util/ClipTokenizer.kt-- com/vayunmathur/photos/util/ImageLoader.kt-- com/vayunmathur/photos/util/PanoXmpParser.kt-- com/vayunmathur/photos/util/PhotosNative.kt — Rust bridge-- com/vayunmathur/photos/util/AlbumMediaStore.kt-- com/vayunmathur/photos/util/SyncWorker.kt-- com/vayunmathur/photos/util/SyncWorkerHelper.kt-- com/vayunmathur/photos/util/LiveWallpaperLauncher.kt-- com/vayunmathur/photos/util/WallpaperHelper.kt-- com/vayunmathur/photos/util/AppBackupAgent.kt+### platform/ — ViewModels, ML, compositing, sync+- com/vayunmathur/photos/platform/GalleryViewModel.kt+- com/vayunmathur/photos/platform/GalleryUiContract.kt+- com/vayunmathur/photos/platform/PhotoEditViewModel.kt+- com/vayunmathur/photos/platform/VideoEditViewModel.kt+- com/vayunmathur/photos/platform/PhotoMapViewModel.kt+- com/vayunmathur/photos/platform/SecureFolderViewModel.kt+- com/vayunmathur/photos/platform/SecureFolderManager.kt+- com/vayunmathur/photos/platform/LayerCompositor.kt+- com/vayunmathur/photos/domain/UndoRedoManager.kt+- com/vayunmathur/photos/platform/OverlayRendering.kt+- com/vayunmathur/photos/platform/FaceRecognizer.kt+- com/vayunmathur/photos/platform/FaceCropTransformation.kt+- com/vayunmathur/photos/platform/MlSegmentation.kt+- com/vayunmathur/photos/platform/ClipEmbedder.kt+- com/vayunmathur/photos/platform/ClipTokenizer.kt+- com/vayunmathur/photos/platform/ImageLoader.kt+- com/vayunmathur/photos/domain/PanoXmpParser.kt+- com/vayunmathur/photos/platform/PhotosNative.kt — Rust bridge+- com/vayunmathur/photos/platform/AlbumMediaStore.kt+- com/vayunmathur/photos/platform/SyncWorker.kt+- com/vayunmathur/photos/platform/SyncWorkerHelper.kt+- com/vayunmathur/photos/platform/LiveWallpaperLauncher.kt+- com/vayunmathur/photos/platform/WallpaperHelper.kt  ## Verify (this module only) ```
securemail/AGENTS.md
diff --git a/securemail/AGENTS.md b/securemail/AGENTS.mdnew file mode 100644index 0000000000..0a2681bf39--- /dev/null+++ b/securemail/AGENTS.md@@ -0,0 +1,76 @@+# AGENTS.md — securemail/ (':securemail')++> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `securemail/` + allowed shared modules. Do not root-scan.++_Install: ./install securemail (dev by default)._+<!-- last-reviewed: 2026-11-21 -->+- Gradle: :securemail / dir: securemail/+- Package roots present: ui, data, domain, platform, network, service+- Entry files: MainActivity.kt, Route.kt, Navigation.kt+- Deps: :library:network, :library:biometric, :library:work, :library:room, :library:e2ee-openpgp+- Metadata: metadata_data/securemail.md (present)+- Rust: no (native PGP via :library:e2ee-openpgp) / screenshotTest: yes++## Overview+**Purpose:** End-to-end-encrypted mail over the `mail.maemail.org` relay — OpenPGP identity per user, aliases, live WebSocket inbox with a periodic poll backstop. Requires internet.+**Key features:**+- PGP key generation/encrypt/decrypt/sign via the native Rust core (`Pgp` in `:library:e2ee-openpgp`, rPGP in `libe2ee_pgp.so`) — no BouncyCastle+- Biometric-gated unlock: the Keystore-wrapped private key is unwrapped before any mail composes+- Aliases, drafts, outbox retry, and WKD/VKS key lookup for external recipients+**Architecture / data-flow:** `ui/` Compose screens → `platform/MailViewModel` (+ `AliasController`, `DraftsController`) → `data/` Room stores (`MailRepository`, `MailStore`, `InboundStore`) fed by `service/MailSocketService` over `network/MailSocket` (REST + WebSocket) and `platform/MailSyncWorker`; crypto in `domain/pgp/PgpCrypto` + `platform/crypto/KeyManager`. Unlike `email/`, there is no raw IMAP/SMTP and no `network.Networking` object — `network/MailSocket` is the sole network entry point.+**Entry points + reading order:** `Route` (`Onboarding` / `Lock` / `Inbox(folder)` / `Composer` / `Reader(messageId)` / `Out` / `Settings`) → `MainActivity.kt` → `Navigation.kt` → `platform/MailViewModel.kt` → `data/MailRepository.kt` → `network/MailSocket.kt`.+**Gotchas:**+- `NetworkClient.init(this, TrustBundle.FIRST_PARTY)` must stay first in `onCreateBeforeContent` — `mail.maemail.org` is a pinned first-party host; WKD/VKS lookups for arbitrary external domains ride the platform trust store instead.+- `MainActivity` is a `MaFragmentActivity` with `autoSetContent = false`: composition is deferred until `unlockIfReady` succeeds — don't set content before the key gate.+- `:library:e2ee-openpgp` was split out of `:library:e2ee-p2p` so non-mail apps don't link rPGP (#873); securemail is its only consumer — keep the PGP surface here, not in shared code.+- `data/MailConfig` is the prefs owner (address token + onboarded flag, non-secret fields only, one process-wide DataStore); secrets live only in `platform/crypto/KeyManager`'s Keystore-wrapped prefs — never add secrets to `MailConfig`.+- `MailSocketService` owns the live socket lifetime; `MailSyncWorker` is only a backstop poll — don't move delivery onto the worker.++## Key files+### Root — entry + navigation+- com/vayunmathur/securemail/MainActivity.kt+- com/vayunmathur/securemail/Navigation.kt+- com/vayunmathur/securemail/Route.kt+### data/ — Room stores + config+- com/vayunmathur/securemail/data/MailDatabase.kt+- com/vayunmathur/securemail/data/MailRepository.kt+- com/vayunmathur/securemail/data/MailStore.kt+- com/vayunmathur/securemail/data/InboundStore.kt+- com/vayunmathur/securemail/data/Identities.kt+- com/vayunmathur/securemail/data/SenderKeys.kt+- com/vayunmathur/securemail/data/MailConfig.kt — sole prefs owner (non-secret)+### domain/ — pure mail + PGP policy+- com/vayunmathur/securemail/domain/mail/MailPolicy.kt+- com/vayunmathur/securemail/domain/mail/AliasGenerator.kt+- com/vayunmathur/securemail/domain/mail/KeyLookupPolicy.kt+- com/vayunmathur/securemail/domain/mail/MimeCodec.kt+- com/vayunmathur/securemail/domain/pgp/PgpCrypto.kt — `Pgp` (rPGP) wrapper surface+### network/ — relay REST + WebSocket (sole network entry)+- com/vayunmathur/securemail/network/MailSocket.kt+### platform/ — ViewModel, controllers, key gate, sync+- com/vayunmathur/securemail/platform/MailViewModel.kt+- com/vayunmathur/securemail/platform/AliasController.kt+- com/vayunmathur/securemail/platform/DraftsController.kt+- com/vayunmathur/securemail/platform/OutboxRetry.kt+- com/vayunmathur/securemail/platform/MailSyncWorker.kt+- com/vayunmathur/securemail/platform/BootReceiver.kt+- com/vayunmathur/securemail/platform/IntentState.kt+- com/vayunmathur/securemail/platform/crypto/KeyManager.kt — Keystore-wrapped PGP private key+### service/ — live socket lifetime+- com/vayunmathur/securemail/service/MailSocketService.kt+### ui/ — inbox, reader, composer, onboarding+- com/vayunmathur/securemail/ui/InboxScreen.kt+- com/vayunmathur/securemail/ui/ReaderScreen.kt+- com/vayunmathur/securemail/ui/ComposeScreen.kt+- com/vayunmathur/securemail/ui/OnboardingScreen.kt+- com/vayunmathur/securemail/ui/LockScreen.kt+- com/vayunmathur/securemail/ui/OutScreen.kt+- com/vayunmathur/securemail/ui/SettingsScreen.kt+- com/vayunmathur/securemail/ui/NavigationEntries.kt++## Verify (this module only)+```+./gradlew :securemail:compileDevKotlin+./gradlew :securemail:lint+./gradlew :securemail:checkMetadata+```
weather/AGENTS.md
diff --git a/weather/AGENTS.md b/weather/AGENTS.mdindex 6991764aed..b0a7504073 100644--- a/weather/AGENTS.md+++ b/weather/AGENTS.md@@ -99,12 +99,9 @@ _Install: ./install weather (dev by default)._ - com/vayunmathur/weather/ui/components/blocks/CloudCoverBlock.kt - com/vayunmathur/weather/ui/components/blocks/SunBlock.kt - com/vayunmathur/weather/ui/components/blocks/MoonBlock.kt-### widget/glance/ — Glance widgets (cache-fed only)-- com/vayunmathur/weather/widget/glance/WeatherGlanceWidget.kt-- com/vayunmathur/weather/widget/glance/WeatherGlanceWidgetReceiver.kt-- com/vayunmathur/weather/widget/glance/WeatherBlobGlanceWidget.kt-- com/vayunmathur/weather/widget/glance/WeatherBlobGlanceWidgetReceiver.kt-- com/vayunmathur/weather/widget/glance/WidgetWeather.kt — shared widget model+### widget/ — Glance widgets (cache-fed only)+- com/vayunmathur/weather/widget/WeatherGlanceWidget.kt — includes `WeatherGlanceWidgetReceiver` + `WidgetWeather` model (one widget, one file)+- com/vayunmathur/weather/widget/WeatherBlobGlanceWidget.kt — includes `WeatherBlobGlanceWidgetReceiver` (one widget, one file)  ## Verify (this module only) ```