Skip to content

Add deterministic access-loss testing and API polish - #8

Merged
lynnswap merged 2 commits into
mainfrom
codex/readme-testing-polish
Jul 23, 2026
Merged

Add deterministic access-loss testing and API polish#8
lynnswap merged 2 commits into
mainfrom
codex/readme-testing-polish

Conversation

@lynnswap

Copy link
Copy Markdown
Owner

Purpose

Complete the remaining design-audit work around subscription access testing and consumer-facing API clarity.

Changes

  • add expireActiveSubscription() with ready-empty publication, admission checks, and replay-safe expiration state
  • add delivery-only synthetic transactions for testing arbitrary StoreKit classification and delegate paths through the production pipeline
  • clarify exact tier identity versus app-owned feature inclusion in README and DocC
  • make StoreTransactionError conform to LocalizedError
  • document why transaction history is all-or-nothing
  • extend internal and external-consumer contract coverage for access loss, hierarchy, lifecycle errors, unmanaged transactions, and catalog contradictions

Testing

  • swift test — 134 tests passed
  • swift test --package-path Fixtures/ExternalConsumer — 4 tests passed
  • xcrun swift-format lint --recursive --strict Sources Tests Tools/TestApp Package.swift
  • xcrun swift-format lint --recursive --strict Fixtures/ExternalConsumer/Sources Fixtures/ExternalConsumer/Tests Fixtures/ExternalConsumer/Package.swift
  • xcodebuild docbuild -scheme StoreTransactionKit -destination 'generic/platform=macOS'
  • branch-wide Codex review against main — no findings

lynnswap added 2 commits July 23, 2026 18:28
Document tier values as exact plan identities and keep feature inclusion in app policy. Explain complete history semantics and make StoreTransactionError provide useful localized diagnostics.
@lynnswap
lynnswap merged commit b0e60e3 into main Jul 23, 2026
5 checks passed
@lynnswap
lynnswap deleted the codex/readme-testing-polish branch July 23, 2026 09:54
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