carlos / platform Public

spec: team plans and the Plan 6b rulings (Paul, 2026-10-25) in the plans and packs design (plans 6b)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 45fe737d09ce9f710879c7b150005979425d3337 parent de094b2
1 file changed, +248 −14
  • docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md +248 −14
diff --git a/docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md b/docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md
index d864fa606..aba9faa3d 100644
--- a/docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md
+++ b/docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md
@@ -98,6 +98,26 @@ By Paul in this conversation (2026-10-20), not to be reopened by review:
paid apps share a domain. Outbound abuse starts with an audit. Hidden
costs start as monitoring.
+Team plans, by Paul (2026-10-25), amended only by his acceptance of
+Call 7 of Plan 6b (9.7):
+
+- Community and Business are "just different multiples of the same
+ gates".
+- Prices are per member per year, usd / eur / gbp: Community 6 / 5 / 4.50,
+ Business 60 / 50 / 45. The account pays for at least 10 members.
+- Limits are Personal's times 0.2 per member (Community) or times 2 per
+ member (Business), pooled across the account, for running things,
+ awake hours, bandwidth, object storage and email.
+- **Disk is neither multiplied nor pooled.** Team plans keep Personal's
+ 10 GB per running thing, so total disk grows only through the
+ running-things count (Call 7, accepted).
+- Flags (custom domains, the 15-minute idle window) are as Personal.
+ Business also gets 7-day history and priority support. Community's
+ history is the latest copy only (Call 9).
+- Every member who can access and ship counts. Adding a member charges
+ the rest of the year at once, prorated to the day. A member who leaves
+ comes off the bill at renewal.
+
Settled earlier and still binding (#321 and the 2026-10-01 rulings):
- Existing finite accounts are sponsored; sponsorship stays with the
@@ -129,26 +149,49 @@ quantity times increment, never above the pack's ceiling. The console
computes them. Every enforcement point reads effective limits, never a
plan name.
+A plan may carry a **team** block, which makes it a team plan. The block
+names:
+
+- the **base plan** whose caps it scales (Personal for both team plans);
+- the **per-member multiple**, stored in thousandths
+ (`per_member_milli`): 200 for Community (0.2), 2000 for Business (2);
+- the **minimum** billed members, 10;
+- the five **pooled fields**: running things, awake hours, object
+ storage, email and bandwidth. Disk is not one of them.
+
+For a team plan, each pooled field is the base plan's figure times the
+multiple times the billed members (the account's members, but never fewer
+than the minimum). Everything else is the base plan's figure unchanged.
+Each pooled hard ceiling is multiplied the same way when the factor
+`multiple x billed members` is above 1 (Call 8). Packs on a team plan are
+the same five, flat per account, at the same prices (Call 10).
+
+Non-team plans carry `max_members`: 3 on Free and Personal. It is checked
+when an invite is sent and when it is accepted. Nobody is removed, and
+sponsored accounts are exempt (Call 14). Team plans have no maximum.
+
### 4.2 Numbers
Paul's numbers are marked **(Paul)**. Everything else is a proposal for
Paul to approve or change before the book is approved; the builder treats
them as configuration, not constants.
-| Limit | Free | Personal | Pack adds | Hard ceiling |
-| --- | --- | --- | --- | --- |
-| Running things (apps + instances, 5.1) | 3 **(Paul)** | 25 | +5 | 200 without an operator |
-| Idle window before sleep | 90 s (1 to 2 min **(Paul)**) | 15 min **(Paul)** | none | 15 min |
-| Memory / CPU per app | 256 MB / 0.5 CPU | 512 MB / 1 CPU (today's default) | none | the existing 1 GB / 2 CPU children tier |
-| Awake hours per month (account) | 100 | 1,500 | none in v1 | n/a |
-| Database + files on box (per running thing, 5.4) | 1 GB | 10 GB | +10 GB to every running thing | 2x cap, and box safety |
-| Sidecar workers per app | 1 | 5 | none in v1 | 5 |
-| Object storage (per account) | operator-approved only, 1 GB if approved | 25 GB self-serve | +50 GB | 2x cap |
-| Email per day (account) | 50 | 1,000 | +1,000 | 10,000 without an operator |
-| Bandwidth per month (account) | 10 GB | 50 GB (Paul, 2026-10-25) | +50 GB (Paul, 2026-10-25) | 2x cap, then throttled |
-| Free accounts per person | 1 | n/a | n/a | n/a |
-| Custom domains | none | allowed | n/a | n/a |
-| Point-in-time database history | latest copy only | 7 days | none | n/a |
+| Limit | Free | Personal | Community (per member, pooled) | Business (per member, pooled) | Pack adds | Hard ceiling |
+| --- | --- | --- | --- | --- | --- | --- |
+| Running things (apps + instances, 5.1) | 3 **(Paul)** | 25 | 5 | 50 | +5 | 200 without an operator; team plans scale it (4.1) |
+| Idle window before sleep | 90 s (1 to 2 min **(Paul)**) | 15 min **(Paul)** | 15 min | 15 min | none | 15 min |
+| Memory / CPU per app | 256 MB / 0.5 CPU | 512 MB / 1 CPU (today's default) | as Personal | as Personal | none | the existing 1 GB / 2 CPU children tier |
+| Awake hours per month (account) | 100 | 1,500 | 300 | 3,000 | none in v1 | n/a |
+| Database + files on box (per running thing, 5.4) | 1 GB | 10 GB | 10 GB per running thing (not pooled) | 10 GB per running thing (not pooled) | +10 GB to every running thing | 2x cap, and box safety |
+| Sidecar workers per app | 1 | 5 | as Personal | as Personal | none in v1 | 5 |
+| Object storage (per account) | operator-approved only, 1 GB if approved | 25 GB self-serve | 5 GB | 50 GB | +50 GB | 2x cap; team plans scale it (4.1) |
+| Email per day (account) | 50 | 1,000 | 200 | 2,000 | +1,000 | 10,000 without an operator; team plans scale it (4.1) |
+| Bandwidth per month (account) | 10 GB | 50 GB (Paul, 2026-10-25) | 10 GB | 100 GB | +50 GB (Paul, 2026-10-25) | 2x cap, then throttled |
+| Free accounts per person | 1 | n/a | n/a | n/a | n/a | n/a |
+| Custom domains | none | allowed | allowed | allowed | n/a | n/a |
+| Point-in-time database history | latest copy only | 7 days | latest copy only | 7 days | none | n/a |
+| Priority support | no | no | no | yes | n/a | n/a |
+| Members (`max_members`, 4.1) | 3 | 3 | minimum 10 billed, no maximum | minimum 10 billed, no maximum | n/a | n/a |
Prices (Paul, 2026-10-25), yearly, usd / eur / gbp: Personal 28 / 24 / 22.
Five packs, each one unit for a year: `apps` (+5 running things)
@@ -158,6 +201,16 @@ Five packs, each one unit for a year: `apps` (+5 running things)
object storage effects are separate packs. The book holding these stays a
draft until it is approved as a new version.
+Team plan prices (Paul, 2026-10-25), per member per year, usd / eur /
+gbp: Community 6 / 5 / 4.50, Business 60 / 50 / 45. The account is billed
+for at least 10 members. The Community and Business columns show one
+member's share: Community is Personal times 0.2 and Business is Personal
+times 2, pooled across the account for the five pooled fields. A
+10-member Community account therefore has 50 running things, 3,000 awake
+hours a month, 50 GB of object storage, 2,000 emails a day and 100 GB of
+bandwidth a month. Disk stays at 10 GB per running thing and is not
+pooled.
+
## 5. The caps
Every cap has the same three stages (section 6). This section says, per
@@ -485,6 +538,14 @@ One subscription per account, annual, in the account's currency:
- one item: Personal, quantity 1;
- zero or more items: one per pack type, quantity = number of packs.
+On a team plan (Community or Business) the **team plan is the plan item**,
+with quantity `max(members, 10)` in place of 1. The members counted are
+the owners and members of the account who can access and ship. Pending
+invites and service credentials do not count. The pack items are the same
+five, flat per account. Adding a member charges the rest of the year at
+once, prorated to the day, and is granted once paid. A member who leaves
+comes off the bill at renewal.
+
Adding a pack mid-year updates the item's quantity with Stripe proration.
Reducing a pack takes effect at renewal. Upgrading from free is Stripe
Checkout in subscription mode. Managing payment method and invoices is
@@ -590,6 +651,179 @@ configuration, the webhook (`checkout.session.completed`,
IE and OSS tax registrations already exist. Every live step is Paul's to
approve; a test-mode rehearsal on dev comes first.
+### 9.7 Plan 6b rulings (Paul, 2026-10-25)
+
+Plan 6b is the checkout flow, team plans and the billing page. Paul ruled
+on every Call below on 2026-10-25, and the rulings are not to be
+reopened. Calls 1 to 16 were accepted as recommended. Call 17 was ruled
+"auto first, then an operator". Call 18 was ruled the same day.
+
+1. **The upgrade URL and which account it upgrades.** After sign-in, the
+ console looks at the accounts the viewer owns. One: straight to its
+ billing page. Several: a short picker, the most recent first. None: a
+ page saying only an owner can upgrade an account, with a link to
+ create one. A new sign-up owns the account minted on landing, so it
+ goes straight through.
+2. **Default currency.** The page preselects by the visitor's country
+ from the console's GeoIP database, falling back to the book's default.
+ The buyer can override it with three radio buttons. Stripe Checkout
+ collects the billing address (`billing_address_collection=required`)
+ and computes tax from it. An explicit currency we do not sell is
+ refused with a banner, and nothing is preselected.
+3. **An account's currency is fixed after its first purchase.** A Stripe
+ customer cannot hold two currencies. Changing it is an operator task.
+4. **Paid-to-paid switches: upgrades only in 6b.** An upgrade is a switch
+ to a plan whose lowest yearly total in the configured book is higher.
+ It swaps the plan item's price at once, charged now and granted once
+ paid. A downgrade between paid plans is not self-serve.
+5. **The quote is a local estimate:** "about $X now for the rest of the
+ year, plus any tax", from the book price times the days left over 365,
+ rounded up.
+6. **A fresh sign-in proof** (`requireFreshAuth`) before charging a saved
+ card (pack raises beyond the paid count, plan upgrades), before
+ opening the portal, and before recording a seat authorisation.
+ Checkout itself and stopping renewal do not need one.
+7. **Disk is not pooled.** Team plans keep Personal's 10 GB per running
+ thing.
+8. **Ceilings scale with the team.** On a team plan, each pooled ceiling
+ is multiplied by `multiple x billed members` when that factor is above
+ 1.
+9. **Community's history:** the latest copy only. Business gets 7 days.
+ Sidecars, memory tier, minimum schedule and fleets are as Personal for
+ both.
+10. **Packs on team plans:** the same five, flat per account, at the same
+ prices.
+11. **A join charges at accept, before the membership is created.** The
+ owner confirms the cost when inviting someone who will need a new
+ paid seat, and the authorisation is stored on the invite. On payment
+ failure the person does not join, the invite stays valid, and the
+ owners see the waiting payment. Authorisations are single use.
+ Operator-added members are never charged. Any excess opens
+ `seats_unpaid`.
+12. **A member who leaves** comes off at once with no proration. The
+ account keeps the period's highest paid seats until renewal. A rejoin
+ within the period is free, subject to the restore margin of 25 hours
+ before the period end (Risk R1).
+13. **Who counts:** owners and members. Not pending invites, not service
+ credentials. The account is billed and limited at a minimum of 10.
+14. **`max_members` is 3 on Free and Personal,** checked when an invite
+ is sent and when it is accepted. Nobody is removed, and sponsored
+ accounts are exempt.
+15. **Deleting a renewing account is refused, and allowed once renewal
+ is stopped.** The retirement gate checks it against provider truth.
+16. **No create-as-paid path for a second account.** The free-account
+ refusal says to upgrade the free account first.
+17. **Unclear outcomes: auto first, then an operator.**
+ - Auto: in the handler, up to 3 retries over about 7 seconds for
+ no-response, 409 and 429 answers, each a read then the same
+ prepared request. Afterwards, **Confirm now** on the page, and any
+ later owner or invitee request on the subscription, retries it
+ inside the window. A positive read settles at any time, from any
+ path.
+ - Operator: the background pass opens `operation_unresolved` for a
+ cached 5xx (fact 5) or a window that closed with no definite
+ outcome (fact 6). Changes on the account stay refused. Closing it
+ needs a fresh read showing the target, or the operator's note
+ stating what the Dashboard request log shows. A negative read alone
+ never closes it.
+ - A known pending payment never escalates. It follows Stripe's
+ pending-update lifecycle (fact 8).
+18. **Invoices read is granted on the restricted key** (Paul, 2026-10-25),
+ for Risk R1's detection. Without it, R1 would stay an undetected
+ residual risk: the subscription read does not expose the renewal
+ invoice's lines, `latest_invoice` can be replaced by a later
+ proration invoice, and signed invoice webhooks are not recoverable
+ when a delivery is missed.
+
+The pricing-page ruling stands with these: the carloku.com pricing page
+publishes only when checkout is live, and its buttons go straight to the
+console's upgrade entry.
+
+**Provider facts these rulings rely on.** Read with `stripe docs` on
+2026-10-25, API v1.
+
+1. **Idempotent retries.** "Stripe saves the status code and body of the
+ first request made with a given idempotency key after endpoint
+ execution begins. Retries with the same key return the saved
+ response, including 500 errors." Also: "The idempotency layer compares
+ incoming parameters to those of the original request and errors if
+ they're not the same." (`/api/idempotent_requests`)
+2. **Not executed.** "If incoming parameters fail validation, or the
+ request conflicts with another request that's executing concurrently,
+ we don't save the idempotent result because no API endpoint initiates
+ the execution. You can retry these requests." (same page)
+3. **In flight.** "If a 409 indicates that another request with the same
+ key is still executing, wait and retry with that key and the same
+ parameters. A new key can start a second operation."
+ (`/error-low-level`)
+4. **No response.** "Retry with the same idempotency key and parameters
+ within the first 24 hours after the original request."
+ (`/error-low-level`, Network errors)
+5. **Server errors.** "Treat the outcome of a request that returns 500 as
+ indeterminate ... Retrieve the relevant object, inspect the request in
+ the Dashboard, and use webhook events to reconcile what happened." And
+ "Stripe caches 500 responses from POST requests that use an
+ idempotency key. Retrying with the same key returns the cached
+ response." (`/error-low-level`)
+6. **Key lifetime.** "Stripe retains keys for at least 24 hours and can
+ remove them after that. Reusing a key after it's removed can execute a
+ new request." After that window, "don't retry with either the old key
+ or a new one." (`/error-low-level`)
+7. **Replay marker:** the `Idempotent-Replayed: true` response header.
+ (`/error-low-level`)
+8. **Pending updates** expire at the earliest current period end when
+ that is within 23 hours of the update request, otherwise 23 hours
+ after it. Supported attributes include `proration_date` and items with
+ `quantity`. (`/billing/subscriptions/pending-updates`)
+9. **Schedules:** direct changes to a scheduled subscription "might be
+ overwritten" at the next phase
+ (`/billing/subscriptions/subscription-schedules`), and "A schedule
+ phase change discards a pending update and voids the associated
+ invoice" (pending-updates page). **Schedules are not adopted.** They
+ would move every change onto the Schedule API and break "charged now,
+ granted once paid".
+10. **`proration_date` is not a precondition.** Prorations are calculated
+ "as though" the update happened at that time
+ (`/api/subscriptions/update`). No documented guarantee refuses an
+ update outside the current period.
+
+Not guaranteed by any of these: a bound on server processing time. A
+request sent in one period could, in principle, first apply in the next.
+See the risks below.
+
+**Risks accepted with these rulings.**
+
+- **R1. A restore first applying after renewal.** A restore is a
+ no-proration raise back up to the period's paid quantity. A restore is
+ first sent, or resent, only when the period end is more than 25 hours
+ away, and is never resent within an hour of the period end, both
+ measured in provider time. Nothing documented bounds when Stripe
+ **executes** it. Failure direction: a late restore gives the account
+ free packs or seats for the new period, until an operator acts. **It
+ never overcharges.** Detection is a durable verification obligation.
+ Every restore writes a row in the same transaction as the operation.
+ The row closes clear when the restore is proven to have applied in its
+ own period, or proven never to have executed. Otherwise, once the
+ period has moved, every later observation of the subscription reads
+ the renewal invoice once, stores its quantities as a baseline, and
+ compares the item's current quantity with it. Above the baseline, the
+ obligation is flagged and `restore_after_renewal` opens, in one
+ transaction. A failed read leaves the obligation open to retry. An
+ obligation still open seven days after the period end (provider time)
+ opens `restore_check_stalled` for an operator. Detection writes nothing
+ to the provider. The operator reduces the quantity or bills it in the
+ Dashboard, then closes the problem. It needs Invoices read on the
+ restricted key (Call 18).
+- **R2. A late Checkout session** after its create was abandoned. The
+ session's URL was never shown, so nobody can pay it, and its
+ `expires_at` is at most an hour after the create, so it is already past
+ or close. If one were ever completed anyway, the live-subscription
+ check and discovery would adopt the subscription, and a second
+ purchase is refused.
+- **R3. An orphan Stripe customer** from a customer create retried under
+ a new attempt key after an indeterminate result. It has no payment
+ method or subscription and is never bound. Harmless.
+
## 10. Provider boundary
- Caps, grace, notices, plan catalog and limits records are platform core: