docs: billing dashboard 1 copy deck, approved
BDC-1..38 for the revenue and payments verbs, the payments door, the docs and the Stripe setup script. Paul approved every row unchanged in copy review il22ckkydvo2n7onrbwviz3sfq.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+441
−0
docs/superpowers/plans/2026-11-09-billing-dashboard-1-copy-approved.json+350 −0docs/superpowers/plans/2026-11-09-billing-dashboard-1-copy.md+91 −0
CI passed — run details
diff --git a/docs/superpowers/plans/2026-11-09-billing-dashboard-1-copy-approved.json b/docs/superpowers/plans/2026-11-09-billing-dashboard-1-copy-approved.json| new file mode 100644 |
| index 000000000..b62e843d5 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/2026-11-09-billing-dashboard-1-copy-approved.json |
| @@ -0,0 +1,350 @@ |
| +{ |
| + "action": "approve", |
| + "guidance": null, |
| + "strings": [ |
| + { |
| + "id": "BDC-1", |
| + "text": "usage: carlos billing problems [-all] | revenue | payments [-month YYYY-MM] [-kind K] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"", |
| + "original": "usage: carlos billing problems [-all] | revenue | payments [-month YYYY-MM] [-kind K] | close -id N -note \"...\" | house -account A -on|-off -note \"...\"", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-2", |
| + "text": "only payments in this month (UTC), as YYYY-MM", |
| + "original": "only payments in this month (UTC), as YYYY-MM", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-3", |
| + "text": "only this kind: subscription, once-off, refund, fee or unmatched", |
| + "original": "only this kind: subscription, once-off, refund, fee or unmatched", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-4", |
| + "text": "arr", |
| + "original": "arr", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-5", |
| + "text": "<eur> a year before tax (<amounts>)", |
| + "original": "<eur> a year before tax (<amounts>)", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-6", |
| + "text": ", at ecb rates of <day>", |
| + "original": ", at ecb rates of <day>", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-7", |
| + "text": "mrr", |
| + "original": "mrr", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-8", |
| + "text": "<eur> a month before tax", |
| + "original": "<eur> a month before tax", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-9", |
| + "text": "paying", |
| + "original": "paying", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-10", |
| + "text": "<n> of <all> accounts", |
| + "original": "<n> of <all> accounts", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-11", |
| + "text": "needs attention", |
| + "original": "needs attention", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-12", |
| + "text": "<n> paying accounts with a failing renewal or a cancellation", |
| + "original": "<n> paying accounts with a failing renewal or a cancellation", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-13", |
| + "text": "not available yet: <reason>", |
| + "original": "not available yet: <reason>", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-14", |
| + "text": "groups", |
| + "original": "groups", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-15", |
| + "text": "<n> paying, <n> free, <n> sponsored, <n> house, <n> ours", |
| + "original": "<n> paying, <n> free, <n> sponsored, <n> house, <n> ours", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-16", |
| + "text": "test mode: these come from stripe test payments, not real money", |
| + "original": "test mode: these come from stripe test payments, not real money", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-17", |
| + "text": "the hourly read of subscriptions from stripe is more than two hours old", |
| + "original": "the hourly read of subscriptions from stripe is more than two hours old", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-18", |
| + "text": "the payment record has not caught up with stripe in the last two hours", |
| + "original": "the payment record has not caught up with stripe in the last two hours", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-19", |
| + "text": "there is no current ecb rate for one of the currencies", |
| + "original": "there is no current ecb rate for one of the currencies", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-20", |
| + "text": "a paying account's yearly amount is not known yet", |
| + "original": "a paying account's yearly amount is not known yet", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-21", |
| + "text": "when (utc) account kind reason charged tax settled fee detail", |
| + "original": "when (utc) account kind reason charged tax settled fee detail", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-22", |
| + "text": "no payments to show", |
| + "original": "no payments to show", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-23", |
| + "text": "unmatched", |
| + "original": "unmatched", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-24", |
| + "text": "subscription", |
| + "original": "subscription", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-25", |
| + "text": "once-off", |
| + "original": "once-off", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-26", |
| + "text": "refund", |
| + "original": "refund", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-27", |
| + "text": "fee", |
| + "original": "fee", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-28", |
| + "text": "give -month as YYYY-MM, for example 2026-11", |
| + "original": "give -month as YYYY-MM, for example 2026-11", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-29", |
| + "text": "give -kind as subscription, once-off, refund, fee or unmatched", |
| + "original": "give -kind as subscription, once-off, refund, fee or unmatched", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-30", |
| + "text": "month must be YYYY-MM, for example 2026-11", |
| + "original": "month must be YYYY-MM, for example 2026-11", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-31", |
| + "text": "kind must be subscription, once_off, refund, fee or unmatched", |
| + "original": "kind must be subscription, once_off, refund, fee or unmatched", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-32", |
| + "text": "carlos billing revenue", |
| + "original": "carlos billing revenue", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-33", |
| + "text": "carlos billing payments -month 2026-11", |
| + "original": "carlos billing payments -month 2026-11", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-34", |
| + "text": "carlos billing payments -kind unmatched", |
| + "original": "carlos billing payments -kind unmatched", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-35", |
| + "text": "`revenue` prints what the paying accounts bring in, before tax: ARR and MRR in euros at the ECB rates of the day it names, with each currency's own total beside ARR, for example `arr €2,400.00 a year before tax (€2,400.00), at ecb rates of 2026-11-06`. Then it prints how many accounts pay, how many of those have a failing renewal or are cancelling, and how many accounts are paying, free, sponsored, house and ours. A figure the console can't stand behind yet, because a read from Stripe is behind or a rate is missing, says `not available yet` and why, instead of a wrong number. In test mode it says so.", |
| + "original": "`revenue` prints what the paying accounts bring in, before tax: ARR and MRR in euros at the ECB rates of the day it names, with each currency's own total beside ARR, for example `arr €2,400.00 a year before tax (€2,400.00), at ecb rates of 2026-11-06`. Then it prints how many accounts pay, how many of those have a failing renewal or are cancelling, and how many accounts are paying, free, sponsored, house and ours. A figure the console can't stand behind yet, because a read from Stripe is behind or a rate is missing, says `not available yet` and why, instead of a wrong number. In test mode it says so.", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-36", |
| + "text": "`payments` lists the money Stripe has taken and paid back, newest first, up to 500 lines: when it happened (UTC), the account, the kind, the amount charged, the tax, what settled in euros and Stripe's fee. `-month 2026-11` keeps one month. `-kind` keeps one of `subscription`, `once-off`, `refund`, `fee` or `unmatched`, a payment from a Stripe customer the console can't match to an account.", |
| + "original": "`payments` lists the money Stripe has taken and paid back, newest first, up to 500 lines: when it happened (UTC), the account, the kind, the amount charged, the tax, what settled in euros and Stripe's fee. `-month 2026-11` keeps one month. `-kind` keeps one of `subscription`, `once-off`, `refund`, `fee` or `unmatched`, a payment from a Stripe customer the console can't match to an account.", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-37", |
| + "text": "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.", |
| + "original": "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.", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + }, |
| + { |
| + "id": "BDC-38", |
| + "text": "its events are not the nine the console reads", |
| + "original": "its events are not the nine the console reads", |
| + "edited": false, |
| + "rerolled": false, |
| + "rerolls": [], |
| + "done": false |
| + } |
| + ], |
| + "review": "il22ckkydvo2n7onrbwviz3sfq", |
| + "generation": 1 |
| +} |
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| new file mode 100644 |
| index 000000000..899ffc4e2 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/2026-11-09-billing-dashboard-1-copy.md |
| @@ -0,0 +1,91 @@ |
| +# Billing dashboard plan 1: copy record |
| + |
| +Every user-facing string plan 1 of the billing dashboard writes (spec `2026-11-09-billing-dashboard-design.md` §4.2 to §4.4): the `carlos billing revenue` and `carlos billing payments` verbs, the console door's refusals, the docs and the Stripe setup script. Paul approved all 38 rows unchanged on 2026-11-09 in copy review `il22ckkydvo2n7onrbwviz3sfq` (`2026-11-09-billing-dashboard-1-copy-approved.json`). The gate is `approved_billing_dashboard_copy_test.go` at the repo root, in the asset copy record's format: one table per heading, columns id, file, text, status. |
| + |
| +The rules are the asset copy record's (`2026-10-24-edge-asset-cache-copy.md`): a row's Go text is one literal or one `fmt.Sprintf`/`fmt.Errorf`/`errors.New` format, with a verb where the row has a placeholder (`<eur>`, `<amounts>`, `<day>` and `<reason>` are `%s`; `<n>` and `<all>` are `%d`); docs rows are one line per paragraph or code line in `docs/site/cli.md` and `docs/site/plans.md`; the task that writes a row adds its id to `billingDashboardCopyBuilt` in the same commit. Amounts are formatted by the code (`€24.00`, `$28.00`); `<amounts>` is each currency's own total joined with ` + `. A revenue line prints as its label, two spaces, then its value, or the label, two spaces, BDC-13 and the reason's text when the door refuses the figure. |
| + |
| +## CLI: usage and flags |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| BDC-1 | billing_cli_copy.go | usage: carlos billing problems [-all] \| revenue \| payments [-month YYYY-MM] [-kind K] \| close -id N -note "..." \| house -account A -on\|-off -note "..." | approved | |
| +| BDC-2 | billing_cli_copy.go | only payments in this month (UTC), as YYYY-MM | approved | |
| +| BDC-3 | billing_cli_copy.go | only this kind: subscription, once-off, refund, fee or unmatched | approved | |
| + |
| +## CLI: carlos billing revenue |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| BDC-4 | billing_cli_copy.go | arr | approved | |
| +| BDC-5 | billing_cli_copy.go | <eur> a year before tax (<amounts>) | approved | |
| +| BDC-6 | billing_cli_copy.go | , at ecb rates of <day> | approved | |
| +| BDC-7 | billing_cli_copy.go | mrr | approved | |
| +| BDC-8 | billing_cli_copy.go | <eur> a month before tax | approved | |
| +| BDC-9 | billing_cli_copy.go | paying | approved | |
| +| BDC-10 | billing_cli_copy.go | <n> of <all> accounts | approved | |
| +| BDC-11 | billing_cli_copy.go | needs attention | approved | |
| +| BDC-12 | billing_cli_copy.go | <n> paying accounts with a failing renewal or a cancellation | approved | |
| +| BDC-13 | billing_cli_copy.go | not available yet: <reason> | approved | |
| +| BDC-14 | billing_cli_copy.go | groups | approved | |
| +| BDC-15 | billing_cli_copy.go | <n> paying, <n> free, <n> sponsored, <n> house, <n> ours | approved | |
| +| BDC-16 | billing_cli_copy.go | test mode: these come from stripe test payments, not real money | approved | |
| + |
| +## CLI: reasons a figure is not available yet |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| BDC-17 | billing_cli_copy.go | the hourly read of subscriptions from stripe is more than two hours old | approved | |
| +| BDC-18 | billing_cli_copy.go | the payment record has not caught up with stripe in the last two hours | approved | |
| +| BDC-19 | billing_cli_copy.go | there is no current ecb rate for one of the currencies | approved | |
| +| BDC-20 | billing_cli_copy.go | a paying account's yearly amount is not known yet | approved | |
| + |
| +BDC-17 to BDC-20 are the texts for the door's `why` codes `facts`, `payments`, `rates` and `amounts`, in that order. |
| + |
| +## CLI: carlos billing payments |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| BDC-21 | billing_cli_copy.go | when (utc) account kind reason charged tax settled fee detail | approved | |
| +| BDC-22 | billing_cli_copy.go | no payments to show | approved | |
| +| BDC-23 | billing_cli_copy.go | unmatched | approved | |
| +| BDC-24 | billing_cli_copy.go | subscription | approved | |
| +| BDC-25 | billing_cli_copy.go | once-off | approved | |
| +| BDC-26 | billing_cli_copy.go | refund | approved | |
| +| BDC-27 | billing_cli_copy.go | fee | approved | |
| +| BDC-28 | billing_cli_copy.go | give -month as YYYY-MM, for example 2026-11 | approved | |
| +| BDC-29 | billing_cli_copy.go | give -kind as subscription, once-off, refund, fee or unmatched | approved | |
| + |
| +BDC-23 fills the account column when the door's `account` is empty: a payment from a Stripe customer the console can't match to an account, or one whose account is deleted. BDC-24 to BDC-27 are the kind column's words for `subscription`, `once_off`, `refund` and `fee`. |
| + |
| +## Console: the payments door |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| BDC-30 | internal/console/apibilling_copy.go | month must be YYYY-MM, for example 2026-11 | approved | |
| +| BDC-31 | internal/console/apibilling_copy.go | kind must be subscription, once_off, refund, fee or unmatched | approved | |
| + |
| +## Docs: CLI reference, carlos billing |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| BDC-32 | docs/site/cli.md | carlos billing revenue | approved | |
| +| BDC-33 | docs/site/cli.md | carlos billing payments -month 2026-11 | approved | |
| +| BDC-34 | docs/site/cli.md | carlos billing payments -kind unmatched | approved | |
| +| BDC-35 | docs/site/cli.md | `revenue` prints what the paying accounts bring in, before tax: ARR and MRR in euros at the ECB rates of the day it names, with each currency's own total beside ARR, for example `arr €2,400.00 a year before tax (€2,400.00), at ecb rates of 2026-11-06`. Then it prints how many accounts pay, how many of those have a failing renewal or are cancelling, and how many accounts are paying, free, sponsored, house and ours. A figure the console can't stand behind yet, because a read from Stripe is behind or a rate is missing, says `not available yet` and why, instead of a wrong number. In test mode it says so. | approved | |
| +| BDC-36 | docs/site/cli.md | `payments` lists the money Stripe has taken and paid back, newest first, up to 500 lines: when it happened (UTC), the account, the kind, the amount charged, the tax, what settled in euros and Stripe's fee. `-month 2026-11` keeps one month. `-kind` keeps one of `subscription`, `once-off`, `refund`, `fee` or `unmatched`, a payment from a Stripe customer the console can't match to an account. | approved | |
| + |
| +BDC-32 to BDC-34 are new lines in the section's `sh` block, after `carlos billing problems -all`. |
| + |
| +## Docs: Plans, Turning it on |
| + |
| +| 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 goes straight after the variables table. |
| + |
| +## Script: stripe-setup.sh |
| + |
| +| id | file | text | status | |
| +|---|---|---|---| |
| +| BDC-38 | scripts/stripe-setup.sh | its events are not the nine the console reads | approved | |