carlos / platform Public

billing-usage: copy approved; review brief, round 1 of 3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 86ad4614ca82bae4c35081c5746b17f8fcd924d6 parent 3c03345
2 files changed, +30 −1
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-billing-usage.md +29 −0
  • internal/console/billingpage_copy.go +1 −1

CI failed — run details

diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-billing-usage.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-billing-usage.md
new file mode 100644
index 000000000..80f6aa5b8
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-billing-usage.md
@@ -0,0 +1,29 @@
+# Review brief: branch billing-usage, round 1 of 3
+
+Repo carlos/platform, branch `billing-usage`, the commit that adds this brief (named in your prompt).
+Under review: the diff `origin/main...HEAD`: the console billing page shows the account's current usage beside the pack rows and plan cards, read from the plan-limits pass's stored measurements (`plan_cap_state`), with a "Usage as of" line. Copy approved by Paul on 2026-10-30.
+
+## Fixed: do not re-argue
+
+- The design and the approved copy.
+- Rule: no new S3, provider or bucket request on a page view (Paul's S3-cost rule).
+
+## What to check
+
+1. No new external request on a page view; the only addition is console-database reads. A failing or missing measurement never shows as zero; a stale period (email per UTC day, bandwidth and awake hours per UTC month) shows as unknown.
+2. Used vs limit is compared against the right limit: the account's effective limit today (packs and team seats included) for pack rows, each plan's own limit on plan cards; near (>= 80%) and over thresholds are right, including limit zero/unlimited.
+3. Members see usage read-only with no forms; nothing leaks another account's rows (the account id comes from the authorised page's account).
+4. Existing invariants: currency/prices guard, action order, CSRF on POST forms, success-screen behaviour, billing lints.
+5. Contrast of the near/over emphasis in both themes; 390 px layout.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work. Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review.
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for another round.
+
+## Output
+
+Findings ranked P1, P2, P3 with file:line, failure scenario and fix. End with exactly one verdict: **READY**, **READY AFTER FIXES**, or **NOT READY**.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites.
diff --git a/internal/console/billingpage_copy.go b/internal/console/billingpage_copy.go
index 01fedab8b..9594d9d13 100644
--- a/internal/console/billingpage_copy.go
+++ b/internal/console/billingpage_copy.go
@@ -165,7 +165,7 @@ var billingCopy = map[string]string{
"done.packs.flash": "Your packs are ready to use.",
// The account's usage beside the packs and plan cards, from the
- // plan-limits pass (2026-10-29). DRAFTS for copy review.
+ // plan-limits pass (2026-10-29). copy approved by Paul 2026-10-30.
"usage.of": "%s of %s used",
"usage.of_today": "%s of %s used today",
"usage.of_month": "%s of %s used this month",