carlos / platform Public

docs: name every Stripe permission the money record needs

The money pass expands each balance transaction's source, which needs
Balance Transaction Sources read, and the charge read expands its
invoice. The plans page listed only Balance, Charges and Refunds, so
both consoles got 403 every hour. Copy approved by Paul 2026-11-10.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev fce8eb514c662caa50d86de5c8245b855be3ec5b parent 6b641f4
3 files changed, +8 −5
  • docs/site/plans.md +1 −1
  • docs/superpowers/plans/2026-11-09-billing-dashboard-1-copy.md +1 −1
  • docs/superpowers/plans/2026-11-09-billing-dashboard-1-data.md +6 −3
diff --git a/docs/site/plans.md b/docs/site/plans.md
index adf32abd9..26df09a02 100644
--- a/docs/site/plans.md
+++ b/docs/site/plans.md
@@ -157,7 +157,7 @@ Every billing setting lives in the console's EnvironmentFile. None of them is a
If any of them is wrong, the console refuses to start and names the variable, never its value.
-The restricted key also needs read access to Balance, Charges and Refunds, and the webhook also needs `charge.succeeded`, `charge.captured` and `charge.refunded`, so the console can record the money it receives.
+So the console can record the money it receives, the restricted key also needs read access to Balance, Balance Transaction Sources, Charges and Refunds, and Invoices. The webhook also needs `charge.succeeded`, `charge.captured` and `charge.refunded`.
Point Stripe's webhook at `https://<console>/billing/webhook`. When the console starts, it checks the account, every price in the book, the portal configuration and the house coupon (if you set one) against Stripe before it accepts a webhook. Until that check passes, the webhook answers 503 and Stripe tries again later, so a console that starts while Stripe is unreachable catches up by itself.
diff --git a/docs/superpowers/plans/2026-11-09-billing-dashboard-1-copy.md b/docs/superpowers/plans/2026-11-09-billing-dashboard-1-copy.md
index f2bbdd863..634e7f6d8 100644
--- a/docs/superpowers/plans/2026-11-09-billing-dashboard-1-copy.md
+++ b/docs/superpowers/plans/2026-11-09-billing-dashboard-1-copy.md
@@ -80,7 +80,7 @@ BDC-32 to BDC-34 are new lines in the section's `sh` block, after `carlos billin
| id | file | text | status |
|---|---|---|---|
-| BDC-37 | docs/site/plans.md | The restricted key also needs read access to Balance, Charges and Refunds, and the webhook also needs `charge.succeeded`, `charge.captured` and `charge.refunded`, so the console can record the money it receives. | approved |
+| BDC-37 | docs/site/plans.md | So the console can record the money it receives, the restricted key also needs read access to Balance, Balance Transaction Sources, Charges and Refunds, and Invoices. The webhook also needs `charge.succeeded`, `charge.captured` and `charge.refunded`. | approved (2026-11-10, replaces the 2026-11-09 wording, which missed Balance Transaction Sources and Invoices) |
BDC-37 goes straight after the paragraph that starts "If any of them is wrong", which follows the variables table.
diff --git a/docs/superpowers/plans/2026-11-09-billing-dashboard-1-data.md b/docs/superpowers/plans/2026-11-09-billing-dashboard-1-data.md
index ed53f6716..8b5a05ea2 100644
--- a/docs/superpowers/plans/2026-11-09-billing-dashboard-1-data.md
+++ b/docs/superpowers/plans/2026-11-09-billing-dashboard-1-data.md
@@ -874,7 +874,8 @@ and §5; Plan 3 (written separately) covers §4.5.
- `docs/site/cli.md` `### carlos billing`: one paragraph for the two verbs
and their example lines.
- `docs/site/plans.md`: one sentence after the variables table saying the
- key also needs read access to balance, charges and refunds, and that
+ key also needs read access to Balance, Balance Transaction Sources,
+ Charges and Refunds, and Invoices (corrected 2026-11-10), and that
Stripe's webhook also sends `charge.succeeded`, `charge.captured` and
`charge.refunded`.
- `scripts/stripe-setup.sh`: the `WEBHOOK_PROBLEM` line that says "the six".
@@ -977,8 +978,10 @@ and §5; Plan 3 (written separately) covers §4.5.
## After the plan
-- Before the first roll that carries this, Paul adds Balance, Charges and
- Refunds read to the dev and flagship restricted keys, and the three
+- Before the first roll that carries this, Paul adds Balance, Balance
+ Transaction Sources (for `expand[]=data.source` on balance transactions),
+ Charges and Refunds, and Invoices read to the dev and flagship restricted
+ keys (Sources corrected 2026-11-10), and the three
charge events to both webhook endpoints. Without them the money pass
fails its job and nothing else changes; once added, the next hourly pass
backfills everything.