carlos / platform Public

plans-6c: review brief for the live path, 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 95fbbb7aa15a103116bc4af9741b5f9f0c366817 parent bcde967
1 file changed, +29 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-plans-6c-live.md +29 −0

CI failed — run details

diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-plans-6c-live.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-plans-6c-live.md
new file mode 100644
index 000000000..d48fa786f
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-plans-6c-live.md
@@ -0,0 +1,29 @@
+# Review brief: branch plans-6c-stripe-setup (live path), round 1 of 3
+
+Repo carlos/platform, branch `plans-6c-stripe-setup`, the commit that adds this brief (named in your prompt).
+Under review: the diff `origin/main...HEAD`. It adds `scripts/stripe-setup.sh` (sandbox setup, now with a guarded `--live` mode), the approved price book `deploy/billing/pricebook-2026-11-01-v1.json` (the draft's amounts, approved by Paul), the runbook `docs/superpowers/plans/2026-10-27-plans-6c-stripe-setup.md`, and fake-CLI tests in `cmd/console/stripesetup_script_test.go`. This script will next run against Carloku's live Stripe account, creating the products, yearly prices, portal configuration, house coupon and webhook endpoint that the flagship console's billing reads.
+
+## Invariant
+
+The script never writes to an account or mode other than the one named. In live mode it writes only live objects that exactly match the approved book and what the console's readiness check expects. A rerun is idempotent and never moves or changes an existing price.
+
+## What to check
+
+1. The live guards: `--live` plus `STRIPE_LIVE_ACCOUNT`, the account match, `/v1/balance` livemode, a livemode check on every object read and written, key-prefix rules, and approved-book-only. Can any path write in the wrong mode or account, or write with a draft book?
+2. What it creates matches what the console's billing readiness check and Checkout code expect: price lookup keys, tax_behavior exclusive, licensed yearly recurring, product tax code, portal configuration, coupon, webhook URL, events and API version 2025-02-24.acacia. Cross-check `internal/billingstripe` and the readiness check.
+3. Idempotency and partial failure: what a crash halfway through an apply leaves behind, and whether the next run finishes it without duplicates.
+4. Secrets: nothing secret is printed or written to disk. That includes the webhook signing secret: how it is surfaced, and whether that's safe.
+5. The runbook's live order is right and complete, and matches the code (sponsor_accounts_before, ops exemption, console v0.33.1+).
+6. The tests would catch a regression in the guards.
+
+## 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 call Stripe. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites.