docs-agent-overviews-phase-B3
- Commit
7d46515aa8554a325baf4c2a32b9e6cfa270e785- Author
- vayun-mathur <[email protected]>
- When
- 2026-10-16 03:58 UTC (1 month ago)
- Parents
32de6fa
Diff
appstore/AGENTS.md
diff --git a/appstore/AGENTS.md b/appstore/AGENTS.mdindex 0380e9d81b..df93329d04 100644--- a/appstore/AGENTS.md+++ b/appstore/AGENTS.md@@ -3,75 +3,92 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `appstore/` + allowed shared modules. Do not root-scan. _Install: ./install appstore (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :appstore / dir: appstore/ - Package roots present: ui, data, domain-- Entry files: MainActivity.kt+- Entry files: MainActivity.kt (no Route.kt — home/library/search/sources/trust/updates pages flow) - Deps: :library:room, :library:network, :library:work, :library:image - Metadata: metadata_data/appstore.md (present) - Rust: yes / screenshotTest: yes -## Key files+## Overview+**Purpose:** Security-first app store — six sources (own repo, curated mirror, F-Droid, GrapheneOS, Accrescent, Play) with every download signature-checked and a plain-language security tier per app (who could push a malicious update).+**Key features:**+- Multi-source catalogs: F-Droid (reproducible-builds only), Accrescent (Signify trust), anonymous Play (no Google account), GrapheneOS bundle one-tap+- Install pipeline: `InstallCoordinator` → `SessionInstaller` → `InstallStatusReceiver`, verified by `InstallVerifier` (APK certs, signed-jar index, source stamps) before the system installer sees anything+- `UpdateCheckWorker` background checks; outdated-target-API apps refused, not hidden+**Architecture / data-flow:** `ui/` home/search/detail/library/updates/sources/trust → `util/AppStoreViewModel` (+ per-area `*Ops`, `AppStoreUiContract`) → `data/` providers per source (`*Repository`, Play/F-Droid/Accrescent clients) + `data/installer/` + `data/security/`; `domain/SearchRanking` is pure ranking.+**Entry points + reading order:** `MainActivity.kt` → `ui/HomePage.kt` → `util/AppStoreViewModel.kt` → `data/CatalogRepository.kt` → `data/installer/InstallCoordinator.kt` → `data/security/InstallVerifier.kt`.+**Gotchas:**+- `util/` is NOT a closed package root — pending migration; don't add more files there+- Signature verification is the product — never shortcut it for UX; trust-profile changes need adversarial review+- Anonymous Play auth sessions are fragile by nature; isolate Play failures from other sources +## Key files+### Root — entry (no Route.kt) - com/vayunmathur/appstore/MainActivity.kt-- com/vayunmathur/appstore/data/AppDatabase.kt-- com/vayunmathur/appstore/data/AppModels.kt+### data/ — catalog, providers, installer, security+- com/vayunmathur/appstore/data/CatalogRepository.kt - com/vayunmathur/appstore/data/AppProvider.kt+- com/vayunmathur/appstore/data/AppModels.kt+- com/vayunmathur/appstore/data/AppDatabase.kt - com/vayunmathur/appstore/data/AppStoreDatabaseRepository.kt-- com/vayunmathur/appstore/data/CatalogRepository.kt-- com/vayunmathur/appstore/data/FDroidAppProvider.kt-- com/vayunmathur/appstore/data/FDroidRepository.kt-- com/vayunmathur/appstore/data/FDroidVerification.kt - com/vayunmathur/appstore/data/InstalledAppsRepository.kt-- com/vayunmathur/appstore/data/PlayStoreLinks.kt-- com/vayunmathur/appstore/data/RestrictedPackages.kt - com/vayunmathur/appstore/data/SettingsRepository.kt - com/vayunmathur/appstore/data/UpdateCheckWorker.kt-- com/vayunmathur/appstore/data/accrescent/AccrescentApi.kt+- com/vayunmathur/appstore/data/FDroidRepository.kt+- com/vayunmathur/appstore/data/FDroidAppProvider.kt+- com/vayunmathur/appstore/data/FDroidVerification.kt+- com/vayunmathur/appstore/data/accrescent/AccrescentRepository.kt - com/vayunmathur/appstore/data/accrescent/AccrescentRepo.kt - com/vayunmathur/appstore/data/accrescent/AccrescentRepoData.kt-- com/vayunmathur/appstore/data/accrescent/AccrescentRepository.kt+- com/vayunmathur/appstore/data/accrescent/AccrescentApi.kt - com/vayunmathur/appstore/data/accrescent/AccrescentTrustStore.kt - com/vayunmathur/appstore/data/accrescent/DeviceAttributesProvider.kt-- com/vayunmathur/appstore/data/accrescent/SignifyNative.kt-- com/vayunmathur/appstore/data/installer/InstallCoordinator.kt-- com/vayunmathur/appstore/data/installer/InstallStatusReceiver.kt-- com/vayunmathur/appstore/data/installer/PlayDownloader.kt-- com/vayunmathur/appstore/data/installer/SessionInstaller.kt+- com/vayunmathur/appstore/data/accrescent/SignifyNative.kt — Rust Signify bridge+- com/vayunmathur/appstore/data/play/PlayRepository.kt+- com/vayunmathur/appstore/data/play/PlayStoreApi.kt+- com/vayunmathur/appstore/data/play/PlayHttpClient.kt - com/vayunmathur/appstore/data/play/AnonymousAuthRepository.kt-- com/vayunmathur/appstore/data/play/CertUtil.kt - com/vayunmathur/appstore/data/play/DeviceInfoProvider.kt-- com/vayunmathur/appstore/data/play/EglExtensionProvider.kt - com/vayunmathur/appstore/data/play/GsfVersionProvider.kt-- com/vayunmathur/appstore/data/play/PlayHttpClient.kt-- com/vayunmathur/appstore/data/play/PlayRepository.kt-- com/vayunmathur/appstore/data/play/PlayStoreApi.kt-- com/vayunmathur/appstore/data/security/ApkCertificates.kt+- com/vayunmathur/appstore/data/play/EglExtensionProvider.kt+- com/vayunmathur/appstore/data/play/CertUtil.kt+- com/vayunmathur/appstore/data/play/PlayDownloader.kt+- com/vayunmathur/appstore/data/installer/InstallCoordinator.kt+- com/vayunmathur/appstore/data/installer/SessionInstaller.kt+- com/vayunmathur/appstore/data/installer/InstallStatusReceiver.kt - com/vayunmathur/appstore/data/security/InstallVerifier.kt+- com/vayunmathur/appstore/data/security/ApkCertificates.kt - com/vayunmathur/appstore/data/security/SignedJarIndex.kt-- com/vayunmathur/appstore/data/security/Signify.kt - com/vayunmathur/appstore/data/security/SourceStamp.kt - com/vayunmathur/appstore/data/security/TrustProfile.kt+- com/vayunmathur/appstore/data/security/Signify.kt+- com/vayunmathur/appstore/data/PlayStoreLinks.kt+- com/vayunmathur/appstore/data/RestrictedPackages.kt+### domain/ — pure ranking (no Android) - com/vayunmathur/appstore/domain/SearchRanking.kt-- com/vayunmathur/appstore/ui/AppComponents.kt-- com/vayunmathur/appstore/ui/AppDetailHeader.kt+### util/ — ViewModel + per-area ops (pending migration to closed roots)+- com/vayunmathur/appstore/util/AppStoreViewModel.kt+- com/vayunmathur/appstore/util/AppStoreUiContract.kt+- com/vayunmathur/appstore/util/AppStoreHomeOps.kt+- com/vayunmathur/appstore/util/AppStoreSearchOps.kt+- com/vayunmathur/appstore/util/AppStoreDetailOps.kt+- com/vayunmathur/appstore/util/AppStoreUpdateOps.kt+- com/vayunmathur/appstore/util/AppStoreActionOps.kt+### ui/ — store pages+- com/vayunmathur/appstore/ui/HomePage.kt+- com/vayunmathur/appstore/ui/SearchPage.kt - com/vayunmathur/appstore/ui/AppDetailPage.kt+- com/vayunmathur/appstore/ui/AppDetailHeader.kt - com/vayunmathur/appstore/ui/AppDetailSections.kt-- com/vayunmathur/appstore/ui/AppMeta.kt - com/vayunmathur/appstore/ui/AppTile.kt-- com/vayunmathur/appstore/ui/HomePage.kt+- com/vayunmathur/appstore/ui/AppComponents.kt+- com/vayunmathur/appstore/ui/AppMeta.kt - com/vayunmathur/appstore/ui/LibraryPage.kt-- com/vayunmathur/appstore/ui/SearchPage.kt+- com/vayunmathur/appstore/ui/UpdatesPage.kt - com/vayunmathur/appstore/ui/SourcesPage.kt - com/vayunmathur/appstore/ui/TrustPage.kt-- com/vayunmathur/appstore/ui/UpdatesPage.kt-- com/vayunmathur/appstore/util/AppStoreActionOps.kt-- com/vayunmathur/appstore/util/AppStoreDetailOps.kt-- com/vayunmathur/appstore/util/AppStoreHomeOps.kt-- com/vayunmathur/appstore/util/AppStoreSearchOps.kt-- com/vayunmathur/appstore/util/AppStoreUiContract.kt-- com/vayunmathur/appstore/util/AppStoreUpdateOps.kt-- com/vayunmathur/appstore/util/AppStoreViewModel.kt ## Verify (this module only) ```@@ -79,5 +96,3 @@ _Install: ./install appstore (dev by default)._ ./gradlew :appstore:lint ./gradlew :appstore:checkMetadata ```--
auto/AGENTS.md
diff --git a/auto/AGENTS.md b/auto/AGENTS.mdindex dcd4748186..9677955e1a 100644--- a/auto/AGENTS.md+++ b/auto/AGENTS.md@@ -3,101 +3,120 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `auto/` + allowed shared modules. Do not root-scan. _Install: ./install auto (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :auto / dir: auto/ - Package roots present: ui, platform, network, service, notifications, telephony - Entry files: MainActivity.kt, Route.kt, Navigation.kt-- Deps: :auto:protocol+- Deps: :auto:protocol (`:library:carhost` only if the build file says so — verify before adding) - Metadata: metadata_data/auto.md (present) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Car head-unit projection (Android Auto compatible) — NOT a phone app. Projects driving-safe nav/media/call UI to the car display over USB or wireless; test with `./dhu` (Desktop Head Unit loopback), not on a phone screen.+**Key features:**+- 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`.+**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+- Connection teardown/reconnect (USB unplug, wireless drop) is the main bug surface; `ReconnectBackoff` + reset receivers matter +## Key files+### Root — entry + navigation - com/vayunmathur/auto/MainActivity.kt - com/vayunmathur/auto/Navigation.kt - com/vayunmathur/auto/Route.kt+### network/ — head-unit transports - com/vayunmathur/auto/network/HeadUnitServer.kt - com/vayunmathur/auto/network/TransportIntake.kt - com/vayunmathur/auto/network/UsbConnector.kt - com/vayunmathur/auto/network/WifiDirectConnector.kt-- com/vayunmathur/auto/notifications/MessageMirrorBus.kt-- com/vayunmathur/auto/notifications/MessageMirrorService.kt-- com/vayunmathur/auto/notifications/MessageReplyRoute.kt-- com/vayunmathur/auto/platform/ActiveCallInfo.kt-- com/vayunmathur/auto/platform/AppDecorService.kt-- com/vayunmathur/auto/platform/AudioEvent.kt-- com/vayunmathur/auto/platform/AudioSinkChannel.kt-- com/vayunmathur/auto/platform/AudioState.kt+### platform/ — host, cards, channels, pairing, receivers+- com/vayunmathur/auto/platform/CarAppHost.kt+- com/vayunmathur/auto/platform/AutoViewModel.kt+- com/vayunmathur/auto/platform/PairingViewModel.kt - com/vayunmathur/auto/platform/AutoConnectionState.kt - com/vayunmathur/auto/platform/AutoSessionState.kt-- com/vayunmathur/auto/platform/AutoViewModel.kt-- com/vayunmathur/auto/platform/BootReceiver.kt-- com/vayunmathur/auto/platform/CallCardPush.kt-- com/vayunmathur/auto/platform/CarAppHost.kt-- com/vayunmathur/auto/platform/CarApps.kt-- com/vayunmathur/auto/platform/CarCallCard.kt-- com/vayunmathur/auto/platform/CarChimeraService.kt-- com/vayunmathur/auto/platform/CarCompanionDeviceService.kt - com/vayunmathur/auto/platform/CarDisplay.kt-- com/vayunmathur/auto/platform/CarDrawerView.kt-- com/vayunmathur/auto/platform/CarMediaCard.kt-- com/vayunmathur/auto/platform/CarNavCard.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/CarSetupService.kt-- com/vayunmathur/auto/platform/CarStartupService.kt-- com/vayunmathur/auto/platform/CarSystemUiControllerService.kt-- com/vayunmathur/auto/platform/CarTts.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/ConnectionResetReceiver.kt-- com/vayunmathur/auto/platform/ConnectivityEventReceiver.kt-- com/vayunmathur/auto/platform/DeepLinkResolverActivity.kt-- com/vayunmathur/auto/platform/GuidanceChannel.kt+- com/vayunmathur/auto/platform/CarTts.kt+- com/vayunmathur/auto/platform/VideoEncoder.kt+- com/vayunmathur/auto/platform/VideoSinkChannel.kt+- com/vayunmathur/auto/platform/AudioSinkChannel.kt+- com/vayunmathur/auto/platform/AudioEvent.kt+- com/vayunmathur/auto/platform/AudioState.kt - com/vayunmathur/auto/platform/InputChannel.kt - com/vayunmathur/auto/platform/InputEvent.kt-- com/vayunmathur/auto/platform/MaosRoleStatus.kt+- com/vayunmathur/auto/platform/SensorChannel.kt+- com/vayunmathur/auto/platform/SensorEvent.kt+- com/vayunmathur/auto/platform/GuidanceChannel.kt+- com/vayunmathur/auto/platform/NavGuidanceMonitor.kt+- com/vayunmathur/auto/platform/NavStatusChannel.kt - com/vayunmathur/auto/platform/MediaNowPlaying.kt - com/vayunmathur/auto/platform/MediaPlaybackMonitor.kt+- com/vayunmathur/auto/platform/MusicCapture.kt+- com/vayunmathur/auto/platform/MusicCapturePrefs.kt+- com/vayunmathur/auto/platform/MusicCaptureSinkHolder.kt - com/vayunmathur/auto/platform/Messaging.kt - com/vayunmathur/auto/platform/MessagingAudio.kt - com/vayunmathur/auto/platform/MessagingPrefs.kt - com/vayunmathur/auto/platform/MicPermission.kt - com/vayunmathur/auto/platform/MicSourceChannel.kt-- com/vayunmathur/auto/platform/MusicCapture.kt-- com/vayunmathur/auto/platform/MusicCapturePrefs.kt-- com/vayunmathur/auto/platform/MusicCaptureSinkHolder.kt-- com/vayunmathur/auto/platform/NavGuidanceMonitor.kt-- com/vayunmathur/auto/platform/NavStatusChannel.kt-- com/vayunmathur/auto/platform/PairingViewModel.kt - com/vayunmathur/auto/platform/PhoneStatusMonitor.kt-- com/vayunmathur/auto/platform/SensorChannel.kt-- com/vayunmathur/auto/platform/SensorEvent.kt - com/vayunmathur/auto/platform/TransportState.kt+- com/vayunmathur/auto/platform/ActiveCallInfo.kt+- com/vayunmathur/auto/platform/MaosRoleStatus.kt+- com/vayunmathur/auto/platform/DeepLinkResolverActivity.kt+- com/vayunmathur/auto/platform/WirelessStartupActivity.kt+- com/vayunmathur/auto/platform/WirelessStartupReceiver.kt+- com/vayunmathur/auto/platform/WirelessSetupCarService.kt+- com/vayunmathur/auto/platform/WirelessSetupSharedService.kt+- com/vayunmathur/auto/platform/BootReceiver.kt - com/vayunmathur/auto/platform/UsbReceiver.kt - com/vayunmathur/auto/platform/UsbTPlusReceiver.kt-- com/vayunmathur/auto/platform/VideoEncoder.kt-- com/vayunmathur/auto/platform/VideoSinkChannel.kt - com/vayunmathur/auto/platform/WifiBluetoothReceiver.kt-- com/vayunmathur/auto/platform/WirelessSetupCarService.kt-- com/vayunmathur/auto/platform/WirelessSetupSharedService.kt-- com/vayunmathur/auto/platform/WirelessStartupActivity.kt-- com/vayunmathur/auto/platform/WirelessStartupReceiver.kt+- com/vayunmathur/auto/platform/ConnectivityEventReceiver.kt+- com/vayunmathur/auto/platform/ConnectionResetReceiver.kt+- com/vayunmathur/auto/platform/CarStartupService.kt+- com/vayunmathur/auto/platform/CarSetupService.kt+- com/vayunmathur/auto/platform/CarChimeraService.kt+- com/vayunmathur/auto/platform/CarCompanionDeviceService.kt+- com/vayunmathur/auto/platform/CarSystemUiControllerService.kt+- com/vayunmathur/auto/platform/AppDecorService.kt+### service/ — projection + messaging/music capture+- com/vayunmathur/auto/service/ProjectionService.kt - com/vayunmathur/auto/service/CarAppHostSession.kt - com/vayunmathur/auto/service/CarMessagingAudio.kt - com/vayunmathur/auto/service/MessagingCarAppService.kt - com/vayunmathur/auto/service/MusicCaptureService.kt-- com/vayunmathur/auto/service/ProjectionService.kt - com/vayunmathur/auto/service/UnownedServiceLog.kt+### telephony/ — car in-call services - com/vayunmathur/auto/telephony/CarProjectionInCallService.kt - com/vayunmathur/auto/telephony/NonCarInCallService.kt-- com/vayunmathur/auto/ui/AudioRow.kt+### notifications/ — message mirroring + replies+- com/vayunmathur/auto/notifications/MessageMirrorService.kt+- com/vayunmathur/auto/notifications/MessageMirrorBus.kt+- com/vayunmathur/auto/notifications/MessageReplyRoute.kt+### ui/ — phone-side pairing + session status - com/vayunmathur/auto/ui/AutoScreen.kt+- com/vayunmathur/auto/ui/PairingScreen.kt+- com/vayunmathur/auto/ui/SessionCard.kt+- com/vayunmathur/auto/ui/AudioRow.kt - com/vayunmathur/auto/ui/MessagingConsentCard.kt - com/vayunmathur/auto/ui/MicPermissionCard.kt - com/vayunmathur/auto/ui/MusicCaptureCard.kt - com/vayunmathur/auto/ui/MusicCaptureGrant.kt-- com/vayunmathur/auto/ui/PairingScreen.kt-- com/vayunmathur/auto/ui/SessionCard.kt ## Verify (this module only) ```@@ -105,5 +124,3 @@ _Install: ./install auto (dev by default)._ ./gradlew :auto:lint ./gradlew :auto:checkMetadata ```--
auto/protocol/AGENTS.md
diff --git a/auto/protocol/AGENTS.md b/auto/protocol/AGENTS.mdindex 19f69647f4..0a4517c91d 100644--- a/auto/protocol/AGENTS.md+++ b/auto/protocol/AGENTS.md@@ -2,51 +2,63 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `auto/protocol/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :auto:protocol / dir: auto/protocol/-- Package roots present: -- Entry files: +- Package roots present: (pure-Kotlin protocol library — single package, no Android roots)+- Entry files: GalConnection.kt + GalControlSession.kt (no MainActivity/Route — library) - Deps: :library-- Metadata: metadata_data/auto-protocol.md (MISSING)+- Metadata: metadata_data/auto-protocol.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Pure-Kotlin GAL (head-unit) protocol library for `:auto` — framing, session control, TLS, and media/input/sensor codecs. No Android, no UI; testable as plain JVM.+**Covers:** Frame read/write + fragmenter/assembler, version negotiation, USB/wireless sessions, transport selector, reconnect backoff, ack tracking; codecs for video, audio, input, sensors, nav status, maps guidance, messaging; TLS + credential/key handling; host-vs-mirror role policy and display routing.+**Entry points + reading order:** `GalConnection.kt` → `GalControlSession.kt` → `FrameReader.kt`/`FrameWriter.kt` → `VersionNegotiation.kt` → the codec for your channel (`VideoCodec`, `InputCodec`, `SensorCodec`, …).+**Gotchas:**+- Protocol changes break car interop — version negotiation must stay backward-compatible+- Keep it pure Kotlin (no Android imports) so it stays unit-testable without a device -- com/vayunmathur/auto/protocol/AckTracker.kt-- com/vayunmathur/auto/protocol/AudioCodec.kt-- com/vayunmathur/auto/protocol/ChannelSendQueue.kt-- com/vayunmathur/auto/protocol/DisplayRoutePolicy.kt-- com/vayunmathur/auto/protocol/FocusArbitration.kt-- com/vayunmathur/auto/protocol/Fragmenter.kt-- com/vayunmathur/auto/protocol/FrameHeader.kt-- com/vayunmathur/auto/protocol/FrameReader.kt-- com/vayunmathur/auto/protocol/FrameWriter.kt+## Key files+### Session + framing - com/vayunmathur/auto/protocol/GalConnection.kt - com/vayunmathur/auto/protocol/GalControlSession.kt-- com/vayunmathur/auto/protocol/GalCredential.kt-- com/vayunmathur/auto/protocol/GalMessage.kt - com/vayunmathur/auto/protocol/GalTransport.kt-- com/vayunmathur/auto/protocol/HostVsMirror.kt-- com/vayunmathur/auto/protocol/InputCodec.kt-- com/vayunmathur/auto/protocol/MaosRole.kt-- com/vayunmathur/auto/protocol/MapsGuidance.kt-- com/vayunmathur/auto/protocol/MessageCodec.kt-- com/vayunmathur/auto/protocol/MessagingCodec.kt-- com/vayunmathur/auto/protocol/NavStatusCodec.kt-- com/vayunmathur/auto/protocol/ReconnectBackoff.kt-- com/vayunmathur/auto/protocol/SensorCodec.kt - com/vayunmathur/auto/protocol/StreamTransport.kt-- com/vayunmathur/auto/protocol/TlsCodec.kt+- com/vayunmathur/auto/protocol/FrameHeader.kt+- com/vayunmathur/auto/protocol/FrameReader.kt+- com/vayunmathur/auto/protocol/FrameWriter.kt+- com/vayunmathur/auto/protocol/Fragmenter.kt+- com/vayunmathur/auto/protocol/FrameAssembler.kt+- com/vayunmathur/auto/protocol/FrameId.kt+- com/vayunmathur/auto/protocol/ChannelSendQueue.kt+- com/vayunmathur/auto/protocol/AckTracker.kt+### Negotiation + transports+- com/vayunmathur/auto/protocol/VersionNegotiation.kt - com/vayunmathur/auto/protocol/TransportKind.kt - com/vayunmathur/auto/protocol/TransportSelector.kt - com/vayunmathur/auto/protocol/UsbSession.kt-- com/vayunmathur/auto/protocol/VersionNegotiation.kt-- com/vayunmathur/auto/protocol/VideoCodec.kt - com/vayunmathur/auto/protocol/WirelessSession.kt+- com/vayunmathur/auto/protocol/ReconnectBackoff.kt+### Codecs+- com/vayunmathur/auto/protocol/VideoCodec.kt+- com/vayunmathur/auto/protocol/AudioCodec.kt+- com/vayunmathur/auto/protocol/InputCodec.kt+- com/vayunmathur/auto/protocol/SensorCodec.kt+- com/vayunmathur/auto/protocol/NavStatusCodec.kt+- com/vayunmathur/auto/protocol/MapsGuidance.kt+- com/vayunmathur/auto/protocol/MessageCodec.kt+- com/vayunmathur/auto/protocol/MessagingCodec.kt+### Security + roles+- com/vayunmathur/auto/protocol/TlsCodec.kt+- com/vayunmathur/auto/protocol/GalCredential.kt+- com/vayunmathur/auto/protocol/GalMessage.kt+- com/vayunmathur/auto/protocol/FocusArbitration.kt+- com/vayunmathur/auto/protocol/HostVsMirror.kt+- com/vayunmathur/auto/protocol/MaosRole.kt+- com/vayunmathur/auto/protocol/DisplayRoutePolicy.kt ## Verify (this module only) ``` ./gradlew :auto:protocol:compileDevKotlin ./gradlew :auto:protocol:lint ```--
cast/AGENTS.md
diff --git a/cast/AGENTS.md b/cast/AGENTS.mdindex 5fd22dfb36..5d2a2cf976 100644--- a/cast/AGENTS.md+++ b/cast/AGENTS.md@@ -3,65 +3,84 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `cast/` + allowed shared modules. Do not root-scan. _Install: ./install cast (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :cast / dir: cast/ - Package roots present: ui, domain, platform, network, service-- Entry files: MainActivity.kt, Route.kt, Navigation.kt, CastApplication.kt+- Entry files: MainActivity.kt, Route.kt, Navigation.kt (CastApplication.kt was deleted by the shared-boilerplate migration — do NOT re-add) - Deps: :library:aosp-stubs, :cast:protocol, :sdk:cast - Metadata: metadata_data/cast.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Phone-side sender for offline screen mirroring + media handoff to the `cast/tv` receiver over your own Wi-Fi — E2EE session with pairing-code-bound handshake, no internet. Sibling `:cast:protocol` owns the wire; `:sdk:cast` is the third-party handoff API.+**Key features:**+- Mirroring pipeline: screen capture → video/audio encoders (`platform/mirror/`) → RTP sender → TV; codec negotiated from the receiver's capabilities so the phone sends full resolution+- Content casting (`CastContentSession`, `MediaProxyServer`) so other apps hand media off through `:sdk:cast`+- Discovery + pairing UI, Quick Settings tile start/stop, remote-display provider for system routing+**Architecture / data-flow:** `ui/` picker/status → `platform/CastViewModel` (+ `CastUiContract`) + `platform/CastController` → `platform/MirrorClient`/`CastConnection` over `network/` UDP + control sockets, framed by `:cast:protocol` (`StreamingSession`, `Pairing`); `service/CastService` + `ContentCastService` own the session lifetime.+**Entry points + reading order:** `Route` → `MainActivity.kt` → `Navigation.kt` → `platform/CastController.kt` → `platform/mirror/MirrorEngine.kt` → `network/ControlSocket.kt`.+**Gotchas:**+- Encoder support varies by device (`mirror/EncoderSupport`) — capability checks before assuming codecs+- Screen-capture consent is one-shot per session (`MirrorConsentActivity`); losing it mid-mirror kills the stream+- Keep `:cast:protocol` untouched from here — wire changes need sender + TV receiver updated together -- com/vayunmathur/cast/CastApplication.kt+## Key files+### Root — entry + navigation - com/vayunmathur/cast/MainActivity.kt - com/vayunmathur/cast/Navigation.kt - com/vayunmathur/cast/Route.kt+### domain/ — device + client state - com/vayunmathur/cast/domain/CastDevice.kt - com/vayunmathur/cast/domain/ClientState.kt+### network/ — transports - com/vayunmathur/cast/network/CastUdpTransport.kt - com/vayunmathur/cast/network/ControlSocket.kt-- com/vayunmathur/cast/platform/CastCodecNegotiation.kt-- com/vayunmathur/cast/platform/CastConnection.kt-- com/vayunmathur/cast/platform/CastContentSession.kt+### platform/ — controller, sessions, discovery, proxy+- com/vayunmathur/cast/platform/CastViewModel.kt+- com/vayunmathur/cast/platform/CastUiContract.kt - com/vayunmathur/cast/platform/CastController.kt-- com/vayunmathur/cast/platform/CastDesktopDisplay.kt-- com/vayunmathur/cast/platform/CastMirrorSession.kt-- com/vayunmathur/cast/platform/CastPairActivity.kt-- com/vayunmathur/cast/platform/CastPickerActivity.kt+- com/vayunmathur/cast/platform/CastConnection.kt - com/vayunmathur/cast/platform/CastSessionTypes.kt - com/vayunmathur/cast/platform/CastSessionWatch.kt-- com/vayunmathur/cast/platform/CastUiContract.kt-- com/vayunmathur/cast/platform/CastViewModel.kt-- com/vayunmathur/cast/platform/MediaProxyServer.kt+- com/vayunmathur/cast/platform/CastCodecNegotiation.kt+- com/vayunmathur/cast/platform/CastContentSession.kt+- com/vayunmathur/cast/platform/CastMirrorSession.kt - com/vayunmathur/cast/platform/MirrorClient.kt+- com/vayunmathur/cast/platform/MediaProxyServer.kt+- com/vayunmathur/cast/platform/CastPickerActivity.kt+- com/vayunmathur/cast/platform/CastPairActivity.kt+- com/vayunmathur/cast/platform/CastDesktopDisplay.kt - com/vayunmathur/cast/platform/discovery/CastDiscoveryManager.kt+### platform/mirror/ — capture + encoders + sender+- com/vayunmathur/cast/platform/mirror/MirrorEngine.kt+- com/vayunmathur/cast/platform/mirror/MirrorSource.kt+- com/vayunmathur/cast/platform/mirror/ScreenCapture.kt+- com/vayunmathur/cast/platform/mirror/VideoEncoder.kt - com/vayunmathur/cast/platform/mirror/AudioEncoder.kt+- com/vayunmathur/cast/platform/mirror/PcmAudioEncoder.kt+- com/vayunmathur/cast/platform/mirror/OpusEncoder.kt - com/vayunmathur/cast/platform/mirror/EncoderSupport.kt-- com/vayunmathur/cast/platform/mirror/MirrorConsentActivity.kt-- com/vayunmathur/cast/platform/mirror/MirrorEngine.kt+- com/vayunmathur/cast/platform/mirror/StreamSender.kt - com/vayunmathur/cast/platform/mirror/MirrorGeometry.kt - com/vayunmathur/cast/platform/mirror/MirrorPreferences.kt-- com/vayunmathur/cast/platform/mirror/MirrorSource.kt+- com/vayunmathur/cast/platform/mirror/MirrorConsentActivity.kt - com/vayunmathur/cast/platform/mirror/MirrorTileService.kt-- com/vayunmathur/cast/platform/mirror/OpusEncoder.kt-- com/vayunmathur/cast/platform/mirror/PcmAudioEncoder.kt-- com/vayunmathur/cast/platform/mirror/ScreenCapture.kt-- com/vayunmathur/cast/platform/mirror/StreamSender.kt-- com/vayunmathur/cast/platform/mirror/VideoEncoder.kt-- com/vayunmathur/cast/platform/remotedisplay/CastSystemDisplay.kt+### platform/remotedisplay/ — system display routing - com/vayunmathur/cast/platform/remotedisplay/MaRemoteDisplayProvider.kt-- com/vayunmathur/cast/service/CastRemoteDisplayService.kt+- com/vayunmathur/cast/platform/remotedisplay/CastSystemDisplay.kt+### service/ — session services - com/vayunmathur/cast/service/CastService.kt-- com/vayunmathur/cast/service/ClientResourceResolver.kt - com/vayunmathur/cast/service/ContentCastService.kt-- com/vayunmathur/cast/ui/CastContent.kt+- com/vayunmathur/cast/service/CastRemoteDisplayService.kt+- com/vayunmathur/cast/service/ClientResourceResolver.kt+### ui/ — picker + status + pairing+- com/vayunmathur/cast/ui/CastScreen.kt+- com/vayunmathur/cast/ui/CastPickerContent.kt - com/vayunmathur/cast/ui/CastDeviceRow.kt+- com/vayunmathur/cast/ui/CastContent.kt - com/vayunmathur/cast/ui/CastMirrorStatusCard.kt - com/vayunmathur/cast/ui/CastPairCodeCard.kt - com/vayunmathur/cast/ui/CastPairDialog.kt-- com/vayunmathur/cast/ui/CastPickerContent.kt-- com/vayunmathur/cast/ui/CastScreen.kt ## Verify (this module only) ```@@ -69,5 +88,3 @@ _Install: ./install cast (dev by default)._ ./gradlew :cast:lint ./gradlew :cast:checkMetadata ```--
cast/protocol/AGENTS.md
diff --git a/cast/protocol/AGENTS.md b/cast/protocol/AGENTS.mdindex faa8dc8c30..834934e827 100644--- a/cast/protocol/AGENTS.md+++ b/cast/protocol/AGENTS.md@@ -2,37 +2,46 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `cast/protocol/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :cast:protocol / dir: cast/protocol/-- Package roots present: -- Entry files: +- Package roots present: (pure-Kotlin protocol library — single package, no Android roots)+- Entry files: HandshakeMessages.kt + Pairing.kt (no MainActivity/Route — library) - Deps: :library, :library:e2ee-p2p-- Metadata: metadata_data/cast-protocol.md (MISSING)+- Metadata: metadata_data/cast-protocol.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Pure-Kotlin cast wire protocol shared by the `cast/` sender and `cast/tv` receiver — pairing, E2EE handshake, control framing, RTP media. No Android, no UI.+**Covers:** Pairing + handshake messages, ephemeral-TLS key schedule, secret sealing, control framing + frame assembly, streaming sessions + receiver sessions, RTP packetize/depacketize + RTCP, media proxy, codec negotiation, stream multiplexing.+**Entry points + reading order:** `Pairing.kt` → `HandshakeMessages.kt` → `KeySchedule.kt` → `StreamingSession.kt` → `RtpPacketizer.kt`/`RtpDepacketizer.kt`.+**Gotchas:**+- Sender and receiver must upgrade in lockstep — wire changes touch `cast/` + `cast/tv` together+- Crypto changes need adversarial review; test against the recorded handshake vectors if present -- com/vayunmathur/cast/protocol/CodecNegotiation.kt-- com/vayunmathur/cast/protocol/ControlFraming.kt-- com/vayunmathur/cast/protocol/Crypto.kt-- com/vayunmathur/cast/protocol/EphemeralTls.kt-- com/vayunmathur/cast/protocol/FrameAssembler.kt-- com/vayunmathur/cast/protocol/FrameId.kt+## Key files+### Pairing + handshake + crypto+- com/vayunmathur/cast/protocol/Pairing.kt - com/vayunmathur/cast/protocol/HandshakeMessages.kt+- com/vayunmathur/cast/protocol/EphemeralTls.kt - com/vayunmathur/cast/protocol/KeySchedule.kt-- com/vayunmathur/cast/protocol/MediaProxy.kt-- com/vayunmathur/cast/protocol/Pairing.kt-- com/vayunmathur/cast/protocol/ReceiverSession.kt-- com/vayunmathur/cast/protocol/Rtcp.kt-- com/vayunmathur/cast/protocol/RtpDepacketizer.kt-- com/vayunmathur/cast/protocol/RtpPacketizer.kt+- com/vayunmathur/cast/protocol/Crypto.kt - com/vayunmathur/cast/protocol/SecretSealing.kt+### Framing + sessions+- com/vayunmathur/cast/protocol/ControlFraming.kt+- com/vayunmathur/cast/protocol/FrameAssembler.kt+- com/vayunmathur/cast/protocol/FrameId.kt - com/vayunmathur/cast/protocol/StreamingSession.kt+- com/vayunmathur/cast/protocol/ReceiverSession.kt - com/vayunmathur/cast/protocol/Streams.kt+### Media transport+- com/vayunmathur/cast/protocol/RtpPacketizer.kt+- com/vayunmathur/cast/protocol/RtpDepacketizer.kt+- com/vayunmathur/cast/protocol/Rtcp.kt+- com/vayunmathur/cast/protocol/MediaProxy.kt+- com/vayunmathur/cast/protocol/CodecNegotiation.kt ## Verify (this module only) ``` ./gradlew :cast:protocol:compileDevKotlin ./gradlew :cast:protocol:lint ```--
cast/tv/AGENTS.md
diff --git a/cast/tv/AGENTS.md b/cast/tv/AGENTS.mdindex 02b0f66c89..42bb33a490 100644--- a/cast/tv/AGENTS.md+++ b/cast/tv/AGENTS.md@@ -3,37 +3,53 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `cast/tv/` + allowed shared modules. Do not root-scan. _Install: ./install cast/tv (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :cast:tv / dir: cast/tv/ - Package roots present: ui, platform, service-- Entry files: MainActivity.kt+- Entry files: MainActivity.kt (receiver shell — NOT a phone app; no Route/Navigation, TV panel modes instead) - Deps: :cast:protocol, :library:e2ee-p2p - Metadata: metadata_data/cast-tv.md (present) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Android-TV receiver for the `cast/` sender — advertises, pairs, decodes and plays mirrored screen + handed-off media. Runs on TV, never evaluated as a phone app.+**Key features:**+- Receiver advertisement + pairing handshake (`ReceiverAdvertiser`, `ReceiverPairing`, `PairingStore`) against `:cast:protocol`+- Control channel + media loop (`ReceiverController`, `ReceiverMediaLoop`) feeding `ContentPlayer`/`AudioPlayer`/`VideoDecoder` with artwork fetch+- TV panel modes + transport overlay + now-playing UI (`PanelModes`, `TransportOverlay`, `NowPlaying`)+**Architecture / data-flow:** `service/ReceiverService` owns lifetime → `platform/ReceiverController` + `ControlChannel` → `ReceiverMediaLoop` → decoders/players → `ui/` TV surfaces; mirror input lands in `MirrorActivity`.+**Entry points + reading order:** `MainActivity.kt` → `service/ReceiverService.kt` → `platform/ReceiverController.kt` → `platform/ReceiverMediaLoop.kt` → `platform/ContentPlayer.kt`.+**Gotchas:**+- TV-only: no edge-to-edge phone chrome, D-pad focus matters, no touch assumptions+- Decoder capabilities feed back to the sender's codec negotiation — receiver bugs surface as sender quality drops+- Pairing store persists trust; clearing it force-drops all senders +## Key files+### Root — receiver shell (no Route/Navigation) - com/vayunmathur/cast/tv/MainActivity.kt-- com/vayunmathur/cast/tv/platform/ArtworkFetcher.kt-- com/vayunmathur/cast/tv/platform/AudioPlayer.kt-- com/vayunmathur/cast/tv/platform/ContentPlayer.kt+### platform/ — receiver pipeline+- com/vayunmathur/cast/tv/platform/ReceiverController.kt+- com/vayunmathur/cast/tv/platform/ReceiverUiContract.kt+- com/vayunmathur/cast/tv/platform/ReceiverAdvertiser.kt+- com/vayunmathur/cast/tv/platform/ReceiverPairing.kt+- com/vayunmathur/cast/tv/platform/PairingStore.kt - com/vayunmathur/cast/tv/platform/ControlChannel.kt+- com/vayunmathur/cast/tv/platform/ReceiverMediaLoop.kt+- com/vayunmathur/cast/tv/platform/ReceiverContentSession.kt - com/vayunmathur/cast/tv/platform/MediaReceiver.kt+- com/vayunmathur/cast/tv/platform/ContentPlayer.kt+- com/vayunmathur/cast/tv/platform/AudioPlayer.kt+- com/vayunmathur/cast/tv/platform/VideoDecoder.kt+- com/vayunmathur/cast/tv/platform/ArtworkFetcher.kt - com/vayunmathur/cast/tv/platform/MirrorActivity.kt-- com/vayunmathur/cast/tv/platform/PairingStore.kt - com/vayunmathur/cast/tv/platform/PanelModes.kt-- com/vayunmathur/cast/tv/platform/ReceiverAdvertiser.kt-- com/vayunmathur/cast/tv/platform/ReceiverContentSession.kt-- com/vayunmathur/cast/tv/platform/ReceiverController.kt-- com/vayunmathur/cast/tv/platform/ReceiverMediaLoop.kt-- com/vayunmathur/cast/tv/platform/ReceiverPairing.kt-- com/vayunmathur/cast/tv/platform/ReceiverUiContract.kt-- com/vayunmathur/cast/tv/platform/VideoDecoder.kt+### service/ — receiver lifetime - com/vayunmathur/cast/tv/service/ReceiverService.kt-- com/vayunmathur/cast/tv/ui/NowPlaying.kt+### ui/ — TV surfaces (D-pad, not touch) - com/vayunmathur/cast/tv/ui/ReceiverContent.kt-- com/vayunmathur/cast/tv/ui/Theme.kt+- com/vayunmathur/cast/tv/ui/NowPlaying.kt - com/vayunmathur/cast/tv/ui/TransportOverlay.kt+- com/vayunmathur/cast/tv/ui/Theme.kt — TV receiver theme (not DynamicTheme) ## Verify (this module only) ```@@ -41,5 +57,3 @@ _Install: ./install cast/tv (dev by default)._ ./gradlew :cast:tv:lint ./gradlew :cast:tv:checkMetadata ```--
code/AGENTS.md
diff --git a/code/AGENTS.md b/code/AGENTS.mdindex bea73e1d72..671fcef43e 100644--- a/code/AGENTS.md+++ b/code/AGENTS.md@@ -3,70 +3,85 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `code/` + allowed shared modules. Do not root-scan. _Install: ./install code (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :code / dir: code/ - Package roots present: ui-- Entry files: MainActivity.kt-- Deps: +- Entry files: MainActivity.kt (no Route.kt — editor workspace with pages, not nav destinations)+- Deps: (none declared — tree-sitter via Rust JNI, SAF file access) - Metadata: metadata_data/code.md (present) - Rust: yes / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline code editor — tree-sitter syntax highlighting, SAF project browsing, git (stage/commit/branch/diff), cross-file search, tabs, command palette, terminal. Handles VIEW/EDIT intents.+**Key features:**+- Canvas-rendered editor (`CodeEditor*`: canvas/content/draw/gestures/input/keys) with minimap, folding, completions, diagnostics, outline, merge-conflict UI+- Tree-sitter highlighting via Rust JNI (`TreeSitterNative`) with regex fallback (`SyntaxHighlighting`); formatting, fuzzy match, text encodings+- Git panel (`GitPage`, `EditorGitOps`, `GitRepo`, `GitIgnore`), file tree + folder browser, preview + markdown pages, snippets, settings, terminal sessions+**Architecture / data-flow:** `ui/` editor shell + pages → `util/EditorViewModel` (+ `CodeUiContract`, per-area `Editor*Ops`) → `util/EditorDocument` over SAF (`FileFiles`, `EditorFileTreeOps`); highlighting flows Rust → `SyntaxHighlighting` → `CodeEditorDraw`; git flows `GitRepo` → `EditorGitOps` → `GitPage`.+**Entry points + reading order:** `MainActivity.kt` → `ui/EditorScreen.kt` → `util/EditorViewModel.kt` → `util/EditorDocument.kt` → `ui/CodeEditor.kt` → `syntax/SyntaxHighlighting.kt`.+**Gotchas:**+- `syntax/` and `util/` are NOT closed package roots — pending migration; don't add more files there+- Editor state (tabs, undo, cursors) is session-scoped in the ViewModel — file writes go through `EditorSaveOps`, never direct+- Native highlighting can lag on huge files — regex fallback must stay working, test both paths +## Key files+### Root + syntax/ — entry and highlighting - com/vayunmathur/code/MainActivity.kt - com/vayunmathur/code/syntax/SyntaxHighlighting.kt+### ui/ — editor shell, canvas, pages+- com/vayunmathur/code/ui/EditorScreen.kt - com/vayunmathur/code/ui/CodeEditor.kt+- com/vayunmathur/code/ui/CodeEditorView.kt - com/vayunmathur/code/ui/CodeEditorCanvas.kt-- com/vayunmathur/code/ui/CodeEditorChrome.kt - com/vayunmathur/code/ui/CodeEditorContent.kt - com/vayunmathur/code/ui/CodeEditorDraw.kt+- com/vayunmathur/code/ui/CodeEditorChrome.kt - com/vayunmathur/code/ui/CodeEditorGestures.kt - com/vayunmathur/code/ui/CodeEditorInput.kt - com/vayunmathur/code/ui/CodeEditorKeys.kt-- com/vayunmathur/code/ui/CodeEditorView.kt-- com/vayunmathur/code/ui/CodeWideLayout.kt-- com/vayunmathur/code/ui/CommandPalette.kt-- com/vayunmathur/code/ui/DiffView.kt - com/vayunmathur/code/ui/EditorBody.kt - com/vayunmathur/code/ui/EditorChrome.kt-- com/vayunmathur/code/ui/EditorScreen.kt - com/vayunmathur/code/ui/EditorToolbar.kt+- com/vayunmathur/code/ui/CodeWideLayout.kt+- com/vayunmathur/code/ui/Minimap.kt+- com/vayunmathur/code/ui/CommandPalette.kt+- com/vayunmathur/code/ui/DiffView.kt - com/vayunmathur/code/ui/FileTreePane.kt - com/vayunmathur/code/ui/FolderBrowserPage.kt - com/vayunmathur/code/ui/GitPage.kt - com/vayunmathur/code/ui/GitPageSection.kt-- com/vayunmathur/code/ui/Minimap.kt - com/vayunmathur/code/ui/PreviewPage.kt - com/vayunmathur/code/ui/SearchPage.kt - com/vayunmathur/code/ui/SettingsPage.kt - com/vayunmathur/code/ui/SnippetsPage.kt - com/vayunmathur/code/ui/TerminalPage.kt+### util/ — ViewModel, document, ops (pending migration to closed roots)+- com/vayunmathur/code/util/EditorViewModel.kt - com/vayunmathur/code/util/CodeUiContract.kt-- com/vayunmathur/code/util/Completion.kt-- com/vayunmathur/code/util/Diagnostics.kt-- com/vayunmathur/code/util/DiffModel.kt - com/vayunmathur/code/util/EditorDocument.kt-- com/vayunmathur/code/util/EditorFileTreeOps.kt-- com/vayunmathur/code/util/EditorGitOps.kt+- com/vayunmathur/code/util/EditorTabs.kt - com/vayunmathur/code/util/EditorInput.kt-- com/vayunmathur/code/util/EditorPrefs.kt - com/vayunmathur/code/util/EditorSaveOps.kt - com/vayunmathur/code/util/EditorSearchOps.kt-- com/vayunmathur/code/util/EditorTabs.kt+- com/vayunmathur/code/util/EditorFileTreeOps.kt+- com/vayunmathur/code/util/EditorGitOps.kt+- com/vayunmathur/code/util/GitRepo.kt+- com/vayunmathur/code/util/GitIgnore.kt+- com/vayunmathur/code/util/MergeConflicts.kt+- com/vayunmathur/code/util/DiffModel.kt - com/vayunmathur/code/util/EditorTerminalOps.kt-- com/vayunmathur/code/util/EditorViewModel.kt-- com/vayunmathur/code/util/FileFiles.kt+- com/vayunmathur/code/util/TerminalSession.kt+- com/vayunmathur/code/util/Completion.kt+- com/vayunmathur/code/util/Diagnostics.kt+- com/vayunmathur/code/util/Outline.kt - com/vayunmathur/code/util/FoldRegions.kt - com/vayunmathur/code/util/Formatting.kt - com/vayunmathur/code/util/FuzzyMatch.kt-- com/vayunmathur/code/util/GitIgnore.kt-- com/vayunmathur/code/util/GitRepo.kt - com/vayunmathur/code/util/Markdown.kt-- com/vayunmathur/code/util/MergeConflicts.kt-- com/vayunmathur/code/util/Outline.kt-- com/vayunmathur/code/util/TerminalSession.kt - com/vayunmathur/code/util/TextEncoding.kt-- com/vayunmathur/code/util/TreeSitterNative.kt+- com/vayunmathur/code/util/FileFiles.kt+- com/vayunmathur/code/util/EditorPrefs.kt+- com/vayunmathur/code/util/TreeSitterNative.kt — Rust JNI bridge ## Verify (this module only) ```@@ -74,5 +89,3 @@ _Install: ./install code (dev by default)._ ./gradlew :code:lint ./gradlew :code:checkMetadata ```--
fooddelivery/AGENTS.md
diff --git a/fooddelivery/AGENTS.md b/fooddelivery/AGENTS.mdindex db586cdf9e..fdbc6527ea 100644--- a/fooddelivery/AGENTS.md+++ b/fooddelivery/AGENTS.md@@ -3,45 +3,63 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `fooddelivery/` + allowed shared modules. Do not root-scan. _Install: ./install fooddelivery (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :fooddelivery / dir: fooddelivery/ - Package roots present: ui, data, platform, intents, notifications-- Entry files: MainActivity.kt, FoodDeliveryApplication.kt+- Entry files: MainActivity.kt + FoodDeliveryApplication.kt + platform/AppInit.kt (no Route.kt — home/restaurant/cart/checkout/orders flow) - Deps: :library:image, :library:map, :library:network - Metadata: metadata_data/fooddelivery.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** US-only food-delivery client — restaurant browse, cart + Stripe checkout (pickup/delivery, tips, promos), live order tracking, deals/loyalty. Requires internet throughout.+**Key features:**+- Home/deals → restaurant → cart → checkout → success flow with modifier dialogs and totals; account addresses/auth/profile+- `data/CartStore` + `AddressStore` client state over `api/BitesApi`; order tracking in `notifications/` (live update + foreground tracking service)+- Assistant order lookup via `intents/OrderLookupIntent` (+ `ipc/OrderLookupContract`)+**Architecture / data-flow:** `ui/` flow screens → `platform/AppInit`-wired state (`data/CartStore`) → `api/BitesApi` backend; tracking runs in `notifications/OrderTrackingService` independent of the UI process.+**Entry points + reading order:** `FoodDeliveryApplication.kt` → `platform/AppInit.kt` → `MainActivity.kt` → `ui/HomeScreen.kt` → `ui/RestaurantScreen.kt` → `ui/CartScreen.kt` → `ui/CheckoutScreen.kt` → `api/BitesApi.kt`.+**Gotchas:**+- `api/` and `ipc/` are NOT closed package roots — pending migration; don't add more files there+- Payment data goes straight to Stripe tokenization — card numbers must never hit app state or logs+- Tracking must survive the app being killed; keep it in the service, not the ViewModel +## Key files+### Root + platform/ — app init + entry (no Route.kt) - com/vayunmathur/fooddelivery/FoodDeliveryApplication.kt - com/vayunmathur/fooddelivery/MainActivity.kt+- com/vayunmathur/fooddelivery/platform/AppInit.kt+### api/ — backend client (pending migration to closed roots) - com/vayunmathur/fooddelivery/api/BitesApi.kt-- com/vayunmathur/fooddelivery/data/AddressStore.kt+### data/ — cart, addresses, models - com/vayunmathur/fooddelivery/data/CartStore.kt+- com/vayunmathur/fooddelivery/data/AddressStore.kt - com/vayunmathur/fooddelivery/data/Models.kt+### intents/ + ipc/ — assistant lookup contract - com/vayunmathur/fooddelivery/intents/OrderLookupIntent.kt - com/vayunmathur/fooddelivery/ipc/OrderLookupContract.kt-- com/vayunmathur/fooddelivery/notifications/OrderLiveUpdate.kt+### notifications/ — live tracking - com/vayunmathur/fooddelivery/notifications/OrderTrackingService.kt-- com/vayunmathur/fooddelivery/platform/AppInit.kt-- com/vayunmathur/fooddelivery/ui/AccountAddresses.kt-- com/vayunmathur/fooddelivery/ui/AccountAuth.kt-- com/vayunmathur/fooddelivery/ui/AccountProfile.kt-- com/vayunmathur/fooddelivery/ui/AccountScreen.kt-- com/vayunmathur/fooddelivery/ui/AddressFormCard.kt+- com/vayunmathur/fooddelivery/notifications/OrderLiveUpdate.kt+### ui/ — browse, cart, checkout, orders, account+- com/vayunmathur/fooddelivery/ui/HomeScreen.kt+- com/vayunmathur/fooddelivery/ui/DealsScreen.kt+- com/vayunmathur/fooddelivery/ui/RestaurantScreen.kt+- com/vayunmathur/fooddelivery/ui/RestaurantSections.kt+- com/vayunmathur/fooddelivery/ui/ModifierDialog.kt - com/vayunmathur/fooddelivery/ui/CartScreen.kt - com/vayunmathur/fooddelivery/ui/CheckoutScreen.kt - com/vayunmathur/fooddelivery/ui/CheckoutSections.kt-- com/vayunmathur/fooddelivery/ui/CheckoutSuccess.kt - com/vayunmathur/fooddelivery/ui/CheckoutTotals.kt-- com/vayunmathur/fooddelivery/ui/DealsScreen.kt-- com/vayunmathur/fooddelivery/ui/HomeScreen.kt-- com/vayunmathur/fooddelivery/ui/ModifierDialog.kt+- com/vayunmathur/fooddelivery/ui/CheckoutSuccess.kt - com/vayunmathur/fooddelivery/ui/OrdersScreen.kt - com/vayunmathur/fooddelivery/ui/OrdersScreenSection.kt - com/vayunmathur/fooddelivery/ui/OrderTrackingScreen.kt-- com/vayunmathur/fooddelivery/ui/RestaurantScreen.kt-- com/vayunmathur/fooddelivery/ui/RestaurantSections.kt+- com/vayunmathur/fooddelivery/ui/AccountScreen.kt+- com/vayunmathur/fooddelivery/ui/AccountAuth.kt+- com/vayunmathur/fooddelivery/ui/AccountProfile.kt+- com/vayunmathur/fooddelivery/ui/AccountAddresses.kt+- com/vayunmathur/fooddelivery/ui/AddressFormCard.kt ## Verify (this module only) ```@@ -49,5 +67,3 @@ _Install: ./install fooddelivery (dev by default)._ ./gradlew :fooddelivery:lint ./gradlew :fooddelivery:checkMetadata ```--
launcher/AGENTS.md
diff --git a/launcher/AGENTS.md b/launcher/AGENTS.mdindex 413c00533c..787478daf2 100644--- a/launcher/AGENTS.md+++ b/launcher/AGENTS.md@@ -3,7 +3,7 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `launcher/` + allowed shared modules. Do not root-scan. _Install: ./install launcher (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :launcher / dir: launcher/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -11,87 +11,104 @@ _Install: ./install launcher (dev by default)._ - Metadata: metadata_data/launcher.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline home-screen replacement — paged grid, hotseat, folders, searchable drawer, real widget hosting. Layout in encrypted Room; no account, nothing uploaded.+**Key features:**+- Workspace grid with drag/drop/reorder/folder-merge, drop-bar targets, page-edge dwell, widget resize frames (`ui/components/` drag system + `domain/` placement math)+- App drawer with fast scroll + predictions; widget host incl. configurable providers (`platform/LauncherWidgetHost`)+- Icon cache, app-change monitor, privilege-gated surfaces; settings pages+**Architecture / data-flow:** `ui/` home/drawer/folder/settings → `platform/LauncherViewModel` (+ `LauncherUiContract`) → `data/LauncherRepository` over Room; `domain/` is pure grid math (occupancy, placement, reorder, folders, hotseat, pagination) — the single biggest pure-logic area in any app, testable without Compose.+**Entry points + reading order:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/HomeWorkspace.kt` → `platform/LauncherViewModel.kt` → `domain/GridPlacer.kt` + `domain/ReconcileUseCase.kt`.+**Gotchas:**+- Exempt from the raw-animation rule: built on `animateBounds`/`Animatable` — do NOT "migrate" its motion to library helpers+- Reconcile (installed-apps vs stored layout) runs on package changes — launcher bugs after installs live in `ReconcileUseCase` + `LauncherAppsMonitor`+- Drag input math is in `domain/`, gesture plumbing in `ui/components/` — keep them separated +## Key files+### Root — entry + navigation - com/vayunmathur/launcher/MainActivity.kt - com/vayunmathur/launcher/Navigation.kt - com/vayunmathur/launcher/Route.kt+### data/ — encrypted layout store - com/vayunmathur/launcher/data/LauncherDatabase.kt-- com/vayunmathur/launcher/data/LauncherItemEntity.kt - com/vayunmathur/launcher/data/LauncherRepository.kt-- com/vayunmathur/launcher/domain/AutoPlacer.kt+- com/vayunmathur/launcher/data/LauncherItemEntity.kt+### domain/ — pure grid math (no Android/Compose)+- com/vayunmathur/launcher/domain/ReconcileUseCase.kt+- com/vayunmathur/launcher/domain/GridPlacer.kt+- com/vayunmathur/launcher/domain/GridReorder.kt - com/vayunmathur/launcher/domain/CellOccupancy.kt - com/vayunmathur/launcher/domain/CellRect.kt - com/vayunmathur/launcher/domain/ContainerRef.kt+- com/vayunmathur/launcher/domain/AutoPlacer.kt - com/vayunmathur/launcher/domain/DropBarTargets.kt-- com/vayunmathur/launcher/domain/FastScroll.kt - com/vayunmathur/launcher/domain/FolderMerge.kt - com/vayunmathur/launcher/domain/FolderRules.kt-- com/vayunmathur/launcher/domain/GridPlacer.kt - com/vayunmathur/launcher/domain/GridPreview.kt-- com/vayunmathur/launcher/domain/GridReorder.kt - com/vayunmathur/launcher/domain/HotseatArrange.kt - com/vayunmathur/launcher/domain/LauncherItemType.kt - com/vayunmathur/launcher/domain/LauncherTuning.kt - com/vayunmathur/launcher/domain/PageCount.kt-- com/vayunmathur/launcher/domain/ReconcileUseCase.kt - com/vayunmathur/launcher/domain/ReorderDwell.kt+- com/vayunmathur/launcher/domain/FastScroll.kt - com/vayunmathur/launcher/domain/WidgetResize.kt-- com/vayunmathur/launcher/platform/ActivityBridge.kt-- com/vayunmathur/launcher/platform/IconCache.kt+### platform/ — ViewModel, monitor, widgets, bridge+- com/vayunmathur/launcher/platform/LauncherViewModel.kt+- com/vayunmathur/launcher/platform/LauncherUiContract.kt - com/vayunmathur/launcher/platform/LauncherAppsMonitor.kt - com/vayunmathur/launcher/platform/LauncherPredictions.kt-- com/vayunmathur/launcher/platform/LauncherPrivilege.kt-- com/vayunmathur/launcher/platform/LauncherUiContract.kt-- com/vayunmathur/launcher/platform/LauncherViewModel.kt - com/vayunmathur/launcher/platform/LauncherWidgetHost.kt - com/vayunmathur/launcher/platform/LauncherWidgets.kt-- com/vayunmathur/launcher/ui/DrawerCells.kt-- com/vayunmathur/launcher/ui/DrawerContent.kt-- com/vayunmathur/launcher/ui/DrawerFastScroll.kt-- com/vayunmathur/launcher/ui/FolderContent.kt-- com/vayunmathur/launcher/ui/HomeConstants.kt+- com/vayunmathur/launcher/platform/IconCache.kt+- com/vayunmathur/launcher/platform/ActivityBridge.kt+- com/vayunmathur/launcher/platform/LauncherPrivilege.kt+### ui/ + ui/components/ — workspace, drawer, drag system+- com/vayunmathur/launcher/ui/HomeWorkspace.kt+- com/vayunmathur/launcher/ui/HomePage.kt - com/vayunmathur/launcher/ui/HomeContent.kt-- com/vayunmathur/launcher/ui/HomeDrawerSwipe.kt-- com/vayunmathur/launcher/ui/HomeDropLogic.kt-- com/vayunmathur/launcher/ui/HomeEffects.kt+- com/vayunmathur/launcher/ui/WorkspacePage.kt+- com/vayunmathur/launcher/ui/WorkspaceGrid.kt - com/vayunmathur/launcher/ui/HomeGestureRoot.kt+- com/vayunmathur/launcher/ui/HomeDropLogic.kt - com/vayunmathur/launcher/ui/HomeLaunch.kt+- com/vayunmathur/launcher/ui/HomeEffects.kt - com/vayunmathur/launcher/ui/HomeOverlays.kt-- com/vayunmathur/launcher/ui/HomePage.kt - com/vayunmathur/launcher/ui/HomePopups.kt-- com/vayunmathur/launcher/ui/HomeWorkspace.kt+- com/vayunmathur/launcher/ui/HomeConstants.kt+- com/vayunmathur/launcher/ui/HomeDrawerSwipe.kt+- com/vayunmathur/launcher/ui/WorkspaceOptionsContent.kt - com/vayunmathur/launcher/ui/HotseatBar.kt+- com/vayunmathur/launcher/ui/FolderContent.kt+- com/vayunmathur/launcher/ui/DrawerContent.kt+- com/vayunmathur/launcher/ui/DrawerCells.kt+- com/vayunmathur/launcher/ui/DrawerFastScroll.kt - com/vayunmathur/launcher/ui/ItemMenuContent.kt-- com/vayunmathur/launcher/ui/SettingsContent.kt - com/vayunmathur/launcher/ui/SettingsPage.kt+- com/vayunmathur/launcher/ui/SettingsContent.kt - com/vayunmathur/launcher/ui/WidgetPickerContent.kt-- com/vayunmathur/launcher/ui/WorkspaceGrid.kt-- com/vayunmathur/launcher/ui/WorkspaceOptionsContent.kt-- com/vayunmathur/launcher/ui/WorkspacePage.kt-- com/vayunmathur/launcher/ui/components/AppWindowBounds.kt-- com/vayunmathur/launcher/ui/components/CellLayout.kt-- com/vayunmathur/launcher/ui/components/CellPlacement.kt-- com/vayunmathur/launcher/ui/components/DragFeedback.kt+- com/vayunmathur/launcher/ui/components/LauncherDragController.kt - com/vayunmathur/launcher/ui/components/DragLayer.kt+- com/vayunmathur/launcher/ui/components/DragFeedback.kt - com/vayunmathur/launcher/ui/components/DragSourceModifier.kt-- com/vayunmathur/launcher/ui/components/DropBar.kt - com/vayunmathur/launcher/ui/components/DropTargetModifier.kt-- com/vayunmathur/launcher/ui/components/FastScrollStrip.kt-- com/vayunmathur/launcher/ui/components/HostedWidget.kt-- com/vayunmathur/launcher/ui/components/LauncherAppIcon.kt-- com/vayunmathur/launcher/ui/components/LauncherDragController.kt+- com/vayunmathur/launcher/ui/components/DropBar.kt+- com/vayunmathur/launcher/ui/components/CellLayout.kt+- com/vayunmathur/launcher/ui/components/CellPlacement.kt - com/vayunmathur/launcher/ui/components/LauncherDragInput.kt - com/vayunmathur/launcher/ui/components/LauncherDragInputSection.kt+- com/vayunmathur/launcher/ui/components/LauncherAppIcon.kt - com/vayunmathur/launcher/ui/components/LauncherItemIcon.kt - com/vayunmathur/launcher/ui/components/LauncherPopup.kt - com/vayunmathur/launcher/ui/components/LauncherPopupSurface.kt - com/vayunmathur/launcher/ui/components/MergeRing.kt-- com/vayunmathur/launcher/ui/components/MissingWidget.kt-- com/vayunmathur/launcher/ui/components/PageEdgeDwell.kt-- com/vayunmathur/launcher/ui/components/PageIndicator.kt - com/vayunmathur/launcher/ui/components/ReorderPreview.kt+- com/vayunmathur/launcher/ui/components/PageIndicator.kt+- com/vayunmathur/launcher/ui/components/PageEdgeDwell.kt+- com/vayunmathur/launcher/ui/components/FastScrollStrip.kt+- com/vayunmathur/launcher/ui/components/HostedWidget.kt+- com/vayunmathur/launcher/ui/components/MissingWidget.kt - com/vayunmathur/launcher/ui/components/WidgetResizeFrame.kt+- com/vayunmathur/launcher/ui/components/AppWindowBounds.kt ## Verify (this module only) ```@@ -99,5 +116,3 @@ _Install: ./install launcher (dev by default)._ ./gradlew :launcher:lint ./gradlew :launcher:checkMetadata ```--
taxi/AGENTS.md
diff --git a/taxi/AGENTS.md b/taxi/AGENTS.mdindex fd8382b96e..ec385e4ee2 100644--- a/taxi/AGENTS.md+++ b/taxi/AGENTS.md@@ -3,7 +3,7 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `taxi/` + allowed shared modules. Do not root-scan. _Install: ./install taxi (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :taxi / dir: taxi/ - Package roots present: ui, data, platform, network, intents, provider, notifications - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -11,49 +11,68 @@ _Install: ./install taxi (dev by default)._ - Metadata: metadata_data/taxi.md (present) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** US/CA ride-hailing aggregator — side-by-side Uber vs Lyft fare comparison, Lyft booking without the Lyft app, live tracking; address search with no Google Places/Play Services.+**Key features:**+- Quote flow: `provider/QuoteRepository` over `provider/RideProvider` impls → `ui/RideResults` comparison → per-provider booking (`LyftBooking`, Uber WebView auth)+- Live ride: tracking map + cards + driver/ETA notification (`notifications/RideTrackingService`); deep-link re-entry (`platform/deeplink/`)+- Cards tokenised straight to Stripe (`LyftCardTokenizer`) — numbers never touch the app backend+**Architecture / data-flow:** `ui/RideScreen` inputs → `provider/` quotes → results → booking → `notifications/` live tracking; `network/uber/` + `network/lyft/` own provider APIs/auth/parsers; `ipc/` directions + ride-handoff contracts bridge maps/assistant.+**Entry points + reading order:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/RideScreen.kt` → `provider/QuoteRepository.kt` → `provider/RideProvider.kt` → `network/lyft/LyftProvider.kt` / `network/uber/UberProvider.kt`.+**Gotchas:**+- `ipc/` is NOT a closed package root — pending migration; don't add more files there+- Unofficial-provider APIs are brittle — isolate Uber/Lyft failures from each other and from the quote UI+- Screenshot tests are off for this module (`screenshotTest: no`) — verify ride flows on device +## Key files+### Root — entry + navigation - com/vayunmathur/taxi/MainActivity.kt - com/vayunmathur/taxi/Navigation.kt - com/vayunmathur/taxi/Route.kt+### data/ — models + token stores - com/vayunmathur/taxi/data/Models.kt - com/vayunmathur/taxi/data/lyft/LyftTokenStore.kt - com/vayunmathur/taxi/data/uber/UberSession.kt-- com/vayunmathur/taxi/intents/RideEstimateIntent.kt-- com/vayunmathur/taxi/ipc/DirectionsClient.kt-- com/vayunmathur/taxi/ipc/IntentLaunch.kt-- com/vayunmathur/taxi/ipc/RideHandoffContract.kt+### provider/ — quote abstraction+- com/vayunmathur/taxi/provider/RideProvider.kt+- com/vayunmathur/taxi/provider/QuoteRepository.kt+### network/lyft/ + network/uber/ — provider clients+- com/vayunmathur/taxi/network/lyft/LyftProvider.kt - com/vayunmathur/taxi/network/lyft/LyftAuth.kt-- com/vayunmathur/taxi/network/lyft/LyftCardTokenizer.kt+- com/vayunmathur/taxi/network/lyft/LyftRideParser.kt - com/vayunmathur/taxi/network/lyft/LyftOffersParser.kt - com/vayunmathur/taxi/network/lyft/LyftProto.kt-- com/vayunmathur/taxi/network/lyft/LyftProvider.kt-- com/vayunmathur/taxi/network/lyft/LyftRideParser.kt-- com/vayunmathur/taxi/network/uber/UberAuth.kt+- com/vayunmathur/taxi/network/lyft/LyftCardTokenizer.kt - com/vayunmathur/taxi/network/uber/UberProvider.kt+- com/vayunmathur/taxi/network/uber/UberAuth.kt - com/vayunmathur/taxi/network/uber/UberWebView.kt-- com/vayunmathur/taxi/notifications/RideLiveUpdate.kt-- com/vayunmathur/taxi/notifications/RideTrackingService.kt-- com/vayunmathur/taxi/platform/deeplink/RideDeepLinks.kt+### platform/ + notifications/ — location, deep links, tracking - com/vayunmathur/taxi/platform/location/LocationProvider.kt-- com/vayunmathur/taxi/provider/QuoteRepository.kt-- com/vayunmathur/taxi/provider/RideProvider.kt-- com/vayunmathur/taxi/ui/AccountsScreen.kt-- com/vayunmathur/taxi/ui/AddCardDialog.kt-- com/vayunmathur/taxi/ui/CurrentRideScreen.kt-- com/vayunmathur/taxi/ui/LyftBooking.kt-- com/vayunmathur/taxi/ui/LyftSignInScreen.kt+- com/vayunmathur/taxi/platform/deeplink/RideDeepLinks.kt+- com/vayunmathur/taxi/notifications/RideTrackingService.kt+- com/vayunmathur/taxi/notifications/RideLiveUpdate.kt+### intents/ + ipc/ — assistant + handoff contracts+- com/vayunmathur/taxi/intents/RideEstimateIntent.kt+- com/vayunmathur/taxi/ipc/RideHandoffContract.kt+- com/vayunmathur/taxi/ipc/DirectionsClient.kt+- com/vayunmathur/taxi/ipc/IntentLaunch.kt+### ui/ — search, results, booking, tracking, accounts+- com/vayunmathur/taxi/ui/RideScreen.kt - com/vayunmathur/taxi/ui/RideContent.kt - com/vayunmathur/taxi/ui/RideInputs.kt - com/vayunmathur/taxi/ui/RideResults.kt - com/vayunmathur/taxi/ui/RideRoute.kt-- com/vayunmathur/taxi/ui/RideScreen.kt-- com/vayunmathur/taxi/ui/RideTrackingCards.kt-- com/vayunmathur/taxi/ui/RideTrackingMap.kt+- com/vayunmathur/taxi/ui/LyftBooking.kt+- com/vayunmathur/taxi/ui/LyftSignInScreen.kt+- com/vayunmathur/taxi/ui/UberSignInScreen.kt+- com/vayunmathur/taxi/ui/UberConnectScreen.kt+- com/vayunmathur/taxi/ui/AddCardDialog.kt+- com/vayunmathur/taxi/ui/CurrentRideScreen.kt - com/vayunmathur/taxi/ui/RideTrackingScreen.kt+- com/vayunmathur/taxi/ui/RideTrackingMap.kt+- com/vayunmathur/taxi/ui/RideTrackingCards.kt+- com/vayunmathur/taxi/ui/AccountsScreen.kt - com/vayunmathur/taxi/ui/TaxiRideWideLayout.kt-- com/vayunmathur/taxi/ui/UberConnectScreen.kt-- com/vayunmathur/taxi/ui/UberSignInScreen.kt ## Verify (this module only) ```@@ -61,5 +80,3 @@ _Install: ./install taxi (dev by default)._ ./gradlew :taxi:lint ./gradlew :taxi:checkMetadata ```--
todo/AGENTS.md
diff --git a/todo/AGENTS.md b/todo/AGENTS.mdindex 7d630d741e..8496d86517 100644--- a/todo/AGENTS.md+++ b/todo/AGENTS.md@@ -1,27 +1,49 @@-# AGENTS.md - todo/ (':todo')+# AGENTS.md — todo/ (':todo')+ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `todo/` + allowed shared modules. Do not root-scan.+ _Install: ./install todo (dev by default)._+<!-- last-reviewed: 2026-10-16 --> - Gradle: :todo / dir: todo/ - Package roots present: ui, data, platform, sync - Entry files: MainActivity.kt, Route.kt, Navigation.kt - Deps: :library:room - Metadata: metadata_data/todo.md (present) - Rust: no / screenshotTest: yes++## Overview+**Purpose:** Offline task list with due dates, drag reorder, backup/restore, and E2EE sync via EverySync (`sync/RelayTodoProvider`).+**Key features:**+- Tasks with due dates, check-off, drag-to-reorder list + detail screens+- Local backup/restore via `AppBackupAgent`; relay sync snapshots consumed by everysync (`TodoSink`/`TodoIpcSink` side)+- `TodoUiContract` + `TodoViewModel` over Room (`Todo`, `TodoDatabase`, `TodoRepository`)+**Architecture / data-flow:** `ui/` list/detail → `platform/TodoViewModel` → `data/TodoRepository` over Room; `sync/RelayTodoProvider` exposes the relay surface everysync syncs.+**Entry points + reading order:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/TodoListScreen.kt` → `platform/TodoViewModel.kt` → `data/TodoRepository.kt` → `sync/RelayTodoProvider.kt`.+**Gotchas:**+- `settings.gradle.kts` lists `:todo` twice — harmless Gradle quirk, indexed once everywhere+- Relay schema changes must stay compatible with everysync's `TodoKind` adapter — update both sides together+ ## Key files+### Root — entry + navigation - com/vayunmathur/todo/MainActivity.kt - com/vayunmathur/todo/Navigation.kt - com/vayunmathur/todo/Route.kt-- com/vayunmathur/todo/data/Todo.kt+### data/ — Room store - com/vayunmathur/todo/data/TodoDatabase.kt - com/vayunmathur/todo/data/TodoRepository.kt-- com/vayunmathur/todo/platform/AppBackupAgent.kt-- com/vayunmathur/todo/platform/TodoUiContract.kt+- com/vayunmathur/todo/data/Todo.kt+### platform/ — ViewModel, contract, backup - com/vayunmathur/todo/platform/TodoViewModel.kt+- com/vayunmathur/todo/platform/TodoUiContract.kt+- com/vayunmathur/todo/platform/AppBackupAgent.kt+### sync/ — everysync relay surface - com/vayunmathur/todo/sync/RelayTodoProvider.kt-- com/vayunmathur/todo/ui/TodoDetailPage.kt-- com/vayunmathur/todo/ui/TodoDetailScreen.kt-- com/vayunmathur/todo/ui/TodoListPage.kt+### ui/ — list + detail - com/vayunmathur/todo/ui/TodoListScreen.kt+- com/vayunmathur/todo/ui/TodoListPage.kt+- com/vayunmathur/todo/ui/TodoDetailScreen.kt+- com/vayunmathur/todo/ui/TodoDetailPage.kt+ ## Verify (this module only) ``` ./gradlew :todo:compileDevKotlin
travel/AGENTS.md
diff --git a/travel/AGENTS.md b/travel/AGENTS.mdindex d78b7cfbc1..ad5e744a72 100644--- a/travel/AGENTS.md+++ b/travel/AGENTS.md@@ -3,67 +3,84 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `travel/` + allowed shared modules. Do not root-scan. _Install: ./install travel (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :travel / dir: travel/ - Package roots present: ui, data, network-- Entry files: MainActivity.kt+- Entry files: MainActivity.kt (no Route.kt — search/results/booking/manage flow with pages) - Deps: :library:room, :library:network, :library:image - Metadata: metadata_data/travel.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Flight + hotel booking — search/comparison, seat maps, ancillaries/offers, order management; trips persist on-device so plans stay readable offline.+**Key features:**+- Flight search form → results → offer review → passengers → payment → confirmation; change/cancel/manage on booked orders+- Stays search → detail → guests → confirmation; seat-map picker; ancillaries/partial-offers pages+- `data/` Room (trips, customers, frequent-flyer, recent searches) + `network/` airline/stays DTOs + APIs+**Architecture / data-flow:** `ui/` search/results/booking pages → `util/TravelViewModel` (+ `TravelUiContract`/`TravelUiState`, per-area `Travel*Ops`) → `data/TravelRepository` over Room + `network/TravelApi`/`StaysApi`; booked trips stay readable from Room when offline.+**Entry points + reading order:** `MainActivity.kt` → `ui/HomePage.kt` → `ui/FlightSearchForm.kt` → `util/TravelViewModel.kt` → `util/TravelSearchOps.kt` → `network/TravelApi.kt`.+**Gotchas:**+- `util/` is NOT a closed package root — pending migration; don't add more files there+- Booking is money-moving — price/availability must be re-confirmed server-side before payment, never trusted from cached offers+- Offline readability is a feature (stored trips), offline booking is not — gate write paths on connectivity +## Key files+### Root — entry (no Route.kt) - com/vayunmathur/travel/MainActivity.kt+### data/ — Room trips + customers+- com/vayunmathur/travel/data/TravelDatabase.kt+- com/vayunmathur/travel/data/TravelRepository.kt - com/vayunmathur/travel/data/BookedTrip.kt - com/vayunmathur/travel/data/Customer.kt - com/vayunmathur/travel/data/FrequentFlyer.kt - com/vayunmathur/travel/data/RecentSearch.kt-- com/vayunmathur/travel/data/TravelDatabase.kt-- com/vayunmathur/travel/data/TravelRepository.kt+### network/ — airline + stays APIs+- com/vayunmathur/travel/network/TravelApi.kt+- com/vayunmathur/travel/network/OfferDto.kt+- com/vayunmathur/travel/network/OrderDto.kt+- com/vayunmathur/travel/network/ManageDto.kt - com/vayunmathur/travel/network/AirlineDto.kt - com/vayunmathur/travel/network/AncillaryDto.kt - com/vayunmathur/travel/network/CustomerDto.kt-- com/vayunmathur/travel/network/ManageDto.kt-- com/vayunmathur/travel/network/OfferDto.kt-- com/vayunmathur/travel/network/OrderDto.kt - com/vayunmathur/travel/network/PlaceDto.kt - com/vayunmathur/travel/network/StaysApi.kt - com/vayunmathur/travel/network/StaysDto.kt-- com/vayunmathur/travel/network/TravelApi.kt-- com/vayunmathur/travel/ui/AncillariesPage.kt-- com/vayunmathur/travel/ui/CancellationPage.kt-- com/vayunmathur/travel/ui/ChangePage.kt-- com/vayunmathur/travel/ui/Common.kt-- com/vayunmathur/travel/ui/ConfirmationPage.kt-- com/vayunmathur/travel/ui/FlightResultsPage.kt-- com/vayunmathur/travel/ui/FlightSearchForm.kt+### util/ — ViewModel + booking ops (pending migration to closed roots)+- com/vayunmathur/travel/util/TravelViewModel.kt+- com/vayunmathur/travel/util/TravelUiContract.kt+- com/vayunmathur/travel/util/TravelUiState.kt+- com/vayunmathur/travel/util/TravelSearchOps.kt+- com/vayunmathur/travel/util/TravelBookingOps.kt+- com/vayunmathur/travel/util/TravelOrderOps.kt+- com/vayunmathur/travel/util/TravelCustomerOps.kt+- com/vayunmathur/travel/util/TravelStayOps.kt+- com/vayunmathur/travel/util/ContactAutofill.kt+### ui/ — search, results, booking, trips, stays - com/vayunmathur/travel/ui/HomePage.kt+- com/vayunmathur/travel/ui/FlightSearchForm.kt+- com/vayunmathur/travel/ui/FlightResultsPage.kt - com/vayunmathur/travel/ui/OfferReviewPage.kt-- com/vayunmathur/travel/ui/OrderDetailPage.kt - com/vayunmathur/travel/ui/PartialOffersPages.kt-- com/vayunmathur/travel/ui/PassengersFields.kt - com/vayunmathur/travel/ui/PassengersPage.kt+- com/vayunmathur/travel/ui/PassengersFields.kt - com/vayunmathur/travel/ui/PaymentPage.kt - com/vayunmathur/travel/ui/SeatMapPage.kt-- com/vayunmathur/travel/ui/SettingsPage.kt-- com/vayunmathur/travel/ui/StayConfirmationPage.kt+- com/vayunmathur/travel/ui/AncillariesPage.kt+- com/vayunmathur/travel/ui/ConfirmationPage.kt+- com/vayunmathur/travel/ui/OrderDetailPage.kt+- com/vayunmathur/travel/ui/ChangePage.kt+- com/vayunmathur/travel/ui/CancellationPage.kt+- com/vayunmathur/travel/ui/TripsPage.kt+- com/vayunmathur/travel/ui/StaySearchForm.kt+- com/vayunmathur/travel/ui/StayResultsScreen.kt - com/vayunmathur/travel/ui/StayDetailPage.kt - com/vayunmathur/travel/ui/StayGuestsPage.kt-- com/vayunmathur/travel/ui/StayLabels.kt-- com/vayunmathur/travel/ui/StayResultsScreen.kt-- com/vayunmathur/travel/ui/StaySearchForm.kt+- com/vayunmathur/travel/ui/StayConfirmationPage.kt - com/vayunmathur/travel/ui/StaysPages.kt+- com/vayunmathur/travel/ui/StayLabels.kt+- com/vayunmathur/travel/ui/SettingsPage.kt+- com/vayunmathur/travel/ui/Common.kt - com/vayunmathur/travel/ui/TravelFormat.kt-- com/vayunmathur/travel/ui/TripsPage.kt-- com/vayunmathur/travel/util/ContactAutofill.kt-- com/vayunmathur/travel/util/TravelBookingOps.kt-- com/vayunmathur/travel/util/TravelCustomerOps.kt-- com/vayunmathur/travel/util/TravelOrderOps.kt-- com/vayunmathur/travel/util/TravelSearchOps.kt-- com/vayunmathur/travel/util/TravelStayOps.kt-- com/vayunmathur/travel/util/TravelUiContract.kt-- com/vayunmathur/travel/util/TravelUiState.kt-- com/vayunmathur/travel/util/TravelViewModel.kt ## Verify (this module only) ```@@ -71,5 +88,3 @@ _Install: ./install travel (dev by default)._ ./gradlew :travel:lint ./gradlew :travel:checkMetadata ```--