carlos / platform Public

plans 6a: Astra round 2 brief

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 05b28473491179ea6829019aba97265cb5b80cda parent b59dd08
1 file changed, +37 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6A-CODE-R2.md +37 −0

CI passed — run details

diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6A-CODE-R2.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6A-CODE-R2.md
new file mode 100644
index 000000000..e228738d4
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6A-CODE-R2.md
@@ -0,0 +1,37 @@
+# Code review brief, round 2: Plans 6a (Checkout core)
+
+You are a senior Go reviewer on the carlos platform, and the census's
+cross-model reviewer. Round 1 reviewed 7826d2e0; its findings are
+docs/superpowers/specs/CODEX-FINDINGS-PLANS-6A-CODE.md. The fix pass and
+the integration with Plan 4d-1 (merged on main as 9b81d97) are the commits
+after 7826d2e0 (`git log 7826d2e0..HEAD`, `git diff 7826d2e0..HEAD`), which
+also merge main. 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 are as in round 1 (CODEX-REVIEW-BRIEF-PLANS-6A-CODE.md), plus
+the ledger docs/superpowers/notes/plans-6a-ledger.md (Final lines).
+
+1. A disposition table for round 1's seven findings: fixed, partly fixed or
+ not fixed, with evidence (file:line, test).
+2. Only NEW findings in the fix pass or the integration, graded Critical /
+ Important / Minor, each with a concrete failure scenario. Look hard at:
+ transitionAccountPlan shared by applyAccountPlan and applyBillingPlan
+ (ownership guard for default/billing rows only, unchanged-write
+ suppression, the lapse mark in the same transaction, the lock order
+ billing -> lapse -> store and any path that takes them in another
+ order), SaveBillingSync atomicity, the first-purchase discovery pass
+ (bounds, cost, duplicate grants), the subscription_missing problem and
+ its close path, the Live flag versus entitlement, and that 4d-1's
+ TestOnlyApplyAccountPlanSetsAccountPlans invariant still holds in
+ substance, not only by name.
+3. Census: verdicts for the units that changed since round 1 (new:
+ SaveBillingSync, setBillingPlanTx; removed: SetBillingPlan,
+ PutBillingState; any other changed unit in the card
+ docs/superpowers/notes/census-proposal-plans-6-checkout.md and the
+ hand overlay plans-6a-units, now 20 units), and the two 4d units whose
+ bodies changed (MarkLapse, DeleteCapState). Approve or escalate per
+ unit; check seals and fingerprints.
+4. A verdict: accept, accept with fixes, or changes required.
+
+Do not review the wording (Luna-approved copy).