carlos / platform Public

Review brief for analytics-onramp, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 9bb11273fe4ec7b25340c126466af3fee046d897 parent 9f626ea
1 file changed, +40 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-analytics-onramp.md +40 −0

CI failed — run details

diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-analytics-onramp.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-analytics-onramp.md
new file mode 100644
index 000000000..85b83d5ee
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-analytics-onramp.md
@@ -0,0 +1,40 @@
+# Review brief: branch analytics-onramp, round 1 of 3
+
+Repo carlos/platform, branch `analytics-onramp`, commit 9f626eaf (full sha in the reviewer's prompt).
+Under review: the diff `origin/main...9f626eaf` (the branch merged origin/main at c0631f46).
+Authorities: the plan `docs/superpowers/plans/2026-10-26-analytics-onramp.md` (Paul approved the four items in chat, 2026-10-26); AGENTS.md on main (Stopping rules; census section, C2).
+
+You are an independent reviewer. Read the plan, then the code, and check every claim against the code.
+
+## Fixed: do not re-argue
+
+- Paul, 2026-10-26: Analytics tab off-state with a Turn on button for owners; Create app asks about analytics, defaulting from the account; a way to make the choice the account default; new accounts start with analytics on (existing accounts unchanged); `carlos apps create --analytics/--no-analytics`.
+- Builder rulings already accepted by the controller: members can create apps but cannot set analytics (checkbox disabled; a hand-sent different choice is refused before the name is claimed, browser and CLI); only the console's account creation starts analytics on; counted numbers still show when analytics is off; Create app makes one S3 read for the checkbox default (`calls 1` record).
+- Copy is Luna-approved; do not review wording except for factual errors.
+
+## What to check
+
+1. Authorization: only owners change analytics (app or account); gate order unchanged on the new/changed doors; refusals happen before any write (including the app-name claim on create).
+2. The create flow: the checkbox default equals the account's effective setting; a matching choice writes nothing; a differing choice writes the app setting; a failure to write the setting after create leaves the app and tells the user.
+3. `telemetry.Resolve` with an empty app name returns the account setting alone and every caller still gets the right answer (account settings page, analytics view, analytics POST handlers, create).
+4. New accounts default on, existing accounts unchanged; CLI flags map to the API (no flag = follow the account).
+5. The per-app frame cache (internal/console/appframe.go) is still cleared by the create and analytics doors.
+6. Census (AGENTS.md on main): answer APPROVE or ESCALATE for the `Resolve` body unit and the `.` and `internal/telemetry` envelope re-pins on `docs/superpowers/notes/census-proposal-analytics-onramp.md` (card question: does any root read now open/run/query/follow a path or input a tenant, app or box agent can create, write or name?). You decide every class.
+
+## 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.
+
+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, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and the invariant or trust boundary it breaks. Then the census verdict lines. 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.