docs-agent-overviews-phase-C3
- Commit
62a514c044d3b1e4f70d9e06a391b7b315ccfb47- Author
- vayun-mathur <[email protected]>
- When
- 2026-10-16 04:06 UTC (1 month ago)
- Parents
d7304a0
Diff
library/AGENTS.md
diff --git a/library/AGENTS.md b/library/AGENTS.mdindex d89c55eb46..516e6806f2 100644--- a/library/AGENTS.md+++ b/library/AGENTS.md@@ -2,15 +2,24 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library / dir: library/ - Package roots present: intents-- Entry files: Navigation.kt+- Entry files: util/Navigation.kt + util/AssistantIntent.kt (no MainActivity/Route — base library) - Deps: :sdk:games-- Metadata: metadata_data/library.md (MISSING)+- Metadata: metadata_data/library.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Base library every module depends on — navigation keys, cross-app `AssistantIntent` + shared IPC DTOs (`intents/<app>`), `RoomRepository` base, messenger, backup/storage helpers, game-hub reporting.+**How to use:** Routes implement `util/NavKey`; screens navigate via `util/Navigation.kt` (+ bottom-bar/motion/results helpers). Cross-app calls go through `AssistantIntent<In,Out>` with DTOs in `library.intents.<app>`. Room entities subclass `util/RoomViewModel`/`DatabaseHelper` patterns; backups via `BackupAgent`/`BackupHelper`/`BackupFormat`. Games report via `GameHubReporter`/`DailyStreakReporter`.+**Entry points:** `util/Navigation.kt` → `util/NavKey` (same file) → `util/AssistantIntent.kt` → `intents/notes/` (copy-pattern) → `util/AppMessages.kt`.+**Gotchas:** `util/` here is grandfathered (this IS the util library) — the no-`util/` rule applies to apps, not this module. DTO changes break every consumer — keep `intents/` backward-compatible. +## Key files+### intents/ — shared IPC DTOs (one package per app)+- com/vayunmathur/library/intents/notes/NoteData.kt+- com/vayunmathur/library/intents/notes/InsertNoteData.kt - com/vayunmathur/library/intents/calendar/EventData.kt - com/vayunmathur/library/intents/clock/ClockData.kt - com/vayunmathur/library/intents/contacts/ContactData.kt@@ -19,46 +28,44 @@ - com/vayunmathur/library/intents/fooddelivery/OrderLookupData.kt - com/vayunmathur/library/intents/maps/DirectionsData.kt - com/vayunmathur/library/intents/music/MusicData.kt-- com/vayunmathur/library/intents/notes/InsertNoteData.kt-- com/vayunmathur/library/intents/notes/NoteData.kt - com/vayunmathur/library/intents/taxi/RideEstimateData.kt - com/vayunmathur/library/intents/weather/WeatherData.kt-- com/vayunmathur/library/sensor/OrientationManager.kt-- com/vayunmathur/library/util/Achievement.kt-- com/vayunmathur/library/util/AchievementsManager.kt-- com/vayunmathur/library/util/AppMessages.kt-- com/vayunmathur/library/util/AppPreferencesEntry.kt+### util/ — navigation, intents, messenger, storage, games glue+- com/vayunmathur/library/util/Navigation.kt — `NavKey` + `MainNavigation` + `rememberNavBackStack`+- com/vayunmathur/library/util/NavigationBottomBar.kt+- com/vayunmathur/library/util/NavigationMotion.kt+- com/vayunmathur/library/util/NavigationResults.kt - com/vayunmathur/library/util/AssistantIntent.kt+- com/vayunmathur/library/util/AppMessages.kt — `AppMessages.show()` (never `Toast`)+- com/vayunmathur/library/util/Notifications.kt+- com/vayunmathur/library/util/RoomViewModel.kt+- com/vayunmathur/library/util/DatabaseHelper.kt - com/vayunmathur/library/util/BackupAgent.kt-- com/vayunmathur/library/util/BackupFormat.kt - com/vayunmathur/library/util/BackupHelper.kt-- com/vayunmathur/library/util/DailyChallengeStore.kt-- com/vayunmathur/library/util/DailyStreakReporter.kt-- com/vayunmathur/library/util/DatabaseHelper.kt+- com/vayunmathur/library/util/BackupFormat.kt - com/vayunmathur/library/util/DataStoreUtils.kt-- com/vayunmathur/library/util/FileDropModifier.kt-- com/vayunmathur/library/util/Format.kt-- com/vayunmathur/library/util/GameHubCompose.kt+- com/vayunmathur/library/util/AppPreferencesEntry.kt - com/vayunmathur/library/util/GameHubReporter.kt-- com/vayunmathur/library/util/Hkdf.kt-- com/vayunmathur/library/util/IntentHelper.kt+- com/vayunmathur/library/util/GameHubCompose.kt+- com/vayunmathur/library/util/DailyStreakReporter.kt+- com/vayunmathur/library/util/DailyChallengeStore.kt+- com/vayunmathur/library/util/Achievement.kt+- com/vayunmathur/library/util/AchievementsManager.kt - com/vayunmathur/library/util/LevelStatsRepository.kt-- com/vayunmathur/library/util/LocalizedDateNames.kt-- com/vayunmathur/library/util/Markdown.kt-- com/vayunmathur/library/util/Navigation.kt-- com/vayunmathur/library/util/NavigationBottomBar.kt-- com/vayunmathur/library/util/NavigationMotion.kt-- com/vayunmathur/library/util/NavigationResults.kt-- com/vayunmathur/library/util/Notifications.kt-- com/vayunmathur/library/util/RoomViewModel.kt+- com/vayunmathur/library/util/IntentHelper.kt+- com/vayunmathur/library/util/FileDropModifier.kt — `onFileDrop` (see notes/) - com/vayunmathur/library/util/SecureResultReceiver.kt - com/vayunmathur/library/util/SharedEditableText.kt+- com/vayunmathur/library/util/Hkdf.kt+- com/vayunmathur/library/util/Markdown.kt+- com/vayunmathur/library/util/Format.kt+- com/vayunmathur/library/util/LocalizedDateNames.kt - com/vayunmathur/library/util/Util.kt+### sensor/ — shared sensors+- com/vayunmathur/library/sensor/OrientationManager.kt ## Verify (this module only) ``` ./gradlew :library:compileDevKotlin ./gradlew :library:lint ```--
library/aosp-stubs/AGENTS.md
diff --git a/library/aosp-stubs/AGENTS.md b/library/aosp-stubs/AGENTS.mdindex bb6d561730..7f7fafe6f2 100644--- a/library/aosp-stubs/AGENTS.md+++ b/library/aosp-stubs/AGENTS.md@@ -2,14 +2,22 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/aosp-stubs/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:aosp-stubs / dir: library/aosp-stubs/-- Package roots present:-- Entry files:-- Deps:-- Metadata: metadata_data/library-aosp-stubs.md (MISSING)+- Package roots present: (compile-only hidden-API stubs — merged from seven former `*-stubs` modules)+- Entry files: (none — stubs only, no runtime code)+- Deps: (none)+- Metadata: metadata_data/library-aosp-stubs.md (absent — libraries have none by design) - Rust: no / screenshotTest: no +## Overview+**Purpose:** Compile-only stubs for Android hidden APIs — merged from seven former `*-stubs` modules into one. Lets privileged modules (appstore, cast, updater, parentalcontrols, euicc) reference system APIs without the SDK exposing them.+**How to use:** Depend on it, call the hidden API, guard with runtime availability checks — stubs satisfy the compiler, the OS provides the implementation.+**Entry points:** The stub matching your hidden API (verify via scoped `ls` — card had no Key files at last review).+**Gotchas:** Stubs are signatures only — calling one on an OS build that lacks the API crashes at runtime. This card was a near-empty stub; verify against `ls` before trusting it.+ ## Key files+- (Verify via scoped `ls` — card had no Key files at last review; add them when touching this module.) ## Verify (this module only) ```
library/biometric/AGENTS.md
diff --git a/library/biometric/AGENTS.md b/library/biometric/AGENTS.mdindex ae1f5b50e6..6dc00aca32 100644--- a/library/biometric/AGENTS.md+++ b/library/biometric/AGENTS.md@@ -2,15 +2,21 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/biometric/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:biometric / dir: library/biometric/-- Package roots present: -- Entry files: +- Package roots present: (single-purpose crypto helper — one package)+- Entry files: BiometricDatabaseHelper.kt (no MainActivity/Route — library) - Deps: :library-- Metadata: metadata_data/library-biometric.md (MISSING)+- Metadata: metadata_data/library-biometric.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Biometric-bound database keys — encrypts Room/SQLCipher passphrases behind the system biometric gate. Used by passwords (vault) and apps with locked databases.+**How to use:** Route database open through `BiometricDatabaseHelper`; pair with `MaFragmentActivity(autoSetContent=false)` + `showContent()` on unlock (passwords, photos pattern).+**Entry points:** `BiometricDatabaseHelper.kt`.+**Gotchas:** Biometric enrollment changes invalidate keys by design — handle the locked-out path, don't crash on it. +## Key files - com/vayunmathur/library/biometric/BiometricDatabaseHelper.kt ## Verify (this module only)@@ -18,5 +24,3 @@ ./gradlew :library:biometric:compileDevKotlin ./gradlew :library:biometric:lint ```--
library/carhost/AGENTS.md
diff --git a/library/carhost/AGENTS.md b/library/carhost/AGENTS.mdnew file mode 100644index 0000000000..1761e17ee2--- /dev/null+++ b/library/carhost/AGENTS.md@@ -0,0 +1,27 @@+# AGENTS.md — library/carhost/ (':library:carhost')++> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/carhost/` + allowed shared modules. Do not root-scan.++<!-- last-reviewed: 2026-10-16 -->+- Gradle: :library:carhost / dir: library/carhost/+- Package roots present: (car template host — one package)+- Entry files: CarTemplateView.kt (no MainActivity/Route — library)+- Deps: (verify in build.gradle.kts before adding)+- Metadata: metadata_data/library-carhost.md (absent — libraries have none by design)+- Rust: no / screenshotTest: no++## Overview+**Purpose:** Car-template host views for `:auto` — `CarTemplateView` renders head-unit templates with `HostTemplateState`. Companion to `:auto:protocol` (wire) and the `auto/` app (session).+**How to use:** Host `CarTemplateView`, drive it from `HostTemplateState`; scope car UI work here, session work in `auto/`, wire work in `:auto:protocol`.+**Entry points:** `CarTemplateView.kt` → `HostTemplateState.kt`.+**Gotchas:** This card was missing entirely (no AGENTS.md existed) — created by the agent-docs redesign. Driver-distraction templating rules apply to anything rendered here.++## Key files+- com/vayunmathur/library/carhost/CarTemplateView.kt+- com/vayunmathur/library/carhost/HostTemplateState.kt++## Verify (this module only)+```+./gradlew :library:carhost:compileDevKotlin+./gradlew :library:carhost:lint+```
library/downloadservice/AGENTS.md
diff --git a/library/downloadservice/AGENTS.md b/library/downloadservice/AGENTS.mdindex 34c13a6a17..7b2af293d6 100644--- a/library/downloadservice/AGENTS.md+++ b/library/downloadservice/AGENTS.md@@ -2,15 +2,21 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/downloadservice/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:downloadservice / dir: library/downloadservice/-- Package roots present: -- Entry files: +- Package roots present: (foreground-download helpers — one package)+- Entry files: InitialDownloader.kt (no MainActivity/Route — library) - Deps: :library, :library:work-- Metadata: metadata_data/library-downloadservice.md (MISSING)+- Metadata: metadata_data/library-downloadservice.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Foreground downloads for large assets/models (ML weights, offline DBs) — declares INTERNET itself so consumers don't have to. Used by speech/translate (models), networklocation (beacon DBs).+**How to use:** `InitialDownloader`/`InitialModelDownloadChecker` for first-run gates (file lists live in the consumer's `platform/` or `data/`); `ModelDownloadWorker` for WorkManager-driven fetches; URLs in `ModelUrls`.+**Entry points:** `InitialDownloader.kt` → `ModelUrls.kt` → `ModelDownloadWorker.kt`.+**Gotchas:** On-device paths are `/storage/emulated/0/Android/data/<pkg>/files/<fileName>` (`+.part` while downloading) — never hardcode, resolve per hosting app (libraries have no `applicationId`). +## Key files - com/vayunmathur/library/downloadservice/InitialDownloader.kt - com/vayunmathur/library/downloadservice/ModelDownloadWorker.kt - com/vayunmathur/library/downloadservice/ModelUrls.kt@@ -20,5 +26,3 @@ ./gradlew :library:downloadservice:compileDevKotlin ./gradlew :library:downloadservice:lint ```--
library/e2ee-p2p/AGENTS.md
diff --git a/library/e2ee-p2p/AGENTS.md b/library/e2ee-p2p/AGENTS.mdindex a1dbf84dfb..946c62bead 100644--- a/library/e2ee-p2p/AGENTS.md+++ b/library/e2ee-p2p/AGENTS.md@@ -2,27 +2,31 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/e2ee-p2p/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:e2ee-p2p / dir: library/e2ee-p2p/-- Package roots present: -- Entry files: -- Deps: -- Metadata: metadata_data/library-e2ee-p2p.md (MISSING)+- Package roots present: (E2EE + P2P primitives — `com.vayunmathur.e2ee` package)+- Entry files: E2ee.kt + PqcIdentity.kt (no MainActivity/Route — library)+- Deps: (none — Rust PQC core via JNI)+- Metadata: metadata_data/library-e2ee-p2p.md (absent — libraries have none by design) - Rust: yes / screenshotTest: no -## Key files+## Overview+**Purpose:** End-to-end encryption + peer-to-peer primitives — PQC identity keys, AES content keys, safety numbers, invite fingerprints. Powers everysync vaults, voxels multiplayer, backup crypto. Relay/server sees ciphertext only.+**How to use:** Identities via `PqcIdentity` (Rust `PqcNative`); content via `E2ee` + `E2eeKeyStore`; verify contacts with `SecurityCode`/`InviteFingerprint`.+**Entry points:** `E2ee.kt` → `PqcIdentity.kt` → `PqcNative.kt` (Rust bridge).+**Gotchas:** Crypto changes need adversarial review; identity/key loss is unrecoverable by design — recovery flows (BIP-39 in backup) live in consumers, not here. +## Key files - com/vayunmathur/e2ee/E2ee.kt - com/vayunmathur/e2ee/E2eeKeyStore.kt-- com/vayunmathur/e2ee/InviteFingerprint.kt-- com/vayunmathur/e2ee/Pqc.kt - com/vayunmathur/e2ee/PqcIdentity.kt-- com/vayunmathur/e2ee/PqcNative.kt+- com/vayunmathur/e2ee/Pqc.kt+- com/vayunmathur/e2ee/PqcNative.kt — Rust bridge - com/vayunmathur/e2ee/SecurityCode.kt+- com/vayunmathur/e2ee/InviteFingerprint.kt ## Verify (this module only) ``` ./gradlew :library:e2ee-p2p:compileDevKotlin ./gradlew :library:e2ee-p2p:lint ```--
library/image/AGENTS.md
diff --git a/library/image/AGENTS.md b/library/image/AGENTS.mdindex 7e3dbfdcd7..ada0beb575 100644--- a/library/image/AGENTS.md+++ b/library/image/AGENTS.md@@ -2,36 +2,42 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/image/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:image / dir: library/image/-- Package roots present: -- Entry files: +- Package roots present: (image loading pipeline — `image/` + `compose/`/`decoders/`/`fetchers/`/`util/` subpackages)+- Entry files: ImageLoader.kt + compose/AsyncImage.kt (no MainActivity/Route — library) - Deps: :library, :library:network-- Metadata: metadata_data/library-image.md (MISSING)+- Metadata: metadata_data/library-image.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Shared image pipeline — requests, memory/disk caches, fetchers (http/asset/file/content/bitmap/byte-array), bitmap/SVG/video-frame decoders, Compose `AsyncImage` + animated images, Coil compat shim.+**How to use:** `AsyncImage` in Compose with an `ImageRequest`; custom sources add a `fetchers/Fetcher`; transforms via `Transformation`; percent sizing via `util/PercentSizing`.+**Entry points:** `ImageLoader.kt` → `ImageRequest.kt` → `compose/AsyncImage.kt`.+**Gotchas:** `coilcompat/` is a migration shim, not a target — new code uses this pipeline directly. Cache keys must include transformations or stale variants render. -- com/vayunmathur/library/image/DiskCache.kt+## Key files - com/vayunmathur/library/image/ImageLoader.kt - com/vayunmathur/library/image/ImageRequest.kt - com/vayunmathur/library/image/ImageResult.kt - com/vayunmathur/library/image/MemoryCache.kt-- com/vayunmathur/library/image/Size.kt+- com/vayunmathur/library/image/DiskCache.kt - com/vayunmathur/library/image/Transformation.kt-- com/vayunmathur/library/image/coilcompat/CoilCompat.kt-- com/vayunmathur/library/image/compose/AnimatedImage.kt+- com/vayunmathur/library/image/Size.kt - com/vayunmathur/library/image/compose/AsyncImage.kt - com/vayunmathur/library/image/compose/AsyncImageState.kt+- com/vayunmathur/library/image/compose/AnimatedImage.kt+- com/vayunmathur/library/image/coilcompat/CoilCompat.kt — migration shim, not a target - com/vayunmathur/library/image/decoders/BitmapDecoder.kt - com/vayunmathur/library/image/decoders/SvgDecoder.kt - com/vayunmathur/library/image/decoders/VideoFrameDecoder.kt+- com/vayunmathur/library/image/fetchers/Fetcher.kt+- com/vayunmathur/library/image/fetchers/HttpFetcher.kt - com/vayunmathur/library/image/fetchers/AssetFetcher.kt+- com/vayunmathur/library/image/fetchers/FileFetcher.kt+- com/vayunmathur/library/image/fetchers/ContentResolverFetcher.kt - com/vayunmathur/library/image/fetchers/BitmapFetcher.kt - com/vayunmathur/library/image/fetchers/ByteArrayFetcher.kt-- com/vayunmathur/library/image/fetchers/ContentResolverFetcher.kt-- com/vayunmathur/library/image/fetchers/Fetcher.kt-- com/vayunmathur/library/image/fetchers/FileFetcher.kt-- com/vayunmathur/library/image/fetchers/HttpFetcher.kt - com/vayunmathur/library/image/util/PercentSizing.kt - com/vayunmathur/library/image/util/Sha256.kt @@ -40,5 +46,3 @@ ./gradlew :library:image:compileDevKotlin ./gradlew :library:image:lint ```--
library/ink/AGENTS.md
diff --git a/library/ink/AGENTS.md b/library/ink/AGENTS.mdindex 07bd35d535..0b8b903928 100644--- a/library/ink/AGENTS.md+++ b/library/ink/AGENTS.md@@ -2,15 +2,21 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/ink/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:ink / dir: library/ink/-- Package roots present: -- Entry files: -- Deps: -- Metadata: metadata_data/library-ink.md (MISSING)+- Package roots present: (stylus-ink view + serialization — one package)+- Entry files: InkCanvasView.kt (no MainActivity/Route — library)+- Deps: (none)+- Metadata: metadata_data/library-ink.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Stylus/finger ink input — `InkCanvasView` capture + `InkSerialization` persistence. Used by notes (ink editor pages).+**How to use:** Embed `InkCanvasView`, persist strokes via `InkSerialization`; keep stroke data alongside the note model, not in the view.+**Entry points:** `InkCanvasView.kt` → `InkSerialization.kt`.+**Gotchas:** Palm rejection and stroke smoothing vary by device — test with hardware stylus, not mouse. +## Key files - com/vayunmathur/library/ink/InkCanvasView.kt - com/vayunmathur/library/ink/InkSerialization.kt @@ -19,5 +25,3 @@ ./gradlew :library:ink:compileDevKotlin ./gradlew :library:ink:lint ```--
library/locationprovider/AGENTS.md
diff --git a/library/locationprovider/AGENTS.md b/library/locationprovider/AGENTS.mdindex a8bdbc5546..71a29b768b 100644--- a/library/locationprovider/AGENTS.md+++ b/library/locationprovider/AGENTS.md@@ -2,19 +2,25 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/locationprovider/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:locationprovider / dir: library/locationprovider/ - Package roots present: provider-- Entry files: -- Deps: -- Metadata: metadata_data/library-locationprovider.md (MISSING)+- Entry files: (see sources — location abstraction consumed by networklocation + apps)+- Deps: (verify in build.gradle.kts before adding)+- Metadata: metadata_data/library-locationprovider.md (absent — libraries have none by design) - Rust: no / screenshotTest: no +## Overview+**Purpose:** Location abstraction over GPS/network providers — the interface `networklocation/` implements and apps consume, so location callers never touch providers directly.+**How to use:** Depend on the abstraction, not the implementation; `networklocation/` is the system-backed provider.+**Entry points:** Read the `provider/` sources first (card Key files were empty — fill in from `ls` when touching this module).+**Gotchas:** This card was a near-empty stub (no Key files) — verify against `ls` before trusting it.+ ## Key files+- (Verify via scoped `ls` — card had no Key files at last review; add them when touching this module.) ## Verify (this module only) ``` ./gradlew :library:locationprovider:compileDevKotlin ./gradlew :library:locationprovider:lint ```--
library/log/AGENTS.md
diff --git a/library/log/AGENTS.md b/library/log/AGENTS.mdnew file mode 100644index 0000000000..32e6abdd86--- /dev/null+++ b/library/log/AGENTS.md@@ -0,0 +1,27 @@+# AGENTS.md — library/log/ (':library:log')++> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/log/` + allowed shared modules. Do not root-scan.++<!-- last-reviewed: 2026-10-16 -->+- Gradle: :library:log / dir: library/log/+- Package roots present: (logging facade — one package)+- Entry files: Log.kt + MaInitProvider.kt (no MainActivity/Route — library)+- Deps: (none)+- Metadata: metadata_data/library-log.md (absent — libraries have none by design)+- Rust: no / screenshotTest: no++## Overview+**Purpose:** Repo-wide logging facade — `Log` replaces `android.util.Log` everywhere (the literal `android.util.Log` import is lint-flagged). `MaInitProvider` (a `ContentProvider` merged from this module's manifest) inits the dev gate from the `debuggable` flag, which is why per-app `XxxApplication` classes were deleted.+**How to use:** `Log.d/tag` etc. everywhere; never `android.util.Log`. Dev-vs-release follows the manifest `debuggable` flag automatically — no per-app init code.+**Entry points:** `Log.kt` → `MaInitProvider.kt`.+**Gotchas:** This card was missing entirely (no AGENTS.md existed) — it was created by the agent-docs redesign. If an app still has an `Application` subclass doing only `Log.init`, delete it (everysync's is the exception — it schedules sync).++## Key files+- com/vayunmathur/library/log/Log.kt — the facade (use this, never `android.util.Log`)+- com/vayunmathur/library/log/MaInitProvider.kt — dev-gate init via manifest merger++## Verify (this module only)+```+./gradlew :library:log:compileDevKotlin+./gradlew :library:log:lint+```
library/map/AGENTS.md
diff --git a/library/map/AGENTS.md b/library/map/AGENTS.mdindex 9c9f534f0a..e4f799032b 100644--- a/library/map/AGENTS.md+++ b/library/map/AGENTS.md@@ -2,43 +2,46 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/map/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:map / dir: library/map/-- Package roots present: -- Entry files: +- Package roots present: (vector-map renderer — one package + Rust core)+- Entry files: VectorMap.kt + MapScope.kt (no MainActivity/Route — library) - Deps: :library:network-- Metadata: metadata_data/library-map.md (MISSING)+- Metadata: metadata_data/library-map.md (absent — libraries have none by design) - Rust: yes / screenshotTest: no -## Key files+## Overview+**Purpose:** Offline vector-map renderer on a Rust core — Vulkan surface, layers/markers/routes/traffic, gestures, camera state. Declares INTERNET itself (tile fetches). Used by maps, weather, taxi, fooddelivery.+**How to use:** `VectorMap` composable in a `MapScope` with `MapStyle` + `LayerOptions`; camera via `CameraState`; overlays for routes/markers/image layers; gestures via `MapGestures`. Tile/bridge work crosses JNI (`MapNative`).+**Entry points:** `VectorMap.kt` → `MapScope.kt` → `MapStyle.kt` → `SurfaceMapRenderer.kt`.+**Gotchas:** Another agent is mid-refactor here (tile cache moved `tile/cache.rs` → `tile/cache/` dir, `MapTileCache` touched in maps/) — check `git status`/`git log` on this module before deep work; rendering bugs are usually Rust-side. +## Key files+- com/vayunmathur/library/map/VectorMap.kt+- com/vayunmathur/library/map/MapScope.kt+- com/vayunmathur/library/map/MapStyle.kt+- com/vayunmathur/library/map/MapNative.kt — Rust bridge+- com/vayunmathur/library/map/SurfaceMapRenderer.kt+- com/vayunmathur/library/map/VulkanMapSurface.kt - com/vayunmathur/library/map/CameraState.kt-- com/vayunmathur/library/map/FrameStatsOverlay.kt-- com/vayunmathur/library/map/GeoTypes.kt-- com/vayunmathur/library/map/ImageOverlay.kt-- com/vayunmathur/library/map/LayerOptions.kt+- com/vayunmathur/library/map/MapRenderState.kt - com/vayunmathur/library/map/MapGestures.kt - com/vayunmathur/library/map/MapMarker.kt-- com/vayunmathur/library/map/MapNative.kt-- com/vayunmathur/library/map/MapOptions.kt-- com/vayunmathur/library/map/MapRenderState.kt-- com/vayunmathur/library/map/MapScope.kt-- com/vayunmathur/library/map/MapStyle.kt-- com/vayunmathur/library/map/Mercator.kt-- com/vayunmathur/library/map/Projection.kt-- com/vayunmathur/library/map/RegionLevel.kt+- com/vayunmathur/library/map/LayerOptions.kt - com/vayunmathur/library/map/RouteOverlay.kt - com/vayunmathur/library/map/RouteStyle.kt - com/vayunmathur/library/map/SurfaceMapOverlays.kt-- com/vayunmathur/library/map/SurfaceMapRenderer.kt-- com/vayunmathur/library/map/TrafficColorTable.kt+- com/vayunmathur/library/map/ImageOverlay.kt - com/vayunmathur/library/map/UserPuck.kt-- com/vayunmathur/library/map/VectorMap.kt-- com/vayunmathur/library/map/VulkanMapSurface.kt+- com/vayunmathur/library/map/TrafficColorTable.kt+- com/vayunmathur/library/map/GeoTypes.kt+- com/vayunmathur/library/map/Mercator.kt+- com/vayunmathur/library/map/Projection.kt+- com/vayunmathur/library/map/RegionLevel.kt+- com/vayunmathur/library/map/FrameStatsOverlay.kt ## Verify (this module only) ``` ./gradlew :library:map:compileDevKotlin ./gradlew :library:map:lint ```--
library/media/AGENTS.md
diff --git a/library/media/AGENTS.md b/library/media/AGENTS.mdindex f20a202b87..6b328b1e06 100644--- a/library/media/AGENTS.md+++ b/library/media/AGENTS.md@@ -2,29 +2,33 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/media/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:media / dir: library/media/-- Package roots present: -- Entry files: -- Deps: -- Metadata: metadata_data/library-media.md (MISSING)+- Package roots present: (audio codecs — one package, pure Kotlin/Java)+- Entry files: OpusTranscoder.kt (no MainActivity/Route — library)+- Deps: (none)+- Metadata: metadata_data/library-media.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Pure-JVM audio plumbing — Opus encode/remux/tag (Ogg), PCM buffers, polyphase resampling, Vorbis comments. Used by music/cast/communicate recording and playback paths.+**How to use:** Transcode via `OpusTranscoder`, remux via `OpusRemuxer`, tag via `OggOpusTagger` + `VorbisComments`; resample with `PolyphaseResampler`.+**Entry points:** `OpusTranscoder.kt` → `OpusRemuxer.kt` → `OggOpusTagger.kt`.+**Gotchas:** Keep it dependency-free (no Android media APIs) so it stays unit-testable on JVM. -- com/vayunmathur/library/media/ByteArrayMediaDataSource.kt+## Key files+- com/vayunmathur/library/media/OpusTranscoder.kt+- com/vayunmathur/library/media/OpusRemuxer.kt - com/vayunmathur/library/media/OggOpusTagger.kt - com/vayunmathur/library/media/OggStreamWriter.kt - com/vayunmathur/library/media/OpusHead.kt-- com/vayunmathur/library/media/OpusRemuxer.kt-- com/vayunmathur/library/media/OpusTranscoder.kt - com/vayunmathur/library/media/PcmBuffers.kt - com/vayunmathur/library/media/PolyphaseResampler.kt - com/vayunmathur/library/media/VorbisComments.kt+- com/vayunmathur/library/media/ByteArrayMediaDataSource.kt ## Verify (this module only) ``` ./gradlew :library:media:compileDevKotlin ./gradlew :library:media:lint ```--
library/ml/AGENTS.md
diff --git a/library/ml/AGENTS.md b/library/ml/AGENTS.mdindex 2b220a9e72..24fac75270 100644--- a/library/ml/AGENTS.md+++ b/library/ml/AGENTS.md@@ -2,41 +2,45 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/ml/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:ml / dir: library/ml/-- Package roots present: -- Entry files: -- Deps: -- Metadata: metadata_data/library-ml.md (MISSING)+- Package roots present: (on-device inference runtimes — one package + Rust/native bridges)+- Entry files: per-model `*Handle` (no MainActivity/Route — library)+- Deps: (none — ONNX/LiteRT/ExecuTorch/Vulkan sessions live here)+- Metadata: metadata_data/library-ml.md (absent — libraries have none by design) - Rust: yes / screenshotTest: no -## Key files+## Overview+**Purpose:** All on-device inference — session wrappers for every runtime (ONNX, LiteRT, ExecuTorch, Vulkan compute) plus per-model handles: Whisper (speech), NLLB (translate), Gemma (assistant), Maia (chess), CLIP/faces/segmentation (photos/camera), Supertonic (TTS), OCR post. No vendor SDKs.+**How to use:** Pick the runtime session (`OnnxSessions` / `LiteRtSessions` / `ExecutorchSessions` / `VulkanSessions`), then the model handle (`WhisperHandle`, `NllbHandle`, `GemmaTypes`, `MaiaHandle`, `ClipHandle`, `SelfieSegmenter`, …). Pre/post via `OnnxPreprocess`, `OcrPost`, `SegmentationMask`.+**Entry points:** The `*Handle` for your model → its `*Sessions` runtime → `VulkanBridge`/`VulkanWire` if GPU.+**Gotchas:** Model files are large and versioned per consumer — never share weights across models without checking compatibility; GPU paths need device-specific testing. -- com/vayunmathur/library/ml/ClipHandle.kt-- com/vayunmathur/library/ml/EtTensors.kt+## Key files+- com/vayunmathur/library/ml/OnnxSessions.kt+- com/vayunmathur/library/ml/LiteRtSessions.kt - com/vayunmathur/library/ml/ExecutorchSessions.kt-- com/vayunmathur/library/ml/Faces.kt+- com/vayunmathur/library/ml/VulkanSessions.kt+- com/vayunmathur/library/ml/VulkanBridge.kt+- com/vayunmathur/library/ml/VulkanWire.kt+- com/vayunmathur/library/ml/WhisperHandle.kt+- com/vayunmathur/library/ml/NllbHandle.kt - com/vayunmathur/library/ml/GemmaTypes.kt-- com/vayunmathur/library/ml/LiteRtSessions.kt - com/vayunmathur/library/ml/MaiaHandle.kt-- com/vayunmathur/library/ml/NllbHandle.kt-- com/vayunmathur/library/ml/OcrPost.kt-- com/vayunmathur/library/ml/OnnxPreprocess.kt-- com/vayunmathur/library/ml/OnnxSessions.kt-- com/vayunmathur/library/ml/SegmentationMask.kt+- com/vayunmathur/library/ml/ClipHandle.kt+- com/vayunmathur/library/ml/Faces.kt - com/vayunmathur/library/ml/SelfieSegmenter.kt - com/vayunmathur/library/ml/SubjectSegmenter.kt+- com/vayunmathur/library/ml/SegmentationMask.kt - com/vayunmathur/library/ml/SupertonicSynthesizer.kt - com/vayunmathur/library/ml/TextRecognizer.kt - com/vayunmathur/library/ml/TextRecognizerEt.kt-- com/vayunmathur/library/ml/VulkanBridge.kt-- com/vayunmathur/library/ml/VulkanSessions.kt-- com/vayunmathur/library/ml/VulkanWire.kt-- com/vayunmathur/library/ml/WhisperHandle.kt+- com/vayunmathur/library/ml/EtTensors.kt+- com/vayunmathur/library/ml/OcrPost.kt+- com/vayunmathur/library/ml/OnnxPreprocess.kt ## Verify (this module only) ``` ./gradlew :library:ml:compileDevKotlin ./gradlew :library:ml:lint ```--
library/network/AGENTS.md
diff --git a/library/network/AGENTS.md b/library/network/AGENTS.mdindex c7ac629d9a..77e496b9cd 100644--- a/library/network/AGENTS.md+++ b/library/network/AGENTS.md@@ -2,20 +2,27 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/network/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:network / dir: library/network/ - Package roots present: network-- Entry files: -- Deps: -- Metadata: metadata_data/library-network.md (MISSING)+- Entry files: NetworkClient.kt + TrustBundle.kt (no MainActivity/Route — library)+- Deps: (none — pinned CAs ship in `assets/ca/`)+- Metadata: metadata_data/library-network.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** The ONLY network path in the repo — pinned-TLS HTTP engines + WebSocket + connectivity monitoring. Apps call `NetworkClient.init(context, TrustBundle.*)` first, then go through the engines; never raw OkHttp, never `TrustAll` (that lives in apps' dev-only code, never here).+**How to use:** `NetworkClient.init()` in `MainActivity.onCreateBeforeContent` with the narrowest bundle (`FIRST_PARTY` own relay / `STANDARD` public APIs / `EXTENDED` + `MUSICBRAINZ` special hosts / `SYSTEM` user-entered hosts like web browser). Requests via `HttpUrlEngine`/`PooledHttpEngine` (Rust `NativeHttpBridge`); pins in `BundledTrust` + `assets/ca/`; offline UI via `util/ConnectivityMonitor` (+ `ConnectivityCompose` banner in `:library:ui`).+**Entry points:** `NetworkClient.kt` → `TrustBundle.kt` → `HttpUrlEngine.kt` → `Urls.kt`.+**Gotchas:** `PooledHttpEngine`/`HttpUrlEngine`/`NativeHttpBridge` all exist — check which one your call site already uses before adding a new path. INTERNET permission is declared by consuming apps (or by `library/map`/`downloadservice` themselves), not here. +## Key files+- com/vayunmathur/library/network/NetworkClient.kt — init + narrowest-bundle rule+- com/vayunmathur/library/network/TrustBundle.kt - com/vayunmathur/library/network/BundledTrust.kt - com/vayunmathur/library/network/HttpUrlEngine.kt-- com/vayunmathur/library/network/NativeHttpBridge.kt-- com/vayunmathur/library/network/NetworkClient.kt-- com/vayunmathur/library/network/TrustBundle.kt+- com/vayunmathur/library/network/PooledHttpEngine.kt+- com/vayunmathur/library/network/NativeHttpBridge.kt — Rust bridge - com/vayunmathur/library/network/Urls.kt - com/vayunmathur/library/network/WebSocketClient.kt - com/vayunmathur/library/util/ConnectivityMonitor.kt@@ -25,5 +32,3 @@ ./gradlew :library:network:compileDevKotlin ./gradlew :library:network:lint ```--
library/ocr/AGENTS.md
diff --git a/library/ocr/AGENTS.md b/library/ocr/AGENTS.mdindex 51e1b317e2..7de701a54a 100644--- a/library/ocr/AGENTS.md+++ b/library/ocr/AGENTS.md@@ -2,15 +2,21 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/ocr/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:ocr / dir: library/ocr/-- Package roots present: -- Entry files: +- Package roots present: (on-device OCR — one package)+- Entry files: OcrEngine.kt (no MainActivity/Route — library) - Deps: :library:ml-- Metadata: metadata_data/library-ocr.md (MISSING)+- Metadata: metadata_data/library-ocr.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** On-device OCR engine over `:library:ml` runtimes. Used by translate (camera overlay) and any image-text extraction.+**How to use:** `OcrEngine` in, text + boxes out; post-processing via `:library:ml` `OcrPost`/`TextRecognizer`.+**Entry points:** `OcrEngine.kt`.+**Gotchas:** Model files are large — first-run gating via `:library:downloadservice`, never block the camera path on a missing model. +## Key files - com/vayunmathur/library/ocr/OcrEngine.kt ## Verify (this module only)@@ -18,5 +24,3 @@ ./gradlew :library:ocr:compileDevKotlin ./gradlew :library:ocr:lint ```--
library/widgets/AGENTS.md
diff --git a/library/widgets/AGENTS.md b/library/widgets/AGENTS.mdindex 32de583c06..884923b002 100644--- a/library/widgets/AGENTS.md+++ b/library/widgets/AGENTS.md@@ -2,23 +2,29 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/widgets/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:widgets / dir: library/widgets/-- Package roots present: -- Entry files: +- Package roots present: (Glance widget bases — one package)+- Entry files: MaWidget.kt + MaWidgetReceiver.kt (no MainActivity/Route — library) - Deps: :library-- Metadata: metadata_data/library-widgets.md (MISSING)+- Metadata: metadata_data/library-widgets.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Shared Glance widget bases — `MaWidget` + `MaWidgetReceiver` replace per-app boilerplate the same way `MaActivity` replaced per-app shells. App widgets (calculator, calendar, clock, email, weather, screentime) extend these.+**How to use:** Widget extends `MaWidget`, receiver extends `MaWidgetReceiver`; theme via `WidgetTheme`; shapes via `MaterialShapeBitmap`.+**Entry points:** `MaWidget.kt` → `MaWidgetReceiver.kt` → `WidgetTheme.kt`.+**Gotchas:** Widgets must render from cache alone — never network on the widget path (see weather's card for the rule). -- com/vayunmathur/library/widgets/MaterialShapeBitmap.kt-- com/vayunmathur/library/widgets/Widgets.kt+## Key files+- com/vayunmathur/library/widgets/MaWidget.kt — shared widget base+- com/vayunmathur/library/widgets/MaWidgetReceiver.kt — shared receiver base - com/vayunmathur/library/widgets/WidgetTheme.kt+- com/vayunmathur/library/widgets/Widgets.kt+- com/vayunmathur/library/widgets/MaterialShapeBitmap.kt ## Verify (this module only) ``` ./gradlew :library:widgets:compileDevKotlin ./gradlew :library:widgets:lint ```--
library/work/AGENTS.md
diff --git a/library/work/AGENTS.md b/library/work/AGENTS.mdindex 785e5dde5f..2cc7da1822 100644--- a/library/work/AGENTS.md+++ b/library/work/AGENTS.md@@ -2,22 +2,26 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/work/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:work / dir: library/work/-- Package roots present: -- Entry files: +- Package roots present: (WorkManager helpers — one package)+- Entry files: Work.kt (no MainActivity/Route — library) - Deps: :library-- Metadata: metadata_data/library-work.md (MISSING)+- Metadata: metadata_data/library-work.md (absent — libraries have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Shared WorkManager helpers — scheduling wrappers plus the daily-puzzle reminder used by games. Thin by design; app workers live in consumers.+**How to use:** Schedule via `Work.kt` helpers; daily game content via `DailyPuzzleReminder`.+**Entry points:** `Work.kt` → `DailyPuzzleReminder.kt`.+**Gotchas:** WorkManager restores jobs across reboots itself — `BootReceiver` re-scheduling (everysync, clock, calendar) is belt-and-suspenders, keep both. -- com/vayunmathur/library/work/DailyPuzzleReminder.kt+## Key files - com/vayunmathur/library/work/Work.kt+- com/vayunmathur/library/work/DailyPuzzleReminder.kt ## Verify (this module only) ``` ./gradlew :library:work:compileDevKotlin ./gradlew :library:work:lint ```--
lint-rules/AGENTS.md
diff --git a/lint-rules/AGENTS.md b/lint-rules/AGENTS.mdindex 9d9d4803c6..7c557b8e44 100644--- a/lint-rules/AGENTS.md+++ b/lint-rules/AGENTS.md@@ -2,31 +2,40 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `lint-rules/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :lint-rules / dir: lint-rules/-- Package roots present: -- Entry files: -- Deps: -- Metadata: metadata_data/lint-rules.md (MISSING)+- Package roots present: (custom lint detectors — `com.vayunmathur.lint` package)+- Entry files: ModernAppsIssueRegistry.kt (no MainActivity/Route — lint registry)+- Deps: (lint APIs only)+- Metadata: metadata_data/lint-rules.md (absent — infra has none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Custom Android-lint detectors enforcing repo conventions at build time — the executable form of root `AGENTS.md` §2. Fatal detectors break the build; advisory ones warn.+**Fatal:** `ToastUsage` (no `Toast` — use messenger), `DirectComposeAnimation` (no raw animation at call sites), `FileLength`, `DirectAndroidLog` (no `androidx.room.`/`android.util.Log` literals), plus comment-hygiene detectors (`CommentedOutCode`, `ExceptionMarkerFormat`, `TodoEvasion` with `CommentOnlyMatcher`).+**Advisory:** `DirectBuildDatabase` (subclass `RoomRepository`), `OneComposablePerFile`, `PackageStructure` (closed roots), `RawScaffoldInApp` (use `AppScaffold`), `Room2Usage` (Room 3 only), `WindowInsetsInReusableComponent` (no padding in `library.ui`).+**Entry points:** `ModernAppsIssueRegistry.kt` → the detector for your rule → `LintPackageExclusions.kt` for scope.+**Gotchas:** New detectors need registry entries + severity decisions (fatal vs advisory is a deliberate call). Fix code to green modules, never relax config (`detekt.yml` rationale is inline per the root card). -- com/vayunmathur/lint/DirectBuildDatabaseDetector.kt-- com/vayunmathur/lint/DirectComposeAnimationDetector.kt-- com/vayunmathur/lint/FileLengthDetector.kt-- com/vayunmathur/lint/LintPackageExclusions.kt-- com/vayunmathur/lint/ModernAppsIssueRegistry.kt+## Key files+- com/vayunmathur/lint/ModernAppsIssueRegistry.kt — registry (all detectors listed here)+- com/vayunmathur/lint/ToastDetector.kt — fatal Toast ban+- com/vayunmathur/lint/DirectComposeAnimationDetector.kt — fatal raw-animation ban+- com/vayunmathur/lint/FileLengthDetector.kt — fatal file length+- com/vayunmathur/lint/DirectBuildDatabaseDetector.kt — RoomRepository rule+- com/vayunmathur/lint/Room2UsageDetector.kt — Room 3 rule+- com/vayunmathur/lint/RawScaffoldInAppDetector.kt — AppScaffold rule+- com/vayunmathur/lint/PackageStructureDetector.kt — closed-roots rule - com/vayunmathur/lint/OneComposablePerFileDetector.kt-- com/vayunmathur/lint/PackageStructureDetector.kt-- com/vayunmathur/lint/RawScaffoldInAppDetector.kt-- com/vayunmathur/lint/Room2UsageDetector.kt-- com/vayunmathur/lint/ToastDetector.kt - com/vayunmathur/lint/WindowInsetsInReusableComponentDetector.kt+- com/vayunmathur/lint/CommentedOutCodeDetector.kt — comment hygiene+- com/vayunmathur/lint/ExceptionMarkerFormatDetector.kt — escape-hatch marker format+- com/vayunmathur/lint/TodoEvasionDetector.kt — TODO discipline+- com/vayunmathur/lint/CommentOnlyMatcher.kt — shared matcher for comment detectors+- com/vayunmathur/lint/LintPackageExclusions.kt — detector scoping ## Verify (this module only) ``` ./gradlew :lint-rules:compileDevKotlin ./gradlew :lint-rules:lint ```--
sdk/cast/AGENTS.md
diff --git a/sdk/cast/AGENTS.md b/sdk/cast/AGENTS.mdindex 695c3413dd..4e49a4df57 100644--- a/sdk/cast/AGENTS.md+++ b/sdk/cast/AGENTS.md@@ -2,26 +2,30 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `sdk/cast/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :sdk:cast / dir: sdk/cast/-- Package roots present: -- Entry files: -- Deps: -- Metadata: metadata_data/sdk-cast.md (MISSING)+- Package roots present: (public cast SDK — one package)+- Entry files: CastClient.kt + CastContract.kt (no MainActivity/Route — SDK)+- Deps: (none)+- Metadata: metadata_data/sdk-cast.md (absent — SDKs have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Public SDK third-party apps use to hand media to the TV through `cast/` — client + picker + playback contracts over the `:cast:protocol` session.+**Consumers:** `music/` (`CastPlayback`), youpipe, any app handing media to `cast/tv`.+**Entry points:** `CastContract.kt` → `CastClient.kt` → `Playback.kt`.+**Gotchas:** Contract stability across sender + receiver + third-party callers — same lockstep rule as `:cast:protocol`. +## Key files+- com/vayunmathur/sdk/cast/CastContract.kt — the handoff contract - com/vayunmathur/sdk/cast/CastClient.kt-- com/vayunmathur/sdk/cast/CastContract.kt - com/vayunmathur/sdk/cast/CastPickerContract.kt - com/vayunmathur/sdk/cast/CastResource.kt-- com/vayunmathur/sdk/cast/Exceptions.kt - com/vayunmathur/sdk/cast/Playback.kt+- com/vayunmathur/sdk/cast/Exceptions.kt ## Verify (this module only) ``` ./gradlew :sdk:cast:compileDevKotlin ./gradlew :sdk:cast:lint ```--
sdk/games/AGENTS.md
diff --git a/sdk/games/AGENTS.md b/sdk/games/AGENTS.mdindex 881dc84ccc..9eae9b7d93 100644--- a/sdk/games/AGENTS.md+++ b/sdk/games/AGENTS.md@@ -2,18 +2,24 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `sdk/games/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :sdk:games / dir: sdk/games/-- Package roots present: -- Entry files: -- Deps: -- Metadata: metadata_data/sdk-games.md (MISSING)+- Package roots present: (public games SDK — one package)+- Entry files: GameHubClient.kt + GameHubContract.kt (no MainActivity/Route — SDK)+- Deps: (none)+- Metadata: metadata_data/sdk-games.md (absent — SDKs have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Public SDK games use to report achievements/progress to `games/hub` over local IPC — the contract side; the hub's `provider/GamesHubProvider` is the sink side.+**Consumers:** Every `games/*` module (`*AchievementsManager` → `GameHubClient`); hub reads via the contract.+**Entry points:** `GameHubContract.kt` → `GameHubClient.kt` → `GameCenter.kt`.+**Gotchas:** Contract changes must stay compatible with all 11 games + hub simultaneously — version the contract, never break it silently. -- com/vayunmathur/sdk/games/GameCenter.kt+## Key files+- com/vayunmathur/sdk/games/GameHubContract.kt — the IPC contract (stability matters) - com/vayunmathur/sdk/games/GameHubClient.kt-- com/vayunmathur/sdk/games/GameHubContract.kt+- com/vayunmathur/sdk/games/GameCenter.kt - com/vayunmathur/sdk/games/Models.kt ## Verify (this module only)@@ -21,5 +27,3 @@ ./gradlew :sdk:games:compileDevKotlin ./gradlew :sdk:games:lint ```--
sdk/openassistant/AGENTS.md
diff --git a/sdk/openassistant/AGENTS.md b/sdk/openassistant/AGENTS.mdindex f883ed10f7..f911f9740a 100644--- a/sdk/openassistant/AGENTS.md+++ b/sdk/openassistant/AGENTS.md@@ -2,22 +2,26 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `sdk/openassistant/` + allowed shared modules. Do not root-scan. +<!-- last-reviewed: 2026-10-16 --> - Gradle: :sdk:openassistant / dir: sdk/openassistant/-- Package roots present: -- Entry files: +- Package roots present: (public assistant SDK — one package)+- Entry files: OpenAssistant.kt (no MainActivity/Route — SDK) - Deps: :library-- Metadata: metadata_data/sdk-openassistant.md (MISSING)+- Metadata: metadata_data/sdk-openassistant.md (absent — SDKs have none by design) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Public SDK apps expose tool-calling surfaces to `openassistant/` through — the counterpart to per-app `intents/` (notes/email/calendar/taxi/weather/fooddelivery expose `*Intent`s; this SDK is the assistant-facing client).+**Consumers:** `openassistant/` (tool calls out); any app exposing assistant tools (calls in).+**Entry points:** `OpenAssistant.kt` → `Exceptions.kt`.+**Gotchas:** Tool schemas are a compatibility surface on both ends — changes need assistant + provider updated together. -- com/vayunmathur/sdk/openassistant/Exceptions.kt+## Key files - com/vayunmathur/sdk/openassistant/OpenAssistant.kt+- com/vayunmathur/sdk/openassistant/Exceptions.kt ## Verify (this module only) ``` ./gradlew :sdk:openassistant:compileDevKotlin ./gradlew :sdk:openassistant:lint ```--