carlos / platform Public

docs: free storage rollout runbook; export from the real catalog

Summary

Runbook for #1076's approval, Stripe, roll order and expected behaviour changes, and the flat-plans runbook's export step now names deploy/billing/catalog-2026-11-14-v1.json instead of the testdata fixture.
claude agent, operated by paul@keymail.dev d97a24d5a061113b1d7cac13a5b843d99182bd9b parent 70dca71
2 files changed, +86 −2
  • docs/superpowers/plans/2026-11-14-flat-plans-rollout.md +5 −2
  • docs/superpowers/plans/2026-11-15-free-storage-rollout.md +81 −0
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 55a35a384..b73a09bec 100644
--- a/docs/superpowers/plans/2026-11-14-flat-plans-rollout.md
+++ b/docs/superpowers/plans/2026-11-14-flat-plans-rollout.md
@@ -145,6 +145,9 @@ the flat plan's limits.
- `curl -sI https://console.carloku.com/` reports the new version.
- A Teams account's billing page shows "Teams" and a flat yearly price.
-- `go run ./cmd/pricebook-export -catalog internal/plans/testdata/example-catalog.json -book deploy/billing/<book>`
+- `go run ./cmd/pricebook-export -catalog deploy/billing/catalog-2026-11-14-v1.json -book deploy/billing/<book>`
regenerates the public export for the carloku pricing page, which
- follows in its own repo.
+ follows in its own repo. (Until #1076 this said the testdata example
+ catalog, which lacks the flagship's PDF allowances and sponsor cutoff, so
+ the export named a catalog id the flagship does not run. The flagship's
+ catalog is now recorded in `deploy/billing/`.)
diff --git a/docs/superpowers/plans/2026-11-15-free-storage-rollout.md b/docs/superpowers/plans/2026-11-15-free-storage-rollout.md
new file mode 100644
index 000000000..7eb6c1b30
--- /dev/null
+++ b/docs/superpowers/plans/2026-11-15-free-storage-rollout.md
@@ -0,0 +1,81 @@
+# 🤖 Free storage, scanning and hourly email (#1076): what Paul and an operator run
+
+Branch `free-storage-250`. Nothing here has been run, and no deployment has
+changed. Every step is for Paul or an operator.
+
+## Where the catalogs live now
+
+`deploy/billing/catalog-<version>.json`, beside the price books that price
+them. Each is the exact file a console installs as `/etc/carlos/plans.json`
+and the file the public export is built from. `internal/plans/testdata/`
+keeps fixtures only.
+
+- `catalog-2026-11-14-v1.json`: the flagship's catalog as installed
+ (`2026-11-14-v1@6f2e7f29d318`, read from `control/plans.json` on
+ 2026-11-15). `TestRepoCatalogIsTheFlagships` pins that id. Never edit it.
+- `catalog-2026-11-15-v1.json` (draft, with draft book
+ `pricebook-2026-11-15-v1.json`): Free gets 50 MB of object storage,
+ self-serve, always scanned (`storage_self_serve`,
+ `storage_scan_required`), 5 emails an hour beside 50 a day
+ (`email_per_hour`), and keeps 1 GB for accounts approved for storage
+ before 2026-11-15 (`kept_storage`). Every paid plan, pack, ceiling, the
+ PDF allowances and the sponsor cutoff are the flagship's.
+
+## 1. Paul approves
+
+The figures, the copy (every `copy pending review (#1076): <key>`
+placeholder is replaced by the approved sentence before merge) and the
+cutoff. Approval is new files, never an edit: book
+`pricebook-2026-11-15-v2.json` with `"status": "approved"`; the catalog keeps
+its version. Move `approvedBook` in `cmd/console/stripesetup_script_test.go`
+and the script's default `PRICE_BOOK` with it.
+
+## 2. Stripe
+
+A new book version means new price keys (`2026-11-15-v2/...`): run
+`scripts/stripe-setup.sh` as in the flat-plans runbook, steps 2 and 3, and
+merge the printed map into `CARLOS_BILLING_PRICES` beside the current keys.
+Amounts are unchanged.
+
+## 3. Order: binary first, then the catalog
+
+A console from before this branch refuses the new catalog (unknown fields
+`storage_scan_required`, `email_per_hour`, `kept_storage`). This branch's
+console reads the old catalog unchanged. So: release, roll the console, then
+swap `/etc/carlos/plans.json` (copied byte for byte from
+`deploy/billing/catalog-2026-11-15-v1.json`), the approved book and the price
+map together, and restart. Check before restarting: the installed file's id
+(`go test ./internal/plans -run TestRepoCatalogsLoad` names it) and that the
+book loads against it.
+
+The first limits pass after the restart records 1 GB kept on each Free
+account approved before the cutoff (one today, `bgc`; the eleven other
+approved accounts are launch-sponsored and unaffected) and republishes every
+account's limits under the new catalog id.
+
+## 4. Behaviour changes to expect
+
+- Every non-sponsored account whose plan sets `storage_self_serve` (Free
+ under the new catalog, and Personal, Teams and Business already) can
+ provision its app's store with `carlos store create` and no approval. Paid
+ plans' flag was never read before this branch. Sponsored accounts still
+ apply.
+- Free self-serve stores are scanned and enforce from creation. They need
+ the deployment's engine on (`carlos system antivirus`), and refuse an
+ environment store or a client-encrypted attestation.
+- CLIs from before this release do not know `self_serve` and keep telling a
+ Free member to apply; the release notes should say to update.
+- Free accounts are held back for the rest of the UTC hour after about 5
+ sends in it. The resume runs on the hourly grace pass, so a hold can last
+ into the next hour.
+
+## 5. Export and the pricing page
+
+```
+go run ./cmd/pricebook-export -catalog deploy/billing/catalog-2026-11-15-v1.json \
+ -book deploy/billing/pricebook-2026-11-15-v2.json
+```
+
+The export carries `email_per_hour` and `storage_scan_required` in Free's
+limits (additive in schema 3). The carloku page needs copy for both before
+it shows them.