Delete the entitlement shims !13

merged merged by cmc on 2026-10-24 05:51 UTC · krz/domain-dig:delete-entitlement-shims into main

Discussion

cmc

Closes A5.

PremiumAccessService forwarded every call to FeatureAccessService and had exactly one live caller; its hasAccess(to:) and the entire PremiumCapability enum were dead. DataAccessService was pure forwarding over a parallel DataCapability enum that !11 had already reduced to one case.

loadLookup's parameter was DataCapability?, which forced its gate to translate through capability.feature to reach a real capability. It is FeatureCapability? now and asks hasAccess(to:) directly — loadExtendedSubdomains' call site needed no change, since both enums used the same case name.

Also closes the violation flagged on !12: PremiumAccessService used currentTier != .free as a stand-in for unlimitedTrackedDomains, the last entitlement decision outside FeatureAccessService. It leaves with the file rather than needing its own fix. The remaining currentTier comparisons, in SettingsViews and RootTabView, choose what to display rather than what is permitted.

Two files and two enums deleted, five call sites repointed. 142 tests, 0 failures on iOS 18.6 and iOS 27.0.