Skip to content

feat(alpha-next): add zero-GMS notifications, sandboxed play, and theme bridges slice 3 (#1865) - #2411

Draft
NubsCarson wants to merge 1 commit into
developfrom
feat/alpha-next-bridges-slice3
Draft

NubsCarson wants to merge 1 commit into
developfrom
feat/alpha-next-bridges-slice3

Conversation

@NubsCarson

Copy link
Copy Markdown
Collaborator

Summary

Opt-in Slice 3 draft PR for #1865 (stacking cleanly on merged Slice 1 #2397) introducing the Phase 1 Android OS bridges, AOSP system packaging, and formally verified Quint/Dafny specs for zero-GMS Notification Intelligence, Sandboxed Google Play Binder/PFD staging, and curated OKLCH AOSP RRO theme packs, with zero changes to the shipping monolith launcher (ai.alphacompute.alphaphone), apps/app/android/host.json, apps/app/scripts/aosp.ts, spec/agent/*, or spec/lock.json.

Included Modules (96 files: 94 added, 2 modified)

  • Zero-GMS Android 17 Notification Intelligence:
    • apps/app/android/alpha-notifications/ (8 added): NotificationPrivacyFilter, NotificationThreadGrouper, NotificationSummaryClient, AlphaNotificationSummaryBridgeService, and NotificationIntelligenceTest.
    • apps/app/aosp/notification-assistant/ (11 added): AlphaNotificationAssistantService, Android.bp, notification-assistant.mk, least-privilege privapp-permissions-alpha-notification-assistant.xml, SELinux policy (alpha_notification_assistant.te, seapp_contexts), overlay config, and test_nas_plan.py.
    • spec/app/notifications/index.md (9 rules, 2 stories): formally specifies local/cloud/deterministic fallback summarization, OTP/2FA privacy redaction, lockscreen redaction, and per-app opt-out.
  • Sandboxed Google Play Binder/PFD Bridge & Installer:
    • apps/app/android/alpha-play-bridge/ (7 added): AlphaPlayBridge, SandboxedPlayPolicy, AlphaPlayBridgePlugin, and AlphaPlayBridgeTest.
    • apps/app/aosp/sandboxed-play/installer/ (2 modified): upgrades AlphaPlayInstallerService.java with verified cross-process IAlphaPlayInstaller Binder IPC and bounded ParcelFileDescriptor APK staging, plus unit checks in test_play_verifier.py.
    • spec/app/playStore/index.md (13 rules, 2 stories): formally specifies strict GSF -> GMS -> Play Store install order, zero privileged grants, unprivileged /data/app isolation, and clean uninstall.
  • Curated OKLCH AOSP RRO Theme Bridge & Packs:
    • apps/app/android/alpha-theme-bridge/ (7 added): AlphaThemeBridge, AlphaThemeCatalog, AlphaThemeBridgePlugin, and AlphaThemeBridgeTest.
    • apps/app/aosp/themes/ (58 added): Android.bp, themes.mk, theme-packs.manifest.json, generate-rro-themes.ts (verifying WCAG contrast and byte-identical RRO generation against Slice 1 feat(alpha-native): add opt-in native Kotlin/Compose suite slice 1 (#1865) #2397's packages/design-system/themes/), and 6 theme packs (catppuccin, crisp-light, everforest, gruvbox, ink-dark, tokyo-night) across framework, launcher3, settings, and systemui.
    • spec/app/themes/index.md (8 rules, 2 stories): formally specifies atomic multi-target theme/navigation switching and rollback.

Notes on spec/lock.json

  • spec/lock.json is intentionally untouched while this PR is in draft to avoid lockfile contention across concurrent PRs. Before promoting to Ready on develop (signOff: true), spec/lock.json will record the 39 new review entries strictly for these 3 specs (spec/app/notifications/index.md: 12, spec/app/playStore/index.md: 16, spec/app/themes/index.md: 11).

Verification

  • Theme RRO generator drift & WCAG contrast check (node apps/app/aosp/themes/generate-rro-themes.ts --check against merged feat(alpha-native): add opt-in native Kotlin/Compose suite slice 1 (#1865) #2397 packages/design-system/themes/): PASS (OK, zero drift).
  • Python + Android API 36 plan/verifier suites: test_nas_plan.py -v 2/2 PASS; test_play_verifier.py 2/2 PASS.
  • Android API 36 pure-Java JUnit suites: 11/11 PASS (NotificationIntelligenceTest 3/3, AlphaPlayBridgeTest 5/5, AlphaThemeBridgeTest 3/3).
  • Formal Quint + Dafny 4.11.0 / Z3 4.12.1 verification on all 3 specs:
    • spec/app/notifications/index.md: always 12,000 traces PASS, sometimes 5/5 + 7/7 guards PASS, replay 405 traces PASS, Dafny 29/29 proved (0 unproved/exhausted/errors).
    • spec/app/playStore/index.md: always 12,000 traces PASS, sometimes 4/4 + 9/9 guards PASS, replay 404 traces PASS, Dafny 30/30 proved (0 unproved/exhausted/errors).
    • spec/app/themes/index.md: always 12,000 traces PASS, sometimes 5/5 + 6/6 guards PASS, replay 405 traces PASS, Dafny 15/15 proved (0 unproved/exhausted/errors).
    • Combined Dafny proofs: 74/74 proved, danglingCitations=0, jscpd 0 clones, pnpm no-bun PASS, git diff --check PASS (0).

Relates to #1865 and stacks on #2397.

…me bridges slice 3 (#1865)

Add opt-in Slice 3 of Alpha NEXT OS bridges and specs with zero modifications to the shipping monolith launcher, aosp.ts, host.json, spec/agent/*, or spec/lock.json:
- Zero-GMS Android 17 notification intelligence (apps/app/android/alpha-notifications/, apps/app/aosp/notification-assistant/, spec/app/notifications/index.md)
- Sandboxed Google Play Binder/PFD bridge & installer upgrade (apps/app/android/alpha-play-bridge/, apps/app/aosp/sandboxed-play/, spec/app/playStore/index.md)
- Curated OKLCH AOSP RRO theme bridge & packs (apps/app/android/alpha-theme-bridge/, apps/app/aosp/themes/, spec/app/themes/index.md)

Verified locally + Boat:
- test_nas_plan.py 2/2 PASS, test_play_verifier.py 2/2 PASS
- Android API 36 JUnit suites 11/11 PASS (alpha-notifications 3/3, alpha-play-bridge 5/5, alpha-theme-bridge 3/3)
- Quint always (12000 traces x 3), sometimes (22/22 guards + 14/14 reachability), replay (405/404/405 traces), and Dafny 4.11.0 formal proofs 74/74 PASS (29+30+15, 0 unproved, 0 errors)

This branch was previously deployed

1 inactive deployment
turbo-cache-read — 69391893 Deployed Dec 4, 2026 by NubsCarson via build #5871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant