plans: Paul's prices of 2026-10-25 in the example book; the storage pack split into disk and storage, the bandwidth pack +50 GB (example catalog, spec §4.2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 files changed,
+62
−43
docs/superpowers/plans/2026-10-25-plans-6a-checkout.md+1 −1docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md+8 −4internal/billing/prices_test.go+4 −4internal/billingstripe/adapter_test.go+3 −3internal/plans/catalog_test.go+1 −1internal/plans/export_test.go+1 −1internal/plans/pricebook_test.go+11 −10internal/plans/testdata/example-catalog.json+4 −3internal/plans/testdata/example-pricebook.json+4 −3internal/plans/testdata/example-public-pricebook.json+25 −13
diff --git a/docs/superpowers/plans/2026-10-25-plans-6a-checkout.md b/docs/superpowers/plans/2026-10-25-plans-6a-checkout.md| index 0ff28354a..1498e7bcc 100644 |
| --- a/docs/superpowers/plans/2026-10-25-plans-6a-checkout.md |
| +++ b/docs/superpowers/plans/2026-10-25-plans-6a-checkout.md |
| @@ -31,7 +31,7 @@ Builds on Plans 1, 2, 3a, 3b, 4a, 4b and 4c, merged. Plan 4d (lapse lifecycle) i |
| ## Calls for Paul |
| -**All recommendations ACCEPTED by Paul, 2026-10-25.** Paul also ruled that Personal's included bandwidth comes down from 200 GB a month to 50 GB a month (the example catalog and spec §4.2 now say 50 GB). The bandwidth pack's size and every pack price are still his to set. |
| +**All recommendations ACCEPTED by Paul, 2026-10-25.** Paul also ruled that Personal's included bandwidth comes down from 200 GB a month to 50 GB a month (the example catalog and spec §4.2 now say 50 GB). Later the same day Paul set the prices (Call 15) and split the storage pack (Call 16): yearly usd / eur / gbp, Personal 28 / 24 / 22; packs `apps` (+5 running things) 12 / 10 / 9, `disk` (+10 GB to every running thing) 36 / 31 / 28, `storage` (+50 GB object storage) 12 / 10 / 9, `email` (+1,000 a day) 24 / 21 / 19, `bandwidth` (+50 GB a month) 48 / 41 / 38. The example catalog and book carry them; the book stays a draft. That is 18 prices. |
| Each has a recommendation. Decisions 1 to 8 and 15 are the old `DECISIONS-FOR-PAUL.md` items (at `165472b8:implementation/carloku-paid-launch/DECISIONS-FOR-PAUL.md`) recast for v1. The recast is possible because v1 drops the old design's intents-as-identity: **the customer the console creates for an account is the identity** (6b creates it before Checkout; the restricted key cannot create subscriptions by any other route). 6a builds to recommendations 1 to 4, the `PaidPacks` half of 6, and 10 to 14; 6b builds the rest; 15 and 16 are Paul's numbers and catalog. |
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 352998138..d864fa606 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 |
| @@ -145,14 +145,18 @@ them as configuration, not constants. |
| | 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) | +200 GB | 2x cap, then throttled | |
| +| 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 | |
| -Prices: Personal at the draft book's annual bases (usd 28, eur 24, gbp 22). |
| -Pack prices are Paul's to set; the book needs one price per pack per |
| -currency. |
| +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) |
| +12 / 10 / 9; `disk` (+10 GB to every running thing) 36 / 31 / 28; |
| +`storage` (+50 GB object storage) 12 / 10 / 9; `email` (+1,000 a day) |
| +24 / 21 / 19; `bandwidth` (+50 GB a month) 48 / 41 / 38. The disk and |
| +object storage effects are separate packs. The book holding these stays a |
| +draft until it is approved as a new version. |
| ## 5. The caps |
diff --git a/internal/billing/prices_test.go b/internal/billing/prices_test.go| index 88daf97e3..b735a492a 100644 |
| --- a/internal/billing/prices_test.go |
| +++ b/internal/billing/prices_test.go |
| @@ -10,8 +10,8 @@ func TestParsePriceMap(t *testing.T) { |
| book := exampleBook(t, cat) |
| full := fullPrices(book) |
| - if len(full) != 15 { |
| - t.Fatalf("example book needs %d prices, want 15", len(full)) |
| + if len(full) != 18 { |
| + t.Fatalf("example book needs %d prices, want 18", len(full)) |
| } |
| m, err := ParsePriceMap(rawPrices(t, full), book) |
| if err != nil { |
| @@ -25,7 +25,7 @@ func TestParsePriceMap(t *testing.T) { |
| t.Errorf("ID(personal usd) = %q, %v", id, ok) |
| } |
| refs := m.Refs("example-v1") |
| - if len(refs) != 15 { |
| + if len(refs) != 18 { |
| t.Errorf("Refs = %d entries", len(refs)) |
| } |
| for i := 1; i < len(refs); i++ { |
| @@ -51,7 +51,7 @@ func TestParsePriceMap(t *testing.T) { |
| if ref, ok := old.Lookup("price_old1"); !ok || ref.Book != "example-v0" || ref.Kind != KindPlan || ref.Name != "personal" { |
| t.Errorf("Lookup(old) = %+v, %v", ref, ok) |
| } |
| - if got := old.Refs("example-v1"); len(got) != 15 { |
| + if got := old.Refs("example-v1"); len(got) != 18 { |
| t.Errorf("Refs(current) with an old key = %d", len(got)) |
| } |
diff --git a/internal/billingstripe/adapter_test.go b/internal/billingstripe/adapter_test.go| index 8eea087af..0bc74714b 100644 |
| --- a/internal/billingstripe/adapter_test.go |
| +++ b/internal/billingstripe/adapter_test.go |
| @@ -315,7 +315,7 @@ func TestCheckRefusesMismatchedPrices(t *testing.T) { |
| "inactive": func(f *fakeStripe) { f.prices[id]["active"] = false }, |
| "wrong mode": func(f *fakeStripe) { f.prices[id]["livemode"] = true }, |
| "wrong currency": func(f *fakeStripe) { f.prices[id]["currency"] = "eur" }, |
| - "amount off by 1": func(f *fakeStripe) { f.prices[id]["unit_amount"] = 601 }, |
| + "amount off by 1": func(f *fakeStripe) { f.prices[id]["unit_amount"] = 1201 }, |
| "monthly": func(f *fakeStripe) { f.prices[id]["recurring"].(map[string]any)["interval"] = "month" }, |
| "every two years": func(f *fakeStripe) { f.prices[id]["recurring"].(map[string]any)["interval_count"] = 2 }, |
| "metered": func(f *fakeStripe) { f.prices[id]["recurring"].(map[string]any)["usage_type"] = "metered" }, |
| @@ -356,7 +356,7 @@ func TestCheckRefusesMismatchedPrices(t *testing.T) { |
| if name != "wrong account" && !strings.Contains(err.Error(), want) { |
| t.Errorf("error %q does not name %s", err, want) |
| } |
| - if strings.Contains(err.Error(), id) || strings.Contains(err.Error(), "601") || strings.Contains(err.Error(), "prod_") { |
| + if strings.Contains(err.Error(), id) || strings.Contains(err.Error(), "1201") || strings.Contains(err.Error(), "prod_") { |
| t.Errorf("error %q carries an id or amount", err) |
| } |
| }) |
| @@ -368,7 +368,7 @@ func TestCheckRefusesMismatchedPrices(t *testing.T) { |
| t.Fatalf("all good: %v", err) |
| } |
| // Request budget: the account, each price, each distinct product. |
| - if fs.reads > 1+15+5 { |
| + if fs.reads > 1+18+6 { |
| t.Errorf("check made %d reads", fs.reads) |
| } |
| } |
diff --git a/internal/plans/catalog_test.go b/internal/plans/catalog_test.go| index 3728f2649..86c974eb1 100644 |
| --- a/internal/plans/catalog_test.go |
| +++ b/internal/plans/catalog_test.go |
| @@ -42,7 +42,7 @@ func TestParseCatalogRefuses(t *testing.T) { |
| cases := map[string]string{ |
| "empty version": strings.Replace(base, `"version": "2026-10-20-v1"`, `"version": ""`, 1), |
| "default plan missing": strings.Replace(base, `"default_plan": "free"`, `"default_plan": "gold"`, 1), |
| - "pack offered not defined": strings.Replace(base, `["apps", "storage", "email", "bandwidth"]`, `["apps", "seats"]`, 1), |
| + "pack offered not defined": strings.Replace(base, `["apps", "disk", "storage", "email", "bandwidth"]`, `["apps", "seats"]`, 1), |
| "pack adds idle": strings.Replace(base, `{"running_things": 5}`, `{"running_things": 5, "idle_seconds": 60}`, 1), |
| "pack adds memory tier": strings.Replace(base, `{"running_things": 5}`, `{"memory_tier": "default"}`, 1), |
| "pack adds a bool": strings.Replace(base, `{"running_things": 5}`, `{"custom_domains": true}`, 1), |
diff --git a/internal/plans/export_test.go b/internal/plans/export_test.go| index 7a873c7a1..aa3817c43 100644 |
| --- a/internal/plans/export_test.go |
| +++ b/internal/plans/export_test.go |
| @@ -67,7 +67,7 @@ func TestPublicExportOrder(t *testing.T) { |
| if !slices.Equal(plans, []string{"free", "personal"}) { |
| t.Errorf("plans = %v", plans) |
| } |
| - if !slices.IsSorted(packs) || len(packs) != 4 { |
| + if !slices.IsSorted(packs) || len(packs) != 5 { |
| t.Errorf("packs = %v", packs) |
| } |
| if e.Schema != 2 || e.Status != "draft" || e.PriceBook != "example-v1" || !strings.HasPrefix(e.PriceBookID, "example-v1@") || |
diff --git a/internal/plans/pricebook_test.go b/internal/plans/pricebook_test.go| index ed3dedfdf..9db06d743 100644 |
| --- a/internal/plans/pricebook_test.go |
| +++ b/internal/plans/pricebook_test.go |
| @@ -8,9 +8,9 @@ import ( |
| "testing" |
| ) |
| -// The example book's pack amounts are placeholders: pack prices are Paul's |
| -// to set (spec §4.2), and the book refuses unknown fields, so it cannot say |
| -// so itself. Personal's 2800/2400/2200 are the draft book's figures. |
| +// The example book carries Paul's prices of 2026-10-25 (Personal and the |
| +// five packs, yearly, usd/eur/gbp). It stays a draft: approval is a new |
| +// version. |
| const exampleBookPath = "testdata/example-pricebook.json" |
| func exampleBookBytes(t *testing.T) string { |
| @@ -45,7 +45,7 @@ func TestParsePriceBookExample(t *testing.T) { |
| if got, ok := b.PlanPrice("personal", "gbp"); !ok || got != 2200 { |
| t.Errorf("PlanPrice(personal, gbp) = %d, %v", got, ok) |
| } |
| - if got, ok := b.PackPrice("apps", "usd"); !ok || got != 600 { |
| + if got, ok := b.PackPrice("apps", "usd"); !ok || got != 1200 { |
| t.Errorf("PackPrice(apps, usd) = %d, %v", got, ok) |
| } |
| if _, ok := b.PlanPrice("free", "usd"); ok { |
| @@ -62,7 +62,7 @@ func TestPriceBookRefusesGaps(t *testing.T) { |
| name, from, to, want string |
| }{ |
| {"personal missing gbp", `"personal": {"usd": 2800, "eur": 2400, "gbp": 2200}`, `"personal": {"usd": 2800, "eur": 2400}`, `plan "personal"`}, |
| - {"pack email missing", `"email": {"usd": 300, "eur": 250, "gbp": 230},`, ``, `pack "email"`}, |
| + {"pack email missing", `"email": {"usd": 2400, "eur": 2100, "gbp": 1900},`, ``, `pack "email"`}, |
| {"extra pack seats", `"packs": {`, `"packs": {"seats": {"usd": 1, "eur": 1, "gbp": 1},`, `no such pack`}, |
| {"extra plan", `"plans": {`, `"plans": {"business": {"usd": 1, "eur": 1, "gbp": 1},`, `no such plan`}, |
| {"free plan priced", `"plans": {`, `"plans": {"free": {"usd": 1, "eur": 1, "gbp": 1},`, `plan "free"`}, |
| @@ -84,9 +84,9 @@ func TestPriceBookRefusesGaps(t *testing.T) { |
| {"catalog version mismatch", `"catalog_version": "2026-10-20-v1"`, `"catalog_version": "2026-01-01-v0"`, `catalog_version`}, |
| {"unknown field", `"status": "draft",`, `"status": "draft", "stripe_prices": {},`, `unknown field`}, |
| {"duplicate key", `"personal": {"usd": 2800,`, `"personal": {"usd": 2800, "usd": 2900,`, `twice`}, |
| - {"trailing content", `"bandwidth": {"usd": 1800, "eur": 1500, "gbp": 1400} |
| + {"trailing content", `"bandwidth": {"usd": 4800, "eur": 4100, "gbp": 3800} |
| } |
| -}`, `"bandwidth": {"usd": 1800, "eur": 1500, "gbp": 1400} |
| +}`, `"bandwidth": {"usd": 4800, "eur": 4100, "gbp": 3800} |
| } |
| } {}`, `trailing`}, |
| } |
| @@ -169,10 +169,11 @@ func TestChooseCurrency(t *testing.T) { |
| {`, |
| "gbp": ["GB"]`, ``}, |
| {`"personal": {"usd": 2800, "eur": 2400, "gbp": 2200}`, `"personal": {"usd": 2800, "eur": 2400}`}, |
| - {`"apps": {"usd": 600, "eur": 500, "gbp": 450}`, `"apps": {"usd": 600, "eur": 500}`}, |
| + {`"apps": {"usd": 1200, "eur": 1000, "gbp": 900}`, `"apps": {"usd": 1200, "eur": 1000}`}, |
| + {`"disk": {"usd": 3600, "eur": 3100, "gbp": 2800}`, `"disk": {"usd": 3600, "eur": 3100}`}, |
| {`"storage": {"usd": 1200, "eur": 1000, "gbp": 900}`, `"storage": {"usd": 1200, "eur": 1000}`}, |
| - {`"email": {"usd": 300, "eur": 250, "gbp": 230}`, `"email": {"usd": 300, "eur": 250}`}, |
| - {`"bandwidth": {"usd": 1800, "eur": 1500, "gbp": 1400}`, `"bandwidth": {"usd": 1800, "eur": 1500}`}, |
| + {`"email": {"usd": 2400, "eur": 2100, "gbp": 1900}`, `"email": {"usd": 2400, "eur": 2100}`}, |
| + {`"bandwidth": {"usd": 4800, "eur": 4100, "gbp": 3800}`, `"bandwidth": {"usd": 4800, "eur": 4100}`}, |
| } { |
| if !strings.Contains(src, r[0]) { |
| t.Fatalf("%q not in the example book", r[0]) |
diff --git a/internal/plans/testdata/example-catalog.json b/internal/plans/testdata/example-catalog.json| index 84951bebe..e89088929 100644 |
| --- a/internal/plans/testdata/example-catalog.json |
| +++ b/internal/plans/testdata/example-catalog.json |
| @@ -36,14 +36,15 @@ |
| "min_schedule_seconds": 60, |
| "history_days": 7 |
| }, |
| - "packs": ["apps", "storage", "email", "bandwidth"] |
| + "packs": ["apps", "disk", "storage", "email", "bandwidth"] |
| } |
| }, |
| "packs": { |
| "apps": {"adds": {"running_things": 5}, "max_quantity": 20}, |
| - "storage": {"adds": {"disk_bytes": 10737418240, "storage_bytes": 53687091200}, "max_quantity": 20}, |
| + "disk": {"adds": {"disk_bytes": 10737418240}, "max_quantity": 20}, |
| + "storage": {"adds": {"storage_bytes": 53687091200}, "max_quantity": 20}, |
| "email": {"adds": {"email_per_day": 1000}, "max_quantity": 20}, |
| - "bandwidth": {"adds": {"bandwidth_bytes_month": 214748364800}, "max_quantity": 20} |
| + "bandwidth": {"adds": {"bandwidth_bytes_month": 53687091200}, "max_quantity": 20} |
| }, |
| "ceilings": { |
| "running_things": 200, |
diff --git a/internal/plans/testdata/example-pricebook.json b/internal/plans/testdata/example-pricebook.json| index bff5ce431..653edfbae 100644 |
| --- a/internal/plans/testdata/example-pricebook.json |
| +++ b/internal/plans/testdata/example-pricebook.json |
| @@ -12,9 +12,10 @@ |
| "personal": {"usd": 2800, "eur": 2400, "gbp": 2200} |
| }, |
| "packs": { |
| - "apps": {"usd": 600, "eur": 500, "gbp": 450}, |
| + "apps": {"usd": 1200, "eur": 1000, "gbp": 900}, |
| + "disk": {"usd": 3600, "eur": 3100, "gbp": 2800}, |
| "storage": {"usd": 1200, "eur": 1000, "gbp": 900}, |
| - "email": {"usd": 300, "eur": 250, "gbp": 230}, |
| - "bandwidth": {"usd": 1800, "eur": 1500, "gbp": 1400} |
| + "email": {"usd": 2400, "eur": 2100, "gbp": 1900}, |
| + "bandwidth": {"usd": 4800, "eur": 4100, "gbp": 3800} |
| } |
| } |
diff --git a/internal/plans/testdata/example-public-pricebook.json b/internal/plans/testdata/example-public-pricebook.json| index f44752764..82588ba79 100644 |
| --- a/internal/plans/testdata/example-public-pricebook.json |
| +++ b/internal/plans/testdata/example-public-pricebook.json |
| @@ -1,10 +1,10 @@ |
| { |
| "schema": 2, |
| "price_book": "example-v1", |
| - "price_book_id": "example-v1@5abc547e3db4", |
| + "price_book_id": "example-v1@3be7730d025a", |
| "status": "draft", |
| "catalog_version": "2026-10-20-v1", |
| - "catalog_id": "2026-10-20-v1@7a9ba092f2c0", |
| + "catalog_id": "2026-10-20-v1@4098eb02ee58", |
| "default_currency": "usd", |
| "currencies": [ |
| { |
| @@ -104,6 +104,7 @@ |
| "packs": [ |
| "apps", |
| "bandwidth", |
| + "disk", |
| "email", |
| "storage" |
| ] |
| @@ -117,21 +118,33 @@ |
| }, |
| "max_quantity": 20, |
| "annual_minor": { |
| - "eur": 500, |
| - "gbp": 450, |
| - "usd": 600 |
| + "eur": 1000, |
| + "gbp": 900, |
| + "usd": 1200 |
| } |
| }, |
| { |
| "key": "bandwidth", |
| "adds": { |
| - "bandwidth_bytes_month": 214748364800 |
| + "bandwidth_bytes_month": 53687091200 |
| }, |
| "max_quantity": 20, |
| "annual_minor": { |
| - "eur": 1500, |
| - "gbp": 1400, |
| - "usd": 1800 |
| + "eur": 4100, |
| + "gbp": 3800, |
| + "usd": 4800 |
| + } |
| + }, |
| + { |
| + "key": "disk", |
| + "adds": { |
| + "disk_bytes": 10737418240 |
| + }, |
| + "max_quantity": 20, |
| + "annual_minor": { |
| + "eur": 3100, |
| + "gbp": 2800, |
| + "usd": 3600 |
| } |
| }, |
| { |
| @@ -141,15 +154,14 @@ |
| }, |
| "max_quantity": 20, |
| "annual_minor": { |
| - "eur": 250, |
| - "gbp": 230, |
| - "usd": 300 |
| + "eur": 2100, |
| + "gbp": 1900, |
| + "usd": 2400 |
| } |
| }, |
| { |
| "key": "storage", |
| "adds": { |
| - "disk_bytes": 10737418240, |
| "storage_bytes": 53687091200 |
| }, |
| "max_quantity": 20, |