sponsor-existing-accounts: review brief, round 1 of 3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+32
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-sponsor-existing-accounts.md+32 −0
CI failed — run details
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-sponsor-existing-accounts.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-sponsor-existing-accounts.md| new file mode 100644 |
| index 000000000..0540dab5a |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-sponsor-existing-accounts.md |
| @@ -0,0 +1,32 @@ |
| +# Review brief: branch sponsor-existing-accounts, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `sponsor-existing-accounts`, the commit that adds this brief (named in your prompt). |
| +Under review: the diff `origin/main...HEAD`. Paul's ruling (2026-10-31): every account that exists when plan limits switch on is sponsored with no limits, so no existing user hits a cap or has to pay; new accounts get normal plans. A new optional catalog field `sponsor_accounts_before` (RFC 3339) names the cutoff. The console's limits pass first writes a sponsored row (default plan, source sponsored, effectively unlimited limits) for every live, non-ops account created before the cutoff that has no `account_plans` row. Until that row exists, `sponsorOwed` holds every limit off for the account. |
| + |
| +## Invariant |
| + |
| +No limit, cap, grace step, mail pause, throttle or limits record acts on an account that is owed a sponsorship, at any point, including before settlement, during a failed settlement, and across console restarts. Settlement never overwrites a row written by an operator or a checkout. |
| + |
| +## What to check |
| + |
| +1. Every enforcement path that reads plan limits goes through the `sponsorOwed` gate or a sponsored row. Hunt for paths that bypass `EffectiveLimits` (box limits records, member cap, free-account rule, plan 3b refusals, rate-limit and keep doors, billing page and checkout). |
| +2. `EnsureDefaultPlans` excluding pre-cutoff accounts: no path can give an owed account a default row before its sponsored row. |
| +3. `applyAccountPlanUnassigned`: it writes only when no row exists, under the same lock and transition as `applyAccountPlan`. Check races with checkout, the operator door and account deletion. The census test that makes `applyAccountPlan` the only plan-change path still holds in spirit. |
| +4. The "unlimited" values (`sponsorUnlimited`) cannot overflow anywhere they are used, on the console or the box (grace multiples, mail pause, durations, rate limits, limits-record JSON). |
| +5. Settlement completion: errors propagate, there's a retry, and "done for this process" needs a success at least 10 minutes after the cutoff. Is that window right for a cutoff in the future? |
| +6. The catalog ID: an unset field leaves existing IDs unchanged. |
| +7. Census card and overlay in `docs/superpowers/notes/census-proposal-sponsor-existing-accounts.md`. You are the census reviewer: approve or reject it with reasons. |
| + |
| +Known and out of scope (decisions for Paul, don't report them): the plan 3b daemon and always-on refusals, the catalog's email ceiling on the mail pause, the free-account count, the billing page showing the raw large numbers. |
| + |
| +## 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, then the census verdict. End with exactly one verdict: **READY**, **READY AFTER FIXES**, or **NOT READY**. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites. |