plans-6c: review brief for the live path, round 3 of 3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+12
−8
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-plans-6c-live.md+12 −8
CI passed — 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| index 42e47b982..3362c289c 100644 |
| --- a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-plans-6c-live.md |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-plans-6c-live.md |
| @@ -1,4 +1,4 @@ |
| -# Review brief: branch plans-6c-stripe-setup (live path), round 2 of 3 |
| +# Review brief: branch plans-6c-stripe-setup (live path), round 3 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. |
| @@ -7,17 +7,21 @@ Under review: the diff `origin/main...HEAD`. It adds `scripts/stripe-setup.sh` ( |
| 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. |
| -## Round 2 |
| +## Round 3 (final) |
| -Round 1 (`~/.cache/plans-6c-live/review-r1.md`) found 3 P1s and a P2: secret disclosure, cutoff coverage, replayed archived objects, and the rehearsal account. Here's how each was fixed. The secret goes only to a 0600 `--secret-out` file and is never printed. The runbook's switch-on now sets the cutoff to the next whole second, restarts, and sponsors accounts in [cutoff, start] by hand with `deploy/billing/sponsored-unlimited.json`, which a test ties to the console's own value. Every create is now read back by id, a replay of an archived object stops the run, and idempotency keys carry the book version. The rehearsal uses a fresh account marked house. |
| +Round 2 (`~/.cache/plans-6c-live/review-r2.md`) found 4 P1s and a P2. Stopping rule 2 applied, so these were fixed structurally: |
| +- The script refuses traced execution and BASH_ENV before any key handling. |
| +- The secret goes only to a script-made 0700 `mktemp -d` directory, through a held descriptor under umask 077. |
| +- Paul ruled (2026-11-01) that an account created at or after the cutoff, including during the switch-on window, is a new account on the normal plan. The by-hand gap step is gone. |
| +- Webhook endpoints must have `application == null`. |
| +- The house command names the flagship console. |
| ## What to check |
| -1. Each round 1 finding is resolved, with no new instance of its fault family (secret handling, launch sponsorship coverage, replacement idempotency, rehearsal eligibility). |
| -2. The `--secret-out` handling: races, symlinks, an existing path, permissions, and whether any path still echoes the secret (error messages, `set -x`, a dry run, `--check`). |
| -3. The read-back checks on every object kind, and that a partial apply followed by a rerun still completes without duplicates. |
| -4. The runbook's switch-on sequence and its read-only console.db query are correct and safe on the flagship box. |
| -5. Anything round 1 didn't cover in the live guards. |
| +1. Each round 2 finding is resolved, with no new instance of the secret-handling or webhook-scope families. |
| +2. Anything still blocking a safe first live run: dry run, `--check`, `--apply`, `--check`. |
| + |
| +This is the final round. Report only real defects; P3s go on a follow-up list. Don't reopen Paul's launch-window ruling. |
| ## Severity |