plans 6a: Astra review brief
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+45
−0
docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6A-CODE.md+45 −0
CI failed — run details
diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6A-CODE.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6A-CODE.md| new file mode 100644 |
| index 000000000..6515eb317 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6A-CODE.md |
| @@ -0,0 +1,45 @@ |
| +# Whole-branch code review brief: Plans 6a (Checkout core: price book, Stripe adapter, webhooks, plan sync) |
| + |
| +You are a senior Go reviewer on the carlos platform, and the census's |
| +cross-model reviewer for this branch. Review branch `plans-6-checkout` |
| +(`git diff c743efeafef23567c9e2c37d29d351043690e1e4..HEAD` is the branch's own change). Read-only: do not |
| +modify the working tree, index, HEAD or branches. You may run `go test` |
| +with GOFLAGS=-buildvcs=false, targeted with -run. No network calls. |
| + |
| +Requirements: the spec docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md |
| +§9, §10, §3; the plan docs/superpowers/plans/2026-10-25-plans-6a-checkout.md |
| +(6a only; 6b/6c are outlines) including its Global Constraints, Review |
| +Focus and the calls Paul ACCEPTED; the public export schema doc |
| +docs/superpowers/specs/2026-10-25-public-price-export-schema-2.md; the |
| +executor's Ruling lines in docs/superpowers/notes/plans-6a-ledger.md. |
| + |
| +Grade by effect. Check each Review Focus line, and also: |
| +- billing off (no key, no approved book) changes nothing; self-managed |
| + deployments stay off; no hostname-triggered activation; |
| +- webhook signature verification and rotation, replay and duplicate |
| + handling, out-of-order events, the 503 "not ready" path; |
| +- money safety: no state where an account pays and is not granted, or is |
| + granted without paying; pack reductions at renewal; past due keeps paid |
| + limits; ended statuses drop to free; the unknown-subscription ruling |
| + (a vanished subscription leaves the account paid until an operator acts) |
| + graded by effect; |
| +- the plan-row write (billingSetPlan): only default/billing rows; no |
| + overwrite of operator or sponsored rows; it duplicates SetAccountPlan's |
| + SQL inside a transaction. Plan 4d-1 (branch plans-4d-lapse, not yet on |
| + main) makes applyAccountPlan the single plan-change path and records the |
| + lapse start; assess what breaks if 6a merges without routing through it |
| + (e.g. a billing drop never starting a lapse) and what the swap needs; |
| +- the price book: draft/approved gate, a live console refusing a draft, |
| + content change under the same version, Stripe ids never in the book or |
| + the public export; the export command and schema; |
| +- secrets: rk_ key handling, nothing logged; |
| +- provider boundary: Stripe behind an interface. |
| + |
| +Census: answer the card's review question for every unit and envelope in |
| +docs/superpowers/notes/census-proposal-plans-6-checkout.md, including the |
| +hand-written decision overlay plans-6a-units (approve or escalate per |
| +unit; check seals and fingerprints). |
| + |
| +Answer: findings graded Critical / Important / Minor with file:line and a |
| +concrete failure scenario; census verdicts; a verdict: accept, accept with |
| +fixes, or changes required. Do not review the wording (Luna-approved copy). |