Modern Apps git

← Modern-Apps.git

AGENTS.md sweep: current state only across the tree

Commit
cead90d3b54fe7fb27b3c37100ecad71f1abbc67
Author
Vayun Mathur <[email protected]>
When
2026-11-25 19:35 UTC (10 days ago)
Parents
387ee35
Module cards rewritten from history/migration narrative
to present-tense current state (camera's CameraX card
now describes the Camera2 driver and the platform/
camera2 layout; cast/files deleted-class notes, auto
successor notes, card-drift narratives, dated
verification notes all converted or dropped). Runtime
migrations the code still executes and protocol
version dates kept (current behavior, not history).
Two stub cards (aosp-stubs, locationprovider) flagged
as needing a real key-file inventory.

Verified per agent: every rewritten key-file path
checked present on disk.

Diff

apple/FindFamily/AGENTS.md
diff --git a/apple/FindFamily/AGENTS.md b/apple/FindFamily/AGENTS.mdindex fe7270f17d..8bd2882a8b 100644--- a/apple/FindFamily/AGENTS.md+++ b/apple/FindFamily/AGENTS.md@@ -1,7 +1,6 @@ # AGENTS.md — apple/FindFamily (FindFamily for iOS) -SwiftUI iPhone app, bundle `cc.findfamily.app.1`, team `M42H545N93`, iOS 18+. Imported with history from-`vayun-mathur/Find-Family-iOS`. Android counterpart: `findfamily/` (same relay protocol, same PQC formats).+SwiftUI iPhone app, bundle `cc.findfamily.app.1`, team `M42H545N93`, iOS 18+. Android counterpart: `findfamily/` (same relay protocol, same PQC formats).  ## Layout - `Package.swift`: SwiftPM library target `FindFamily` rooted at `FindFamilyiOS/` (xtool requires a library product).
appstore/AGENTS.md
diff --git a/appstore/AGENTS.md b/appstore/AGENTS.mdindex 1a7a573ab4..d976048b25 100644--- a/appstore/AGENTS.md+++ b/appstore/AGENTS.md@@ -3,7 +3,6 @@ > 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 (no Route.kt — home/library/search/sources/trust/updates pages flow)@@ -20,7 +19,7 @@ _Install: ./install appstore (dev by default)._ **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+- `util/` is NOT a closed package root — 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 @@ -68,7 +67,7 @@ _Install: ./install appstore (dev by default)._ - com/vayunmathur/appstore/data/RestrictedPackages.kt ### domain/ — pure ranking (no Android) - com/vayunmathur/appstore/domain/SearchRanking.kt-### util/ — ViewModel + per-area ops (pending migration to closed roots)+### util/ — ViewModel + per-area ops - com/vayunmathur/appstore/util/AppStoreViewModel.kt - com/vayunmathur/appstore/util/AppStoreUiContract.kt - com/vayunmathur/appstore/util/AppStoreHomeOps.kt@@ -82,7 +81,7 @@ _Install: ./install appstore (dev by default)._ - com/vayunmathur/appstore/ui/AppDetailPage.kt - com/vayunmathur/appstore/ui/AppDetailHeader.kt - com/vayunmathur/appstore/ui/AppDetailSections.kt-- com/vayunmathur/appstore/ui/ScreenshotViewerScreen.kt — full-screen swipe/zoom screenshot viewer (`Route.Screenshots`, #918)+- com/vayunmathur/appstore/ui/ScreenshotViewerScreen.kt — full-screen swipe/zoom screenshot viewer (`Route.Screenshots`) - com/vayunmathur/appstore/ui/AppTile.kt - com/vayunmathur/appstore/ui/AppComponents.kt - com/vayunmathur/appstore/ui/AppMeta.kt
astronomy/AGENTS.md
diff --git a/astronomy/AGENTS.md b/astronomy/AGENTS.mdindex d68d890ba4..8f9a458e19 100644--- a/astronomy/AGENTS.md+++ b/astronomy/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `astronomy/` + allowed shared modules. Do not root-scan.  _Install: ./install astronomy (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :astronomy / dir: astronomy/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt
auto/AGENTS.md
diff --git a/auto/AGENTS.md b/auto/AGENTS.mdindex 44f20e85e5..f8cfc50a8e 100644--- a/auto/AGENTS.md+++ b/auto/AGENTS.md@@ -3,7 +3,6 @@ > 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@@ -35,7 +34,7 @@ _Install: ./install auto (dev by default)._ - com/vayunmathur/auto/network/UsbConnector.kt - com/vayunmathur/auto/network/WifiDirectConnector.kt ### platform/ — host, cards, channels, pairing, receivers-- com/vayunmathur/auto/platform/HostSession.kt — successor to the old `CarAppHost` (one hosted car-app session)+- com/vayunmathur/auto/platform/HostSession.kt — one hosted car-app session - com/vayunmathur/auto/platform/HostManager.kt — multi-app host fan-in - com/vayunmathur/auto/service/CarAppHostSession.kt — session-scoped host owner - com/vayunmathur/auto/platform/AutoViewModel.kt
auto/protocol/AGENTS.md
diff --git a/auto/protocol/AGENTS.md b/auto/protocol/AGENTS.mdindex 0a4517c91d..d720f1fb97 100644--- a/auto/protocol/AGENTS.md+++ b/auto/protocol/AGENTS.md@@ -2,7 +2,6 @@  > 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: (pure-Kotlin protocol library — single package, no Android roots) - Entry files: GalConnection.kt + GalControlSession.kt (no MainActivity/Route — library)
backup/AGENTS.md
diff --git a/backup/AGENTS.md b/backup/AGENTS.mdindex 73b73e49e0..b2b21470f9 100644--- a/backup/AGENTS.md+++ b/backup/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `backup/` + allowed shared modules. Do not root-scan.  _Install: ./install backup (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :backup / dir: backup/ - Package roots present: ui, data, domain, platform, service - Entry files: MainActivity.kt, Route.kt, Navigation.kt
calculator/AGENTS.md
diff --git a/calculator/AGENTS.md b/calculator/AGENTS.mdindex 7386bd63ec..0c0efc19b5 100644--- a/calculator/AGENTS.md+++ b/calculator/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `calculator/` + allowed shared modules. Do not root-scan.  _Install: ./install calculator (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :calculator / dir: calculator/ - Package roots present: ui, widget - Entry files: MainActivity.kt (no Route.kt — single-screen app with pages, not nav destinations)@@ -21,7 +20,7 @@ _Install: ./install calculator (dev by default)._ **Architecture / data-flow:** Single-screen `MainActivity` hosting `ui/` pages (`CalculatorPage`, `GraphPage`, `UnitConverterPage`) over a `util/` ViewModel + pure expression/graph/units helpers; widget receivers in `widget/` share the same logic. Internet is used only for currency rates. **Entry points + reading order:** `MainActivity.kt` → `ui/CalculatorPage.kt` → `util/CalculatorViewModel.kt` + `util/CalculatorUiContract.kt` → `util/Expression.kt` / `util/GraphAnalysis.kt` / `util/Units.kt` → `widget/CalculatorGlanceWidget.kt`. **Gotchas:**-- `util/` is NOT a closed package root — the `util/`→closed-roots migration is pending; don't add more files there+- `util/` is NOT a closed package root — don't add more files there - Currency rates are the only network call — everything else must stay offline-safe  ## Key files@@ -33,7 +32,7 @@ _Install: ./install calculator (dev by default)._ - com/vayunmathur/calculator/ui/CalculatorDialogs.kt - com/vayunmathur/calculator/ui/GraphPage.kt - com/vayunmathur/calculator/ui/UnitConverterPage.kt-### util/ — ViewModel + pure engine (pending migration to closed roots)+### util/ — ViewModel + pure engine - com/vayunmathur/calculator/util/CalculatorViewModel.kt - com/vayunmathur/calculator/util/CalculatorUiContract.kt - com/vayunmathur/calculator/util/Expression.kt — expression parsing/eval
calendar/AGENTS.md
diff --git a/calendar/AGENTS.md b/calendar/AGENTS.mdindex 827881688d..723598cd60 100644--- a/calendar/AGENTS.md+++ b/calendar/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `calendar/` + allowed shared modules. Do not root-scan.  _Install: ./install calendar (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :calendar / dir: calendar/ - Package roots present: ui, data, intents - Entry files: MainActivity.kt (no Route.kt — single-screen app with dialogs, not nav destinations)@@ -21,7 +20,7 @@ _Install: ./install calendar (dev by default)._ **Architecture / data-flow:** `ui/` screens + `ui/dialogs/` editors → `util/CalendarViewModel` (+ `CalendarUiContract`) → `data/` models (`Calendar`/`Event`/`Instance`/`ReminderMirror`); reminders flow ViewModel → `ReminderScheduler` → `ReminderReceiver` → notification, re-armed on boot. **Entry points + reading order:** `MainActivity.kt` → `ui/CalendarScreen.kt` → `util/CalendarViewModel.kt` → `data/Event.kt` + `data/Instance.kt` → `util/RRule.kt` → `util/ReminderScheduler.kt`. **Gotchas:**-- `util/` is NOT a closed package root — the `util/`→closed-roots migration is pending; don't add more files there+- `util/` is NOT a closed package root — don't add more files there - Holiday data is generated by `scripts/calendar`, not hand-written — regenerate, don't edit - Reminder alarms must be re-registered on boot; test the `BootReceiver` path, not just in-app scheduling @@ -33,7 +32,7 @@ _Install: ./install calendar (dev by default)._ - com/vayunmathur/calendar/data/Event.kt - com/vayunmathur/calendar/data/Instance.kt - com/vayunmathur/calendar/data/ReminderMirror.kt-### util/ — ViewModel, recurrence, reminders, ICS (pending migration to closed roots)+### util/ — ViewModel, recurrence, reminders, ICS - com/vayunmathur/calendar/util/CalendarViewModel.kt - com/vayunmathur/calendar/util/CalendarUiContract.kt - com/vayunmathur/calendar/util/RRule.kt — recurrence expansion
camera/AGENTS.md
diff --git a/camera/AGENTS.md b/camera/AGENTS.mdindex a4e5802c1f..8fd4c2f9f2 100644--- a/camera/AGENTS.md+++ b/camera/AGENTS.md@@ -3,10 +3,9 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `camera/` + allowed shared modules. Do not root-scan.  _Install: ./install camera (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :camera / dir: camera/ - Package roots present: ui, domain, platform-- Entry files: MainActivity.kt (no Route.kt — `Route` is inline, single-screen app)+- Entry files: MainActivity.kt, Route.kt (`Route.Camera` / `Route.Settings`) - Deps: :library:ml - Metadata: metadata_data/camera.md (present) - Rust: yes / screenshotTest: hybrid (phone hand-captured; wide controls preview-rendered)@@ -14,27 +13,30 @@ _Install: ./install camera (dev by default)._ ## Overview **Purpose:** The most featureful open-source camera app — usable as the system camera and from the lockscreen. 100% offline. **Key features:**-- Photo + video capture (CameraX, works regardless of Camera2 extension support) with per-mode sessions: single, portrait, night, slo-mo, video+- Photo + video capture on a direct Camera2 implementation (`platform/camera2/` driver, sessions, extension and high-speed sessions) with per-mode sessions: single, portrait, night, slo-mo, video - Panorama stitching + night-burst alignment in the native Rust `camera_stitch` engine - Portrait mode with on-device segmentation (MediaPipe selfie + MODNet matting on a Vulkan compute runtime, `.maml` assets) - QR/barcode scanning (zxing) and optional GPS geotagging written into EXIF-**Architecture / data-flow:** Single-screen `ui/CameraScreen` + `util/CameraViewModel` over per-mode `util/` session objects; `domain/` holds pure lens-selection logic, `platform/` capability queries; heavy work (stitch, night align, bokeh) goes through Rust JNI (`StitchNative`) and lands in MediaStore via `MediaStoreSaver`. `onCreateBeforeContent` only honors the `ACTION_IMAGE_CAPTURE` capture-for-result intent; `Content()` sits behind a camera+mic permission gate.-**Entry points + reading order:** `MainActivity.kt` (`Route.Camera`/`Settings` inline) → `ui/CameraScreen.kt` → `util/CameraViewModel.kt` → `util/CameraSessions.kt` → `util/PanoramaEngine.kt` / `NightCaptureEngine.kt`.+**Architecture / data-flow:** Single-screen `ui/CameraScreen` + `platform/CameraViewModel` over per-mode `platform/` session objects on the `platform/camera2/` driver; `domain/` holds pure lens-selection logic, `platform/` capability queries; heavy work (stitch, night align, bokeh) goes through Rust JNI (`platform/StitchNative`) and lands in MediaStore via `data/MediaStoreSaver`. `onCreateBeforeContent` only honors the `ACTION_IMAGE_CAPTURE` capture-for-result intent; `Content()` sits behind a camera+mic permission gate.+**Entry points + reading order:** `MainActivity.kt` → `Route.kt` (`Route.Camera`/`Settings`) → `ui/CameraScreen.kt` → `platform/CameraViewModel.kt` → `platform/CameraSessions.kt` → `platform/PanoramaEngine.kt` / `NightCaptureEngine.kt`. **Gotchas:**-- `util/` is NOT a closed package root — the `util/`→closed-roots migration is pending; new platform/engine code still lands there, don't add more+- Capture code lives in `platform/` (the Camera2 driver in `platform/camera2/`); there is no `util/` root in this module - Screenshots are hand-captured (no metadata convention plugin — Layoutlib can't open a camera); committed listing images live under `metadata_data/photos/camera/phone/` - Volume keys act as the shutter, gated on the camera route being foreground; Esc/space covers desktop keyboards - `.maml` model assets ship uncompressed (`noCompress`) — never compress them  ## Key files-### Root — entry (Route inline, no Route.kt)+### Root — entry + navigation - com/vayunmathur/camera/MainActivity.kt+- com/vayunmathur/camera/Route.kt ### domain/ — pure lens-selection logic - com/vayunmathur/camera/domain/LensModel.kt - com/vayunmathur/camera/domain/LensSelectionLogic.kt - com/vayunmathur/camera/domain/ArgbToI420Converter.kt — bulk ARGB→YUV 4:2:0 for the Motion Photo clip - com/vayunmathur/camera/domain/MotionSaveQueue.kt — bound on Motion Photos still saving after the shutter - com/vayunmathur/camera/domain/StillCaptureModePolicy.kt — ZSL vs MINIMIZE_LATENCY choice+- com/vayunmathur/camera/domain/PanoXmp.kt+- com/vayunmathur/camera/domain/MotionPhotoWriter.kt ### platform/ — capability queries - com/vayunmathur/camera/platform/CameraCapabilities.kt - com/vayunmathur/camera/platform/LensSelector.kt@@ -61,42 +63,44 @@ _Install: ./install camera (dev by default)._ - com/vayunmathur/camera/ui/LensBar.kt - com/vayunmathur/camera/ui/SettingsPage.kt - com/vayunmathur/camera/ui/CameraPostProcessingSettings.kt-### util/ — ViewModel, sessions, engines, persistence (migration pending)-- com/vayunmathur/camera/util/CameraViewModel.kt-- com/vayunmathur/camera/util/CameraViewModelActions.kt-- com/vayunmathur/camera/util/CameraViewModelTypes.kt-- com/vayunmathur/camera/util/CameraStartup.kt-- com/vayunmathur/camera/util/CameraSessions.kt-- com/vayunmathur/camera/util/CameraPhotoSessions.kt-- com/vayunmathur/camera/util/CameraPhotoSessionSetup.kt-- com/vayunmathur/camera/util/CameraPhotoSessionShared.kt-- com/vayunmathur/camera/util/CameraPortraitSession.kt-- com/vayunmathur/camera/util/CameraSingleCapture.kt-- com/vayunmathur/camera/util/CameraPhotoCapture.kt-- com/vayunmathur/camera/util/CameraCaptureProcessing.kt-- com/vayunmathur/camera/util/CameraVideoSession.kt-- com/vayunmathur/camera/util/CameraVideoRecording.kt-- com/vayunmathur/camera/util/CameraSloMoSession.kt-- com/vayunmathur/camera/util/CameraManualControls.kt-- com/vayunmathur/camera/util/CameraControls.kt-- com/vayunmathur/camera/util/CameraNightMode.kt-- com/vayunmathur/camera/util/CameraNightCapture.kt-- com/vayunmathur/camera/util/NightCaptureEngine.kt-- com/vayunmathur/camera/util/PanoramaEngine.kt-- com/vayunmathur/camera/util/GpuStitcher.kt-- com/vayunmathur/camera/util/StitchNative.kt — JNI bridge into `camera_stitch`-- com/vayunmathur/camera/util/PanoXmp.kt-- com/vayunmathur/camera/util/PortraitBokeh.kt-- com/vayunmathur/camera/util/BokehAnalyzer.kt-- com/vayunmathur/camera/util/PhotoAnalyzer.kt-- com/vayunmathur/camera/util/MotionPhotoEncoder.kt-- com/vayunmathur/camera/util/MotionPhotoWriter.kt-- com/vayunmathur/camera/util/VideoProcessor.kt-- com/vayunmathur/camera/util/CodecSupport.kt-- com/vayunmathur/camera/util/MediaStoreSaver.kt-- com/vayunmathur/camera/util/CameraSettings.kt-- com/vayunmathur/camera/util/CameraSaveLocation.kt-- com/vayunmathur/camera/util/CameraSaveRouting.kt+### platform/ — ViewModel, sessions, engines+- com/vayunmathur/camera/platform/CameraViewModel.kt+- com/vayunmathur/camera/platform/CameraViewModelActions.kt+- com/vayunmathur/camera/platform/CameraViewModelTypes.kt+- com/vayunmathur/camera/platform/CameraStartup.kt+- com/vayunmathur/camera/platform/CameraSessions.kt+- com/vayunmathur/camera/platform/CameraSingleCapture.kt+- com/vayunmathur/camera/platform/CameraPhotoCapture.kt+- com/vayunmathur/camera/platform/CameraCaptureProcessing.kt+- com/vayunmathur/camera/platform/CameraVideoRecording.kt+- com/vayunmathur/camera/platform/Camera2VideoRecordingEngine.kt+- com/vayunmathur/camera/platform/Camera2SloMoGlue.kt+- com/vayunmathur/camera/platform/CameraManualControls.kt+- com/vayunmathur/camera/platform/CameraControls.kt+- com/vayunmathur/camera/platform/CameraNightMode.kt+- com/vayunmathur/camera/platform/CameraNightCapture.kt+- com/vayunmathur/camera/platform/NightCaptureEngine.kt+- com/vayunmathur/camera/platform/PanoramaEngine.kt+- com/vayunmathur/camera/platform/GpuStitcher.kt+- com/vayunmathur/camera/platform/StitchNative.kt — JNI bridge into `camera_stitch`+- com/vayunmathur/camera/platform/PortraitBokeh.kt+- com/vayunmathur/camera/platform/BokehAnalyzer.kt+- com/vayunmathur/camera/platform/PhotoAnalyzer.kt+- com/vayunmathur/camera/platform/MotionPhotoEncoder.kt+- com/vayunmathur/camera/platform/VideoProcessor.kt+- com/vayunmathur/camera/platform/CodecSupport.kt+### platform/camera2/ — Camera2 driver+- com/vayunmathur/camera/platform/camera2/Camera2Driver.kt+- com/vayunmathur/camera/platform/camera2/Camera2Session.kt+- com/vayunmathur/camera/platform/camera2/Camera2ExtensionSession.kt+- com/vayunmathur/camera/platform/camera2/Camera2HighSpeedSession.kt+- com/vayunmathur/camera/platform/camera2/StillCapture.kt+- com/vayunmathur/camera/platform/camera2/StreamSelection.kt+### data/ — settings + saving+- com/vayunmathur/camera/data/MediaStoreSaver.kt+- com/vayunmathur/camera/data/CameraSettings.kt+- com/vayunmathur/camera/data/CameraSaveLocation.kt+- com/vayunmathur/camera/data/CameraSaveRouting.kt  ## Verify (this module only) ```
cast/AGENTS.md
diff --git a/cast/AGENTS.md b/cast/AGENTS.mdindex 5d2a2cf976..4bcc69f206 100644--- a/cast/AGENTS.md+++ b/cast/AGENTS.md@@ -3,10 +3,9 @@ > 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 was deleted by the shared-boilerplate migration — do NOT re-add)+- Entry files: MainActivity.kt, Route.kt, Navigation.kt (no `CastApplication` class) - Deps: :library:aosp-stubs, :cast:protocol, :sdk:cast - Metadata: metadata_data/cast.md (present) - Rust: no / screenshotTest: yes
cast/protocol/AGENTS.md
diff --git a/cast/protocol/AGENTS.md b/cast/protocol/AGENTS.mdindex 68b6855698..70279fc1c4 100644--- a/cast/protocol/AGENTS.md+++ b/cast/protocol/AGENTS.md@@ -2,7 +2,6 @@  > 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: (pure-Kotlin protocol library — single package, no Android roots) - Entry files: HandshakeMessages.kt + Pairing.kt (no MainActivity/Route — library)
cast/tv/AGENTS.md
diff --git a/cast/tv/AGENTS.md b/cast/tv/AGENTS.mdindex 7efea608c0..abd789b7b1 100644--- a/cast/tv/AGENTS.md+++ b/cast/tv/AGENTS.md@@ -3,7 +3,6 @@ > 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, Route.kt, Navigation.kt (receiver shell — NOT a phone app; one-deep Route host, TV panel modes instead)
clock/AGENTS.md
diff --git a/clock/AGENTS.md b/clock/AGENTS.mdindex e014114917..8fb374c598 100644--- a/clock/AGENTS.md+++ b/clock/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `clock/` + allowed shared modules. Do not root-scan.  _Install: ./install clock (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :clock / dir: clock/ - Package roots present: ui, data, platform, intents, service, widget - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -15,14 +14,14 @@ _Install: ./install clock (dev by default)._ **Purpose:** Offline clock — alarms (exact, survive reboot pre-unlock), timer, stopwatch, world clock, analog widget; answers system alarm/timer intents so assistants can set them. **Key features:** - Alarms with full-screen lockscreen surface + sound service; timer + stopwatch controllable from notifications-- World-clock city picker; analog Glance widget + legacy widget provider+- World-clock city picker; analog Glance widget (`AnalogClockGlanceWidget` + `AnalogClockWidgetProvider` receiver) - Assistant `intents/` (`SetAlarm` / `SetTimer`) wired to the same schedulers as the UI **Architecture / data-flow:** `ui/` tab pages → `platform/ClockViewModel` (+ `ClockUiContract`) → `data/ClockRepository` over Room; scheduling via `platform/AlarmScheduler` → `AlarmReceiver` → `AlarmActivity` + `service/AlarmSoundService`, re-armed by `BootReceiver`. Timer/stopwatch actions arrive from notifications via `*ActionReceiver`s. **Entry points + reading order:** `Route` (alarm/timer/stopwatch/world-clock tabs) → `MainActivity.kt` → `Navigation.kt` → `ui/ClockTabs.kt` → `platform/ClockViewModel.kt` → `platform/AlarmScheduler.kt`. **Gotchas:** - Alarm scheduling must work before first unlock — test the boot path, not just in-app - Notification action receivers and the sound service are the timer/stopwatch control plane; UI pages are views onto the same state-- `TimerReciever.kt` keeps its historical misspelling — do NOT rename (receivers are manifest-registered)+- The filename is `TimerReciever.kt`, spelled as-is — do NOT rename (receivers are manifest-registered)  ## Key files ### Root — entry + navigation@@ -43,7 +42,7 @@ _Install: ./install clock (dev by default)._ - com/vayunmathur/clock/platform/StopwatchActionReceiver.kt - com/vayunmathur/clock/platform/StopwatchNotificationHelper.kt - com/vayunmathur/clock/platform/TimerActionReceiver.kt-- com/vayunmathur/clock/platform/TimerReciever.kt — historical misspelling, do not rename+- com/vayunmathur/clock/platform/TimerReciever.kt — spelled as-is, do not rename - com/vayunmathur/clock/platform/WorldClockCities.kt ### service/ — alarm sound - com/vayunmathur/clock/service/AlarmSoundService.kt
code/AGENTS.md
diff --git a/code/AGENTS.md b/code/AGENTS.mdindex 671fcef43e..58af097917 100644--- a/code/AGENTS.md+++ b/code/AGENTS.md@@ -3,7 +3,6 @@ > 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 (no Route.kt — editor workspace with pages, not nav destinations)@@ -20,7 +19,7 @@ _Install: ./install code (dev by default)._ **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+- `syntax/` and `util/` are NOT closed package roots — 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 @@ -55,7 +54,7 @@ _Install: ./install code (dev by default)._ - 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)+### util/ — ViewModel, document, ops - com/vayunmathur/code/util/EditorViewModel.kt - com/vayunmathur/code/util/CodeUiContract.kt - com/vayunmathur/code/util/EditorDocument.kt
communicate/AGENTS.md
diff --git a/communicate/AGENTS.md b/communicate/AGENTS.mdindex fc5ffe542a..8677f6b0ce 100644--- a/communicate/AGENTS.md+++ b/communicate/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `communicate/` + allowed shared modules. Do not root-scan.  _Install: ./install communicate (dev by default)._-<!-- last-reviewed: 2026-11-21 --> - Gradle: :communicate / dir: communicate/ - Package roots present: ui, data, domain, intents, service, telephony, notifications - Entry files: MainActivity.kt, Route.kt, Navigation.kt
contacts/AGENTS.md
diff --git a/contacts/AGENTS.md b/contacts/AGENTS.mdindex 25232c7961..0d250cc86f 100644--- a/contacts/AGENTS.md+++ b/contacts/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `contacts/` + allowed shared modules. Do not root-scan.  _Install: ./install contacts (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :contacts / dir: contacts/ - Package roots present: ui, data, intents, auth - Entry files: MainActivity.kt (no Route.kt — list/detail/edit flow with dialogs + pick activities)@@ -20,7 +19,7 @@ _Install: ./install contacts (dev by default)._ **Architecture / data-flow:** `ui/` list/detail/edit pages (+ `ui/dialogs/`) → `util/ContactViewModel` (+ split `Accounts`/`Draft` helpers, `ContactsUiContract`) → `data/` models over the system contacts provider (`Contact`/`ContactGroup`, `ContactPrefill`, `SimContacts`); persistence is the provider, not Room — there is no database here. **Entry points + reading order:** `MainActivity.kt` → `ui/ContactListScreen.kt` → `ui/ContactDetailsPage.kt` → `ui/EditContactPage.kt` → `util/ContactViewModel.kt` → `data/Contact.kt`. **Gotchas:**-- `util/` is NOT a closed package root — the `util/`→closed-roots migration is pending; don't add more files there+- `util/` is NOT a closed package root — don't add more files there - Write paths go through the contacts provider + account (`auth/`), not a local DB — account picker dialogs matter - `ImportActivity` + `ImportVcfScreen` handle VIEW intents; `ContactListPick`/`ContactItemPick` serve picker callers @@ -33,7 +32,7 @@ _Install: ./install contacts (dev by default)._ - com/vayunmathur/contacts/data/ContactGroup.kt - com/vayunmathur/contacts/data/ContactPrefill.kt - com/vayunmathur/contacts/data/SimContacts.kt-### util/ — ViewModel + helpers (pending migration to closed roots)+### util/ — ViewModel + helpers - com/vayunmathur/contacts/util/ContactViewModel.kt - com/vayunmathur/contacts/util/ContactViewModelAccounts.kt - com/vayunmathur/contacts/util/ContactViewModelDraft.kt
desktop/notes/AGENTS.md
diff --git a/desktop/notes/AGENTS.md b/desktop/notes/AGENTS.mdindex 2b0fd953b2..78c0994947 100644--- a/desktop/notes/AGENTS.md+++ b/desktop/notes/AGENTS.md@@ -14,7 +14,7 @@ - Rust: no (PQC via core's JVM actual)  ## Overview-**Purpose:** Phase 2b desktop Notes JVM shell on the shared core: syncs the+**Purpose:** Desktop Notes JVM shell on the shared core: syncs the `notes:<vaultId>` + `todos:<vaultId>` relay channels once via `SyncDriver` and prints counts. Windows renders todos inside the Notes UI (`TodoView.todosAsNotes` projection, writes back via `updateTodoFromNote`).@@ -32,7 +32,7 @@ and prints counts. Windows renders todos inside the Notes UI **Invariants (from the shared core, preserved here):** failed pull = abort, never empty; tombstone-only delete; reorder is not an edit (`position` stripped from merge hashes); `notes`/`createdAt` persist verbatim-on todos (Phase 1 drift fix).+on todos.  ## Verify (this module only) Do NOT run Gradle (per task scope). When enabled:
desktop/passwords/AGENTS.md
diff --git a/desktop/passwords/AGENTS.md b/desktop/passwords/AGENTS.mdindex 9227c1982b..ea8cfaa305 100644--- a/desktop/passwords/AGENTS.md+++ b/desktop/passwords/AGENTS.md@@ -2,7 +2,6 @@  > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `desktop/passwords/` + allowed shared modules. Do not root-scan. -<!-- last-reviewed: 2026-10-16 --> - Gradle: :desktop:passwords / dir: desktop/passwords/ - Package roots present: com.vayunmathur.desktop.passwords (plain Kotlin, no Compose) - Entry files: Main.kt, PasswordSync.kt, PasswordVault.kt, KdbxCompat.kt
education/AGENTS.md
diff --git a/education/AGENTS.md b/education/AGENTS.mdindex 1c230d867e..6ca3c7629e 100644--- a/education/AGENTS.md+++ b/education/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `education/` + allowed shared modules. Do not root-scan.  _Install: ./install education (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :education / dir: education/ - Package roots present: ui, data - Entry files: MainActivity.kt + EducationApplication.kt (no Route.kt — shell + course/unit/lesson/quiz flow)@@ -16,7 +15,7 @@ _Install: ./install education (dev by default)._ **Key features:** Bundled curriculum (`content/` model + validator) → course/unit/lesson/quiz pages; learner progress + deadlines in Room; video player pages stream Khan/YouTube; narrator + downloader helpers. **Entry points:** `EducationApplication.kt` → `MainActivity.kt` → `ui/Shell.kt` → `ui/HomePage.kt` → `util/EducationViewModel.kt` → `data/EducationRepository.kt`. **Gotchas:**-- `content/` and `util/` are NOT closed package roots — pending migration; don't add more files there+- `content/` and `util/` are NOT closed package roots — don't add more files there - Curriculum content is validated (`ContentValidator`) — content edits must pass validation, not just compile - Video is the only network use — everything else must work fully offline (classroom mode) @@ -24,7 +23,7 @@ _Install: ./install education (dev by default)._ ### Root — app init + entry (no Route.kt) - com/vayunmathur/education/EducationApplication.kt - com/vayunmathur/education/MainActivity.kt-### content/ — curriculum model (pending migration to closed roots)+### content/ — curriculum model - com/vayunmathur/education/content/ContentModel.kt - com/vayunmathur/education/content/ContentRepository.kt - com/vayunmathur/education/content/ContentValidator.kt@@ -35,7 +34,7 @@ _Install: ./install education (dev by default)._ - com/vayunmathur/education/data/Learner.kt - com/vayunmathur/education/data/SkillProgress.kt - com/vayunmathur/education/data/Deadline.kt-### util/ — ViewModel + helpers (pending migration to closed roots)+### util/ — ViewModel + helpers - com/vayunmathur/education/util/EducationViewModel.kt - com/vayunmathur/education/util/EducationUiContract.kt - com/vayunmathur/education/util/EducationDownloader.kt
email/AGENTS.md
diff --git a/email/AGENTS.md b/email/AGENTS.mdindex 0873d6b94b..814412b0b2 100644--- a/email/AGENTS.md+++ b/email/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `email/` + allowed shared modules. Do not root-scan.  _Install: ./install email (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :email / dir: email/ - Package roots present: ui, data, platform, network, intents, widget - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -85,7 +84,7 @@ _Install: ./install email (dev by default)._ ### ui/ — list, thread, composer, account flows - com/vayunmathur/email/ui/MainContent.kt - com/vayunmathur/email/ui/MessageListScreen.kt-- com/vayunmathur/email/ui/MessageThreadScreen.kt — thread pane: strip + one open message, no outer scroller (#900)+- com/vayunmathur/email/ui/MessageThreadScreen.kt — thread pane: strip + one open message, no outer scroller - com/vayunmathur/email/ui/ThreadMessageStrip.kt - com/vayunmathur/email/ui/MessageItem.kt — header / self-scrolling body / footer - com/vayunmathur/email/ui/MessageFooter.kt
emergency/AGENTS.md
diff --git a/emergency/AGENTS.md b/emergency/AGENTS.mdindex 3688271d97..9c43a7af58 100644--- a/emergency/AGENTS.md+++ b/emergency/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `emergency/` + allowed shared modules. Do not root-scan.  _Install: ./install emergency (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :emergency / dir: emergency/ - Package roots present: ui, data, domain, platform, service, notifications - Entry files: MainActivity.kt, Route.kt, Navigation.kt + ui/SosScreen.kt (SosActivity stays separate; see Navigation.kt)@@ -16,7 +15,7 @@ _Install: ./install emergency (dev by default)._ **Key features:** `data/EmergencyRepository` (info, imported FHIR medical, contacts) → `platform/SosCoordinator` → `service/SosCountdownService` + `receiver/SosActionReceiver` → `notifications/SosNotifications`; gesture trigger provider + number lookup with override. **Entry points:** `MainActivity.kt` (ViewInfo/EditInfo host) + `ui/SosScreen.kt` SosActivity (Route.Sos host) → `platform/SosCoordinator.kt` → `service/SosCountdownService.kt` → `data/EmergencyRepository.kt`. **Gotchas:**-- `receiver/` is NOT a closed package root — pending migration; don't add more files there+- `receiver/` is NOT a closed package root — don't add more files there - SOS dials the real local emergency number — never trigger calls in tests, previews, or screenshots - Lockscreen visibility is permission/signature-gated — verify on the OS build, not sideloaded 
euicc/AGENTS.md
diff --git a/euicc/AGENTS.md b/euicc/AGENTS.mdindex 177ef61b70..cb01411cb7 100644--- a/euicc/AGENTS.md+++ b/euicc/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `euicc/` + allowed shared modules. Do not root-scan.  _Install: ./install euicc (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :euicc / dir: euicc/ - Package roots present: ui, data, platform, service, telephony - Entry files: Route.kt, Navigation.kt + platform/LuiActivity.kt (LPA UI entry; no MainActivity)
everysync/AGENTS.md
diff --git a/everysync/AGENTS.md b/everysync/AGENTS.mdindex 534702a12b..a6d1f218c6 100644--- a/everysync/AGENTS.md+++ b/everysync/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `everysync/` + allowed shared modules. Do not root-scan.  _Install: ./install everysync (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :everysync / dir: everysync/ - Package roots present: ui, data, domain, platform, network, provider, auth, sync - Entry files: MainActivity.kt, Route.kt, Navigation.kt, EverySyncApplication.kt
files/AGENTS.md
diff --git a/files/AGENTS.md b/files/AGENTS.mdindex cdd4178c39..35d32b0ee1 100644--- a/files/AGENTS.md+++ b/files/AGENTS.md@@ -3,10 +3,9 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `files/` + allowed shared modules. Do not root-scan.  _Install: ./install files (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :files / dir: files/ - Package roots present: ui, data, platform-- Entry files: MainActivity.kt, Route.kt, Navigation.kt (FilesApplication.kt was deleted by the shared-boilerplate migration — do NOT re-add)+- Entry files: MainActivity.kt, Route.kt, Navigation.kt (no `FilesApplication` class) - Deps: :library:image - Metadata: metadata_data/files.md (present) - Rust: no / screenshotTest: yes
findfamily/AGENTS.md
diff --git a/findfamily/AGENTS.md b/findfamily/AGENTS.mdindex 76fdc0bd82..9f86e022c0 100644--- a/findfamily/AGENTS.md+++ b/findfamily/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `findfamily/` + allowed shared modules. Do not root-scan.  _Install: ./install findfamily (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :findfamily / dir: findfamily/ - Package roots present: ui, data, domain, platform, intents, service - Entry files: MainActivity.kt (no Route.kt — `Route` + `Navigation` are inline)@@ -46,8 +45,8 @@ WebSocket relay host: `wss://api.maproj.org/api/ws` (Cloudflare FIRST_PARTY pins ### domain/ — pairing auth, no-show policy, sender movement policy (pure logic) - com/vayunmathur/findfamily/domain/PairAuth.kt - com/vayunmathur/findfamily/domain/NoShowPolicy.kt-- com/vayunmathur/findfamily/domain/MovementDetector.kt — sender moving/still state machine (acceleration + fix speed + displacement, #895)-- com/vayunmathur/findfamily/domain/ForcedFixPolicy.kt — when a "still" sender forces a one-off fix (#895)+- com/vayunmathur/findfamily/domain/MovementDetector.kt — sender moving/still state machine (acceleration + fix speed + displacement)+- com/vayunmathur/findfamily/domain/ForcedFixPolicy.kt — when a "still" sender forces a one-off fix ### intents/ — assistant IPC - com/vayunmathur/findfamily/intents/GetIntent.kt - com/vayunmathur/findfamily/intents/CreateLinkIntent.kt@@ -58,7 +57,7 @@ WebSocket relay host: `wss://api.maproj.org/api/ws` (Cloudflare FIRST_PARTY pins - com/vayunmathur/findfamily/platform/FinalLocationReporter.kt - com/vayunmathur/findfamily/platform/NoShowCheckScheduler.kt - com/vayunmathur/findfamily/platform/PoweredOffBeacon.kt-- com/vayunmathur/findfamily/platform/LocationKeepAlive.kt — sender keep-alive: single fix intake, low-power/passive requests, forced fix (#895)+- com/vayunmathur/findfamily/platform/LocationKeepAlive.kt — sender keep-alive: single fix intake, low-power/passive requests, forced fix ### service/ — Quick Settings tile - com/vayunmathur/findfamily/service/SharingTileService.kt ### tracker/ — BLE tracker protocol + powered-off finding@@ -108,7 +107,7 @@ WebSocket relay host: `wss://api.maproj.org/api/ws` (Cloudflare FIRST_PARTY pins - com/vayunmathur/findfamily/ui/dialogs/KeyMismatchDialog.kt - com/vayunmathur/findfamily/ui/dialogs/OutdatedPeerDialog.kt - com/vayunmathur/findfamily/ui/dialogs/SecurityCodeDialog.kt-### util/ — ViewModel, tracking service, networking (migration pending)+### util/ — ViewModel, tracking service, networking - com/vayunmathur/findfamily/util/FindFamilyViewModel.kt - com/vayunmathur/findfamily/util/FindFamilyUiContract.kt - com/vayunmathur/findfamily/util/MapPageState.kt
flashcards/AGENTS.md
diff --git a/flashcards/AGENTS.md b/flashcards/AGENTS.mdindex 146a3c817d..20619d972d 100644--- a/flashcards/AGENTS.md+++ b/flashcards/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `flashcards/` + allowed shared modules. Do not root-scan.  _Install: ./install flashcards (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :flashcards / dir: flashcards/ - Package roots present: ui, data - Entry files: MainActivity.kt (no Route.kt — decks/notes/review/stats flow)@@ -16,7 +15,7 @@ _Install: ./install flashcards (dev by default)._ **Key features:** Note-type editor + templating (`TemplateEngine`, `HtmlConvert`), card generation, review sessions with grading, FSRS optimizer, stats/charts, TTS speaker, media store; reminders via `ReviewReminderWorker`. **Entry points:** `MainActivity.kt` → `ui/DeckListPage.kt` → `util/FlashcardsViewModel.kt` → `data/FlashcardsRepository.kt` → `util/Scheduler.kt` → `ui/ReviewPage.kt`. **Gotchas:**-- `util/` is NOT a closed package root — pending migration; don't add more files there+- `util/` is NOT a closed package root — don't add more files there - Scheduling correctness (FSRS) is the product — scheduler changes need review-log-driven tests, not just UI checks - APKG import/export must stay compatible with Anki's format — test round-trips, not just one direction @@ -33,7 +32,7 @@ _Install: ./install flashcards (dev by default)._ - com/vayunmathur/flashcards/data/CardTemplate.kt - com/vayunmathur/flashcards/data/Deck.kt - com/vayunmathur/flashcards/data/ReviewLog.kt-### util/ — ViewModel, scheduler, import/export (pending migration to closed roots)+### util/ — ViewModel, scheduler, import/export - com/vayunmathur/flashcards/util/FlashcardsViewModel.kt - com/vayunmathur/flashcards/util/FlashcardsViewModelHelper.kt - com/vayunmathur/flashcards/util/FlashcardsUiContract.kt
fooddelivery/AGENTS.md
diff --git a/fooddelivery/AGENTS.md b/fooddelivery/AGENTS.mdindex fdbc6527ea..948daaf9a7 100644--- a/fooddelivery/AGENTS.md+++ b/fooddelivery/AGENTS.md@@ -3,7 +3,6 @@ > 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 + platform/AppInit.kt (no Route.kt — home/restaurant/cart/checkout/orders flow)@@ -20,7 +19,7 @@ _Install: ./install fooddelivery (dev by default)._ **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+- `api/` and `ipc/` are NOT closed package roots — 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 @@ -29,7 +28,7 @@ _Install: ./install fooddelivery (dev by default)._ - com/vayunmathur/fooddelivery/FoodDeliveryApplication.kt - com/vayunmathur/fooddelivery/MainActivity.kt - com/vayunmathur/fooddelivery/platform/AppInit.kt-### api/ — backend client (pending migration to closed roots)+### api/ — backend client - com/vayunmathur/fooddelivery/api/BitesApi.kt ### data/ — cart, addresses, models - com/vayunmathur/fooddelivery/data/CartStore.kt
games/arrows/AGENTS.md
diff --git a/games/arrows/AGENTS.md b/games/arrows/AGENTS.mdindex 2b15d651e0..3e9b4cd4f9 100644--- a/games/arrows/AGENTS.md+++ b/games/arrows/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/arrows/` + allowed shared modules. Do not root-scan.  _Install: ./install games/arrows (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :games:arrows / dir: games/arrows/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt
games/chess/AGENTS.md
diff --git a/games/chess/AGENTS.md b/games/chess/AGENTS.mdindex 2b27ddd128..224c1b9962 100644--- a/games/chess/AGENTS.md+++ b/games/chess/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/chess/` + allowed shared modules. Do not root-scan.  _Install: ./install games/chess (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :games:chess / dir: games/chess/ - Package roots present: data - Entry files: MainActivity.kt, Route.kt (screens live at module root, not ui/)@@ -16,8 +15,8 @@ _Install: ./install games/chess (dev by default)._ **Game shape:** Root-level screens (`ChessGameScreens`, `ChessPuzzleScreens`, `ChessLearnScreens`) → `util/*ViewModel` → `data/` models/lessons/puzzles; achievements → `:sdk:games` → hub. **Entry points:** `Route` → `MainActivity.kt` → `ChessGameScreens.kt` → `util/ChessViewModel.kt` → `data/ChessModel.kt` → `util/MaiaEngine.kt`. **Gotchas:**-- `util/` is NOT a closed package root — pending migration; don't add more files there-- Screens at module root (not `ui/`) is this game's historical layout — follow it here, don't "fix" it+- `util/` is NOT a closed package root — don't add more files there+- Screens are at module root (not `ui/`) — follow this layout here, don't "fix" it  ## Key files ### Root — entry + screens (flat layout, no ui/)@@ -30,7 +29,7 @@ _Install: ./install games/chess (dev by default)._ - com/vayunmathur/games/chess/data/ChessModel.kt - com/vayunmathur/games/chess/data/Learn.kt - com/vayunmathur/games/chess/data/Puzzle.kt-### util/ — ViewModels + Maia AI (pending migration to closed roots)+### util/ — ViewModels + Maia AI - com/vayunmathur/games/chess/util/ChessViewModel.kt - com/vayunmathur/games/chess/util/LearnViewModel.kt - com/vayunmathur/games/chess/util/PuzzleViewModel.kt
games/hub/AGENTS.md
diff --git a/games/hub/AGENTS.md b/games/hub/AGENTS.mdindex 799174a316..16df5896c2 100644--- a/games/hub/AGENTS.md+++ b/games/hub/AGENTS.md@@ -3,12 +3,11 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/hub/` + allowed shared modules. Do not root-scan.  _Install: ./install games/hub (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :games:hub / dir: games/hub/ - Package roots present: ui, data, provider - Entry files: MainActivity.kt (no Route.kt — dashboard/list/detail/profile flow) - Deps: :library, :library:ui, :library:room, :sdk:games, :sdk:controller, :library:e2ee-p2p-- Play on TV: the `:sdk:controller` pad screen lives here (`ui/screens/ControllerPad.kt`), not in the SDK (#884)+- Play on TV: the `:sdk:controller` pad screen lives here (`ui/screens/ControllerPad.kt`), not in the SDK - Metadata: metadata_data/games-hub.md (present) - Rust: no / screenshotTest: yes @@ -18,7 +17,7 @@ _Install: ./install games/hub (dev by default)._ **Architecture:** `ui/screens/` + `ui/components/` (shared `library/ui/game/` chrome) → `viewmodel/GameHubViewModel` → `data/GamesHubRepository` over Room (achievements, activity, sessions, streaks, profiles); `util/` holds pure calculators + icon resolution. **Entry points:** `MainActivity.kt` → `ui/screens/DashboardScreen.kt` → `viewmodel/GameHubViewModel.kt` → `data/GamesHubRepository.kt`. **Gotchas:**-- `util/` + `viewmodel/` are NOT closed package roots — pending migration; don't add more files there+- `util/` + `viewmodel/` are NOT closed package roots — don't add more files there - Games report via `:sdk:games` contract — hub schema changes must stay compatible with every game's reporter  ## Key files@@ -60,7 +59,7 @@ _Install: ./install games/hub (dev by default)._ - com/vayunmathur/games/hub/ui/screens/ProfileScreen.kt - com/vayunmathur/games/hub/ui/screens/ProfilePage.kt - com/vayunmathur/games/hub/ui/screens/SettingsScreen.kt-- com/vayunmathur/games/hub/ui/screens/ControllerPad.kt — phone-as-controller pad (moved from `:sdk:controller`, #884)+- com/vayunmathur/games/hub/ui/screens/ControllerPad.kt — phone-as-controller pad - com/vayunmathur/games/hub/ui/components/GameCard.kt - com/vayunmathur/games/hub/ui/components/AchievementRow.kt - com/vayunmathur/games/hub/ui/components/ActivityItem.kt
games/kart/AGENTS.md
diff --git a/games/kart/AGENTS.md b/games/kart/AGENTS.mdindex 68a9171f6a..2d5d3b533d 100644--- a/games/kart/AGENTS.md+++ b/games/kart/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/kart/` + allowed shared modules. Do not root-scan.  _Install: ./install games/kart (dev by default)._-<!-- last-reviewed: 2026-11-21 --> - Gradle: :games:kart / dir: games/kart/ - Package roots present: data, domain, platform, ui - Entry files: MainActivity.kt, Route.kt, Navigation.kt
games/logicgate/AGENTS.md
diff --git a/games/logicgate/AGENTS.md b/games/logicgate/AGENTS.mdindex ac7311a8bf..89b5f9cf57 100644--- a/games/logicgate/AGENTS.md+++ b/games/logicgate/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/logicgate/` + allowed shared modules. Do not root-scan.  _Install: ./install games/logicgate (dev by default)._-<!-- last-reviewed: 2026-11-01 --> - Gradle: :games:logicgate / dir: games/logicgate/ - Package roots present: domain, data, platform, ui - Entry files: MainActivity.kt, Route.kt, Navigation.kt
games/minesweeper/AGENTS.md
diff --git a/games/minesweeper/AGENTS.md b/games/minesweeper/AGENTS.mdindex c8914ab1bb..f440d31760 100644--- a/games/minesweeper/AGENTS.md+++ b/games/minesweeper/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/minesweeper/` + allowed shared modules. Do not root-scan.  _Install: ./install games/minesweeper (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :games:minesweeper / dir: games/minesweeper/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt
games/nonogram/AGENTS.md
diff --git a/games/nonogram/AGENTS.md b/games/nonogram/AGENTS.mdindex 46a2532c56..19f633baea 100644--- a/games/nonogram/AGENTS.md+++ b/games/nonogram/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/nonogram/` + allowed shared modules. Do not root-scan.  _Install: ./install games/nonogram (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :games:nonogram / dir: games/nonogram/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt
games/pipes/AGENTS.md
diff --git a/games/pipes/AGENTS.md b/games/pipes/AGENTS.mdindex a2f3ac4679..ce11321e78 100644--- a/games/pipes/AGENTS.md+++ b/games/pipes/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/pipes/` + allowed shared modules. Do not root-scan.  _Install: ./install games/pipes (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :games:pipes / dir: games/pipes/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt
games/solitaire/AGENTS.md
diff --git a/games/solitaire/AGENTS.md b/games/solitaire/AGENTS.mdindex 1ba691bafa..67a5157211 100644--- a/games/solitaire/AGENTS.md+++ b/games/solitaire/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/solitaire/` + allowed shared modules. Do not root-scan.  _Install: ./install games/solitaire (dev by default)._-<!-- last-reviewed: 2026-11-12 --> - Gradle: :games:solitaire / dir: games/solitaire/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -80,10 +79,10 @@ _Install: ./install games/solitaire (dev by default)._ Every new game deals a seed from `src/main/assets/solvable_deals.bin`: one sorted table per mode × option (8 Klondike draw/pass configs, Spider 1/2/4 suits, FreeCell, Pyramid relaxed/single-pass), keyed by the stats variant-(`KLONDIKE__DRAW_THREE_HARD`, ...). Each seed was solved to a full win offline+(`KLONDIKE__DRAW_THREE_HARD`, ...). Each seed is proven to a full win offline by `domain/DealProofs` (the mode's solver, climbing the pass-limit ladder: a win with fewer passes is a win with more). Seeds deal through-`createShuffledDeck(seed)` / `createSpiderDeck(suits, seed)` exactly as before,+`createShuffledDeck(seed)` / `createSpiderDeck(suits, seed)`, so a seed deals the same board everywhere; the state keeps it (`seed`), and `restartDeal()` replays it. @@ -101,7 +100,7 @@ Optional: `-PsolitaireSeedGenTarget=10000` (seeds per config), `-PsolitaireSeedGenGroups=klondike-draw1,klondike-draw3,pyramid,freecell,spider1,spider2,spider4` (subset; merge by hand), `-PsolitaireSeedGenHeap=40g` (test JVM heap). `analysis/soldeal/solvable_deals_report.txt` has per-config solvable rates-(last run: Klondike draw-1 86% unlimited .. 19% one pass, draw-3 79% .. 2.6%,+(Klondike draw-1 86% unlimited .. 19% one pass, draw-3 79% .. 2.6%, FreeCell 99.9%, Pyramid 83% relaxed / 12.8% single pass, Spider 84/83/71% for 1/2/4 suits; proven within budget). Output is deterministic for a given solver and budget (any thread count).
games/sudoku/AGENTS.md
diff --git a/games/sudoku/AGENTS.md b/games/sudoku/AGENTS.mdindex f2df2d1013..301c83f4e7 100644--- a/games/sudoku/AGENTS.md+++ b/games/sudoku/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/sudoku/` + allowed shared modules. Do not root-scan.  _Install: ./install games/sudoku (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :games:sudoku / dir: games/sudoku/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt
games/unblockjam/AGENTS.md
diff --git a/games/unblockjam/AGENTS.md b/games/unblockjam/AGENTS.mdindex 4bfe5b7694..28fcbf6f1a 100644--- a/games/unblockjam/AGENTS.md+++ b/games/unblockjam/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/unblockjam/` + allowed shared modules. Do not root-scan.  _Install: ./install games/unblockjam (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :games:unblockjam / dir: games/unblockjam/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt
games/voxels/AGENTS.md
diff --git a/games/voxels/AGENTS.md b/games/voxels/AGENTS.mdindex 2ad4b14498..daca558643 100644--- a/games/voxels/AGENTS.md+++ b/games/voxels/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/voxels/` + allowed shared modules. Do not root-scan.  _Install: ./install games/voxels (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :games:voxels / dir: games/voxels/ - Package roots present: ui, data, platform, network - Entry files: MainActivity.kt + platform/MenuActivity.kt (menu/world select) + Route.kt (menu: Route.Worlds / CreateWorld; game: Route.Game(worldId) + Inventory/Furnace/Chest/Stonecutter/Trade/Settings overlays)
games/wordmaker/AGENTS.md
diff --git a/games/wordmaker/AGENTS.md b/games/wordmaker/AGENTS.mdindex 51c675dfa6..814e9a397b 100644--- a/games/wordmaker/AGENTS.md+++ b/games/wordmaker/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `games/wordmaker/` + allowed shared modules. Do not root-scan.  _Install: ./install games/wordmaker (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :games:wordmaker / dir: games/wordmaker/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt
globalesim/AGENTS.md
diff --git a/globalesim/AGENTS.md b/globalesim/AGENTS.mdindex eb18b34d8d..bb8797b33c 100644--- a/globalesim/AGENTS.md+++ b/globalesim/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `globalesim/` + allowed shared modules. Do not root-scan.  _Install: ./install globalesim (dev by default)._-<!-- last-reviewed: 2026-10-24 --> - Gradle: :globalesim / dir: globalesim/ - Package roots present: ui, data, domain, platform, network - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -27,7 +26,7 @@ _Install: ./install globalesim (dev by default)._ - ViewModel messages are shown once by the tab host in `Navigation.kt`, not by the screens - Never log the account id / SIM ID; the clipboard copy is flagged sensitive - Install shows no QR/code — same-phone QR is unscannable; direct LPA handoff only-- `rememberPaymentSheet` is deprecated in stripe-android 23.x (same as fooddelivery); leave until repo migrates+- `rememberPaymentSheet` is deprecated in stripe-android 23.x (same as fooddelivery)  ## Key files ### Root — entry + navigation
health/AGENTS.md
diff --git a/health/AGENTS.md b/health/AGENTS.mdindex cf39a337ee..a58f81e831 100644--- a/health/AGENTS.md+++ b/health/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `health/` + allowed shared modules. Do not root-scan.  _Install: ./install health (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :health / dir: health/ - Package roots present: ui, data, domain, platform, service, notifications - Entry files: MainActivity.kt (no Route.kt — Today-dashboard + record pages flow)@@ -20,7 +19,7 @@ _Install: ./install health (dev by default)._ **Architecture / data-flow:** `ui/` Today + record pages → `platform/MedicalViewModel` (+ per-area `Medical*Ops`) → `data/HealthRepository` over Room (`Record`, `MedicationSchedule`, `MedicalRecords`) synced with Health Connect; `domain/` holds pure FHIR (Observations, Medication, Immunization, Allergy/Condition) + `DoseSchedule`; reminders flow `DoseScheduler` → receivers → `DoseReminderActivity` + `service/DoseSoundService`. **Entry points + reading order:** `MainActivity.kt` → `ui/TodayPage.kt` → `platform/MedicalViewModel.kt` → `data/HealthRepository.kt` → `domain/FhirRecords.kt` → `platform/DoseScheduler.kt`. **Gotchas:**-- `util/` is NOT a closed package root — the `util/`→closed-roots migration is pending; don't add more files there+- `util/` is NOT a closed package root — don't add more files there - Medical data is dual-homed (Room + Health Connect) — writes must update both or they diverge - Dose reminders need the boot path re-armed like clock alarms; sound runs through a foreground service @@ -62,7 +61,7 @@ _Install: ./install health (dev by default)._ - com/vayunmathur/health/notifications/DoseNotification.kt - com/vayunmathur/health/notifications/MedicationChannels.kt - com/vayunmathur/health/service/DoseSoundService.kt-### util/ — food DB, sync worker, ViewModel (pending migration to closed roots)+### util/ — food DB, sync worker, ViewModel - com/vayunmathur/health/util/HealthViewModel.kt - com/vayunmathur/health/util/HealthUiContract.kt - com/vayunmathur/health/util/HealthSyncWorker.kt
keyboard/AGENTS.md
diff --git a/keyboard/AGENTS.md b/keyboard/AGENTS.mdindex 7dd0fd233e..ebbec7113c 100644--- a/keyboard/AGENTS.md+++ b/keyboard/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `keyboard/` + allowed shared modules. Do not root-scan.  _Install: ./install keyboard (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :keyboard / dir: keyboard/ - Package roots present: ui, platform - Entry files: MainActivity.kt (settings/setup UI) + ime/KeyboardService.kt (the actual IME entry)@@ -20,7 +19,7 @@ _Install: ./install keyboard (dev by default)._ **Architecture / data-flow:** System binds `ime/KeyboardService` → `ime/KeyboardState` + `Composer` routespre-edit composition → `ui/` rows/pages render keys; `util/` holds layouts (Latin/Cyrillic/Other), dictionaries (incl. Pinyin), prefs, clipboard store. `MainActivity` is only the setup/settings UI, not the keyboard. **Entry points + reading order:** `ime/KeyboardService.kt` → `ime/KeyboardState.kt` → `ime/Composer.kt` → `ui/KeyboardScreen.kt` → `util/KeyboardLayouts*.kt`. **Gotchas:**-- `ime/` and `util/` are NOT closed package roots — pending migration; don't add more files there+- `ime/` and `util/` are NOT closed package roots — don't add more files there - No-network is a guarantee, not an accident — never add a network dep or permission here - Voice input needs its own permission activity before the strip works @@ -53,7 +52,7 @@ _Install: ./install keyboard (dev by default)._ - com/vayunmathur/keyboard/ui/ClipboardStrip.kt - com/vayunmathur/keyboard/ui/VoiceStrip.kt - com/vayunmathur/keyboard/ui/SetupScreen.kt-### util/ — layouts, dictionaries, prefs (pending migration to closed roots)+### util/ — layouts, dictionaries, prefs - com/vayunmathur/keyboard/util/KeyboardLayout.kt - com/vayunmathur/keyboard/util/KeyboardLayouts.kt - com/vayunmathur/keyboard/util/KeyboardLayoutsLatin.kt
launcher/AGENTS.md
diff --git a/launcher/AGENTS.md b/launcher/AGENTS.mdindex a17c0d05c9..b1f0d534dd 100644--- a/launcher/AGENTS.md+++ b/launcher/AGENTS.md@@ -3,7 +3,6 @@ > 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). For a TV over Wi-Fi: `sh launcher/install-tv.sh <TV_IP>` builds, installs and offers to set it as the default home; `sh launcher/undo-tv.sh <TV_IP>` restores the stock home._-<!-- last-reviewed: 2026-10-20 --> - Gradle: :launcher / dir: launcher/ - Package roots present: ui, data, domain, platform + tv/{ui,data,domain,platform} - Entry files: MainActivity.kt (UiMode-routed), Route.kt + Navigation.kt (phone), tv/TvRoute.kt + tv/TvNavigation.kt (TV)
library/AGENTS.md
diff --git a/library/AGENTS.md b/library/AGENTS.mdindex 516e6806f2..293711a472 100644--- a/library/AGENTS.md+++ b/library/AGENTS.md@@ -2,7 +2,6 @@  > 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: util/Navigation.kt + util/AssistantIntent.kt (no MainActivity/Route — base library)
library/aosp-stubs/AGENTS.md
diff --git a/library/aosp-stubs/AGENTS.md b/library/aosp-stubs/AGENTS.mdindex 7f7fafe6f2..4d4d484e26 100644--- a/library/aosp-stubs/AGENTS.md+++ b/library/aosp-stubs/AGENTS.md@@ -2,22 +2,21 @@  > 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: (compile-only hidden-API stubs — merged from seven former `*-stubs` modules)+- Package roots present: (compile-only hidden-API stubs) - 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.+**Purpose:** Compile-only stubs for Android hidden APIs in one module. 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.+**Entry points:** The stub matching your hidden API (verify via scoped `ls`).+**Gotchas:** Stubs are signatures only — calling one on an OS build that lacks the API crashes at runtime. Verify stub coverage against `ls` before relying on it.  ## Key files-- (Verify via scoped `ls` — card had no Key files at last review; add them when touching this module.)+- (No key files listed — verify via scoped `ls` when touching this module.)  ## Verify (this module only) ```
library/avatar/AGENTS.md
diff --git a/library/avatar/AGENTS.md b/library/avatar/AGENTS.mdindex 1452e37be4..038fd69442 100644--- a/library/avatar/AGENTS.md+++ b/library/avatar/AGENTS.md@@ -3,11 +3,10 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/avatar/` + allowed shared modules. Do not root-scan.  _Install: dev by default (library, no launcher)._-<!-- last-reviewed: 2026-10-19 --> - Gradle: :library:avatar / dir: library/avatar/ - Package roots present: `com.vayunmathur.library.avatar` (bridge), `...avatar.components` (surface/composable), `...avatar.yuu` (pose contract) - Entry files: YuuAvatarNative.kt (JNI bridge), components/YuuAvatar3D.kt (hero composable)-- Deps: :library:ui (permission-free since #884), :library:log, androidx.lifecycle.runtime.compose+- Deps: :library:ui (permission-free), :library:log, androidx.lifecycle.runtime.compose - Rust: yes (`src/main/rust/`, crate `yuu_avatar`, glTF + skinning) - Metadata: none (library, no listing) 
library/biometric/AGENTS.md
diff --git a/library/biometric/AGENTS.md b/library/biometric/AGENTS.mdindex b16611c47f..51ac6bc610 100644--- a/library/biometric/AGENTS.md+++ b/library/biometric/AGENTS.md@@ -2,11 +2,10 @@  > 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: (single-purpose crypto helper — one package) - Entry files: BiometricDatabaseHelper.kt (no MainActivity/Route — library)-- Deps: :library (permission-free; extends base's DatabaseHelper keystore, #884)+- Deps: :library (permission-free; extends base's DatabaseHelper keystore) - Metadata: metadata_data/library-biometric.md (absent — libraries have none by design) - Rust: no / screenshotTest: no 
library/carhost/AGENTS.md
diff --git a/library/carhost/AGENTS.md b/library/carhost/AGENTS.mdindex b4bc1604f6..9caf7f86e9 100644--- a/library/carhost/AGENTS.md+++ b/library/carhost/AGENTS.md@@ -2,11 +2,10 @@  > 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: :library:ui (permission-free since #884)+- Deps: :library:ui (permission-free) - Metadata: metadata_data/library-carhost.md (absent — libraries have none by design) - Rust: no / screenshotTest: no @@ -14,7 +13,7 @@ **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.+**Gotchas:** Driver-distraction templating rules apply to anything rendered here.  ## Key files - com/vayunmathur/library/carhost/CarTemplateView.kt
library/downloadservice/AGENTS.md
diff --git a/library/downloadservice/AGENTS.md b/library/downloadservice/AGENTS.mdindex 9cd088353f..c4007f00ae 100644--- a/library/downloadservice/AGENTS.md+++ b/library/downloadservice/AGENTS.md@@ -2,13 +2,12 @@  > 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: (foreground-download helpers — one package) - Entry files: InitialDownloader.kt (no MainActivity/Route — library) - Deps: :library (permission-free edge; WorkManager comes from   androidx.work directly — the `:library:work` helpers schedule that module's-  own reminders, nothing reusable here, #884)+  own reminders, nothing reusable here) - Metadata: metadata_data/library-downloadservice.md (absent — libraries have none by design) - Rust: no / screenshotTest: no 
library/e2ee-openpgp/AGENTS.md
diff --git a/library/e2ee-openpgp/AGENTS.md b/library/e2ee-openpgp/AGENTS.mdindex 46053ca553..278fabec2c 100644--- a/library/e2ee-openpgp/AGENTS.md+++ b/library/e2ee-openpgp/AGENTS.md@@ -2,7 +2,6 @@  > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/e2ee-openpgp/` + allowed shared modules. Do not root-scan. -<!-- last-reviewed: 2026-11-05 --> - Gradle: :library:e2ee-openpgp / dir: library/e2ee-openpgp/ - Package roots present: (OpenPGP primitives — `com.vayunmathur.e2ee` package, shared with `:library:e2ee-p2p` by design so the JNI entry points stay stable) - Entry files: Pgp.kt (no MainActivity/Route — library)@@ -11,7 +10,7 @@ - Rust: yes / screenshotTest: no  ## Overview-**Purpose:** OpenPGP (RFC 9580, Ed25519 primary + X25519 subkey) for SecureMail, backed by native Rust (rPGP) instead of BouncyCastle. Split out of `:library:e2ee-p2p`'s `e2ee_pqc` crate (#873): rPGP's cipher suite materially grows the `.so`, and only `:securemail` uses the PGP surface — every other e2ee-p2p consumer (office, cast, findfamily, everysync, backup, voxels, ...) links PQC only.+**Purpose:** OpenPGP (RFC 9580, Ed25519 primary + X25519 subkey) for SecureMail, backed by native Rust (rPGP) instead of BouncyCastle. Only `:securemail` uses the PGP surface — every other e2ee-p2p consumer (office, cast, findfamily, everysync, backup, voxels, ...) links PQC only, and rPGP's cipher suite materially grows the `.so`. **How to use:** `Pgp.generateIdentity` / `encrypt` / `decrypt` / `decryptVerify` / `signDetached` (`Pgp.kt`); JNI via `PgpNative` (`libe2ee_pgp.so`). Keys cross as ASCII armor; the relay wire carries raw PGP bytes. **Entry points:** `Pgp.kt` → `PgpNative.kt` (Rust bridge, `pgp_jni.rs`). **Gotchas:** Crypto changes need adversarial review. Same `com.vayunmathur.e2ee` package as `:library:e2ee-p2p` is intentional (JNI names); keep it so. Phone-app only: arm64-v8a alone, no armeabi-v7a (unlike e2ee-p2p, which `:cast:tv` needs on 32-bit Google TV hardware).
library/e2ee-p2p/AGENTS.md
diff --git a/library/e2ee-p2p/AGENTS.md b/library/e2ee-p2p/AGENTS.mdindex 08717e1150..aebcab76ca 100644--- a/library/e2ee-p2p/AGENTS.md+++ b/library/e2ee-p2p/AGENTS.md@@ -2,7 +2,6 @@  > 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: (E2EE + P2P primitives — `com.vayunmathur.e2ee` package) - Entry files: E2ee.kt + PqcIdentity.kt (no MainActivity/Route — library)@@ -24,7 +23,7 @@ - com/vayunmathur/e2ee/PqcNative.kt — Rust bridge - com/vayunmathur/e2ee/SecurityCode.kt - com/vayunmathur/e2ee/InviteFingerprint.kt-- com/vayunmathur/e2ee/Hkdf.kt — HKDF-SHA256 key derivation (moved from `:library`, #884)+- com/vayunmathur/e2ee/Hkdf.kt — HKDF-SHA256 key derivation  ## Verify (this module only) ```
library/format/AGENTS.md
diff --git a/library/format/AGENTS.md b/library/format/AGENTS.mdnew file mode 100644index 0000000000..5ad572e1d0--- /dev/null+++ b/library/format/AGENTS.md@@ -0,0 +1,18 @@+# AGENTS.md — library/format/ (':library:format')++> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/format/` + allowed shared modules. Do not root-scan.++- Gradle: :library:format / dir: library/format/+- Package: `com.vayunmathur.library.format` (single package, like :library:log)+- Entry files: RelativeAge.kt (no MainActivity/Route — base library)++## Overview+**Purpose:** Pure display formatting of relative ages: bucketing a timestamp into just-now / minutes / hours / days / older (`relativeAge`), plus the shared `"<amount>m ago"` wording (`formatRelativeAge`). Calendar dates and clock times are NOT here — they belong to `library/ui`'s `DateString`, which deliberately excludes relative time.+**How to use:** Depend on `:library:format` only from apps that format a relative age. Keep app-specific wording at the call site: labels ("now" vs "just now"), timestamp parsing, and any older-than fallback date stay in the app; the thresholds live here.+**Gotchas:** No Android/Compose/resources in the bucketing API — keep it plain-JVM testable. Do not turn this into a generic formatting bucket: byte sizes, durations, and numbers each need their own justified home or stay app-local until their cluster is migrated.++## Verify (this module only)+```+./gradlew :library:format:testDebugUnitTest+./gradlew :library:format:lint+```
library/image/AGENTS.md
diff --git a/library/image/AGENTS.md b/library/image/AGENTS.mdindex 3046006ea8..c1fcc10554 100644--- a/library/image/AGENTS.md+++ b/library/image/AGENTS.md@@ -2,11 +2,10 @@  > 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: (image loading pipeline — `image/` + `compose/`/`decoders/`/`fetchers/`/`util/` subpackages) - Entry files: ImageLoader.kt + compose/AsyncImage.kt (no MainActivity/Route — library)-- Deps: (none — permission-free by design, #884)+- Deps: (none — permission-free by design) - Network: this module loads local data only; network apps opt into HTTP(S) by   handing `ImageLoader.Builder.remote()` a fetch function they build from   `NetworkClient` — no library-to-library edge either way@@ -17,7 +16,7 @@ **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.+**Gotchas:** `coilcompat/` is a Coil compat shim, not a target for new code — new code uses this pipeline directly. Cache keys must include transformations or stale variants render.  ## Key files - com/vayunmathur/library/image/ImageLoader.kt@@ -30,7 +29,7 @@ - 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/coilcompat/CoilCompat.kt — Coil compat shim, not a target for new code - com/vayunmathur/library/image/decoders/BitmapDecoder.kt - com/vayunmathur/library/image/decoders/SvgDecoder.kt - com/vayunmathur/library/image/decoders/VideoFrameDecoder.kt
library/ink/AGENTS.md
diff --git a/library/ink/AGENTS.md b/library/ink/AGENTS.mdindex 0b8b903928..06c5375bd8 100644--- a/library/ink/AGENTS.md+++ b/library/ink/AGENTS.md@@ -2,7 +2,6 @@  > 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: (stylus-ink view + serialization — one package) - Entry files: InkCanvasView.kt (no MainActivity/Route — library)
library/locationprovider/AGENTS.md
diff --git a/library/locationprovider/AGENTS.md b/library/locationprovider/AGENTS.mdindex 71a29b768b..e35d4abfdd 100644--- a/library/locationprovider/AGENTS.md+++ b/library/locationprovider/AGENTS.md@@ -2,7 +2,6 @@  > 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: (see sources — location abstraction consumed by networklocation + apps)@@ -13,11 +12,11 @@ ## 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.+**Entry points:** Read the `provider/` sources first (add key files from `ls` when touching this module).+**Gotchas:** Verify coverage against `ls` before trusting this card.  ## Key files-- (Verify via scoped `ls` — card had no Key files at last review; add them when touching this module.)+- (No key files listed — verify via scoped `ls` when touching this module.)  ## Verify (this module only) ```
library/log/AGENTS.md
diff --git a/library/log/AGENTS.md b/library/log/AGENTS.mdindex 02bf67a62b..010b9ac4ce 100644--- a/library/log/AGENTS.md+++ b/library/log/AGENTS.md@@ -2,7 +2,6 @@  > 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)@@ -11,10 +10,10 @@ - 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.+**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 — no per-app `XxxApplication` init class is needed. **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).+**Gotchas:** An `Application` subclass doing only `Log.init` is redundant — 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`); `newErrorId()`/`errorWithId()` mint + log a short error-correlation id
library/map/AGENTS.md
diff --git a/library/map/AGENTS.md b/library/map/AGENTS.mdindex 321cedef37..4efd977387 100644--- a/library/map/AGENTS.md+++ b/library/map/AGENTS.md@@ -2,11 +2,10 @@  > 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: (vector-map renderer — one package + Rust core) - Entry files: VectorMap.kt + MapScope.kt (no MainActivity/Route — library)-- Deps: (none — no project dependencies by design, #884)+- Deps: (none — no project dependencies by design) - Network: tile range fetches reach the host app's `NetworkClient` over JNI   (`NativeHttpBridge`, resolved at runtime from the app classpath — every map   host already depends on `:library:network` directly); the live
library/media/AGENTS.md
diff --git a/library/media/AGENTS.md b/library/media/AGENTS.mdindex 6b328b1e06..d05b18c575 100644--- a/library/media/AGENTS.md+++ b/library/media/AGENTS.md@@ -2,7 +2,6 @@  > 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: (audio codecs — one package, pure Kotlin/Java) - Entry files: OpusTranscoder.kt (no MainActivity/Route — library)
library/ml/AGENTS.md
diff --git a/library/ml/AGENTS.md b/library/ml/AGENTS.mdindex 24fac75270..e6f7368697 100644--- a/library/ml/AGENTS.md+++ b/library/ml/AGENTS.md@@ -2,7 +2,6 @@  > 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: (on-device inference runtimes — one package + Rust/native bridges) - Entry files: per-model `*Handle` (no MainActivity/Route — library)
library/network/AGENTS.md
diff --git a/library/network/AGENTS.md b/library/network/AGENTS.mdindex cd8b9904e4..c54851f65f 100644--- a/library/network/AGENTS.md+++ b/library/network/AGENTS.md@@ -2,11 +2,10 @@  > 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 (+ `util` for the connectivity monitor/banner) - Entry files: NetworkClient.kt + TrustBundle.kt (no MainActivity/Route — library)-- Deps: (none — no project dependencies by design, #884)+- Deps: (none — no project dependencies by design) - Remote images: network apps build their own `Fetcher` from `NetworkClient`   and hand it to `ImageLoader.Builder.remote()` in `:library:image`; the HTTP   transport lives in the app, never in a library-to-library edge@@ -32,7 +31,7 @@ Relay host: `api.maproj.org`, covered by the `FIRST_PARTY` bundle pins (Cloudfla - com/vayunmathur/library/network/Urls.kt - com/vayunmathur/library/network/WebSocketClient.kt - com/vayunmathur/library/util/ConnectivityMonitor.kt-- com/vayunmathur/library/util/ConnectivityCompose.kt — `OfflineAware` banner (#884)+- com/vayunmathur/library/util/ConnectivityCompose.kt — `OfflineAware` banner  ## Verify (this module only) ```
library/ocr/AGENTS.md
diff --git a/library/ocr/AGENTS.md b/library/ocr/AGENTS.mdindex f98d90e7cb..42524dc4c4 100644--- a/library/ocr/AGENTS.md+++ b/library/ocr/AGENTS.md@@ -2,11 +2,10 @@  > 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: (on-device OCR — one package) - Entry files: OcrEngine.kt (no MainActivity/Route — library)-- Deps: :library:ml (both permission-free; the OCR pipeline runs on the ml runtime, #884)+- Deps: :library:ml (both permission-free; the OCR pipeline runs on the ml runtime) - Metadata: metadata_data/library-ocr.md (absent — libraries have none by design) - Rust: no / screenshotTest: no 
library/room/AGENTS.md
diff --git a/library/room/AGENTS.md b/library/room/AGENTS.mdindex 6e663236ae..fa4e1c17b6 100644--- a/library/room/AGENTS.md+++ b/library/room/AGENTS.md@@ -2,11 +2,10 @@  > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/room/` + allowed shared modules. Do not root-scan. -<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:room / dir: library/room/ - Package roots present: (pure-Kotlin Room3 + SQLCipher wiring — single package) - Entry files: RoomRepository.kt (no MainActivity/Route — library)-- Deps: :library (permission-free; SqlCipherDbCodec implements base's DbBackupCodec, #884)+- Deps: :library (permission-free; SqlCipherDbCodec implements base's DbBackupCodec) - Metadata: metadata_data/library-room.md (absent — libraries have none by design) - Rust: no / screenshotTest: no 
library/tv/AGENTS.md
diff --git a/library/tv/AGENTS.md b/library/tv/AGENTS.mdindex 6e46e554f5..4c2b561206 100644--- a/library/tv/AGENTS.md+++ b/library/tv/AGENTS.md@@ -2,7 +2,6 @@  > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/tv/` + allowed shared modules. Do not root-scan. -<!-- last-reviewed: 2026-11-21 --> - Gradle: :library:tv / dir: library/tv/ - Package roots present: (TV Compose components — one package) - Entry files: TvAppFrame.kt + TvTheme.kt (no MainActivity/Route — library)
library/ui/AGENTS.md
diff --git a/library/ui/AGENTS.md b/library/ui/AGENTS.mdindex 94bee70f5f..01234ded63 100644--- a/library/ui/AGENTS.md+++ b/library/ui/AGENTS.md@@ -2,13 +2,12 @@  > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/ui/` + allowed shared modules. Do not root-scan. -<!-- last-reviewed: 2026-10-16 --> - Gradle: :library:ui / dir: library/ui/ - Package roots present: ui - Entry files: MaActivity.kt, AppScaffold.kt, Icons.kt (no app MainActivity/Route — this is the shared shell) - Deps: :library - Network: none — offline-banner connectivity UI lives in `:library:network`-  (`util/ConnectivityCompose.kt`); network apps depend on it directly (#884)+  (`util/ConnectivityCompose.kt`); network apps depend on it directly - Metadata: metadata_data/library-ui.md (absent — libraries have none by design) - Rust: no / screenshotTest: no @@ -22,7 +21,7 @@ **Gotchas:** - One public `@Composable` per file, named as the file; closed package roots still apply inside this library - Never `imePadding()`/`navigationBarsPadding()`/`systemBarsPadding()` in this library's reusable components: the shared `Scaffold` wrapper owns IME (unconditional `contentWindowInsets ∪ ime`, consumed as `navigationBars ∪ ime` for content, so a stray inset modifier under an AppScaffold-family screen is a no-op). Exceptions that still own their insets: `bottomBar`-slot bars (`EditorBottomBar`, `BottomAppBar` — outside consumed content) and non-Scaffold overlays (`HistoryScrubberCard` — nav-bars only, suppressed with justification)-- Connectivity UI (`OfflineAware`/`rememberIsOnline`) lives in `:library:network`, not here (#884)+- Connectivity UI (`OfflineAware`/`rememberIsOnline`) lives in `:library:network`, not here - `MaFragmentActivity(autoSetContent=false)` + `showContent()` is the biometric-gate pattern (passwords, photos)  ## Key files@@ -118,7 +117,7 @@ - com/vayunmathur/library/ui/HtmlEditorControllerCore.kt - com/vayunmathur/library/ui/HtmlEditorSpans.kt - com/vayunmathur/library/ui/HtmlSerialize.kt-- com/vayunmathur/library/ui/HtmlText.kt — `scrollInternally`/`fitContentToWidth` for long untrusted mail (#900)+- com/vayunmathur/library/ui/HtmlText.kt — `scrollInternally`/`fitContentToWidth` for long untrusted mail - com/vayunmathur/library/ui/HtmlTextDocument.kt — pure document wrapper (viewport, CSP, fit CSS) - com/vayunmathur/library/ui/RichEmailSpans.kt - com/vayunmathur/library/ui/EditorFormatter.kt@@ -164,7 +163,7 @@ - com/vayunmathur/library/ui/odf/PdfExporter.kt - com/vayunmathur/library/ui/odf/LatexExporter.kt ### Connectivity-- com/vayunmathur/library/util/ConnectivityCompose.kt — offline banner (`OfflineAware`); lives in `:library:network`, not this module (#884)+- com/vayunmathur/library/util/ConnectivityCompose.kt — offline banner (`OfflineAware`); lives in `:library:network`, not this module - com/vayunmathur/library/ui/Haptics.kt  ## Verify (this module only)
library/widgets/AGENTS.md
diff --git a/library/widgets/AGENTS.md b/library/widgets/AGENTS.mdindex 32a3c0e013..7dcd63cb7a 100644--- a/library/widgets/AGENTS.md+++ b/library/widgets/AGENTS.md@@ -2,16 +2,15 @@  > 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: (Glance widget bases — one package) - Entry files: MaWidget.kt + MaWidgetReceiver.kt (no MainActivity/Route — library)-- Deps: :library (permission-free; only the Log facade is imported, #884)+- Deps: :library (permission-free; only the Log facade is imported) - Metadata: metadata_data/library-widgets.md (absent — libraries have none by design) - Rust: no / screenshotTest: no  ## 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.+**Purpose:** Shared Glance widget bases — app widgets (calculator, calendar, clock, email, weather, screentime) extend `MaWidget` + `MaWidgetReceiver`, in the same role `MaActivity` plays for app shells. **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).
library/work/AGENTS.md
diff --git a/library/work/AGENTS.md b/library/work/AGENTS.mdindex 00c400c152..ae10bb7d41 100644--- a/library/work/AGENTS.md+++ b/library/work/AGENTS.md@@ -2,11 +2,10 @@  > 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: (WorkManager helpers — one package) - Entry files: Work.kt (no MainActivity/Route — library)-- Deps: :library (permission-free; daily-reminder notification resources come from base, #884)+- Deps: :library (permission-free; daily-reminder notification resources come from base) - Metadata: metadata_data/library-work.md (absent — libraries have none by design) - Rust: no / screenshotTest: no 
lint-rules/AGENTS.md
diff --git a/lint-rules/AGENTS.md b/lint-rules/AGENTS.mdindex 107e3a650a..73854ba996 100644--- a/lint-rules/AGENTS.md+++ b/lint-rules/AGENTS.md@@ -2,7 +2,6 @@  > 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: (custom lint detectors — `com.vayunmathur.lint` package) - Entry files: ModernAppsIssueRegistry.kt (no MainActivity/Route — lint registry)
logviewer/AGENTS.md
diff --git a/logviewer/AGENTS.md b/logviewer/AGENTS.mdindex 5ec3b5416a..91c2a723a1 100644--- a/logviewer/AGENTS.md+++ b/logviewer/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `logviewer/` + allowed shared modules. Do not root-scan.  _Install: ./install logviewer (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :logviewer / dir: logviewer/ - Package roots present: ui, data, domain, platform, intents, provider - Entry files: ui/LogViewerScreen.kt + intents/LogcatActivity.kt + intents/ErrorReportActivity.kt (no MainActivity/Route — viewer surfaces, not a nav app)
madeveloper/AGENTS.md
diff --git a/madeveloper/AGENTS.md b/madeveloper/AGENTS.mdindex 510887d5a4..b8e2dc8e51 100644--- a/madeveloper/AGENTS.md+++ b/madeveloper/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `madeveloper/` + allowed shared modules. Do not root-scan.  _Install: ./install madeveloper (dev by default)._-<!-- last-reviewed: 2026-11-16 --> - Gradle: :madeveloper / dir: madeveloper/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt
maps/AGENTS.md
diff --git a/maps/AGENTS.md b/maps/AGENTS.mdindex 52e657a7c9..43c5c3b582 100644--- a/maps/AGENTS.md+++ b/maps/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `maps/` + allowed shared modules. Do not root-scan.  _Install: ./install maps (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :maps / dir: maps/ - Package roots present: ui, data, domain, platform, service, intents, util (single JNI-exception file) - Entry files: MainActivity.kt (no Route.kt — `Route` + `Navigation` are inline)
measure/AGENTS.md
diff --git a/measure/AGENTS.md b/measure/AGENTS.mdindex df9d11462f..586cd52e71 100644--- a/measure/AGENTS.md+++ b/measure/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `measure/` + allowed shared modules. Do not root-scan.  _Install: ./install measure (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :measure / dir: measure/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt
music/AGENTS.md
diff --git a/music/AGENTS.md b/music/AGENTS.mdindex e82145ad5e..7b3addb600 100644--- a/music/AGENTS.md+++ b/music/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `music/` + allowed shared modules. Do not root-scan.  _Install: ./install music (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :music / dir: music/ - Package roots present: ui, data, platform, intents, service - Entry files: MainActivity.kt, Route.kt, Navigation.kt
networklocation/AGENTS.md
diff --git a/networklocation/AGENTS.md b/networklocation/AGENTS.mdindex 7ae2c5a752..e6e4120749 100644--- a/networklocation/AGENTS.md+++ b/networklocation/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `networklocation/` + allowed shared modules. Do not root-scan.  _Install: ./install networklocation (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :networklocation / dir: networklocation/ - Package roots present: provider - Entry files: MainActivity.kt (database-setup UI) + provider/LocationProviderImpl.kt (system provider entry)@@ -16,7 +15,7 @@ _Install: ./install networklocation (dev by default)._ **Key features:** `provider/LocationProviderImpl` serves system fixes from `OfflineBeaconStore` (timed-LRU wifi/cell caches) over `NetworkLocationService`; `GeocodeService` resolves offline; `MainActivity` manages offline-DB state (`OfflineDatabases`). **Entry points:** `provider/LocationProviderImpl.kt` → `provider/OfflineBeaconStore.kt` → `NetworkLocationService.kt` → `NetworkLocationNative.kt` (Rust solver). **Gotchas:**-- `cache/`, `cell/`, `wifi/` are NOT closed package roots — pending migration; don't add more files there+- `cache/`, `cell/`, `wifi/` are NOT closed package roots — don't add more files there - System-provider registration is signature/role-gated — sideloaded builds won't serve fixes - Beacon privacy is the product — never log or upload identifiers/positions @@ -38,7 +37,7 @@ _Install: ./install networklocation (dev by default)._ - com/vayunmathur/networklocation/OfflineDatabaseSection.kt - com/vayunmathur/networklocation/PositioningData.kt - com/vayunmathur/networklocation/BeaconKeys.kt-### cache/ + cell/ + wifi/ — beacon pipeline (pending migration to closed roots)+### cache/ + cell/ + wifi/ — beacon pipeline - com/vayunmathur/networklocation/cache/BeaconCache.kt - com/vayunmathur/networklocation/cache/TimedLruCache.kt - com/vayunmathur/networklocation/cell/NearbyCells.kt
news/AGENTS.md
diff --git a/news/AGENTS.md b/news/AGENTS.mdindex f822c6b278..7a75b18eb5 100644--- a/news/AGENTS.md+++ b/news/AGENTS.md@@ -31,9 +31,10 @@ source names, sitemap keywords, downloaded bodies (`domain/NewsSearch`).   tolerant HTML DOM (`domain/HtmlDom`); reader with text size, serif/sans   (extracted-text only — no original-page WebView or open-in-browser) -## Source verification (2026-11-23, via the dev box's proxied network)-Verified = sitemap/RSS fetched 200 and parsed + one article's raw HTML-contained the full body (paragraph text measured, tail checked):+## Source verification+A source counts as verified when its sitemap/RSS fetches 200 and parses+and one article's raw HTML contains the full body (paragraph text+measured, tail checked): - BBC `bbc.com/sitemaps/https-sitemap-com-news-1.xml` — full (no paywall) - The Guardian `theguardian.com/sitemaps/news.xml` — sitemap verified;   article pages returned 403 to the datacentre verification IP (no@@ -45,7 +46,7 @@ contained the full body (paragraph text measured, tail checked):   despite meter markers; badged as metered - NPR (RSS), DW (RSS), Ars Technica (RSS), The Verge (RSS),   Hacker News (RSS) — full article HTML verified on linked articles-Excluded after verification (body absent from raw HTML or fetch blocked):+Excluded sources (body absent from raw HTML or fetch blocked): Reuters (401), AP (403), NYT (bot wall + server-side paywall), WSJ/WaPo (403), Axios (JS-only shell, no body in HTML), France 24 (403), Japan Times (sitemap URL serves HTML, not XML).
notes/AGENTS.md
diff --git a/notes/AGENTS.md b/notes/AGENTS.mdindex 5691189266..3365933763 100644--- a/notes/AGENTS.md+++ b/notes/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `notes/` + allowed shared modules. Do not root-scan.  _Install: ./install notes (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :notes / dir: notes/ - Package roots present: ui, data, domain, platform, intents, sync - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -34,7 +33,7 @@ _Install: ./install notes (dev by default)._ - com/vayunmathur/notes/data/NoteBlock.kt - com/vayunmathur/notes/data/NoteDatabase.kt - com/vayunmathur/notes/data/NotesRepository.kt-- com/vayunmathur/notes/data/NoteConverters.kt — `tags` JSON-array column (#913)+- com/vayunmathur/notes/data/NoteConverters.kt — `tags` JSON-array column ### domain/ — pure rules (no Android) - com/vayunmathur/notes/domain/NoteTags.kt — tag normalisation, rename/merge, counts, suggestions ### platform/ — ViewModel, contract, stores, export
office/AGENTS.md
diff --git a/office/AGENTS.md b/office/AGENTS.mdindex bdaa1d2d23..47b52a723f 100644--- a/office/AGENTS.md+++ b/office/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `office/` + allowed shared modules. Do not root-scan.  _Install: ./install office (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :office / dir: office/ - Package roots present: ui - Entry files: MainActivity.kt (no Route.kt — `OfficeRoute` is inline)
openassistant/AGENTS.md
diff --git a/openassistant/AGENTS.md b/openassistant/AGENTS.mdindex ff63d053c6..efb89b522f 100644--- a/openassistant/AGENTS.md+++ b/openassistant/AGENTS.md@@ -3,10 +3,9 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `openassistant/` + allowed shared modules. Do not root-scan.  _Install: ./install openassistant (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :openassistant / dir: openassistant/-- Package roots present: ui, data, domain, platform-- Entry files: MainActivity.kt (no Route.kt — `Route` + `Navigation` are inline)+- Package roots present: ui, data, domain, platform, network, service, util+- Entry files: MainActivity.kt, Route.kt, Navigation.kt - Deps: :library:room, :library:image, :library:ml, :library:downloadservice, androidx.a2ui (model + engine) - Metadata: metadata_data/openassistant.md (present) - Rust: no / screenshotTest: yes@@ -19,26 +18,28 @@ _Install: ./install openassistant (dev by default)._ - Tool calling into other Modern Apps over local IPC, with JSON-schema validation - A model-managed memory plus an editable system prompt; can be set as the device's default digital assistant (Assist API + voice interaction service) - Generative UI: replies can carry an A2UI block (cards, forms, buttons) rendered natively; button events come back to the model as user turns-**Architecture / data-flow:** `ui/LiteRTChatUi` → `util/AssistantViewModel` → `data/OpenAssistantRepository` (Room) + `util/InferenceService` → `platform/MamlChatEngine` (Gemma 4 on `:library:ml`'s `Gemma4Handle`; own tool loop, max 6 rounds) with `platform/AssistantTools` (explicit registry over `domain/AssistantToolSpecs`) dispatching IPC tool calls. Pure logic (tool-call parsing/markup stripping, tool loop, WAV decode, history fitting) lives in `domain/` with unit tests. `onCreateBeforeContent` only wires the `IntentLauncher` and picks up Assist-API screen context; `Content()` gates on the initial model download before the chat renders.-**Entry points + reading order:** `Route` (`ConversationPage(id)` / `SettingsPage`, inline) → `MainActivity.kt` → `ui/LiteRTChatUi.kt` → `util/AssistantViewModel.kt` → `util/InferenceService.kt` → `platform/MamlChatEngine.kt` → `data/OpenAssistantRepository.kt`.+**Architecture / data-flow:** `ui/LiteRTChatUi` → `platform/AssistantViewModel` → `data/OpenAssistantRepository` (Room) + `util/InferenceService` → `platform/MamlChatEngine` (Gemma 4 on `:library:ml`'s `Gemma4Handle`; own tool loop, max 6 rounds) with `platform/AssistantTools` (explicit registry over `domain/AssistantToolSpecs`) dispatching IPC tool calls. Pure logic (tool-call parsing/markup stripping, tool loop, WAV decode, history fitting) lives in `domain/` with unit tests. `onCreateBeforeContent` only wires the `IntentLauncher` and picks up Assist-API screen context; `Content()` gates on the initial model download before the chat renders.+**Entry points + reading order:** `Route` (`ConversationPage(id)` / `SettingsPage`) → `MainActivity.kt` → `ui/LiteRTChatUi.kt` → `platform/AssistantViewModel.kt` → `util/InferenceService.kt` → `platform/MamlChatEngine.kt` → `data/OpenAssistantRepository.kt`. **Gotchas:**-- Card drift fixed: `ui/` files were renamed `Assistant*` → `LiteRT*` and `util/` gained `AssistantDeviceTools`, `AssistantToolIntents`, `JsonSchemaValidator`; `Gemma4Engine`/`Gemma4EtEngine` no longer exist+- Chat UI files are `LiteRT*` in `ui/`; device tools and tool intents are in `platform/`, `JsonSchemaValidator` is in `domain/`; the engine entry is `platform/MamlChatEngine` - `MainActivity.intentLauncher` is a shared static other apps mirror (maps/taxi pattern) — keep it initialized in `onCreateBeforeContent` - `StubRecognitionService` is a placeholder voice-recognition hook, not a real recognizer - Tool names are snake_case (`get_notes`, `add_to_memory`), matching what LiteRT-LM exposed; the system prompt references them. Add a tool in `domain/AssistantToolSpecs.kt` AND `platform/AssistantTools.kt` (an init check fails if they disagree) - Model files live in `getExternalFilesDir(null)/gemma4/` (text, embed, head, vision, audio, tokenizer); the vision/audio towers load lazily and unload after 3 idle minutes-- Extra non-conforming dirs (`assist/`, `util/`) hold real code — closed-roots migration pending+- `util/` is NOT a closed package root — don't add more files there (it holds only `InferenceService`); assistant surfaces are in `service/` - A2UI: the model writes only ```` ```a2ui {"components":[...],"data":{...}} ```` and `domain/A2uiEnvelope` adds the protocol envelope. Surface id is `m<messageId>`; the block is stored in `Message.a2ui` (DB v4) and replayed by `platform/A2uiController.sync`. androidx.a2ui ships no renderer — `ui/A2uiSurfaceView` is ours. Add a component in `platform/AssistantCatalog` (schema + prompt line together) AND the `when` in `A2uiSurfaceView` - `AssistantCatalog.PROMPT_SECTION` is appended to every system prompt, so changing it (or the catalog) invalidates the baked `gemma4_prefix.kv`: still correct, but first turns prefill until it is rebaked with `bake_gemma4_prefix`  ## Key files ### Root — entry + inline navigation - com/vayunmathur/openassistant/MainActivity.kt — Route, Navigation, assist screen-context-### assist/ — system assistant surfaces-- com/vayunmathur/openassistant/assist/OpenAssistantSession.kt — Assist API screen-text capture-- com/vayunmathur/openassistant/assist/OpenAssistantSessionService.kt-- com/vayunmathur/openassistant/assist/OpenAssistantVoiceInteractionService.kt-- com/vayunmathur/openassistant/assist/StubRecognitionService.kt — placeholder recognizer hook+### service/ — system assistant surfaces+- com/vayunmathur/openassistant/service/OpenAssistantSession.kt — Assist API screen-text capture+- com/vayunmathur/openassistant/service/OpenAssistantSessionService.kt+- com/vayunmathur/openassistant/service/OpenAssistantVoiceInteractionService.kt+- com/vayunmathur/openassistant/service/StubRecognitionService.kt — placeholder recognizer hook+### network/ — web tools+- com/vayunmathur/openassistant/network/AssistantWebTools.kt ### data/ — chats + repository - com/vayunmathur/openassistant/data/Database.kt - com/vayunmathur/openassistant/data/OpenAssistantRepository.kt@@ -54,25 +55,23 @@ _Install: ./install openassistant (dev by default)._ - com/vayunmathur/openassistant/domain/ToolCalls.kt — call parsing, markup stripping, arg coercion - com/vayunmathur/openassistant/domain/ToolLoop.kt — generate/call/respond loop - com/vayunmathur/openassistant/domain/WavDecoder.kt+- com/vayunmathur/openassistant/domain/JsonSchemaValidator.kt - com/vayunmathur/openassistant/domain/HistoryFit.kt - com/vayunmathur/openassistant/domain/A2uiBlocks.kt — split/restore ```a2ui blocks, streaming-safe - com/vayunmathur/openassistant/domain/A2uiEnvelope.kt — block → A2UI protocol messages, action → user turn-- com/vayunmathur/openassistant/domain/ModelLoadFailure.kt — missing vs incomplete vs refused model load, for the error text (#917)-### platform/ — engine + tool registry+- com/vayunmathur/openassistant/domain/ModelLoadFailure.kt — missing vs incomplete vs refused model load, for the error text+### platform/ — ViewModel, engine + tool registry+- com/vayunmathur/openassistant/platform/AssistantViewModel.kt - com/vayunmathur/openassistant/platform/MamlChatEngine.kt+- com/vayunmathur/openassistant/platform/AssistantDeviceTools.kt+- com/vayunmathur/openassistant/platform/AssistantToolIntents.kt+- com/vayunmathur/openassistant/platform/AudioRecorder.kt - com/vayunmathur/openassistant/platform/AssistantTools.kt - com/vayunmathur/openassistant/platform/AssistantCatalog.kt — A2UI component catalog + its prompt section - com/vayunmathur/openassistant/platform/A2uiController.kt — owns the A2UI engine; events → user turns - com/vayunmathur/openassistant/platform/A2uiComposeState.kt — snapshot-state registry + data model-### util/ — ViewModel, inference, tools, audio (migration pending)-- com/vayunmathur/openassistant/util/AssistantViewModel.kt-- com/vayunmathur/openassistant/util/AssistantUiContract.kt+### util/ — inference service - com/vayunmathur/openassistant/util/InferenceService.kt-- com/vayunmathur/openassistant/util/AssistantToolIntents.kt-- com/vayunmathur/openassistant/util/AssistantDeviceTools.kt-- com/vayunmathur/openassistant/util/JsonSchemaValidator.kt-- com/vayunmathur/openassistant/util/AudioRecorder.kt-- com/vayunmathur/openassistant/util/AppBackupAgent.kt  ## Verify (this module only) ```
parentalcontrols/AGENTS.md
diff --git a/parentalcontrols/AGENTS.md b/parentalcontrols/AGENTS.mdindex 3e5e943414..797b34abf1 100644--- a/parentalcontrols/AGENTS.md+++ b/parentalcontrols/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `parentalcontrols/` + allowed shared modules. Do not root-scan.  _Install: ./install parentalcontrols (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :parentalcontrols / dir: parentalcontrols/ - Package roots present: ui, data, domain, platform, service, notifications, auth - Entry files: MainActivity.kt + Route.kt + Navigation.kt (single host) + ui/SetupActivity.kt and ui/PinActivities.kt (PinGateActivity, kept for lock-screen activity-result) + ui/LockActivities.kt (kept OS lock surfaces)@@ -16,7 +15,7 @@ _Install: ./install parentalcontrols (dev by default)._ **Key features:** `platform/SupervisionMaster` + `SupervisionPolicies`/`Apis`/`Caller` enforce `data/` rules + `domain/TimeWindow`; `platform/Enforcer` + `AppLimits` + `BedtimeScheduler` apply limits; `service/` supervision messengers bridge the system. **Entry points:** `MainActivity.kt` → `Navigation.kt` (`Route.Dashboard/DailyLimit/AppLimits/Bedtime/Downtime/SchoolTime/WebFilters/PinSetup/PinGate`) → `platform/SupervisionViewModel.kt`; `ui/SetupActivity.kt` hands off to the host's PinSetup route then the platform setup flow → `platform/SupervisionMaster.kt` → `data/Rules.kt`. **Gotchas:**-- `receiver/` is NOT a closed package root — pending migration; don't add more files there+- `receiver/` is NOT a closed package root — don't add more files there - Enforcement is system-mediated (supervision APIs) — sideloaded builds can't enforce; PIN loss locks parents out by design, no backdoor - Screenshot tests are off (`screenshotTest: no`) — verify lock/PIN flows on device 
passwords/AGENTS.md
diff --git a/passwords/AGENTS.md b/passwords/AGENTS.mdindex 0465481c13..4fb46424bf 100644--- a/passwords/AGENTS.md+++ b/passwords/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `passwords/` + allowed shared modules. Do not root-scan.  _Install: ./install passwords (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :passwords / dir: passwords/ - Package roots present: ui, data, domain, platform, sync - Entry files: MainActivity.kt, Route.kt, Navigation.kt
pdf/AGENTS.md
diff --git a/pdf/AGENTS.md b/pdf/AGENTS.mdindex cafdf5b9ea..67dd259ae6 100644--- a/pdf/AGENTS.md+++ b/pdf/AGENTS.md@@ -3,9 +3,8 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `pdf/` + allowed shared modules. Do not root-scan.  _Install: ./install pdf (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :pdf / dir: pdf/-- Package roots present: ui+- Package roots present: ui, data, platform, util - Entry files: MainActivity.kt, Route.kt, Navigation.kt (Route host; see Navigation.kt) - Deps: :library:image, :library:ocr - Metadata: metadata_data/pdf.md (present)@@ -17,20 +16,20 @@ _Install: ./install pdf (dev by default)._ - Full viewer: text search, text selection, form fields, outlines, zoom state, print via share menu; several documents open as separate Recents entries - Capture mode: photograph pages with auto-framing, crop, and compose them into a PDF; cut-and-glue screen for assembling pages - Native Rust PDF engine (`PdfNative`) for parsing, rendering, and export-**Architecture / data-flow:** `MainActivity` hosts `Navigation.kt` (`Route.Home/Viewer/Capture/CapturePage/Crop/CutGlue`) over a single `util/PdfViewModel` + `util/PdfStateStore`, with `SafePdf*` utils wrapping the Rust engine for document access, page rendering, and edits; capture flows through `model/CapturedImage` → `AutoFrameDetector` → `ComposePdfDocument` → `PdfExporter`. `onCreateBeforeContent` only captures the launch intent's data URI; `Content()` picks viewer vs capture vs cut-glue vs picker.-**Entry points + reading order:** `MainActivity.kt` + `Route.kt` + `Navigation.kt` (`InitialScreen` → viewer/capture/cut-glue) → `ui/SafePdfViewerScreen.kt` → `util/PdfViewModel.kt` → `util/SafePdfDocument.kt` → `util/SafePdfParser.kt`.+**Architecture / data-flow:** `MainActivity` hosts `Navigation.kt` (`Route.Home/Viewer/Capture/CapturePage/Crop/CutGlue`) over a single `platform/PdfViewModel` + `platform/PdfStateStore`, with `SafePdf*` platform wrappers around the Rust engine for document access, page rendering, and edits; capture flows through `data/CapturedImage` → `AutoFrameDetector` → `ComposePdfDocument` → `PdfExporter`. `onCreateBeforeContent` only captures the launch intent's data URI; `Content()` picks viewer vs capture vs cut-glue vs picker.+**Entry points + reading order:** `MainActivity.kt` + `Route.kt` + `Navigation.kt` (`InitialScreen` → viewer/capture/cut-glue) → `ui/SafePdfViewerScreen.kt` → `platform/PdfViewModel.kt` → `platform/SafePdfDocument.kt` → `platform/SafePdfParser.kt`. **Gotchas:** - Started-with-intent launches `finish()` on back instead of returning to the picker; in-app launches reset to the picker-- Card drift fixed: `util/` gained `FrameGeometry`, `FrameImageOps`, `SafePdfDocumentEdits`, `SafePdfPrimitives`; `ui/` is `SafePdf*` + capture/crop/cut-glue screens (no separate `domain/` or `platform/`)-- Extra non-conforming dirs (`model/`, `util/`) hold real code — closed-roots migration pending+- Document, frame, and edit code (`FrameGeometry`, `FrameImageOps`, `SafePdfDocumentEdits`, `SafePdfPrimitives`, the `SafePdf*` wrappers) is in `platform/`; `ui/` is `SafePdf*` + capture/crop/cut-glue screens; there is no `domain/` root+- `util/` holds only `PdfNative` (the Rust engine bridge) — don't add more files there; the capture model is in `data/`  ## Key files ### Root — entry + navigation - com/vayunmathur/pdf/MainActivity.kt — host, intent → Route.Viewer routing - com/vayunmathur/pdf/Route.kt — Home/Viewer(uri)/Capture/CapturePage(index)/Crop(index)/CutGlue - com/vayunmathur/pdf/Navigation.kt — MainNavigation host-### model/ — capture model-- com/vayunmathur/pdf/model/CapturedImage.kt+### data/ — capture model+- com/vayunmathur/pdf/data/CapturedImage.kt ### ui/ — viewer chrome + state - com/vayunmathur/pdf/ui/SafePdfViewerScreen.kt - com/vayunmathur/pdf/ui/SafePdfViewerState.kt@@ -70,22 +69,23 @@ _Install: ./install pdf (dev by default)._ - com/vayunmathur/pdf/ui/CutGlueScreen.kt - com/vayunmathur/pdf/ui/components/CameraPreview.kt - com/vayunmathur/pdf/ui/components/SubcroppedImage.kt-### util/ — ViewModel, engine bridge, capture pipeline (migration pending)-- com/vayunmathur/pdf/util/PdfViewModel.kt-- com/vayunmathur/pdf/util/PdfStateStore.kt+### platform/ — ViewModel, engine wrappers, capture pipeline+- com/vayunmathur/pdf/platform/PdfViewModel.kt+- com/vayunmathur/pdf/platform/PdfStateStore.kt+- com/vayunmathur/pdf/platform/SafePdfDocument.kt+- com/vayunmathur/pdf/platform/SafePdfDocumentEdits.kt+- com/vayunmathur/pdf/platform/SafePdfParser.kt+- com/vayunmathur/pdf/platform/SafePdfModels.kt+- com/vayunmathur/pdf/platform/SafePdfPrimitives.kt+- com/vayunmathur/pdf/platform/SafePdfImages.kt+- com/vayunmathur/pdf/platform/SafePdfListings.kt+- com/vayunmathur/pdf/platform/AutoFrameDetector.kt+- com/vayunmathur/pdf/platform/FrameGeometry.kt+- com/vayunmathur/pdf/platform/FrameImageOps.kt+- com/vayunmathur/pdf/platform/ComposePdfDocument.kt+- com/vayunmathur/pdf/platform/PdfExporter.kt+### util/ — Rust engine bridge - com/vayunmathur/pdf/util/PdfNative.kt — Rust engine bridge-- com/vayunmathur/pdf/util/SafePdfDocument.kt-- com/vayunmathur/pdf/util/SafePdfDocumentEdits.kt-- com/vayunmathur/pdf/util/SafePdfParser.kt-- com/vayunmathur/pdf/util/SafePdfModels.kt-- com/vayunmathur/pdf/util/SafePdfPrimitives.kt-- com/vayunmathur/pdf/util/SafePdfImages.kt-- com/vayunmathur/pdf/util/SafePdfListings.kt-- com/vayunmathur/pdf/util/AutoFrameDetector.kt-- com/vayunmathur/pdf/util/FrameGeometry.kt-- com/vayunmathur/pdf/util/FrameImageOps.kt-- com/vayunmathur/pdf/util/ComposePdfDocument.kt-- com/vayunmathur/pdf/util/PdfExporter.kt  ## Verify (this module only) ```
photos/AGENTS.md
diff --git a/photos/AGENTS.md b/photos/AGENTS.mdindex a7f083e68d..ef4025e51d 100644--- a/photos/AGENTS.md+++ b/photos/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `photos/` + allowed shared modules. Do not root-scan.  _Install: ./install photos (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :photos / dir: photos/ - Package roots present: ui, data, domain, platform, service, widget - Entry files: MainActivity.kt (no Route.kt — `Route` + `Navigation` are inline)
screentime/AGENTS.md
diff --git a/screentime/AGENTS.md b/screentime/AGENTS.mdindex 9f6e1960c8..0a6e580c99 100644--- a/screentime/AGENTS.md+++ b/screentime/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `screentime/` + allowed shared modules. Do not root-scan.  _Install: ./install screentime (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :screentime / dir: screentime/ - Package roots present: ui, data, domain, platform, service, widget, notifications - Entry files: MainActivity.kt + Route.kt + Navigation.kt (single host; FrictionActivity stays a system-triggered activity)@@ -16,7 +15,7 @@ _Install: ./install screentime (dev by default)._ **Key features:** `platform/UsageHistory` + `domain/HourBuckets` feed dashboard/charts; `AppTimers`/`Suspender`/`Coordinator` enforce limits; `WindDownApplier` + `WindowScheduler` run bedtime; widget mirrors the dashboard. **Entry points:** `MainActivity.kt` → `Navigation.kt` (`Route.Dashboard/AppDetails(packageName)/WindDown`) → `ui/DashboardScreen.kt` → `platform/ScreenTimeViewModel.kt` → `platform/Coordinator.kt` → `data/Rules.kt`. **Gotchas:**-- `receiver/` is NOT a closed package root — pending migration; don't add more files there+- `receiver/` is NOT a closed package root — don't add more files there - Usage access is a special grant — behavior without it is an empty dashboard, not an error; handle gracefully - Screenshot tests are off (`screenshotTest: no`) — verify timers/pause flows on device 
sdk/cast/AGENTS.md
diff --git a/sdk/cast/AGENTS.md b/sdk/cast/AGENTS.mdindex 4e49a4df57..6b8652f838 100644--- a/sdk/cast/AGENTS.md+++ b/sdk/cast/AGENTS.md@@ -2,7 +2,6 @@  > 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: (public cast SDK — one package) - Entry files: CastClient.kt + CastContract.kt (no MainActivity/Route — SDK)
sdk/controller/AGENTS.md
diff --git a/sdk/controller/AGENTS.md b/sdk/controller/AGENTS.mdindex e202f12b0c..e08740f62f 100644--- a/sdk/controller/AGENTS.md+++ b/sdk/controller/AGENTS.md@@ -2,12 +2,11 @@  > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `sdk/controller/` + allowed shared modules. Do not root-scan. -<!-- last-reviewed: 2026-10-17 --> - Gradle: :sdk:controller / dir: sdk/controller/ - Package roots present: (public controller SDK — one package) - Entry files: ControllerContract.kt + ControllerModels.kt (no MainActivity/Route — SDK) - Deps: :library:e2ee-p2p (Hkdf key schedule + E2ee AES-GCM; PQC sealing stays in the hosting app)-- UI: none — headless by design. The Compose pad screen lives in the hosting app (`:games:hub` `ui/screens/ControllerPad.kt`, #884)+- UI: none — headless by design. The Compose pad screen lives in the hosting app (`:games:hub` `ui/screens/ControllerPad.kt`) - Metadata: metadata_data/sdk-controller.md (absent — SDKs have none by design) - Rust: no / screenshotTest: no 
sdk/games/AGENTS.md
diff --git a/sdk/games/AGENTS.md b/sdk/games/AGENTS.mdindex 9eae9b7d93..fbe9d86865 100644--- a/sdk/games/AGENTS.md+++ b/sdk/games/AGENTS.md@@ -2,7 +2,6 @@  > 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: (public games SDK — one package) - Entry files: GameHubClient.kt + GameHubContract.kt (no MainActivity/Route — SDK)
sdk/openassistant/AGENTS.md
diff --git a/sdk/openassistant/AGENTS.md b/sdk/openassistant/AGENTS.mdindex 9de17a77ea..70d2ef6d4b 100644--- a/sdk/openassistant/AGENTS.md+++ b/sdk/openassistant/AGENTS.md@@ -2,11 +2,10 @@  > 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: (public assistant SDK — one package) - Entry files: OpenAssistant.kt (no MainActivity/Route — SDK)-- Deps: (none — SecureResultReceiver is owned by this module, #884)+- Deps: (none — SecureResultReceiver is owned by this module) - Metadata: metadata_data/sdk-openassistant.md (absent — SDKs have none by design) - Rust: no / screenshotTest: no 
securemail/AGENTS.md
diff --git a/securemail/AGENTS.md b/securemail/AGENTS.mdindex 0a2681bf39..68891d319f 100644--- a/securemail/AGENTS.md+++ b/securemail/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `securemail/` + allowed shared modules. Do not root-scan.  _Install: ./install securemail (dev by default)._-<!-- last-reviewed: 2026-11-21 --> - Gradle: :securemail / dir: securemail/ - Package roots present: ui, data, domain, platform, network, service - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -22,7 +21,7 @@ _Install: ./install securemail (dev by default)._ **Gotchas:** - `NetworkClient.init(this, TrustBundle.FIRST_PARTY)` must stay first in `onCreateBeforeContent` — `mail.maemail.org` is a pinned first-party host; WKD/VKS lookups for arbitrary external domains ride the platform trust store instead. - `MainActivity` is a `MaFragmentActivity` with `autoSetContent = false`: composition is deferred until `unlockIfReady` succeeds — don't set content before the key gate.-- `:library:e2ee-openpgp` was split out of `:library:e2ee-p2p` so non-mail apps don't link rPGP (#873); securemail is its only consumer — keep the PGP surface here, not in shared code.+- `:library:e2ee-openpgp` provides the PGP surface and securemail is its only consumer, so non-mail apps don't link rPGP — keep the PGP surface here, not in shared code. - `data/MailConfig` is the prefs owner (address token + onboarded flag, non-secret fields only, one process-wide DataStore); secrets live only in `platform/crypto/KeyManager`'s Keystore-wrapped prefs — never add secrets to `MailConfig`. - `MailSocketService` owns the live socket lifetime; `MailSyncWorker` is only a backstop poll — don't move delivery onto the worker. 
setupwizard/AGENTS.md
diff --git a/setupwizard/AGENTS.md b/setupwizard/AGENTS.mdindex cfbc521257..07cf6d2e69 100644--- a/setupwizard/AGENTS.md+++ b/setupwizard/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `setupwizard/` + allowed shared modules. Do not root-scan.  _Install: ./install setupwizard (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :setupwizard / dir: setupwizard/ - Package roots present: ui, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt
share/AGENTS.md
diff --git a/share/AGENTS.md b/share/AGENTS.mdindex 9858063f8e..fc648e9c55 100644--- a/share/AGENTS.md+++ b/share/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `share/` + allowed shared modules. Do not root-scan.  _Install: ./install share (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :share / dir: share/ - Package roots present: ui, domain, platform, network - Entry files: MainActivity.kt, Route.kt, Navigation.kt + SharePopupActivity.kt (share-sheet entry)@@ -20,7 +19,7 @@ _Install: ./install share (dev by default)._ **Architecture / data-flow:** Send: share intent → popup → `ShareViewModel` → discovery managers → `ShareTransferService` → `TcpTransport`. Receive: tile/boot → `ShareReceiveController` → `PostGate` → notifier → `ShareSaveActivity`. `domain/protocol/ShareSession` models the handshake; `protocol/ShareNative` is the Rust JNI bridge. **Entry points + reading order:** `SharePopupActivity.kt` (send) / `platform/receive/ShareReceiveController.kt` (receive) → `Route` → `Navigation.kt` → `platform/ShareViewModel.kt` → `domain/protocol/ShareSession.kt`. **Gotchas:**-- `protocol/` is NOT a closed package root — pending migration; don't add more files there+- `protocol/` is NOT a closed package root — don't add more files there - Protocol interop with stock Android is version-sensitive — changes need cross-device testing, not just unit tests - Receive path must work with the app closed; never assume an Activity context there @@ -50,7 +49,7 @@ _Install: ./install share (dev by default)._ - com/vayunmathur/share/platform/receive/ShareBootReceiver.kt - com/vayunmathur/share/platform/receive/ShareReceiveTileService.kt - com/vayunmathur/share/platform/transfer/ShareTransferService.kt-### protocol/ — Rust bridge (pending migration to closed roots)+### protocol/ — Rust bridge - com/vayunmathur/share/protocol/ShareNative.kt ### ui/ — popup sheet + send screen - com/vayunmathur/share/ui/SharePopupSheet.kt
shop/AGENTS.md
diff --git a/shop/AGENTS.md b/shop/AGENTS.mdindex a62b901154..0754c34501 100644--- a/shop/AGENTS.md+++ b/shop/AGENTS.md@@ -8,7 +8,7 @@ Entry types: MainActivity, Route, Navigation. Navigation remains a root-only gra - All merchant traffic goes through the first-party proxy (`api.maproj.org/shop/v1/*`); the device never speaks UCP directly and never fetches merchant hosts (product images arrive as proxied `/shop/v1/image?url=` URLs). - The `network/` package holds only the thin `ShopBackend` interface + DTOs over `library:network`. Dated discovery, REST/MCP transport, versioning, SSRF guards, wire limits, and the idempotency ledger live server-side. - Anonymous catalog and checkout preparation using supported UCP 2026-08-25 and 2026-04-08 profiles, resolved server-side. The server selects one complete advertised profile and exact capability/service versions; it never merges releases.-- Server error codes mirror the former client `UcpError` (`transport | rate_limited | http | malformed | rpc | unsupported | uncertain`, plus `retryAfterMs`): `unsupported` routes to the merchant website, anything else on a write is uncertain and never auto-retried on either side.+- Server error codes mirror the client `UcpError` (`transport | rate_limited | http | malformed | rpc | unsupported | uncertain`, plus `retryAfterMs`): `unsupported` routes to the merchant website, anything else on a write is uncertain and never auto-retried on either side. - Every search is a full search: the server embeds directory merchants (name + description), picks the few closest to the query, and searches them alongside the Global Catalog. There is no merchant directory tab or domain field; a merchant-scoped search only comes from an opened merchant link and is dismissible. - Directory merchant links open in the app via an unverified intent-filter generated into `AndroidManifest.xml` by `scripts/shop/generate_merchant_links.py` (rerun per release). Product URLs (`/products/<handle>`) open the product; other URLs open a scoped search. A one-time card sends the user to "Open by default" to approve the hosts. - The buyer profile (first name, last name, email, phone required; delivery address optional) is stored only in the module's SQLCipher Room database (`ProfileRepository`). The app is locked behind the profile form until the required fields validate; the Profile tab edits it.
speech/AGENTS.md
diff --git a/speech/AGENTS.md b/speech/AGENTS.mdindex e2bba6c8a5..4fdca90c72 100644--- a/speech/AGENTS.md+++ b/speech/AGENTS.md@@ -3,7 +3,6 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `speech/` + allowed shared modules. Do not root-scan.  _Install: ./install speech (dev by default)._-<!-- last-reviewed: 2026-10-16 --> - Gradle: :speech / dir: speech/ - Package roots present: domain, platform, service - Entry files: MainActivity.kt (demo/settings UI) + service/WhisperRecognitionService.kt + service/SupertonicTtsService.kt (system service entries)@@ -20,7 +19,7 @@ _Install: ./install speech (dev by default)._ **Architecture / data-flow:** System binds `service/` endpoints → `util/WhisperEngine` (+ features/tokenizer/model) or `platform/SupertonicEngine` (+ `SupertonicModel`) → `:library:ml` GPU runtime; large assets ship bundled (`:library:downloadservice` only for updates/verification paths). **Entry points + reading order:** `service/WhisperRecognitionService.kt` / `service/SupertonicTtsService.kt` → `util/WhisperEngine.kt` / `platform/SupertonicEngine.kt` → `domain/SupertonicVoices.kt` → `MainActivity.kt` (demo UI). **Gotchas:**-- `tts/` and `util/` are NOT closed package roots — pending migration; don't add more files there+- `tts/` and `util/` are NOT closed package roots — don't add more files there - Model files are large — asset/download changes need size + first-install testing, not just unit tests - System-service contracts (recognition/TTS callbacks) are version-sensitive; keep the service surface stable @@ -28,7 +27,7 @@ _Install: ./install speech (dev by default)._ ### service/ — system entries (the product) - com/vayunmathur/speech/service/WhisperRecognitionService.kt - com/vayunmathur/speech/service/SupertonicTtsService.kt-### util/ — Whisper stack (pending migration to closed roots)+### util/ — Whisper stack - com/vayunmathur/speech/util/WhisperEngine.kt - com/vayunmathur/speech/util/WhisperModel.kt - com/vayunmathur/speech/util/WhisperFeatures.kt@@ -38,7 +37,7 @@ _Install: ./install speech (dev by default)._ - com/vayunmathur/speech/platform/SupertonicEngine.kt - com/vayunmathur/speech/platform/SupertonicModel.kt - com/vayunmathur/speech/domain/SupertonicVoices.kt-### tts/ — voice-data check (pending migration to closed roots)+### tts/ — voice-data check - com/vayunmathur/speech/tts/CheckVoiceDataActivity.kt ### Root — demo UI only - com/vayunmathur/speech/MainActivity.kt
taxi/AGENTS.md
diff --git a/taxi/AGENTS.md b/taxi/AGENTS.mdindex ec385e4ee2..5bc7

Diff truncated.