Derive entitlement mode through one shared, deterministic resolver

FeatureBillingService
Shipped
August 8, 2026 at 4:59 PM UTC
Author
Kamo
Commit
763a25f

TrialAdminService picked its trial subscription with findFirst() over an unordered list, so an org holding both a pending and an active trial could report either. The upcoming organization directory has to sort and filter on this state, and a query cannot reproduce a nondeterministic rule. The precedence now lives in **************** among live trials, active wins over pending wins over expired, and the active expiry reported is the latest one. status() keeps its exact response shape. First tests in this repo (11).

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing