Approved book 2026-11-14-v2 and the people copy (Paul, 2026-11-14)
Human
Prompt
Paul approved both, in our session on 2026-11-14: price book 2026-11-14-v1 as drafted, and the five console/CLI strings, unedited. Write the approved book as the new book file, following the platform's process. Apply the strings verbatim.
From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.
Summary
A book is never edited, so the approval is a new file, deploy/billing/pricebook-2026-11-14-v2.json: the draft's amounts with status approved. It is now the Stripe setup script's default book and the test's approvedBook; the draft 2026-11-14-v1 stays as it was. The five strings Paul approved in copy review (#1057, no edits) replace the member-cap wording and "Up to %d members". The rollout runbook names the approved book.
Agent notes
docs/site/plans.md is not changed here: its prose was not part of that review and the site vendors it, so it would publish. It stays drafted on #1057 (Astra's carried P2).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 files changed,
+65
−44
cmd/console/stripesetup_script_test.go+21 −19deploy/billing/pricebook-2026-11-14-v2.json+23 −0docs/superpowers/plans/2026-11-14-flat-plans-rollout.md+11 −15internal/console/billingpage_copy.go+2 −2internal/console/plancaps_copy.go+6 −6scripts/stripe-setup.sh+2 −2
CI passed — run details
diff --git a/cmd/console/stripesetup_script_test.go b/cmd/console/stripesetup_script_test.go| index c61456fe2..e3d04c2d1 100644 |
| --- a/cmd/console/stripesetup_script_test.go |
| +++ b/cmd/console/stripesetup_script_test.go |
| @@ -24,7 +24,8 @@ import ( |
| const ( |
| stripeSetupScript = "../../scripts/stripe-setup.sh" |
| - approvedBook = "../../deploy/billing/pricebook-2026-11-01-v1.json" |
| + approvedBook = "../../deploy/billing/pricebook-2026-11-14-v2.json" |
| + prevApprovedBook = "../../deploy/billing/pricebook-2026-11-01-v1.json" |
| draftBook = "../../deploy/billing/pricebook-2026-10-27-v1.json" |
| flatDraftBook = "../../deploy/billing/pricebook-2026-11-14-v1.json" |
| sandboxAccount = "acct_1UVFkoIiAD0xflDQ" |
| @@ -361,7 +362,7 @@ func TestStripeSetupLiveApply(t *testing.T) { |
| } |
| } |
| for _, p := range fw.Objects["prices"] { |
| - if k, _ := p["lookup_key"].(string); !strings.HasPrefix(k, "2026-11-01-v1/") { |
| + if k, _ := p["lookup_key"].(string); !strings.HasPrefix(k, "2026-11-14-v2/") { |
| t.Errorf("price %v has lookup key %q, not one of the approved book's", p["id"], k) |
| } |
| } |
| @@ -374,7 +375,7 @@ func TestStripeSetupLiveApply(t *testing.T) { |
| if got := fw.Objects["webhook_endpoints"][0]["enabled_events"]; !reflect.DeepEqual(got, webhookEvents) { |
| t.Errorf("webhook endpoint events %v, want %v", got, webhookEvents) |
| } |
| - for _, want := range []string{"CARLOS_BILLING=live", `"2026-11-01-v1/pack/apps/gbp":"price_`, "rk_live_"} { |
| + for _, want := range []string{"CARLOS_BILLING=live", `"2026-11-14-v2/pack/apps/gbp":"price_`, "rk_live_"} { |
| if !strings.Contains(stdout, want) { |
| t.Errorf("stdout lacks %q:\n%s", want, stdout) |
| } |
| @@ -452,7 +453,7 @@ func TestStripeSetupLiveDryRunSendsNothing(t *testing.T) { |
| } |
| } |
| } |
| - if printed == 0 || !strings.Contains(stdout, "2026-11-01-v1/personal/usd") || !strings.Contains(stdout, "CARLOS_BILLING=live") { |
| + if printed == 0 || !strings.Contains(stdout, "2026-11-14-v2/personal/usd") || !strings.Contains(stdout, "CARLOS_BILLING=live") { |
| t.Fatalf("the dry run printed no live plan:\n%s", stdout) |
| } |
| } |
| @@ -578,7 +579,7 @@ func TestStripeSetupReplayedArchivedPriceStops(t *testing.T) { |
| fw := w.load() |
| archived := "" |
| for _, p := range fw.Objects["prices"] { |
| - if p["lookup_key"] == "2026-11-01-v1/personal/usd" { |
| + if p["lookup_key"] == "2026-11-14-v2/personal/usd" { |
| p["active"], p["lookup_key"] = false, nil |
| archived = p["id"].(string) |
| } |
| @@ -608,8 +609,8 @@ func TestStripeSetupReplayedArchivedPriceStops(t *testing.T) { |
| // priced its per-member team plans, which this console no longer loads |
| // (#1033); they stay as the record of what was sold, and a subscription |
| // bought under one keeps its price keys. approvedBook is the newest |
| -// approved book; the flat book 2026-11-14-v1 is a draft until Paul |
| -// approves it. |
| +// approved book, 2026-11-14-v2 (Paul, 2026-11-14), written from the draft |
| +// 2026-11-14-v1, which stays as it was. |
| func TestRepoPriceBooksLoad(t *testing.T) { |
| cat, err := plans.LoadCatalog("../../internal/plans/testdata/example-catalog.json") |
| if err != nil { |
| @@ -664,17 +665,18 @@ func TestRepoPriceBooksLoad(t *testing.T) { |
| } |
| } |
| -// The flat book (#1033) on an account that already has the approved book's |
| -// objects: a sandbox --apply reuses the eight products and adds the flat |
| -// book's 24 prices beside the earlier ones, Teams and Business at their flat |
| -// yearly price; the printed price map names only the flat book's keys. A |
| -// live run, dry runs included, refuses it while it is a draft. |
| +// The flat book (#1033) on an account that already has the previous |
| +// approved book's objects: a sandbox --apply of the default (approved flat) |
| +// book reuses the eight products and adds its 24 prices beside the earlier |
| +// ones, Teams and Business at their flat yearly price; the printed price map |
| +// names only the flat book's keys. A live run, dry runs included, refuses the |
| +// draft it was approved from. |
| func TestStripeSetupFlatBook(t *testing.T) { |
| w := newStripeWorld(t, sandboxAccount, false) |
| - if stdout, stderr, code := w.run(nil, "--apply"); code != 0 { |
| - t.Fatalf("approved --apply failed (%d):\n%s\n%s", code, stdout, stderr) |
| + if stdout, stderr, code := w.run([]string{"PRICE_BOOK=" + prevApprovedBook}, "--apply"); code != 0 { |
| + t.Fatalf("earlier book --apply failed (%d):\n%s\n%s", code, stdout, stderr) |
| } |
| - stdout, stderr, code := w.run([]string{"PRICE_BOOK=" + flatDraftBook}, "--apply") |
| + stdout, stderr, code := w.run(nil, "--apply") |
| if code != 0 { |
| t.Fatalf("flat --apply failed (%d):\n%s\n%s", code, stdout, stderr) |
| } |
| @@ -686,9 +688,9 @@ func TestStripeSetupFlatBook(t *testing.T) { |
| t.Errorf("%d prices, want 24 per book", n) |
| } |
| want := map[string]float64{ |
| - "2026-11-14-v1/community/eur": 5000, "2026-11-14-v1/community/usd": 6000, "2026-11-14-v1/community/gbp": 4500, |
| - "2026-11-14-v1/business/eur": 50000, "2026-11-14-v1/business/usd": 60000, "2026-11-14-v1/business/gbp": 45000, |
| - "2026-11-14-v1/personal/eur": 2400, |
| + "2026-11-14-v2/community/eur": 5000, "2026-11-14-v2/community/usd": 6000, "2026-11-14-v2/community/gbp": 4500, |
| + "2026-11-14-v2/business/eur": 50000, "2026-11-14-v2/business/usd": 60000, "2026-11-14-v2/business/gbp": 45000, |
| + "2026-11-14-v2/personal/eur": 2400, |
| } |
| for _, p := range fw.Objects["prices"] { |
| k, _ := p["lookup_key"].(string) |
| @@ -713,7 +715,7 @@ func TestStripeSetupFlatBook(t *testing.T) { |
| t.Fatalf("printed price map %q: %v, want the flat book's 24 keys", line, err) |
| } |
| for k := range printed { |
| - if !strings.HasPrefix(k, "2026-11-14-v1/") { |
| + if !strings.HasPrefix(k, "2026-11-14-v2/") { |
| t.Errorf("printed key %q is not the flat book's", k) |
| } |
| } |
diff --git a/deploy/billing/pricebook-2026-11-14-v2.json b/deploy/billing/pricebook-2026-11-14-v2.json| new file mode 100644 |
| index 000000000..748b937b6 |
| --- /dev/null |
| +++ b/deploy/billing/pricebook-2026-11-14-v2.json |
| @@ -0,0 +1,23 @@ |
| +{ |
| + "version": "2026-11-14-v2", |
| + "status": "approved", |
| + "catalog_version": "2026-11-14-v1", |
| + "default_currency": "usd", |
| + "currencies": ["usd", "eur", "gbp"], |
| + "country_currency": { |
| + "eur": ["AT", "BE", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "DE", "GR", "HU", "IE", "IT", "LV", "LT", "LU", "MT", "NL", "PL", "PT", "RO", "SK", "SI", "ES", "SE"], |
| + "gbp": ["GB"] |
| + }, |
| + "plans": { |
| + "personal": {"usd": 2800, "eur": 2400, "gbp": 2200}, |
| + "community": {"usd": 6000, "eur": 5000, "gbp": 4500}, |
| + "business": {"usd": 60000, "eur": 50000, "gbp": 45000} |
| + }, |
| + "packs": { |
| + "apps": {"usd": 1200, "eur": 1000, "gbp": 900}, |
| + "disk": {"usd": 3600, "eur": 3100, "gbp": 2800}, |
| + "storage": {"usd": 1200, "eur": 1000, "gbp": 900}, |
| + "email": {"usd": 2400, "eur": 2100, "gbp": 1900}, |
| + "bandwidth": {"usd": 4800, "eur": 4100, "gbp": 3800} |
| + } |
| +} |
diff --git a/docs/superpowers/plans/2026-11-14-flat-plans-rollout.md b/docs/superpowers/plans/2026-11-14-flat-plans-rollout.md| index 6fc5b0d87..55a35a384 100644 |
| --- a/docs/superpowers/plans/2026-11-14-flat-plans-rollout.md |
| +++ b/docs/superpowers/plans/2026-11-14-flat-plans-rollout.md |
| @@ -37,39 +37,35 @@ flagship console can run a binary built from this branch. **Merge only once |
| the approved book is on the branch**, or every console release from `main` |
| is blocked until then. |
| -## 1. Paul approves |
| +## 1. Paul approves (done, 2026-11-14) |
| -1. Approve the draft book `2026-11-14-v1` and the copy listed on the |
| - branch's review request. |
| -2. As the process requires (`docs/site/plans.md`, "A book is never |
| - edited"), approval is a new file: copy the draft to |
| - `deploy/billing/pricebook-<date>-v1.json` with `"status": "approved"` and |
| - the same amounts. On the branch, point `approvedBook` in |
| - `cmd/console/stripesetup_script_test.go` and the script's default |
| - `PRICE_BOOK` at it. |
| +Paul approved the draft `2026-11-14-v1` and the console copy (#1058, |
| +#1057). As the process requires (`docs/site/plans.md`, "A book is never |
| +edited"), the approval is a new file, `deploy/billing/pricebook-2026-11-14-v2.json`: |
| +the draft's amounts with `"status": "approved"`. It is the script's default |
| +`PRICE_BOOK` and the test's `approvedBook`. Its price keys start |
| +`2026-11-14-v2/`. Below, `<book>` is `pricebook-2026-11-14-v2.json`. |
| ## 2. Stripe sandbox (test mode; optional rehearsal) |
| ``` |
| -CONSOLE_URL=https://console.carloku.com \ |
| -PRICE_BOOK=deploy/billing/pricebook-2026-11-14-v1.json \ |
| -scripts/stripe-setup.sh --check |
| +CONSOLE_URL=https://console.carloku.com scripts/stripe-setup.sh --check |
| # then the same with --apply |
| ``` |
| It reuses the 8 products, the portal configuration, the coupon and the |
| webhook endpoint, and makes 24 prices with lookup keys |
| -`2026-11-14-v1/...`. The script never renames anything, so rename the |
| +`2026-11-14-v2/...`. The script never renames anything, so rename the |
| product whose `metadata[carlos_product]` is `community` from "Community" to |
| "Teams" in the sandbox Dashboard. |
| ## 3. Stripe live (after approval) |
| -With `<book>` the approved file from step 1: |
| +The script's default book is the approved one: |
| ``` |
| STRIPE_LIVE_ACCOUNT=acct_... CONSOLE_URL=https://console.carloku.com \ |
| -PRICE_BOOK=deploy/billing/<book> scripts/stripe-setup.sh --live # dry run |
| +scripts/stripe-setup.sh --live # dry run |
| ... scripts/stripe-setup.sh --live --check |
| ... scripts/stripe-setup.sh --live --apply |
| ``` |
diff --git a/internal/console/billingpage_copy.go b/internal/console/billingpage_copy.go| index a61969e08..72857b984 100644 |
| --- a/internal/console/billingpage_copy.go |
| +++ b/internal/console/billingpage_copy.go |
| @@ -124,8 +124,8 @@ var billingCopy = map[string]string{ |
| "limit.pdf": "%s PDFs a month", |
| "limit.bandwidth": "%s bandwidth a month", |
| "limit.domains": "Custom domains", |
| - "limit.members": "Up to %d members", |
| - "limit.unlimited": "Unlimited", // in place of a number at the launch sponsorship's figure (plansponsor.go); DRAFT 2026-10-31 |
| + "limit.members": "Up to %d people", // approved by Paul, 2026-11-14 (#1057) |
| + "limit.unlimited": "Unlimited", // in place of a number at the launch sponsorship's figure (plansponsor.go); DRAFT 2026-10-31 |
| "duration.second": "%d second", |
| "duration.seconds": "%d seconds", |
| "duration.minute": "%d minute", |
diff --git a/internal/console/plancaps_copy.go b/internal/console/plancaps_copy.go| index 86ead83b9..a87ea8ac9 100644 |
| --- a/internal/console/plancaps_copy.go |
| +++ b/internal/console/plancaps_copy.go |
| @@ -20,12 +20,12 @@ var capCopy = map[string]string{ |
| "cli.cap.always_on": "on shared boxes apps sleep when idle, so sidecars cannot be set to stay awake. place the app on your own boxes (a fleet) to keep them running, or remove hibernate: false", |
| "cli.cap.schedule": "on shared boxes this plan runs schedules at most every %d minutes. choose a longer interval, place the app on your own boxes (a fleet), or move to a plan that allows more", |
| "cli.cap.pdf_renders": "this account has rendered %d PDFs this month, twice its monthly limit of %d. rendering starts again on the 1st of the UTC month, or move to a larger plan", |
| - // Plans 6b: the member cap and the free-account refusal above. DRAFTS |
| - // for the Luna pass. |
| - "browser.cap.members": "This plan has room for %d members. Move to a team plan to add more.", |
| - "browser.cap.members_join": "This account is full on its plan. Ask an owner to move it to a team plan.", |
| - "cli.cap.members": "this plan has room for %d members. move to a team plan to add more", |
| - "cli.cap.members_join": "this account is full on its plan. ask an owner to move it to a team plan", |
| + // Plans 6b: the member cap (Free's 3 people since #1033). Approved by |
| + // Paul, 2026-11-14 (#1057, copy review, no edits). |
| + "browser.cap.members": "This plan has room for %d people. Move to a paid plan to add more.", |
| + "browser.cap.members_join": "This account is full on its plan. Ask an owner to move it to a paid plan.", |
| + "cli.cap.members": "this plan has room for %d people. move to a paid plan to add more", |
| + "cli.cap.members_join": "this account is full on its plan. ask an owner to move it to a paid plan", |
| } |
| // planCheckFailedCopy is the approved answer when an account's plan could |
diff --git a/scripts/stripe-setup.sh b/scripts/stripe-setup.sh| index 5d7dbe4f9..e2ca09f46 100755 |
| --- a/scripts/stripe-setup.sh |
| +++ b/scripts/stripe-setup.sh |
| @@ -40,7 +40,7 @@ |
| # be using. It is the second confirmation of a live run. |
| # Without --live it must be unset. |
| # PRICE_BOOK the book file. Default |
| -# deploy/billing/pricebook-2026-11-01-v1.json. |
| +# deploy/billing/pricebook-2026-11-14-v2.json. |
| # PRICE_BOOK_PATH where the console box keeps the book, for the |
| # printed CARLOS_PRICE_BOOK. Default |
| # /etc/carlos/<book file name>. |
| @@ -168,7 +168,7 @@ else |
| [[ "$account" =~ ^acct_[A-Za-z0-9]+$ ]] || die "STRIPE_ACCOUNT must look like acct_..." |
| fi |
| -book_file="${PRICE_BOOK:-$here/../deploy/billing/pricebook-2026-11-01-v1.json}" |
| +book_file="${PRICE_BOOK:-$here/../deploy/billing/pricebook-2026-11-14-v2.json}" |
| [[ -r "$book_file" ]] || die "PRICE_BOOK $book_file cannot be read" |
| book_path="${PRICE_BOOK_PATH:-/etc/carlos/$(basename "$book_file")}" |
| catalog_path="${PLAN_CATALOG_PATH:-/etc/carlos/plans.json}" |