review: Astra brief for free-storage-250, round 1
Summary
Round 1 brief for the whole-branch review and the census verdict.
1 file changed,
+106
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-FREE-STORAGE-1076.md+106 −0
CI failed — run details
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-FREE-STORAGE-1076.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-FREE-STORAGE-1076.md| new file mode 100644 |
| index 000000000..8f25ca51b |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-FREE-STORAGE-1076.md |
| @@ -0,0 +1,106 @@ |
| +# Review brief: branch free-storage-250 (#1076), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `free-storage-250`, commit d97a24d5a061113b1d7cac13a5b843d99182bd9b. |
| +Under review: the diff `3edf8a4c33ca41ea7c230484f393314c31df6e39..d97a24d5a061113b1d7cac13a5b843d99182bd9b`. |
| +Authorities (merged on main): `docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md`, |
| +`docs/superpowers/specs/2026-09-02-object-storage-self-serve-design.md`, |
| +`docs/superpowers/specs/2026-09-01-object-storage-virus-scanning-design.md`, |
| +`docs/superpowers/specs/2026-09-15-tenant-email-senders-design.md`, |
| +AGENTS.md (census, stopping rules). The branch's own runbook is |
| +`docs/superpowers/plans/2026-11-15-free-storage-rollout.md`. |
| + |
| +You are an independent reviewer. Read the diff, then the code it reaches, |
| +and check every claim against that code. This review is also the census |
| +review: give a verdict for each re-pinned envelope on the card |
| +`docs/superpowers/notes/census-proposal-free-storage-250.md` (`.`, |
| +`internal/mailwire`, `internal/objstore`, `internal/plans`; no unit |
| +changed). |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul's figures (relayed 2026-11-15, discussion #1076): Free object storage |
| + 50 MB, self-serve, virus scanning always on for Free stores; Free email 50 |
| + a day and no more than 5 in any hour, to anyone; Free disk 1 GB per app; |
| + Free accounts already approved for 1 GB keep it. They are drafts: the |
| + book stays `"status": "draft"` and the figures are not under review. |
| +- New member-facing strings are placeholders (`copyPending(key)`, and |
| + `accounts_plan_copy_pending.go`) until Paul's copy review. Do not review |
| + wording. |
| +- Approved books and the recorded flagship catalog |
| + (`deploy/billing/catalog-2026-11-14-v1.json`, pinned to id |
| + `2026-11-14-v1@6f2e7f29d318`) are never edited. |
| + |
| +## What to check |
| + |
| +1. **Self-serve authority** (`internal/console/storeselfserve.go`, |
| + `apistore_provision.go`). A plan with `storage_self_serve` now lets a |
| + member provision the app's store with no operator. Is any path left by |
| + which a member provisions without either an approval or a self-serve |
| + plan (exempt account, plans off, sponsored rows, a queued request after |
| + a plan change, environment stores, per-instance stores)? Is excluding |
| + sponsored rows done everywhere it should be (provision door, store |
| + reply's `self_serve`, the settings pane)? |
| +2. **Forced scanning** (`forceStoreScanning`, `storeScanPreflight`, the scan |
| + request door). Can a store whose plan requires scanning end up |
| + provisioned and serving the app's credentials without scanning and |
| + enforcement on, other than the failure the door reports and a re-run |
| + resumes? Is the client-encrypted attestation refused on every path |
| + (before provision, during, and after via `scan request`)? Are the locks |
| + right: the provision door holds the account lock and the store walk lock |
| + while `forceStoreScanning` runs `appMutation` and `regrantForScanning`; |
| + compare with `handleAPIScanGrant` and `handleAPIScanEnforce`. Is the |
| + enforcement Deny actually in the app's policy afterwards? |
| +3. **Grandfathering** (`internal/console/plankept.go`, the `kept` column, |
| + `Limits.WithKept`). Is every place that computes an account's effective |
| + limits from its plan row now applying `Kept` (search for |
| + `cat.Effective(` and `PlanCatalog.Effective(` with a row)? Could kept |
| + storage ever lower a limit, apply to the wrong account, or exempt the |
| + account from anything a sponsorship would? Is the once-per-catalog |
| + settle correct when it fails part-way? |
| +4. **Hourly email** (`planmail.go`, `mailcounts.go`, `sesevents.go`, the |
| + `mail_hour_sends` table, `mailwire.PauseKindPlanHour`). Every reader of a |
| + pause kind: does any treat `plan-hour` wrongly (the box mailer, the |
| + resume paths, `carlos email status`, sender listing)? Is the new table |
| + registered everywhere an app-keyed mail table must be (store gate, |
| + `mailAppTables` carry/forget, claim fixtures), and does carry on rename |
| + compare the hour string correctly? Does the day's pause still win when |
| + both are due, and can the added `enforceAccountMail` call at the end of |
| + `resumePlanMail` re-pause something it should not? |
| +5. **Catalog** (`internal/plans/catalog.go`). New fields keep older |
| + catalogs' IDs (omitted when unset)? `generous` semantics: a sponsored |
| + override can never lift `storage_scan_required` and never imposes an |
| + hourly limit on a plan with none? `kept_storage` validation? |
| +6. **Wire shapes** (AGENTS.md: additive). `objstore.GrantSourcePlan`, the |
| + store reply's `self_serve`, the limits record's new fields, the pause |
| + kind: does anything that parses these break on old or new data? |
| +7. **Census**: verdict per envelope as the card asks. |
| + |
| +## 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. (The |
| + census, and review of any newly changed security, root, termination |
| + or production-storage behaviour, still check the fix; see AGENTS.md, |
| + "Stopping rules".) |
| +- **P3**: clarity or polish. Goes on a follow-up list; never a reason for |
| + another round. |
| + |
| +A P1 states its failure scenario and the evidence (file:line). Do not |
| +raise a P2 to P1 to keep the review open. |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3. Each gives the section or task, the problem, |
| +the evidence (file:line, verified), the failure scenario, a concrete |
| +fix and the invariant or trust boundary it breaks (that is its fault |
| +family). Then the census verdict per envelope. End with exactly one |
| +verdict: |
| + |
| +- **READY**: no P1 and no P2. |
| +- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another |
| + round. |
| +- **NOT READY**: one or more P1s, listed. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of |
| +your own. Do not run the full test suites. |