Repository navigation
Closed
Labels
androidenhancementNew feature or requestsecuritySecurity-sensitive; dev agent must stop and ask a human, never auto-implementstatus:blocker-clearedneeds-info blocker(s) resolved by a merged PR — awaiting human re-triage decision
Description
Summary
Implement Premium Cloud TTS Voices on Android, per
docs/cloud-tts-premium-prd.md
(merge that PRD PR first if it hasn't landed — this issue depends on it).
Governance sign-off: #449.
Scope (v1 — see PRD §3 for what's explicitly deferred)
- New
core:cloudttsmodule, same flavor-source-set shape ascore:billing:
sharedCloudTtsProviderinterface insrc/main, five vendor HTTP
adapters (ElevenLabs, OpenAI, Google Cloud TTS, Azure AI Speech, Amazon
Polly) in the non-F-Droid flavor source set,NoOpimplementation in
src/fdroid— confirm zero new dependency reaches the F-Droid runtime
classpath the same waycore:billingdid. - Secure key storage: Android Keystore-backed
EncryptedSharedPreferences,
never plaintext, never logged. - Two independent gates, both required before any network call (PRD §4):
SupportBillingClient'ssubscriptionActive, and a separate "Cloud
Voices" consent toggle (off by default) with its own disclosure copy —
buying the subscription must not itself enable any network call. - Settings UI: new "Cloud Voices" section (visible only when subscribed),
provider picker, per-provider key entry with a cheap validation call,
first-enable disclosure modal per PRD §6. - Wire into the existing Read Aloud engine (
core:tts/feature:player,
see [enhancement] Wire Android Read Aloud: EPUB mini-bar, matching the audiobook player #137/[enhancement] Full Player-screen parity for Android Read Aloud (match iOS's expandable player) #138) as an additional voice source, not a replacement for
on-device TTS. Falls back to on-device TTS on any cloud error.
Testing (PRD §7)
- Per-adapter unit tests against mocked HTTP responses — no real network
calls in CI. - Four-quadrant gate test (subscription × consent, on/off).
- Secure-storage round-trip test.
- Fallback-on-error test per adapter.
- Regression test pinning the five fixed endpoint hosts.
Out of scope (do not implement here)
Custom/arbitrary provider endpoint, any LibraVault-run proxy, in-app
provider account creation/OAuth, usage-cost telemetry beyond a simple local
counter. Open a new issue for any of these if requested later.
Metadata
Metadata
Assignees
Labels
androidenhancementNew feature or requestsecuritySecurity-sensitive; dev agent must stop and ask a human, never auto-implementstatus:blocker-clearedneeds-info blocker(s) resolved by a merged PR — awaiting human re-triage decision
Activity
github-actions commentedon Aug 22, 2026
Triage: stopping before implementation, for two independent reasons.
1. Unmet dependency. This issue explicitly depends on the PRD landing first ("merge that PRD PR first if it hasn't landed"). PR #450 (
docs: PRD for Premium Cloud TTS Voices (BYOK)) is still open — currentlystatus:needs-review, awaiting the principal review agent, not yet merged todev. Implementing against a PRD that could still change under review risks building against a moving target.2. Networking policy. My operating rules require stopping and asking a human before adding any new networking dependency or network call, non-negotiably, regardless of how well-scoped the surrounding feature is. This issue's entire v1 scope is exactly that: five new HTTP adapters calling third-party TTS vendor APIs (ElevenLabs, OpenAI, Google Cloud TTS, Azure AI Speech, Amazon Polly) with user-supplied keys and the text of whatever the user is reading. I'm aware #449 already records product-owner sign-off for this specific networking-scope reversal — that covers the product decision, but not this pipeline's separate requirement that an agent not add the networking code itself without a human explicitly greenlighting that step too.
Applying
securitygiven the key-storage and third-party data-transmission surface, andstatus:needs-infoin place ofstatus:triage. Recommend, once #450 merges: a human (or a re-triage after explicit go-ahead) confirms this is ready for an agent to implement, and consider whether the five-vendor scope should be split into smaller PRs (e.g. module scaffolding + gating first, then adapters) rather than one large change — this is a big enough diff thatagent-policy.yml's 400-line auto-mergeable threshold will be blown through regardless, but smaller review units still help.No branch or PR opened for this issue.
libravault-xyz commentedon Aug 22, 2026
Sweep note (blocker-cleared re-check): This issue's triage-stop comment cited PR #450 ("docs: PRD for Premium Cloud TTS Voices (BYOK)") as still open and blocking implementation. #450 has since merged (2026-08-22T18:35:22Z). That clears the first of the two reasons triage stopped here — the second (the standing "stop and ask before adding any new networking dependency" rule, given this issue's v1 scope is five new HTTP adapters with user-supplied keys) is a real scoping/security decision this routine isn't authorized to make.
Swapping
status:needs-info→status:blocker-clearedso this is visible as unblocked-on-the-PRD-but-still-needs-a-human-go-ahead, rather than flipping straight tostatus:ready-for-devmyself.Generated by Claude Code
libravault-xyz commentedon Aug 23, 2026
Human authorization to proceed (security-sensitive gate acknowledged).
Scope adjustment before implementation starts: App Store Connect / Play Console tax & banking setup is not complete yet, so the real
SupportBillingClient.subscriptionActivepurchase path has nothing live to gate against on-device.For this pass, implement the subscription half of the four-quadrant gate as a mock/stub "subscription active" toggle (e.g. a debug-settings or build-config flag), not wired to a real Play Billing purchase flow. Keep it behind the same
SupportBillingClientinterface shape so swapping in the real purchase-verified value later is a one-line change, not a rework. The consent-toggle half of the gate stays real from day one. Call this out explicitly in the PR description so QA/review don't mistake the stub for the real gate.Proceeding under this constraint.
libravault-xyz commentedon Aug 23, 2026
Correction to my previous comment: drop the mock/stub subscription toggle — checked PRD §8 (Rollout) after posting, and it already specifies the right approach: wire straight to the real
SupportBillingClient.observeSubscriptionActive(). It safely evaluatesfalseuntil the Play Console product exists, so the feature ships inert and lights up automatically once store setup completes — no stub, no follow-up swap needed. Consent toggle as originally scoped. Human authorization to proceed stands.libravault-xyz commentedon Aug 23, 2026
PR 1 of 4 (Android foundation) opened: #462 — module skeleton, secure BYOK key storage (reusing core:vaultstore's HardwareKeyWrapFactory, not EncryptedSharedPreferences per the PRD's literal wording — see PR description for why), and the four-quadrant gate wired to the real
subscriptionActivesignal. 13 new tests, verified locally (all passing on both flavors). No vendor adapters/engine/UI yet — those are PRs 2-4, each gated on the previous merging.feat(android): core:cloudtts foundation — gate, secure key storage (#451
feat(android): core:cloudtts vendor adapters — 5 vendors, real API sh…
feat(android): core:cloudtts engine wiring — makes Cloud TTS reachable (
feat(android): Cloud Voices Settings UI — completes Android #451 (#470)