design-squad via punchlist-lead: live, the skeleton bar was nearly invisible, so while 'Start sandbox ·
Checking your plan…' ran the second step read as an empty, unlabeled row. The row now names itself
neutrally (the N-12 string) until the mode is known, with its empty circle; the 150 ms delay and the
waitedMs/stopped props go.
Neil's Q1 answer: a plan id on the Stripe Price/Product maps to the repo catalog's entitlements.
seatPriceMatch reads price.metadata.orca_plan (after env ids and price history, before lookup key
and product); the catalog sync logs a lookup-key/tag mismatch; stripe-test-setup tags every price.
- main: lenient GET /v1/plans parse (a bad plan/price/feature is dropped alone), ETag revalidation,
last-good copy in userData (offline <7 days only), 404 = unsupported; IPC orcaProfiles:billingPlans
- plans dialog: Stripe prices, the catalog's Team and Enterprise features (known ids localized,
unknown ids show billing's text), only priced intervals, seat bounds, currency from the price;
older billing (404) reads its entitlement offers; nothing usable -> error + Try again, never a price
- checkout sends the catalog plan id, not 'team'; 409 plan_unavailable is a typed result with
'This plan isn't available right now', Try again (re-reads the catalog) and Contact us
- hardcoded Enterprise bullets removed; PR C checked against today's dev billing (no alert levels)
- planForPrice fix: seat prices map through the configured ids, the price history (plan_prices),
the plan's lookup key, or the plan's Stripe product; a known subscriber on an unmappable price
still gets status/period/cancel applied, so a price change can never leave a canceled
subscriber with access (test: lifecycle.test.ts, all modes)
- catalog prices synced from Stripe by lookup key (cron + price.*/product.* webhooks); every seat
price a subscription is on is kept as history; Checkout sells the lookup-key holder when on and
refuses (409 plan_unavailable) rather than guess a price
- webhook: one processStripeEvent for webhooks and replay; customer.deleted revokes; the mirror
upsert ignores older Stripe reads
- reconcile.ts (cron): Stripe event replay from a cursor, rolling re-sync of stale subscriptions
(404 = canceled), catalog price refresh; grant backfill after it
- GET /v1/plans (public, ETag/304, prices only from Stripe, entitlements, features, policy) and
GET /v1/entitlements (effective values, access, grants); legacy offers built from the catalog
when on (identical for the launch catalog, plus warnAtPercent)
- seats and overage read the price history and plan policy (seat bounds, true-down window)
- trial concurrency: read billing's limits; the trial says 'Your trial can run 1 sandbox at once',
never Team's '3 per seat'; predictive wake uses the per-member cap
- spend cap: no $25 fallback (no offers -> 'Turn on overage', billing applies its default)
- plan summary: no '$0 per seat' when the price is unknown
- usage alerts: levels from billing (offers.team.warnAtPercent), generic copy without them;
notifier alerts at billing's levels; ORCA_USAGE_ALERT_LEVELS removed
- idle sleep fallback uses the shared constant; mobile drops '(3 per seat)'
- an unknown plan id from a newer service stays a plan