Closes P1, P2 and P4 under decisions D1 and D2.
Pro+ promised five capabilities and four could not produce anything in a
shipping build: pricing and reputation resolve to .empty with no endpoint
configured, and ownership and DNS history return only events re-derived from the
user's own stored snapshots. Those five were also Pro+'s entire difference from
Pro at $14.99/month, so deleting them without replacement would have left a paid
tier granting nothing — which is why this does both halves at once and the table
is never in a state that lies.
The new table
- Ownership and DNS history are ungated. They are local derivations, so
loadLookup's capability argument is now optional and they are open to every tier. - Pricing and reputation are deleted: no local derivation, no provider, and
nothing to rename. Their fetches, both
refresh*methods (uncalled the moment the fetches went), theirExternalDataServicepaths, and the pricing UI row are gone. - Extended subdomains moves down to Pro. It is the one of the five that
genuinely returns data a lower tier lacks: a live crt.sh query at
limit: 100against the base lookup's 25. - Pro+ gains
sharedPortfoliosandauditDepth, both already built and until now given away on every tier —createShareandAuditListViewcarried no check at all (P4).
Creating a share now needs Pro+; managing one the user already has does not. Free keeps one audit session open at a time and finishing one frees the slot. Limits gate adding, not holding, so a lapsed subscriber loses access to nothing they already have.
The meter
Deleted outright across eight files. It was never enforced — canUse and
consume had no callers — and it was never displayed either: the three status
values reached view initialisers, were stored in let properties, and were read
by no view body. UsageCreditStatus.summary ("N uses remaining") is never
called. The spec's P2 said the counts were shown to the user; that was wrong and
will be corrected.
Its backup field was Optional, so backups written before this still decode —
JSONDecoder ignores the unknown key. The orphaned usageCredits.ledger entry
stays in UserDefaults on existing installs until a data reset or the store
migration in W5.
Contract
DomainReport keeps domainPricing and reputation as absent optionals and the
CSV keeps its seven pricing_*/reputation_* columns, always empty. The Local
API v1 shape is unchanged and no version bump is needed.
Verified
- 141 tests, 0 failures, on iPhone 16 (iOS 18.6) and iPhone Air (iOS 27.0) via
./Scripts/test.sh. - 12 new tests pin the table. They were mutation-checked: giving Pro the two
Pro+ capabilities — recreating the original defect — fails
testProPlusGrantsStrictlyMoreThanProandtestProDoesNotIncludeTheProPlusCapabilitiesand nothing else. The red step during development was lost twice to a compile error and a bad assertion, so the mutation is the evidence that these guards discriminate.
Not in this MR
IntelligenceSectionView is gated with a direct currentTier != .proPlus check
at ContentView and HistoryView rather than a capability, which is why no
audit of FeatureCapability found it. The data is real but locally derived, so
whether it should follow the history derivations into the free tier, stay a Pro+
differentiator, or at least become a named capability is a pricing decision, not
a cleanup. Left untouched.