railyard/apps/rithub-lifecycle
caelum0x b851c1c74d
Some checks failed
ci / cargo test (abacus) (push) Has been cancelled
ci / cargo test (agent-runtime) (push) Has been cancelled
ci / cargo test (context-passport) (push) Has been cancelled
ci / cargo test (game-economy) (push) Has been cancelled
ci / cargo test (ledgerline) (push) Has been cancelled
ci / cargo test (mint) (push) Has been cancelled
ci / cargo test (rago) (push) Has been cancelled
ci / cargo test (relay) (push) Has been cancelled
ci / cargo test (toolgate) (push) Has been cancelled
ci / cargo test (turnstile) (push) Has been cancelled
ci / cargo test (vend) (push) Has been cancelled
ci / node suites (push) Has been cancelled
feat(rithub): RIT-MON Team plan ($49/mo, 5 seats) + migration concierge ($149)
Same checkout/webhook pipeline as the existing Pro flow, two new plans:
- team: pdt_0Nt5QOTvyRsIS2bzPTGMN, $49/mo recurring, 5 seats (no per-seat
  enforcement yet -- same "ship the real promise, not an invented
  paywall" rule as Pro).
- concierge: pdt_0Nt5QOsTUXHh1p3KU6i8A, one-time $149, "we move your
  repos for you" migration service.

Both products created live in Dodo (same business as the existing Pro
products). bin/start.mjs resolves which plan a webhook event is about
from the product id Dodo actually sends (never a client-settable
metadata field for the grant decision), with a safe fallback that
preserves whatever plan was already on record rather than guessing
"pro" on an event with no product info (e.g. a bare cancellation).

rithub_pro.py: pro-users.json (drives the /user/settings Pro/Free
banner) now only ever contains the real recurring "pro" plan -- Team
and concierge entitlements are recorded (visible via /billing/admin)
but never render as a Pro/Free state, and concierge gets a one-time
"we'll start moving your repos" ack mail instead of the subscription
"is on" copy.

Verified live: both checkout URLs 302 to a real Dodo checkout_url
(no card entered, correct name/price rendered); both plans resolve
correctly from a hand-signed Standard Webhooks test payload against
the real product ids (admin view showed plan: "team"/"concierge",
pro_users stayed empty); test entitlement rows cleaned up after.
/pricing updated with Team as a 4th plan card and a concierge callout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:35:13 +03:00
..