carlos / platform Public

spec: plans 6b rulings follow-ups (non-goals, pricing page, R1 in full)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev dd365a0762e06f23a139a722fd89871454637599 parent 45fe737
1 file changed, +60 −26
  • docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md +60 −26
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 aba9faa3d..59ec44e41 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
@@ -34,7 +34,8 @@ in the console, there and then.
Two deliveries, in this order:
1. **Pricing page** on carloku.com showing Free and Personal, rendered from
- an approved price book. Can ship before checkout works.
+ an approved price book. It publishes only when checkout is live, and
+ its buttons go straight to the console's `/upgrade` entry (9.7).
2. **Plans, caps, packs and checkout** in the platform: a free plan, one
paid annual plan (Personal) bought through Stripe Checkout, packs sold
as quantities on the same subscription, caps with warnings and grace
@@ -58,7 +59,7 @@ Two deliveries, in this order:
### Non-goals (later, not never)
- Metered usage billing and overages of any kind.
-- Team plans priced per member (Community, Business).
+- Team plans beyond Community and Business.
- Affordability bands (see 9.3).
- Seats as a sellable pack.
- An always-on option on any plan.
@@ -186,7 +187,7 @@ them as configuration, not constants.
| 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 |
+| 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; team plans scale it (4.1) |
| 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 |
@@ -201,6 +202,10 @@ 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.
+The Community and Business figures are derived from Paul's ruling
+(Personal times 0.2 and times 2); only the multiples and the prices are
+his numbers.
+
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
@@ -793,27 +798,54 @@ 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).
+- **R1. A restore first applying after renewal.**
+ - A restore is a `ProrateNone` raise back up to the period's paid
+ quantity. The 25 hour margin and the "period end minus 1 hour" resend
+ cut-off, both in provider time, bound when restores are **sent**.
+ Nothing documented bounds when Stripe **executes** them.
+ - 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 operation inserts a `billing_restore_checks` row in
+ the same transaction as the operation. The row records the
+ subscription, the restore's period end, the price, the restore
+ target, the operation id and the state `open`.
+ - It closes `clear` when the restore is proven to have applied **in
+ its own period** (a definite response, or a read showing the target
+ with a period end equal to the restore's, so the renewal billed
+ it). It also closes `clear` when it is proven never to have
+ executed: the operation `failed`, or an operator close of
+ `operation_unresolved` with `not-executed`.
+ - Otherwise, once the period has moved, **every later observation**
+ of that subscription runs the check, as do the webhook, Confirm
+ now, any user request and the hourly pass. The hourly pass selects
+ open obligations directly, so it is not triggered only by a period
+ change. The check reads the renewal invoice for the period
+ starting at the restore's period end, **once**, and stores its
+ quantities as the obligation's baseline, because a later proration
+ invoice can replace `latest_invoice`. It then compares the item's
+ current quantity with the baseline.
+ - Above the baseline, `FlagRestoreCheck` sets the obligation
+ `flagged` **and** opens `restore_after_renewal` ("item %s is at %d,
+ the renewal billed %d") **in one transaction**. If either write
+ fails, neither commits, and the obligation stays `open` for the
+ next observation. At or below the baseline, the obligation stays
+ `open` while the operation is still outstanding, and is `clear`
+ once the operation is terminal.
+ - **The obligation survives failures.** An invoice-read failure or an
+ incomplete list leaves it `open`, with `attempts` and `last_error`
+ updated. A crash between saving the renewal and checking it leaves
+ it `open`, and the pass finds it, because the trigger is the open
+ row, not the period change.
+ - An obligation still `open` when provider time passes the period
+ end plus 7 days (both on Stripe's clock) opens
+ `restore_check_stalled` for an operator. The obligation stays
+ `open`, still retried, so a lost problem write is retried too.
+ - 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: granted by Paul
+ (Call 18, 2026-10-25).
- **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
@@ -843,8 +875,10 @@ memory `platform-hostnames-209`; earlier drafts in the
`carloku-paid-pricing` worktree, rendered from
`copy-review/pricing/strings.json` and `public-pricebook.json`). It shows
Free and Personal from the approved book's public export, the caps table
-in human terms, and the packs. The upgrade button goes to the console;
-until checkout is live it goes to sign-up.
+in human terms, and the packs. The upgrade buttons go straight to
+the console's `/upgrade` entry, which takes a signed-out visitor through
+sign-in or sign-up first (9.7, Call 1). The page publishes only when
+checkout is live.
Gates: an approved price book (a new version, not an edit of the draft);
copy review of every string (the 2026-09-22 approval is lost and does not