carlos / platform Public

docs: final review brief for billing pages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev c6ab430326bcdce1fe8dee3ad21bfd20d5ee0220 parent b108501
1 file changed, +32 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-billing-dash-2-pages.md +32 −0

CI failed — run details

diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-billing-dash-2-pages.md b/docs/superpowers/reviews/REVIEW-BRIEF-billing-dash-2-pages.md
new file mode 100644
index 000000000..ebdacf85a
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-billing-dash-2-pages.md
@@ -0,0 +1,32 @@
+# Review brief: billing dashboard Plan 2 (the pages), whole branch, round 1 of 3
+
+Repo carlos/platform, branch `billing-dash-2-pages`, commit b108501e (tip; main 89f6d8ed is merged in).
+Under review: the diff `89f6d8ed..b108501e` (origin/main..tip): 44 files, about 7.4k lines. A packaged diff (commit list, stat, full diff with context) is at
+`/home/paulca/.paseo/worktrees/03ai90xp/billing-dash-2-pages/.superpowers/sdd/2026-11-09-billing-dashboard-2-pages/review-89f6d8ed..b108501e.diff`; read it rather than re-deriving with git.
+Authorities, MERGED on main: spec `docs/superpowers/specs/2026-11-09-billing-dashboard-design.md`, plan `docs/superpowers/plans/2026-11-09-billing-dashboard-2-pages.md` (its Global Constraints and Review Focus are binding), and Plans 1 and 3 already on main (the money records, the gate `moneyReady`, `carlosPlatformCostUSD`).
+Approved copy: `docs/superpowers/plans/2026-11-09-billing-dashboard-2-copy.md`, approved unchanged by Paul. Strings in code must equal it byte for byte; do not propose new wording, only report a string that does not match or a user-facing string with no row.
+
+You are an independent reviewer of the whole branch. Each task already passed a task-scoped review; you are the broad pass. Look for what crosses tasks.
+
+## Fixed: do not re-argue
+- Paul's rulings: everything in euros; invisible without billing; no banner; lists capped at 5 with a full-list link; whole rows clickable; revenue before tax; AWS cost CARLOS-only (recorded in the spec).
+- The controller's rulings are listed with reasons in `/home/paulca/.paseo/worktrees/03ai90xp/billing-dash-2-pages/.superpowers/sdd/2026-11-09-billing-dashboard-2-pages/rulings-and-minors.md` (lines starting `Ruling:`). Report one only if the code fails it or you have new evidence it is wrong; say which ruling.
+
+## What to check
+1. Review Focus 1-6 in the plan (billing off answers exactly as an unknown route, GET and POST, to operators too; one incomplete input refuses exactly the figures that declare it; a reconcile failure across midnight; nothing yet; a month before the history; unmatched and deleted accounts).
+2. Every money figure on every page goes through `opMoney` with honest declarations (`TestMoneyFormattersOnlyInsideOpMoney`, the per-page gate-invariant tests). Look for a figure that can show a partial or wrong number: platform cost without `inRates` usd, a converted figure without the rate date, a sum that mixes currencies, tax counted as revenue, a native breakdown that disagrees with its euro figure.
+3. Cross-page consistency: the overview, accounts and payments pages and the Dashboard tile agree on the same facts (status words, history note, paying set, last complete month).
+4. Operator-only, method checks, query parsing (bad month, kind, tab, sort, page), pagination bounds, SQL in the new store functions (`BillingFunnel`, `NearestCaps`), and anything a rendered page could leak.
+5. Tests that assert nothing or pass for the wrong reason.
+6. The deferred minors in `/home/paulca/.paseo/worktrees/03ai90xp/billing-dash-2-pages/.superpowers/sdd/2026-11-09-billing-dashboard-2-pages/rulings-and-minors.md`: say which, if any, must be fixed before merge.
+7. **Census (#280), the root-read census.** The branch re-pins only the root envelope `.` (overlay `internal/provision/testdata/plan14-root-reads-billing-dash-2-pages.tsv`, card `docs/superpowers/notes/census-proposal-billing-dash-2-pages.md`, claims `docs/superpowers/notes/census-claims-billing-dash-2-pages.tsv`); the cause is a one-string change to the BDC-20 constant in `billing_cli_copy.go`. Read every changed function in the root package in this diff and give an approve/reject verdict for the `.` envelope per AGENTS.md "The census" (reject if root can open, run, query or follow anything new from a path or input a tenant, app or box agent controls, or a check is weakened). Also confirm the record-write census re-pin in `internal/provision/billing_dashboard_2_census_test.go` (routedecls.go `var routeDecls`) is right.
+
+## 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.
+
+A P1 states its failure scenario and the evidence (file:line). Do not raise a P2 to P1 to keep the review open.
+
+## Output
+Findings ranked P1, P2, P3, each with file:line, the problem, the failure scenario and the fix. Then the census verdict for `.` (APPROVE or REJECT, with the lines you read). Then: **Ready to merge?** Yes / No / With fixes. You are read-only: do not modify files.