Repository navigation
chore: delete core:licensing — no Pro/paid tier for now, docs cleanup - #172
Merged
Merged
Conversation
Per direction: no subscription/Pro tier this year — first build the
product and an audience, donation-funded in the meantime. Completes a
decision made 08-13 (see project memory) but never executed: delete
KeyProGate/LicenseVerifier/ProStateManager (F-Droid) and PlayBillingProGate
(Play), not "fix" the placeholder Ed25519 public key that never worked in
production.
## Confirmed before deleting, not assumed
`IProGate` (the interface both implementations satisfied) had **zero
consumers anywhere outside core:licensing itself** — grepped for it across
the whole app. Nothing was ever actually gated on Pro status; the module
was fully-built but never wired in. This also means the Encrypted Vaults
implementation plan's original Phase 6 ("wire IProGate as the gate on vault
creation/import") is now moot rather than something to walk back — there
was nothing live to unwire.
`SupporterRepository`/`isSupporter`/`SupporterBadge` (core:storage,
feature:settings, feature:library) is unrelated and untouched — that's the
donation-recognition badge, not feature gating, and donations are exactly
what's being kept.
## What's deleted
- `core/licensing/` entirely: `IProGate`, `KeyProGate`, `LicenseVerifier`,
`ProStateManager` (fdroid), `PlayBillingProGate` (play), both
`LicensingModule`s, `PurchaseOutcome`, and their tests.
- `tools/`: `gen_keypair.py`/`sign_key.py`/`README.md` — Ed25519 keypair
tooling that only ever served the deleted `LicenseVerifier`.
- `settings.gradle.kts`'s `include(":core:licensing")`.
- The module's explicit task references in `jvm-tests.yml` and
`ios-app-build.yml` (would otherwise fail — Gradle can't find a deleted
module's tasks) and its entry in `.github/agent-policy.yml`'s
sensitive-path list and both issue templates' component dropdowns.
## Docs
`docs/threat-model.md` and `SECURITY.md` (the "engineering-side" and
"public-facing" halves of the same security documentation, per
threat-model.md's own description) both: (a) drop the stale License-key
asset/threat rows and the Ed25519 key-rotation section, (b) gain a real
Encrypted Vaults writeup — assets, the PIN/hardware-Keystore/recovery-key
wrapping hierarchy, chunked-AEAD tamper/nonce/truncation mitigations,
auto-lock, FLAG_SECURE, the leak-closure guarantee, and an explicit
"accepted residual leaks" table (vault existence/count/display-name, file
size/count) — this is the piece of the original Phase 6 plan that's still
squarely in scope regardless of the Pro-tier decision, and the whole
feature had never been documented here before. Both now state plainly that
there's no Pro tier.
`README.md`'s and `docs/ios-android-feature-parity.md`'s module
lists/tables get the same two updates while already being touched:
`core:licensing` removed, the (already-shipped, undocumented-until-now)
vault modules added. `docs/TEST_PLAN.md`, `SHERPA_ONNX_SETUP.md`,
`WORKTREE-README.md`, `KNOWN_LIMITATIONS.md` get the same reference
removed. `TEST_PLAN.md` additionally gets an honest top-of-file flag that
the rest of its module/coverage numbers predate the vault work entirely
and need a fuller refresh — not attempted here, out of proportion to this
change.
iOS: checked `reader-ios` for equivalent Pro-gating code (grep for
StoreKit/IAP/ProGate-style names) — found none; that repo also has another
session's uncommitted work in progress, so left untouched rather than risk
a concurrent-edit conflict. `IProGate`'s own doc comment already listed iOS
as "TBD (Phase B)", consistent with nothing having been built there.
## Testing
Full repo suite run locally exactly as CI's `jvm-tests.yml` does (module
list updated to match the deletion): 730 tests, 0 failures — down from
Phase 5c's 745 by exactly the ~15 deleted `core:licensing` tests, nothing
else regressed. `./gradlew lint` clean. Both flavors compile
(`:app:compileFdroidDebugKotlin`/`compilePlayDebugKotlin`). All 5 edited
YAML files validated with `yaml.safe_load`.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
📱 iOS Build Status: PASSED✅ iOS Simulator Build & Unit Tests - success iOS UI tests run in a separate, informational job and are not reflected above — check "iOS UI Tests (informational)" for those. |
This was referenced Aug 15, 2026
libravault-xyz
added a commit
that referenced
this pull request
Aug 18, 2026
#275) * docs(test): Phase 6 — regenerate the test plan and add real guardrails Phase 6 of docs/TEST_COVERAGE_PRD.md, the final phase. ## TEST_PLAN.md was wrong in ways nobody had noticed Two claims were provably false by the time anyone read them: - core/database was marked "✅ 100% COMPLETE (logic-bearing migrations)". Four of six migrations had NO test, and the one that did asserted SQL substrings against a mock. Fixed in Phase 3. - feature/library was marked "🔴 DEFERRED — requires extensive DI/context setup". Its display logic turned out to be extractable to pure functions with no DI at all, and now has 23 unit tests. And the "Future Testing Priorities" list recommended writing tests for a donation state machine that had ALREADY BEEN DELETED — pollUntilPaid, createDonationInvoice and hasAnySettledInvoice all went in PRs #163/#172 when the donation flow became an external link. A stale priority list quietly sends people to work that cannot be done. The hand-written per-module narrative is replaced by a pointer to measured Kover data, which CI prints on every run. Prose would go stale again within a week; the numbers cannot. Coverage table refreshed to 41.6% (dev @ efb1b89), from 40.1% at first measurement, with the movement attributed per module to Phases 3-5. ## AGENTS.md now carries the decisions, not just the conventions - A "choosing a test type" table: pure JVM / Robolectric / Roborazzi / instrumented / Test Lab, with the rule that going lower is not thrift if the level cannot observe the property. Both traps that cost real time are named: an assertion at a level that cannot fail, and a generic label sweep that passes on "A-" / "Show". - "Prove a new test can fail" — break it on purpose, confirm red, restore. Three concrete examples of tests that passed while asserting nothing, all of which looked correct in review. - Coverage expectations: what is gated, what is report-only and why a repo-wide ratchet is deliberately avoided, and not to chase the overall percentage. ## A guardrail that actually runs scripts/check-test-plan-modules.py fails CI if a module in settings.gradle.kts is absent from TEST_PLAN.md, or if the plan names a module that no longer exists. Deliberately the weakest check that still works. It gates COMPLETENESS, not accuracy: gating a doc on being true would mean regenerating it on every PR, which trains people to bypass the check. What it prevents is a new module arriving with no tests and no mention while the plan still reads as if it covers the repo. Runs first in jvm-tests.yml — pure Python, no Gradle, so drift is reported in seconds rather than after the ~11-minute test run. Verified in both directions (undocumented module, and a phantom core:licensing reference), and it caught a bug in its own first draft: a regex requiring a colon reported `app` as undocumented while it sat in the coverage table. * ci: run the test-plan check last so it cannot hide test results Review finding on my own change. The check was placed first for fast feedback, but a failing step ends the job — so a stale doc would hide every test and coverage result behind it. Someone who adds a module and forgets the table would see a red X and learn nothing about whether their tests pass. That is precisely how a check teaches people to route around it, which defeats the point of adding one. Moved to last with `if: always()`: both signals now always arrive, and the doc is still checked when the tests themselves fail. It is still a hard gate in a required job, so the agent pipeline cannot auto-merge past it — a separate advisory job would have been ignored entirely, since auto-merge only waits on required checks.
3 tasks
This was referenced Aug 22, 2026
github-actions Bot
pushed a commit
that referenced
this pull request
Aug 22, 2026
Design doc for a subscriber-gated Read Aloud voice source using user-supplied API keys against five named vendors (ElevenLabs, OpenAI, Google Cloud TTS, Azure AI Speech, Amazon Polly). Custom/arbitrary endpoints deliberately deferred to a later issue. Governance sign-off recorded in #449 (reverses the standing "no Pro tier" decision from #172, and narrows a second reversal on top of #400's networking sign-off, scoped to five fixed named endpoints only). Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Per direction: no subscription/Pro tier this year — first build the product and an audience, donation-funded in the meantime. This completes a decision made 08-13 (see project memory) but never executed: delete
KeyProGate/LicenseVerifier/ProStateManager(F-Droid) andPlayBillingProGate(Play), rather than "fix" the placeholder Ed25519 public key that never worked in production.Also folds in the still-relevant half of the Encrypted Vaults implementation plan's Phase 6: documenting the feature in
docs/threat-model.md/SECURITY.md, which had never mentioned it at all across Phases 0–5c.Confirmed before deleting, not assumed
IProGate(the interface both implementations satisfied) had zero consumers anywhere outsidecore:licensingitself — grepped for it across the whole app. Nothing was ever actually gated on Pro status; the module was fully-built but never wired in. This also means the original Phase 6 plan ("wireIProGateas the gate on vault creation/import") is now moot rather than something to walk back — there was nothing live to unwire.SupporterRepository/isSupporter/SupporterBadgeis unrelated and untouched — that's the donation-recognition badge, not feature gating, and donations are exactly what's being kept.What's deleted
core/licensing/entirely (IProGate,KeyProGate,LicenseVerifier,ProStateManager,PlayBillingProGate, bothLicensingModules,PurchaseOutcome, and their tests).tools/— Ed25519 keypair tooling that only ever served the deletedLicenseVerifier.settings.gradle.kts'sinclude(":core:licensing"), and its explicit task references injvm-tests.yml/ios-app-build.yml(would otherwise fail — Gradle can't find a deleted module's tasks),.github/agent-policy.yml's sensitive-path list, and both issue templates' component dropdowns.Docs
docs/threat-model.mdandSECURITY.mdboth: drop the stale License-key rows and the Ed25519 key-rotation section, and gain a real Encrypted Vaults writeup — assets, the PIN/hardware-Keystore/recovery-key wrapping hierarchy, chunked-AEAD tamper/nonce/truncation mitigations, auto-lock,FLAG_SECURE, the leak-closure guarantee, and an explicit "accepted residual leaks" table. Both now state plainly there's no Pro tier.README.md/docs/ios-android-feature-parity.md's module lists getcore:licensingremoved and the (already-shipped, undocumented-until-now) vault modules added.docs/TEST_PLAN.md/SHERPA_ONNX_SETUP.md/WORKTREE-README.md/KNOWN_LIMITATIONS.mdget the same stale reference removed;TEST_PLAN.mdadditionally gets an honest flag that its module/coverage numbers otherwise predate the vault work and need a fuller refresh (not attempted here).iOS: checked
reader-iosfor equivalent Pro-gating code — found none (IProGate's own doc comment already listed iOS as "TBD (Phase B)"). That repo also has another session's uncommitted work in progress, so left untouched rather than risk a concurrent-edit conflict.Testing
Full repo suite run locally exactly as CI's
jvm-tests.ymldoes (module list updated to match the deletion): 730 tests, 0 failures — down from the prior 745 by exactly the ~15 deletedcore:licensingtests, nothing else regressed../gradlew lintclean. Both flavors compile. All 5 edited YAML files validated withyaml.safe_load.🤖 Generated with Claude Code