Repository navigation
feat(billing): add card-free sponsored organization access - #10783
Draft
mzxchandra wants to merge 2 commits into
Draft
mzxchandra wants to merge 2 commits into
mzxchandra wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
1 task done
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds time-limited, card-free organization sponsorship with configurable Team tier and total seat cap. A verified recipient creates a separate organization and fresh workspace, optionally claiming their usage grant in the same transaction. Existing personal billing/workspaces remain untouched. Existing single-org membership restrictions remain enforced.
Shared access checks stop chargeable work, new invitations and scheduled execution after expiry while retaining content and manual editing. Extensions preserve the original allowance cadence. Original-period receipts settle late usage without producer registration or a grant-removal finalizer; uncovered sponsored overshoot is absorbed.
Stack and companion
Stacks on #10782. Paid continuation is the next Sim slice; no provider billing transition is enabled here.
Companion: https://github.com/simstudioai/mothership/pull/1067
Storage and rollout
Additive migration 0493 creates team_sponsorship and organization_credit_period with native lifecycle/uniqueness checks and retained identity snapshots. No historical backfill or worker schema change.
Deploy the tolerant worker reader first, verify old readers drained, then the new worker receiver before Sim writes timestamped service receipts. Drain old pending service receipts before that sender transition. Do not enroll recipients until the complete paired runtime and intended paid/onboarding journey are deployed. After enrollment, rollback must retain sponsor-aware admission and source-preserving debits.
Testing
Type of Change