Skip to content

feat(billing): add card-free sponsored organization access - #10783

Draft
mzxchandra wants to merge 2 commits into
codex/grants-s2-email-creditsfrom
codex/grants-s3-sponsored-access
Draft

mzxchandra wants to merge 2 commits into
codex/grants-s2-email-creditsfrom
codex/grants-s3-sponsored-access

Conversation

@mzxchandra

Copy link
Copy Markdown
Contributor

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

  • 33 real-PostgreSQL lifecycle, storage and service-receipt cases passed; 4 FAL settlement regressions passed.
  • 180 focused schedule, admission, allowance and chat regressions passed.
  • Paired actual Sim HTTP handlers and worker runTurn passed: expiry blocks the next model call; late receipt retains its original period; no registration handshake.
  • Older Sim callback accepts the additive receipt metadata and deduplicates retries.
  • Current-base types, generated artifacts, operation/route audits and migration checks passed. Hosted checks dispatched against the parent SHA.
  • Deployed staging NOT RUN. Preserve personal payer/workspace and legacy-credit fixtures before rollout; verify isolation, seat races, expiry/extension and late usage afterward.

Type of Change

  • New feature

@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Dec 5, 2026 9:03am UTC

Request Review

This branch was previously deployed

1 inactive deployment
Preview — 8a63453b Deployed Dec 5, 2026 by vercel[bot]
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