docs-agent-overviews-phase-C2
- Commit
d7304a0f5fef47ed978cf0cfb61fc05b3ca0f9dd- Author
- vayun-mathur <[email protected]>
- When
- 2026-10-16 04:03 UTC (1 month ago)
- Parents
581635f
Diff
astronomy/AGENTS.md
diff --git a/astronomy/AGENTS.md b/astronomy/AGENTS.mdindex 9757b8e1c8..d68d890ba4 100644--- a/astronomy/AGENTS.md+++ b/astronomy/AGENTS.md@@ -3,41 +3,51 @@ > 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-- Deps: +- Deps: (none declared — bundled catalogs, Rust ephemeris) - Metadata: metadata_data/astronomy.md (present) - Rust: yes / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline AR night-sky viewer — sensor-tracked sky map, camera passthrough, time scrubber, bundled star/planet catalogs, rise/set search. 100% offline.+**Key features:** `ui/SkyCanvas` + grid/art layers over `domain/projection/` (stereographic) fed by `domain/engine/` calculators (solar/lunar/planetary/rise-set/time) with a Rust core (`domain/AstronomyNative`); catalogs in `data/` validated at build time by `scripts/` generators.+**Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/SkyMapPage.kt` → `platform/AstronomyViewModel.kt` → `domain/engine/TimeEngine.kt`.+**Gotchas:** Catalog data is generated (`scripts/` DB generators) — never hand-edit; sensor + location drive the sky, test with movement, not static. +## Key files+### Root — entry + navigation - com/vayunmathur/astronomy/MainActivity.kt - com/vayunmathur/astronomy/Navigation.kt - com/vayunmathur/astronomy/Route.kt+### data/ — bundled catalogs - com/vayunmathur/astronomy/data/CatalogRepository.kt - com/vayunmathur/astronomy/data/model/Models.kt-- com/vayunmathur/astronomy/domain/AstronomyNative.kt+### domain/ — ephemeris + projection (Rust core + Kotlin math)+- com/vayunmathur/astronomy/domain/AstronomyNative.kt — Rust bridge+- com/vayunmathur/astronomy/domain/engine/TimeEngine.kt - com/vayunmathur/astronomy/domain/engine/CoordinateTransforms.kt+- com/vayunmathur/astronomy/domain/engine/SolarCalculator.kt - com/vayunmathur/astronomy/domain/engine/LunarCalculator.kt - com/vayunmathur/astronomy/domain/engine/PlanetaryCalculator.kt - com/vayunmathur/astronomy/domain/engine/RiseSetCalculator.kt-- com/vayunmathur/astronomy/domain/engine/SolarCalculator.kt-- com/vayunmathur/astronomy/domain/engine/TimeEngine.kt - com/vayunmathur/astronomy/domain/projection/SkyProjection.kt - com/vayunmathur/astronomy/domain/projection/StereographicProjection.kt - com/vayunmathur/astronomy/domain/projection/ViewState.kt-- com/vayunmathur/astronomy/platform/AstronomyUiContract.kt+### platform/ — ViewModel + location - com/vayunmathur/astronomy/platform/AstronomyViewModel.kt+- com/vayunmathur/astronomy/platform/AstronomyUiContract.kt - com/vayunmathur/astronomy/platform/sensor/LocationProvider.kt+### ui/ — sky map + detail + search+- com/vayunmathur/astronomy/ui/SkyMapPage.kt+- com/vayunmathur/astronomy/ui/SkyCanvas.kt+- com/vayunmathur/astronomy/ui/SkyGrid.kt+- com/vayunmathur/astronomy/ui/SkyArt.kt - com/vayunmathur/astronomy/ui/ObjectDetailPage.kt - com/vayunmathur/astronomy/ui/SearchPage.kt - com/vayunmathur/astronomy/ui/SettingsPage.kt-- com/vayunmathur/astronomy/ui/SkyArt.kt-- com/vayunmathur/astronomy/ui/SkyCanvas.kt-- com/vayunmathur/astronomy/ui/SkyGrid.kt-- com/vayunmathur/astronomy/ui/SkyMapPage.kt - com/vayunmathur/astronomy/ui/components/CameraBackground.kt ## Verify (this module only)@@ -46,5 +56,3 @@ _Install: ./install astronomy (dev by default)._ ./gradlew :astronomy:lint ./gradlew :astronomy:checkMetadata ```--
education/AGENTS.md
diff --git a/education/AGENTS.md b/education/AGENTS.mdindex 5347f40245..1c230d867e 100644--- a/education/AGENTS.md+++ b/education/AGENTS.md@@ -3,54 +3,67 @@ > 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+- Entry files: MainActivity.kt + EducationApplication.kt (no Route.kt — shell + course/unit/lesson/quiz flow) - Deps: :library:room, :youpipe:extractor, :library:network - Metadata: metadata_data/education.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Kids' learning app — age-banded K2 + explorer curriculum (lessons, quizzes, tracing, drag-match) with badges/streaks, parent gate, offline progress; video lessons stream via `:youpipe:extractor`.+**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+- 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) +## Key files+### 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) - com/vayunmathur/education/content/ContentModel.kt - com/vayunmathur/education/content/ContentRepository.kt - com/vayunmathur/education/content/ContentValidator.kt - com/vayunmathur/education/content/Question.kt-- com/vayunmathur/education/data/Deadline.kt+### data/ — learner progress (Room) - com/vayunmathur/education/data/EducationDatabase.kt - com/vayunmathur/education/data/EducationRepository.kt - com/vayunmathur/education/data/Learner.kt - com/vayunmathur/education/data/SkillProgress.kt-- com/vayunmathur/education/ui/BadgesPage.kt-- com/vayunmathur/education/ui/Common.kt+- com/vayunmathur/education/data/Deadline.kt+### util/ — ViewModel + helpers (pending migration to closed roots)+- com/vayunmathur/education/util/EducationViewModel.kt+- com/vayunmathur/education/util/EducationUiContract.kt+- com/vayunmathur/education/util/EducationDownloader.kt+- com/vayunmathur/education/util/EducationAchievements.kt+- com/vayunmathur/education/util/Narrator.kt+- com/vayunmathur/education/util/VideoExtractor.kt+### ui/ — shell, courses, K2, quizzes, video, parents+- com/vayunmathur/education/ui/Shell.kt+- com/vayunmathur/education/ui/HomePage.kt - com/vayunmathur/education/ui/CoursePage.kt-- com/vayunmathur/education/ui/ExplorerCoursePage.kt+- com/vayunmathur/education/ui/UnitPage.kt+- com/vayunmathur/education/ui/LessonPage.kt+- com/vayunmathur/education/ui/QuizPage.kt+- com/vayunmathur/education/ui/QuizQuestionInputs.kt+- com/vayunmathur/education/ui/ResultsPage.kt - com/vayunmathur/education/ui/ExplorerHomePage.kt-- com/vayunmathur/education/ui/HomePage.kt-- com/vayunmathur/education/ui/K2DragMatch.kt+- com/vayunmathur/education/ui/ExplorerCoursePage.kt - com/vayunmathur/education/ui/K2HomePage.kt - com/vayunmathur/education/ui/K2LessonPage.kt - com/vayunmathur/education/ui/K2QuizPage.kt - com/vayunmathur/education/ui/K2RewardPage.kt-- com/vayunmathur/education/ui/LessonPage.kt-- com/vayunmathur/education/ui/ParentGatePage.kt-- com/vayunmathur/education/ui/ParentPage.kt-- com/vayunmathur/education/ui/QuizPage.kt-- com/vayunmathur/education/ui/QuizQuestionInputs.kt-- com/vayunmathur/education/ui/ResultsPage.kt-- com/vayunmathur/education/ui/Shell.kt+- com/vayunmathur/education/ui/K2DragMatch.kt - com/vayunmathur/education/ui/TracingCanvas.kt-- com/vayunmathur/education/ui/UnitPage.kt - com/vayunmathur/education/ui/VideoPlayerPage.kt-- com/vayunmathur/education/util/EducationAchievements.kt-- com/vayunmathur/education/util/EducationDownloader.kt-- com/vayunmathur/education/util/EducationUiContract.kt-- com/vayunmathur/education/util/EducationViewModel.kt-- com/vayunmathur/education/util/Narrator.kt-- com/vayunmathur/education/util/VideoExtractor.kt+- com/vayunmathur/education/ui/BadgesPage.kt+- com/vayunmathur/education/ui/ParentPage.kt+- com/vayunmathur/education/ui/ParentGatePage.kt+- com/vayunmathur/education/ui/Common.kt ## Verify (this module only) ```@@ -58,5 +71,3 @@ _Install: ./install education (dev by default)._ ./gradlew :education:lint ./gradlew :education:checkMetadata ```--
emergency/AGENTS.md
diff --git a/emergency/AGENTS.md b/emergency/AGENTS.mdindex 74bb92af01..2069ea1254 100644--- a/emergency/AGENTS.md+++ b/emergency/AGENTS.md@@ -3,39 +3,51 @@ > 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: -- Deps: +- Entry files: ui/SosScreen.kt + ui/ViewInfoScreen.kt (no MainActivity/Route — system SOS surfaces, not a nav app)+- Deps: (none declared) - Metadata: metadata_data/emergency.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** OS emergency surfaces — lockscreen medical info (Health Connect allergies/meds), emergency contacts, SOS countdown with slide-cancel + warning sound. 100% offline.+**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:** `ui/SosScreen.kt` / `ui/ViewInfoScreen.kt` → `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+- 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 -- com/vayunmathur/emergency/data/EmergencyInfo.kt+## Key files+### ui/ — SOS + info surfaces (the entries)+- com/vayunmathur/emergency/ui/SosScreen.kt+- com/vayunmathur/emergency/ui/ViewInfoScreen.kt+- com/vayunmathur/emergency/ui/EditInfoScreen.kt+- com/vayunmathur/emergency/ui/OwnerAddressDialog.kt+- com/vayunmathur/emergency/ui/PermissionsRationaleActivity.kt+### data/ + domain/ — info + FHIR parsing - com/vayunmathur/emergency/data/EmergencyRepository.kt+- com/vayunmathur/emergency/data/EmergencyInfo.kt - com/vayunmathur/emergency/data/ImportedMedical.kt - com/vayunmathur/emergency/domain/FhirMedicalParse.kt - com/vayunmathur/emergency/domain/OwnerPostalFormat.kt-- com/vayunmathur/emergency/notifications/SosNotifications.kt-- com/vayunmathur/emergency/platform/ContactReader.kt-- com/vayunmathur/emergency/platform/EmergencyNumberLookup.kt-- com/vayunmathur/emergency/platform/EmergencySearchIndexablesProvider.kt-- com/vayunmathur/emergency/platform/EmergencyUiContract.kt+### platform/ — coordinator, lookup, gesture+- com/vayunmathur/emergency/platform/SosCoordinator.kt - com/vayunmathur/emergency/platform/EmergencyViewModel.kt+- com/vayunmathur/emergency/platform/EmergencyUiContract.kt+- com/vayunmathur/emergency/platform/EmergencyNumberLookup.kt - com/vayunmathur/emergency/platform/GestureProvider.kt-- com/vayunmathur/emergency/platform/HealthConnectMedical.kt+- com/vayunmathur/emergency/platform/ContactReader.kt - com/vayunmathur/emergency/platform/OwnerIdentityReader.kt-- com/vayunmathur/emergency/platform/SosCoordinator.kt+- com/vayunmathur/emergency/platform/HealthConnectMedical.kt - com/vayunmathur/emergency/platform/SosSound.kt+- com/vayunmathur/emergency/platform/EmergencySearchIndexablesProvider.kt+### receiver/ + service/ + notifications/ — countdown pipeline - com/vayunmathur/emergency/receiver/SosActionReceiver.kt - com/vayunmathur/emergency/service/SosCountdownService.kt-- com/vayunmathur/emergency/ui/EditInfoScreen.kt-- com/vayunmathur/emergency/ui/OwnerAddressDialog.kt-- com/vayunmathur/emergency/ui/PermissionsRationaleActivity.kt-- com/vayunmathur/emergency/ui/SosScreen.kt-- com/vayunmathur/emergency/ui/ViewInfoScreen.kt+- com/vayunmathur/emergency/notifications/SosNotifications.kt ## Verify (this module only) ```@@ -43,5 +55,3 @@ _Install: ./install emergency (dev by default)._ ./gradlew :emergency:lint ./gradlew :emergency:checkMetadata ```--
euicc/AGENTS.md
diff --git a/euicc/AGENTS.md b/euicc/AGENTS.mdindex b5968d3ba2..177ef61b70 100644--- a/euicc/AGENTS.md+++ b/euicc/AGENTS.md@@ -3,41 +3,50 @@ > 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+- Entry files: Route.kt, Navigation.kt + platform/LuiActivity.kt (LPA UI entry; no MainActivity) - Deps: :library:aosp-stubs, :library:network - Metadata: metadata_data/euicc.md (present) - Rust: yes / screenshotTest: yes -## Key files+## Overview+**Purpose:** Privileged eSIM manager (LPA) — list/enable/disable/delete/rename profiles, QR/activation-code downloads (SGP.22 ES9+), EID info, pending notifications. Protocol core in Rust; internet only for carrier downloads.+**Key features:** `ui/` home/download/detail/QR screens → `platform/EuiccViewModel` → `service/EuiccManagerService` → `telephony/EuiccChannelManager` → `EuiccNative` Rust bridge; carrier confirmations in `ui/download/`.+**Entry points:** `Route` → `Navigation.kt` → `platform/LuiActivity.kt` → `ui/EuiccHomeScreen.kt` → `platform/EuiccViewModel.kt` → `service/EuiccManagerService.kt`.+**Gotchas:** eUICC access is privileged hardware access — sideloaded builds can't manage profiles; profile deletion is destructive, gate it behind confirmation. -- com/vayunmathur/euicc/EuiccNative.kt+## Key files+### Root — navigation + Rust bridge (no MainActivity) - com/vayunmathur/euicc/Navigation.kt - com/vayunmathur/euicc/Route.kt+- com/vayunmathur/euicc/EuiccNative.kt — SGP.22 Rust bridge+### data/ — profiles + notifications+- com/vayunmathur/euicc/data/Profile.kt - com/vayunmathur/euicc/data/EuiccInfo.kt - com/vayunmathur/euicc/data/Notification.kt-- com/vayunmathur/euicc/data/Profile.kt-- com/vayunmathur/euicc/platform/DownloadState.kt+### platform/ + telephony/ + service/ — LPA stack - com/vayunmathur/euicc/platform/EuiccViewModel.kt-- com/vayunmathur/euicc/platform/LuiActivity.kt-- com/vayunmathur/euicc/service/EuiccManagerService.kt+- com/vayunmathur/euicc/platform/LuiActivity.kt — LPA UI entry+- com/vayunmathur/euicc/platform/DownloadState.kt - com/vayunmathur/euicc/telephony/EuiccChannelManager.kt-- com/vayunmathur/euicc/ui/ActivationCodeScreen.kt+- com/vayunmathur/euicc/service/EuiccManagerService.kt+### ui/ + ui/dialogs/ + ui/download/ — LPA screens+- com/vayunmathur/euicc/ui/EuiccHomeScreen.kt - com/vayunmathur/euicc/ui/AddSimScreen.kt-- com/vayunmathur/euicc/ui/DeviceInfoScreen.kt+- com/vayunmathur/euicc/ui/ActivationCodeScreen.kt - com/vayunmathur/euicc/ui/DownloadScreen.kt-- com/vayunmathur/euicc/ui/EuiccHomeScreen.kt - com/vayunmathur/euicc/ui/ProfileDetailScreen.kt+- com/vayunmathur/euicc/ui/DeviceInfoScreen.kt - com/vayunmathur/euicc/ui/QrScanner.kt - com/vayunmathur/euicc/ui/dialogs/EidDialog.kt - com/vayunmathur/euicc/ui/dialogs/RenameDialog.kt-- com/vayunmathur/euicc/ui/download/CompleteContent.kt-- com/vayunmathur/euicc/ui/download/ConfirmationCodeContent.kt - com/vayunmathur/euicc/ui/download/ConfirmCarrierContent.kt-- com/vayunmathur/euicc/ui/download/FailedContent.kt+- com/vayunmathur/euicc/ui/download/ConfirmationCodeContent.kt - com/vayunmathur/euicc/ui/download/InstallingContent.kt+- com/vayunmathur/euicc/ui/download/CompleteContent.kt+- com/vayunmathur/euicc/ui/download/FailedContent.kt ## Verify (this module only) ```@@ -45,5 +54,3 @@ _Install: ./install euicc (dev by default)._ ./gradlew :euicc:lint ./gradlew :euicc:checkMetadata ```--
flashcards/AGENTS.md
diff --git a/flashcards/AGENTS.md b/flashcards/AGENTS.mdindex 1bb07b25ab..146a3c817d 100644--- a/flashcards/AGENTS.md+++ b/flashcards/AGENTS.md@@ -3,62 +3,74 @@ > 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+- Entry files: MainActivity.kt (no Route.kt — decks/notes/review/stats flow) - Deps: :library:room, :library:image - Metadata: metadata_data/flashcards.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline spaced-repetition flashcards — Anki-style notes/templates/decks with FSRS scheduling, review reminders, deck file sharing, APKG import/export. 100% offline.+**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+- 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 +## Key files+### Root — entry (no Route.kt) - com/vayunmathur/flashcards/MainActivity.kt-- com/vayunmathur/flashcards/data/Card.kt-- com/vayunmathur/flashcards/data/CardTemplate.kt-- com/vayunmathur/flashcards/data/Deck.kt+### data/ — notes, decks, review log (Room) - com/vayunmathur/flashcards/data/FlashcardsDatabase.kt - com/vayunmathur/flashcards/data/FlashcardsRepository.kt - com/vayunmathur/flashcards/data/Note.kt - com/vayunmathur/flashcards/data/NoteType.kt - com/vayunmathur/flashcards/data/NoteTypeField.kt+- com/vayunmathur/flashcards/data/Card.kt+- com/vayunmathur/flashcards/data/CardTemplate.kt+- com/vayunmathur/flashcards/data/Deck.kt - com/vayunmathur/flashcards/data/ReviewLog.kt-- com/vayunmathur/flashcards/ui/CustomStudyDialog.kt+### util/ — ViewModel, scheduler, import/export (pending migration to closed roots)+- com/vayunmathur/flashcards/util/FlashcardsViewModel.kt+- com/vayunmathur/flashcards/util/FlashcardsViewModelHelper.kt+- com/vayunmathur/flashcards/util/FlashcardsUiContract.kt+- com/vayunmathur/flashcards/util/Scheduler.kt+- com/vayunmathur/flashcards/util/FsrsOptimizer.kt+- com/vayunmathur/flashcards/util/ReviewSession.kt+- com/vayunmathur/flashcards/util/CardGenerator.kt+- com/vayunmathur/flashcards/util/TemplateEngine.kt+- com/vayunmathur/flashcards/util/HtmlConvert.kt+- com/vayunmathur/flashcards/util/ApkgImport.kt+- com/vayunmathur/flashcards/util/ApkgExport.kt+- com/vayunmathur/flashcards/util/DeckIo.kt+- com/vayunmathur/flashcards/util/MediaStore.kt+- com/vayunmathur/flashcards/util/TtsSpeaker.kt+- com/vayunmathur/flashcards/util/ReviewReminderWorker.kt+- com/vayunmathur/flashcards/util/AppBackupAgent.kt+### ui/ — decks, notes, review, stats - com/vayunmathur/flashcards/ui/DeckListPage.kt-- com/vayunmathur/flashcards/ui/FlashcardsCharts.kt-- com/vayunmathur/flashcards/ui/MarkdownContent.kt-- com/vayunmathur/flashcards/ui/MoveDeckDialog.kt-- com/vayunmathur/flashcards/ui/NoteEditPage.kt-- com/vayunmathur/flashcards/ui/NoteListFileHelpers.kt+- com/vayunmathur/flashcards/ui/ReviewPage.kt+- com/vayunmathur/flashcards/ui/ReviewGradeButtons.kt+- com/vayunmathur/flashcards/ui/StudyModeRow.kt+- com/vayunmathur/flashcards/ui/CustomStudyDialog.kt - com/vayunmathur/flashcards/ui/NoteListPage.kt - com/vayunmathur/flashcards/ui/NoteListScreen.kt - com/vayunmathur/flashcards/ui/NoteRowItem.kt+- com/vayunmathur/flashcards/ui/NoteEditPage.kt+- com/vayunmathur/flashcards/ui/NoteListFileHelpers.kt+- com/vayunmathur/flashcards/ui/ReorderableNoteList.kt - com/vayunmathur/flashcards/ui/NoteTypeEditorPage.kt - com/vayunmathur/flashcards/ui/NoteTypeEditorSection.kt-- com/vayunmathur/flashcards/ui/ReorderableNoteList.kt-- com/vayunmathur/flashcards/ui/ReviewGradeButtons.kt-- com/vayunmathur/flashcards/ui/ReviewPage.kt-- com/vayunmathur/flashcards/ui/SettingsPage.kt-- com/vayunmathur/flashcards/ui/StatsPage.kt-- com/vayunmathur/flashcards/ui/StudyModeRow.kt - com/vayunmathur/flashcards/ui/TagDialog.kt - com/vayunmathur/flashcards/ui/TagFilterRow.kt-- com/vayunmathur/flashcards/util/ApkgExport.kt-- com/vayunmathur/flashcards/util/ApkgImport.kt-- com/vayunmathur/flashcards/util/AppBackupAgent.kt-- com/vayunmathur/flashcards/util/CardGenerator.kt-- com/vayunmathur/flashcards/util/DeckIo.kt-- com/vayunmathur/flashcards/util/FlashcardsUiContract.kt-- com/vayunmathur/flashcards/util/FlashcardsViewModel.kt-- com/vayunmathur/flashcards/util/FlashcardsViewModelHelper.kt-- com/vayunmathur/flashcards/util/FsrsOptimizer.kt-- com/vayunmathur/flashcards/util/HtmlConvert.kt-- com/vayunmathur/flashcards/util/MediaStore.kt-- com/vayunmathur/flashcards/util/ReviewReminderWorker.kt-- com/vayunmathur/flashcards/util/ReviewSession.kt-- com/vayunmathur/flashcards/util/Scheduler.kt-- com/vayunmathur/flashcards/util/TemplateEngine.kt-- com/vayunmathur/flashcards/util/TtsSpeaker.kt+- com/vayunmathur/flashcards/ui/StatsPage.kt+- com/vayunmathur/flashcards/ui/FlashcardsCharts.kt+- com/vayunmathur/flashcards/ui/MarkdownContent.kt+- com/vayunmathur/flashcards/ui/MoveDeckDialog.kt+- com/vayunmathur/flashcards/ui/SettingsPage.kt ## Verify (this module only) ```@@ -66,5 +78,3 @@ _Install: ./install flashcards (dev by default)._ ./gradlew :flashcards:lint ./gradlew :flashcards:checkMetadata ```--
logviewer/AGENTS.md
diff --git a/logviewer/AGENTS.md b/logviewer/AGENTS.mdindex 270086d14d..dffff86328 100644--- a/logviewer/AGENTS.md+++ b/logviewer/AGENTS.md@@ -3,34 +3,43 @@ > 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: -- Deps: +- Entry files: ui/LogViewerScreen.kt + intents/LogcatActivity.kt + intents/ErrorReportActivity.kt (no MainActivity/Route — viewer surfaces, not a nav app)+- Deps: (none declared) - Metadata: metadata_data/logviewer.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** On-device log + crash-report reader — logcat with level/buffer/regex filters, tombstones, system error reports, share-without-saving. 100% offline.+**Key features:** `platform/LogcatReader` + `LogViewerController`/`ViewModel` over `domain/LogDocument`/`LogKind`/`LogLevel`; heads-up `HiddenFrameworkApi` for system access; `provider/BlobProvider` shares without writing to storage; crash→app-log jump.+**Entry points:** `intents/LogcatActivity.kt` (log) / `intents/ErrorReportActivity.kt` (reports) → `platform/LogViewerController.kt` → `platform/LogcatReader.kt` → `domain/LogDocument.kt`.+**Gotchas:** Needs privileged log access — behavior differs by build/signature; never assume logcat is readable everywhere. +## Key files+### intents/ + provider/ — viewer surfaces (the entries)+- com/vayunmathur/logviewer/intents/LogcatActivity.kt+- com/vayunmathur/logviewer/intents/ErrorReportActivity.kt+- com/vayunmathur/logviewer/intents/LogViewerIntents.kt+- com/vayunmathur/logviewer/provider/BlobProvider.kt+### data/ + domain/ — tombstones + log model - com/vayunmathur/logviewer/data/TombstoneFiles.kt - com/vayunmathur/logviewer/domain/LogDocument.kt - com/vayunmathur/logviewer/domain/LogKind.kt - com/vayunmathur/logviewer/domain/LogLevel.kt-- com/vayunmathur/logviewer/intents/ErrorReportActivity.kt-- com/vayunmathur/logviewer/intents/LogcatActivity.kt-- com/vayunmathur/logviewer/intents/LogViewerIntents.kt-- com/vayunmathur/logviewer/platform/ErrorReportReader.kt-- com/vayunmathur/logviewer/platform/HiddenFrameworkApi.kt-- com/vayunmathur/logviewer/platform/LogcatReader.kt-- com/vayunmathur/logviewer/platform/LogLoadResult.kt+### platform/ — readers + controller + ViewModel - com/vayunmathur/logviewer/platform/LogViewerController.kt-- com/vayunmathur/logviewer/platform/LogViewerUiContract.kt - com/vayunmathur/logviewer/platform/LogViewerViewModel.kt+- com/vayunmathur/logviewer/platform/LogViewerUiContract.kt+- com/vayunmathur/logviewer/platform/LogcatReader.kt+- com/vayunmathur/logviewer/platform/ErrorReportReader.kt+- com/vayunmathur/logviewer/platform/HiddenFrameworkApi.kt - com/vayunmathur/logviewer/platform/ReportHeaders.kt-- com/vayunmathur/logviewer/provider/BlobProvider.kt-- com/vayunmathur/logviewer/ui/LogViewerPage.kt+- com/vayunmathur/logviewer/platform/LogLoadResult.kt+### ui/ — viewer + dialogs - com/vayunmathur/logviewer/ui/LogViewerScreen.kt+- com/vayunmathur/logviewer/ui/LogViewerPage.kt - com/vayunmathur/logviewer/ui/components/LogLineList.kt - com/vayunmathur/logviewer/ui/dialogs/LogBuffersDialog.kt - com/vayunmathur/logviewer/ui/dialogs/LogLevelDialog.kt@@ -43,5 +52,3 @@ _Install: ./install logviewer (dev by default)._ ./gradlew :logviewer:lint ./gradlew :logviewer:checkMetadata ```--
measure/AGENTS.md
diff --git a/measure/AGENTS.md b/measure/AGENTS.mdindex 418aa8abdc..9992fc9242 100644--- a/measure/AGENTS.md+++ b/measure/AGENTS.md@@ -3,45 +3,55 @@ > 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-- Deps: +- Deps: (none declared — camera + IMU + Rust VIO, no Play Services) - Metadata: metadata_data/measure.md (present) - Rust: yes / screenshotTest: yes -## Key files+## Overview+**Purpose:** Offline measuring toolkit — compass, level, ruler, protractor + AR distance/area over a from-scratch visual-inertial odometry engine. Real metres, no Play Services.+**Key features:** Per-tool pages (AR/compass/level/ruler/saved/settings) + diagnostics; `domain/` pure geometry (level math, tilt, polygons, units); `platform/sensor/` IMU recording; camera intrinsics; Rust `measure_vio` behind `domain/MeasureNative`.+**Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/ArMeasurePage.kt` → `platform/MeasureViewModel.kt` → `domain/MeasureNative.kt`.+**Gotchas:** VIO needs device calibration + motion — test measuring by moving, not screenshots; intrinsics vary per device. +## Key files+### Root — entry + navigation - com/vayunmathur/measure/MainActivity.kt - com/vayunmathur/measure/Navigation.kt - com/vayunmathur/measure/Route.kt+### data/ — saved measurements - com/vayunmathur/measure/data/model/Models.kt-- com/vayunmathur/measure/domain/HeldOrientation.kt+### domain/ — pure geometry + Rust VIO bridge+- com/vayunmathur/measure/domain/MeasureNative.kt — `measure_vio` JNI bridge - com/vayunmathur/measure/domain/LevelMath.kt-- com/vayunmathur/measure/domain/MeasureNative.kt-- com/vayunmathur/measure/domain/Polygon.kt - com/vayunmathur/measure/domain/Tilt.kt+- com/vayunmathur/measure/domain/HeldOrientation.kt+- com/vayunmathur/measure/domain/Polygon.kt - com/vayunmathur/measure/domain/Units.kt-- com/vayunmathur/measure/platform/CameraIntrinsics.kt-- com/vayunmathur/measure/platform/MeasureUiContract.kt+### platform/ — ViewModel, intrinsics, IMU - com/vayunmathur/measure/platform/MeasureViewModel.kt+- com/vayunmathur/measure/platform/MeasureUiContract.kt+- com/vayunmathur/measure/platform/CameraIntrinsics.kt - com/vayunmathur/measure/platform/sensor/ImuRecorder.kt - com/vayunmathur/measure/platform/sensor/TiltSensor.kt-- com/vayunmathur/measure/ui/ArMeasureContent.kt+### ui/ + ui/components/ — tool pages - com/vayunmathur/measure/ui/ArMeasurePage.kt-- com/vayunmathur/measure/ui/CompassContent.kt+- com/vayunmathur/measure/ui/ArMeasureContent.kt - com/vayunmathur/measure/ui/CompassPage.kt-- com/vayunmathur/measure/ui/DiagnosticsContent.kt-- com/vayunmathur/measure/ui/DiagnosticsPage.kt-- com/vayunmathur/measure/ui/LevelContent.kt+- com/vayunmathur/measure/ui/CompassContent.kt - com/vayunmathur/measure/ui/LevelPage.kt-- com/vayunmathur/measure/ui/RulerContent.kt+- com/vayunmathur/measure/ui/LevelContent.kt - com/vayunmathur/measure/ui/RulerPage.kt-- com/vayunmathur/measure/ui/SavedMeasurementsContent.kt+- com/vayunmathur/measure/ui/RulerContent.kt - com/vayunmathur/measure/ui/SavedMeasurementsPage.kt-- com/vayunmathur/measure/ui/SettingsContent.kt+- com/vayunmathur/measure/ui/SavedMeasurementsContent.kt+- com/vayunmathur/measure/ui/DiagnosticsPage.kt+- com/vayunmathur/measure/ui/DiagnosticsContent.kt - com/vayunmathur/measure/ui/SettingsPage.kt+- com/vayunmathur/measure/ui/SettingsContent.kt - com/vayunmathur/measure/ui/components/MeasureBottomBar.kt - com/vayunmathur/measure/ui/components/MeasureCamera.kt @@ -51,5 +61,3 @@ _Install: ./install measure (dev by default)._ ./gradlew :measure:lint ./gradlew :measure:checkMetadata ```--
networklocation/AGENTS.md
diff --git a/networklocation/AGENTS.md b/networklocation/AGENTS.mdindex 5b757ffdf2..7ae2c5a752 100644--- a/networklocation/AGENTS.md+++ b/networklocation/AGENTS.md@@ -3,34 +3,45 @@ > 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+- Entry files: MainActivity.kt (database-setup UI) + provider/LocationProviderImpl.kt (system provider entry) - Deps: :library:locationprovider, :library:downloadservice - Metadata: metadata_data/networklocation.md (present) - Rust: yes / screenshotTest: no -## Key files+## Overview+**Purpose:** Privileged system network-location + geocoder provider — Wi-Fi/cell fixes without GPS and offline geocoding, solved on-device in Rust. Beacons never leave the phone; internet only for one-time offline-DB downloads.+**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+- System-provider registration is signature/role-gated — sideloaded builds won't serve fixes+- Beacon privacy is the product — never log or upload identifiers/positions -- com/vayunmathur/networklocation/BeaconKeys.kt-- com/vayunmathur/networklocation/GeocoderNative.kt+## Key files+### Root + provider/ — entries+- com/vayunmathur/networklocation/MainActivity.kt — offline-DB setup UI+- com/vayunmathur/networklocation/NetworkLocationService.kt - com/vayunmathur/networklocation/GeocodeService.kt-- com/vayunmathur/networklocation/MainActivity.kt+- com/vayunmathur/networklocation/provider/LocationProviderImpl.kt — system entry+- com/vayunmathur/networklocation/provider/OfflineBeaconStore.kt+- com/vayunmathur/networklocation/provider/DatabaseStatusProvider.kt+- com/vayunmathur/networklocation/provider/DatabaseStatusContract.kt+- com/vayunmathur/networklocation/provider/LocationReportingTask.kt+### Root — solver + stores (Rust bridges) - com/vayunmathur/networklocation/NetworkLocationNative.kt-- com/vayunmathur/networklocation/NetworkLocationService.kt+- com/vayunmathur/networklocation/GeocoderNative.kt+- com/vayunmathur/networklocation/WpsStoreNative.kt - com/vayunmathur/networklocation/OfflineDatabases.kt - com/vayunmathur/networklocation/OfflineDatabaseSection.kt - com/vayunmathur/networklocation/PositioningData.kt-- com/vayunmathur/networklocation/WpsStoreNative.kt+- com/vayunmathur/networklocation/BeaconKeys.kt+### cache/ + cell/ + wifi/ — beacon pipeline (pending migration to closed roots) - com/vayunmathur/networklocation/cache/BeaconCache.kt - com/vayunmathur/networklocation/cache/TimedLruCache.kt - com/vayunmathur/networklocation/cell/NearbyCells.kt-- com/vayunmathur/networklocation/provider/DatabaseStatusContract.kt-- com/vayunmathur/networklocation/provider/DatabaseStatusProvider.kt-- com/vayunmathur/networklocation/provider/LocationProviderImpl.kt-- com/vayunmathur/networklocation/provider/LocationReportingTask.kt-- com/vayunmathur/networklocation/provider/OfflineBeaconStore.kt - com/vayunmathur/networklocation/wifi/NearbyWifi.kt ## Verify (this module only)@@ -39,5 +50,3 @@ _Install: ./install networklocation (dev by default)._ ./gradlew :networklocation:lint ./gradlew :networklocation:checkMetadata ```--
parentalcontrols/AGENTS.md
diff --git a/parentalcontrols/AGENTS.md b/parentalcontrols/AGENTS.mdindex 80438971c4..3d5da2386b 100644--- a/parentalcontrols/AGENTS.md+++ b/parentalcontrols/AGENTS.md@@ -3,53 +3,65 @@ > 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: +- Entry files: ui/DashboardActivity.kt + ui/SetupActivity.kt (activity-per-surface OS module; no MainActivity/Route) - Deps: :library:room, :library:aosp-stubs - Metadata: metadata_data/parentalcontrols.md (present) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** On-device parental controls over Android's supervision APIs — screen-time/bedtime/app-limits, web filters, install restrictions, all PIN-gated (`auth/ParentPin`). No account, nothing uploaded.+**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:** `ui/SetupActivity.kt` → `ui/DashboardActivity.kt` → `platform/SupervisionViewModel.kt` → `platform/SupervisionMaster.kt` → `data/Rules.kt`.+**Gotchas:**+- `receiver/` is NOT a closed package root — pending migration; 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 +## Key files+### auth/ + data/ + domain/ — PIN, rules, windows - com/vayunmathur/parentalcontrols/auth/ParentPin.kt-- com/vayunmathur/parentalcontrols/data/Migrations.kt - com/vayunmathur/parentalcontrols/data/ParentalControlsDatabase.kt - com/vayunmathur/parentalcontrols/data/Rules.kt - com/vayunmathur/parentalcontrols/data/SupervisionRules.kt+- com/vayunmathur/parentalcontrols/data/Migrations.kt - com/vayunmathur/parentalcontrols/domain/TimeWindow.kt-- com/vayunmathur/parentalcontrols/notifications/LockNotifier.kt-- com/vayunmathur/parentalcontrols/platform/AppLimits.kt-- com/vayunmathur/parentalcontrols/platform/BedtimeScheduler.kt-- com/vayunmathur/parentalcontrols/platform/Enforcer.kt-- com/vayunmathur/parentalcontrols/platform/SupervisionApis.kt-- com/vayunmathur/parentalcontrols/platform/SupervisionCaller.kt+### platform/ — supervision + enforcement - com/vayunmathur/parentalcontrols/platform/SupervisionMaster.kt - com/vayunmathur/parentalcontrols/platform/SupervisionPolicies.kt+- com/vayunmathur/parentalcontrols/platform/SupervisionApis.kt+- com/vayunmathur/parentalcontrols/platform/SupervisionCaller.kt - com/vayunmathur/parentalcontrols/platform/SupervisionViewModel.kt+- com/vayunmathur/parentalcontrols/platform/Enforcer.kt+- com/vayunmathur/parentalcontrols/platform/AppLimits.kt+- com/vayunmathur/parentalcontrols/platform/BedtimeScheduler.kt - com/vayunmathur/parentalcontrols/platform/UsageAccess.kt - com/vayunmathur/parentalcontrols/platform/WebContentFilters.kt+### receiver/ + service/ + notifications/ — system bridges - com/vayunmathur/parentalcontrols/receiver/Receivers.kt - com/vayunmathur/parentalcontrols/service/ParentalControlsAppService.kt - com/vayunmathur/parentalcontrols/service/SupervisionMessengerService.kt+- com/vayunmathur/parentalcontrols/notifications/LockNotifier.kt+### ui/ — PIN-gated activities (the entries)+- com/vayunmathur/parentalcontrols/ui/DashboardActivity.kt+- com/vayunmathur/parentalcontrols/ui/DashboardScreen.kt+- com/vayunmathur/parentalcontrols/ui/SetupActivity.kt+- com/vayunmathur/parentalcontrols/ui/PinSetupScreen.kt+- com/vayunmathur/parentalcontrols/ui/PinGateScreen.kt+- com/vayunmathur/parentalcontrols/ui/PinGatedActivity.kt+- com/vayunmathur/parentalcontrols/ui/PinActivities.kt+- com/vayunmathur/parentalcontrols/ui/LockScreen.kt+- com/vayunmathur/parentalcontrols/ui/LockActivities.kt - com/vayunmathur/parentalcontrols/ui/AppLimitsActivity.kt - com/vayunmathur/parentalcontrols/ui/AppLimitsScreen.kt+- com/vayunmathur/parentalcontrols/ui/DailyLimitScreen.kt - com/vayunmathur/parentalcontrols/ui/BedtimeActivity.kt - com/vayunmathur/parentalcontrols/ui/BedtimeScreen.kt-- com/vayunmathur/parentalcontrols/ui/DailyLimitScreen.kt-- com/vayunmathur/parentalcontrols/ui/DashboardActivity.kt-- com/vayunmathur/parentalcontrols/ui/DashboardScreen.kt-- com/vayunmathur/parentalcontrols/ui/LockActivities.kt-- com/vayunmathur/parentalcontrols/ui/LockScreen.kt-- com/vayunmathur/parentalcontrols/ui/PinActivities.kt-- com/vayunmathur/parentalcontrols/ui/PinGatedActivity.kt-- com/vayunmathur/parentalcontrols/ui/PinGateScreen.kt-- com/vayunmathur/parentalcontrols/ui/PinSetupScreen.kt-- com/vayunmathur/parentalcontrols/ui/SetupActivity.kt-- com/vayunmathur/parentalcontrols/ui/WebContentFiltersActivity.kt - com/vayunmathur/parentalcontrols/ui/WindowActivities.kt - com/vayunmathur/parentalcontrols/ui/WindowScheduleScreen.kt+- com/vayunmathur/parentalcontrols/ui/WebContentFiltersActivity.kt ## Verify (this module only) ```@@ -57,5 +69,3 @@ _Install: ./install parentalcontrols (dev by default)._ ./gradlew :parentalcontrols:lint ./gradlew :parentalcontrols:checkMetadata ```--
screentime/AGENTS.md
diff --git a/screentime/AGENTS.md b/screentime/AGENTS.mdindex 4d22d24009..605407ffb4 100644--- a/screentime/AGENTS.md+++ b/screentime/AGENTS.md@@ -3,40 +3,52 @@ > 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: +- Entry files: ui/DashboardActivity.kt (activity-entry OS module; no MainActivity/Route) - Deps: :library:room, :library:widgets - Metadata: metadata_data/screentime.md (present) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** On-device screen-time dashboard — per-app usage, app timers + instant pauses, Wind Down (grayscale + DND), friction nudges, Glance widget. Sibling of `parentalcontrols/` (self-control vs supervised control). No account, nothing uploaded.+**Key features:** `platform/UsageHistory` + `domain/HourBuckets` feed dashboard/charts; `AppTimers`/`Suspender`/`Coordinator` enforce limits; `WindDownApplier` + `WindowScheduler` run bedtime; widget mirrors the dashboard.+**Entry points:** `ui/DashboardActivity.kt` → `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+- 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 -- com/vayunmathur/screentime/data/Migrations.kt-- com/vayunmathur/screentime/data/Rules.kt+## Key files+### data/ + domain/ — rules + buckets - com/vayunmathur/screentime/data/ScreenTimeDatabase.kt+- com/vayunmathur/screentime/data/Rules.kt+- com/vayunmathur/screentime/data/Migrations.kt - com/vayunmathur/screentime/domain/HourBuckets.kt-- com/vayunmathur/screentime/platform/AppTimers.kt+### platform/ — coordination + enforcement - com/vayunmathur/screentime/platform/Coordinator.kt-- com/vayunmathur/screentime/platform/DndState.kt - com/vayunmathur/screentime/platform/ScreenTimeViewModel.kt+- com/vayunmathur/screentime/platform/AppTimers.kt - com/vayunmathur/screentime/platform/Suspender.kt - com/vayunmathur/screentime/platform/UsageAccess.kt - com/vayunmathur/screentime/platform/UsageHistory.kt - com/vayunmathur/screentime/platform/WindDownApplier.kt - com/vayunmathur/screentime/platform/WindowScheduler.kt+- com/vayunmathur/screentime/platform/DndState.kt+### receiver/ + service/ — system bridges - com/vayunmathur/screentime/receiver/Receivers.kt - com/vayunmathur/screentime/service/Services.kt-- com/vayunmathur/screentime/ui/AppDetailsScreen.kt-- com/vayunmathur/screentime/ui/AppIconImage.kt+### ui/ + widget/ — dashboard + widget (the entries) - com/vayunmathur/screentime/ui/DashboardActivity.kt - com/vayunmathur/screentime/ui/DashboardScreen.kt+- com/vayunmathur/screentime/ui/AppDetailsScreen.kt - com/vayunmathur/screentime/ui/FocusScreen.kt - com/vayunmathur/screentime/ui/FrictionScreen.kt+- com/vayunmathur/screentime/ui/WindDownScreen.kt - com/vayunmathur/screentime/ui/UsageBarChart.kt - com/vayunmathur/screentime/ui/UsageFormat.kt-- com/vayunmathur/screentime/ui/WindDownScreen.kt+- com/vayunmathur/screentime/ui/AppIconImage.kt - com/vayunmathur/screentime/widget/ScreenTimeGlanceWidget.kt - com/vayunmathur/screentime/widget/ScreenTimeWidgetReceiver.kt @@ -46,5 +58,3 @@ _Install: ./install screentime (dev by default)._ ./gradlew :screentime:lint ./gradlew :screentime:checkMetadata ```--
setupwizard/AGENTS.md
diff --git a/setupwizard/AGENTS.md b/setupwizard/AGENTS.mdindex 25e6e4bac8..cfbc521257 100644--- a/setupwizard/AGENTS.md+++ b/setupwizard/AGENTS.md@@ -3,31 +3,39 @@ > 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-- Deps: +- Deps: (none declared) - Metadata: metadata_data/setupwizard.md (present) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** First-run OS setup — language, Wi-Fi, time, location, lock, restore, bootloader warning; hands steps to owner apps, disables itself when done. Shorter secondary-user flow.+**Key features:** `platform/SetupFlow` step machine + `SetupViewModel` → welcome/gestures/location/migration/OEM-unlock/handoff/finish screens; `SystemSetup` + `SetupIntents` delegate to owner apps; `DebugFlags` for testing.+**Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `platform/SetupFlow.kt` → `ui/WelcomeScreen.kt`.+**Gotchas:** Runs once and disables itself — testing needs the re-enable path (`DebugFlags`); bootloader-warning copy is security-sensitive, don't soften it. +## Key files+### Root — entry + navigation - com/vayunmathur/setupwizard/MainActivity.kt - com/vayunmathur/setupwizard/Navigation.kt - com/vayunmathur/setupwizard/Route.kt-- com/vayunmathur/setupwizard/platform/DebugFlags.kt+### platform/ — flow machine + delegation - com/vayunmathur/setupwizard/platform/SetupFlow.kt-- com/vayunmathur/setupwizard/platform/SetupIntents.kt - com/vayunmathur/setupwizard/platform/SetupViewModel.kt - com/vayunmathur/setupwizard/platform/SystemSetup.kt-- com/vayunmathur/setupwizard/ui/FinishScreen.kt+- com/vayunmathur/setupwizard/platform/SetupIntents.kt+- com/vayunmathur/setupwizard/platform/DebugFlags.kt+### ui/ — setup steps+- com/vayunmathur/setupwizard/ui/WelcomeScreen.kt - com/vayunmathur/setupwizard/ui/GesturesScreen.kt-- com/vayunmathur/setupwizard/ui/HandoffScreen.kt - com/vayunmathur/setupwizard/ui/LocationScreen.kt - com/vayunmathur/setupwizard/ui/MigrationScreen.kt - com/vayunmathur/setupwizard/ui/OemUnlockScreen.kt-- com/vayunmathur/setupwizard/ui/WelcomeScreen.kt+- com/vayunmathur/setupwizard/ui/HandoffScreen.kt+- com/vayunmathur/setupwizard/ui/FinishScreen.kt - com/vayunmathur/setupwizard/ui/components/SetupCheckboxRow.kt - com/vayunmathur/setupwizard/ui/dialogs/LanguagePickerDialog.kt @@ -37,5 +45,3 @@ _Install: ./install setupwizard (dev by default)._ ./gradlew :setupwizard:lint ./gradlew :setupwizard:checkMetadata ```--
things/AGENTS.md
diff --git a/things/AGENTS.md b/things/AGENTS.mdindex 8a280d76cb..78291df7e5 100644--- a/things/AGENTS.md+++ b/things/AGENTS.md@@ -3,29 +3,37 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `things/` + allowed shared modules. Do not root-scan. _Install: ./install things (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :things / dir: things/ - Package roots present: ui, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt-- Deps: +- Deps: (none declared — BLE + Health Connect only) - Metadata: metadata_data/things.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** BLE hyd ration tracker — pairs a smart water bottle, totals sips against a daily goal. No account, no cloud; readings stay on the phone. (Scale BLE files are legacy/experimental alongside.)+**Key features:** Scan/pair/disconnect, live per-sip history, goal progress; Health Connect bridge helper; permissions-gated onboarding.+**Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/HomePage.kt` → `platform/DeviceController.kt` → `platform/BleManager.kt`.+**Gotchas:** BLE behavior is device- and radio-state-dependent — test scan/pair/drop/reconnect on hardware, not the emulator. +## Key files+### Root — entry + navigation - com/vayunmathur/things/MainActivity.kt - com/vayunmathur/things/Navigation.kt - com/vayunmathur/things/Route.kt+### platform/ — BLE + device control - com/vayunmathur/things/platform/BleManager.kt-- com/vayunmathur/things/platform/BodyComposition.kt - com/vayunmathur/things/platform/DeviceController.kt - com/vayunmathur/things/platform/DeviceService.kt-- com/vayunmathur/things/platform/HealthConnectHelper.kt-- com/vayunmathur/things/platform/ScaleBleConnection.kt - com/vayunmathur/things/platform/ScaleBleManager.kt+- com/vayunmathur/things/platform/ScaleBleConnection.kt - com/vayunmathur/things/platform/ScaleBleProtocol.kt-- com/vayunmathur/things/ui/DevicesPage.kt+- com/vayunmathur/things/platform/BodyComposition.kt+- com/vayunmathur/things/platform/HealthConnectHelper.kt+### ui/ — home, devices, permissions - com/vayunmathur/things/ui/HomePage.kt+- com/vayunmathur/things/ui/DevicesPage.kt - com/vayunmathur/things/ui/PermissionsPage.kt - com/vayunmathur/things/ui/PermissionsRationaleActivity.kt @@ -35,5 +43,3 @@ _Install: ./install things (dev by default)._ ./gradlew :things:lint ./gradlew :things:checkMetadata ```--
tuner/AGENTS.md
diff --git a/tuner/AGENTS.md b/tuner/AGENTS.mdindex c03b2151ae..2f062873db 100644--- a/tuner/AGENTS.md+++ b/tuner/AGENTS.md@@ -3,47 +3,57 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `tuner/` + allowed shared modules. Do not root-scan. _Install: ./install tuner (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :tuner / dir: tuner/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt-- Deps: +- Deps: (none declared — raw mic feed, no network permission) - Metadata: metadata_data/tuner.md (present) - Rust: no / screenshotTest: yes -## Key files+## Overview+**Purpose:** Precise offline chromatic tuner (guitar/ukulele/piano) — sub-cent meter, 415–466 Hz reference, wrong-string warnings, honest uncertainty. No network permission.+**Key features:** Raw-mic `AudioCapture` → `domain/` DSP chain (YIN + FFT/Constant-Q + harmonic sieve/NNLS + phase-slope) → `PitchDetector` → meter/note/chord UI with fret diagrams + piano keyboard; instrument profiles in `data/`.+**Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/NoteScreen.kt` → `platform/TunerViewModel.kt` → `domain/PitchDetector.kt`.+**Gotchas:** Chord detection is not built yet (metadata says so) — don't assume `ChordDetector` is wired; mic latency varies by device, keep the capture path lean. +## Key files+### Root — entry + navigation - com/vayunmathur/tuner/MainActivity.kt - com/vayunmathur/tuner/Navigation.kt - com/vayunmathur/tuner/Route.kt+### data/ — instruments - com/vayunmathur/tuner/data/Instruments.kt-- com/vayunmathur/tuner/domain/Cents.kt-- com/vayunmathur/tuner/domain/ChordDetector.kt-- com/vayunmathur/tuner/domain/ChordNaming.kt-- com/vayunmathur/tuner/domain/ChordPresenter.kt-- com/vayunmathur/tuner/domain/ConstantQ.kt+### domain/ — pure DSP (no Android)+- com/vayunmathur/tuner/domain/PitchDetector.kt+- com/vayunmathur/tuner/domain/Yin.kt - com/vayunmathur/tuner/domain/Fft.kt+- com/vayunmathur/tuner/domain/ConstantQ.kt - com/vayunmathur/tuner/domain/HarmonicSieve.kt - com/vayunmathur/tuner/domain/Nnls.kt - com/vayunmathur/tuner/domain/PhaseSlope.kt-- com/vayunmathur/tuner/domain/PitchDetector.kt+- com/vayunmathur/tuner/domain/Cents.kt+- com/vayunmathur/tuner/domain/TuningOffset.kt - com/vayunmathur/tuner/domain/PresentationHold.kt - com/vayunmathur/tuner/domain/Tonality.kt-- com/vayunmathur/tuner/domain/TuningOffset.kt+- com/vayunmathur/tuner/domain/ChordDetector.kt — not yet wired (see Gotchas)+- com/vayunmathur/tuner/domain/ChordNaming.kt+- com/vayunmathur/tuner/domain/ChordPresenter.kt - com/vayunmathur/tuner/domain/VoicingGenerator.kt-- com/vayunmathur/tuner/domain/Yin.kt+### platform/ — capture + ViewModel - com/vayunmathur/tuner/platform/AudioCapture.kt-- com/vayunmathur/tuner/platform/TunerUiContract.kt - com/vayunmathur/tuner/platform/TunerViewModel.kt-- com/vayunmathur/tuner/ui/ChordPage.kt+- com/vayunmathur/tuner/platform/TunerUiContract.kt+### ui/ — meter, notes, chords+- com/vayunmathur/tuner/ui/TunerTabs.kt+- com/vayunmathur/tuner/ui/NoteScreen.kt+- com/vayunmathur/tuner/ui/NotePage.kt+- com/vayunmathur/tuner/ui/TuningMeter.kt - com/vayunmathur/tuner/ui/ChordScreen.kt+- com/vayunmathur/tuner/ui/ChordPage.kt - com/vayunmathur/tuner/ui/FretDiagram.kt-- com/vayunmathur/tuner/ui/InstrumentMenu.kt-- com/vayunmathur/tuner/ui/NotePage.kt-- com/vayunmathur/tuner/ui/NoteScreen.kt - com/vayunmathur/tuner/ui/PianoKeyboard.kt-- com/vayunmathur/tuner/ui/TunerTabs.kt-- com/vayunmathur/tuner/ui/TuningMeter.kt+- com/vayunmathur/tuner/ui/InstrumentMenu.kt ## Verify (this module only) ```@@ -51,5 +61,3 @@ _Install: ./install tuner (dev by default)._ ./gradlew :tuner:lint ./gradlew :tuner:checkMetadata ```--
updater/AGENTS.md
diff --git a/updater/AGENTS.md b/updater/AGENTS.mdindex e1ad6a1b37..99745596d4 100644--- a/updater/AGENTS.md+++ b/updater/AGENTS.md@@ -3,7 +3,7 @@ > Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `updater/` + allowed shared modules. Do not root-scan. _Install: ./install updater (dev by default)._-+<!-- last-reviewed: 2026-10-16 --> - Gradle: :updater / dir: updater/ - Package roots present: ui, domain, platform, service, notifications - Entry files: MainActivity.kt, Route.kt, Navigation.kt@@ -11,32 +11,42 @@ _Install: ./install updater (dev by default)._ - Metadata: metadata_data/updater.md (present) - Rust: no / screenshotTest: no -## Key files+## Overview+**Purpose:** Verified A/B OTA system updates — background check/download/apply to the inactive slot, release-key signature verification, idle-only reboot. Internet only for update traffic; metered-gated.+**Key features:** `UpdateCheckWorker` polling → `UpdateChecker` → `OtaDownloader` (incremental plans) → `OtaInstaller`/`UpdateInstallService` → `IdleReboot`; `domain/` validates packages/metadata against the release key before anything is written.+**Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/UpdaterScreen.kt` → `platform/UpdateChecker.kt` → `domain/OtaPackageValidation.kt`.+**Gotchas:** Signature verification is the product — never weaken it for UX; failed updates must leave the device bootable (A/B invariant); screenshot tests off, verify on device. +## Key files+### Root — entry + navigation - com/vayunmathur/updater/MainActivity.kt - com/vayunmathur/updater/Navigation.kt - com/vayunmathur/updater/Route.kt-- com/vayunmathur/updater/domain/AutoInstallPolicy.kt+### domain/ — pure OTA validation (no Android)+- com/vayunmathur/updater/domain/OtaPackageValidation.kt+- com/vayunmathur/updater/domain/OtaPackageMetadata.kt - com/vayunmathur/updater/domain/OtaArtifacts.kt - com/vayunmathur/updater/domain/OtaDownloadPlan.kt-- com/vayunmathur/updater/domain/OtaPackageMetadata.kt-- com/vayunmathur/updater/domain/OtaPackageValidation.kt - com/vayunmathur/updater/domain/PayloadProperties.kt+- com/vayunmathur/updater/domain/UpdateMetadata.kt - com/vayunmathur/updater/domain/UpdateComparison.kt - com/vayunmathur/updater/domain/UpdateEngineOutcome.kt-- com/vayunmathur/updater/domain/UpdateMetadata.kt-- com/vayunmathur/updater/notifications/UpdateNotifications.kt-- com/vayunmathur/updater/platform/IdleReboot.kt+- com/vayunmathur/updater/domain/AutoInstallPolicy.kt+### platform/ — check, download, install, reboot+- com/vayunmathur/updater/platform/UpdateChecker.kt+- com/vayunmathur/updater/platform/UpdateCheckWorker.kt - com/vayunmathur/updater/platform/OtaDownloader.kt - com/vayunmathur/updater/platform/OtaInstaller.kt-- com/vayunmathur/updater/platform/RebootReceiver.kt+- com/vayunmathur/updater/platform/UpdaterViewModel.kt+- com/vayunmathur/updater/platform/UpdaterPreferences.kt - com/vayunmathur/updater/platform/SystemBuild.kt+- com/vayunmathur/updater/platform/IdleReboot.kt+- com/vayunmathur/updater/platform/RebootReceiver.kt - com/vayunmathur/updater/platform/UpdateBootReceiver.kt-- com/vayunmathur/updater/platform/UpdateChecker.kt-- com/vayunmathur/updater/platform/UpdateCheckWorker.kt-- com/vayunmathur/updater/platform/UpdaterPreferences.kt-- com/vayunmathur/updater/platform/UpdaterViewModel.kt+### service/ + notifications/ — install service + status - com/vayunmathur/updater/service/UpdateInstallService.kt+- com/vayunmathur/updater/notifications/UpdateNotifications.kt+### ui/ — updater surface - com/vayunmathur/updater/ui/UpdaterScreen.kt ## Verify (this module only)@@ -45,5 +55,3 @@ _Install: ./install updater (dev by default)._ ./gradlew :updater:lint ./gradlew :updater:checkMetadata ```--