Enforce subscription period end and lifecycle transitions #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Generation eligibility currently checks
subscription.status === "active"inpackages/db/src/generation-store.ts, but does not enforcecurrentPeriodEndor move subscriptions throughpast_due/expiredstates.Why this matters
After a user pays once, unused quota can remain available beyond the paid period because there is no runtime enforcement that the billing window actually ended.
Acceptance criteria
currentPeriodEnd, access is terminated immediately with no grace period.active.pending_activation,active,past_due,expired, andcanceledconsistently.