Review brief for console-perf-quick-wins, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+42
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-console-perf-quick-wins.md+42 −0
CI failed — run details
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-console-perf-quick-wins.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-console-perf-quick-wins.md| new file mode 100644 |
| index 000000000..8265966b6 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-console-perf-quick-wins.md |
| @@ -0,0 +1,42 @@ |
| +# Review brief: branch console-perf-quick-wins, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `console-perf-quick-wins`, commit 16e026f9 (named in the reviewer's prompt with its full sha). |
| +Under review: the diff `origin/main..16e026f9` (merge base: the branch merged origin/main at be785f21). |
| +Authorities: `docs/superpowers/specs/2026-10-25-console-ux-perf-design.md` Part 2 (on main) and the plan `docs/superpowers/plans/2026-10-26-console-perf-quick-wins.md` (on this branch; it replaces the unbuilt `2026-10-25-console-perf-2-fixes.md`). |
| + |
| +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: the 17-task read-set cache plan is replaced by these quick wins; no read-set tracking, no deferred parts in this round. |
| +- Paul, 2026-10-26: S3 requests must go down; the scripted session ceiling is lowered (now 320). |
| +- Paul, 2026-10-26: accept three census decision rows (handleAccountSettings reading the account telemetry key directly; assembleViews/Assemble registry-read relocation). Check the rows match; do not re-argue accepting them. |
| +- Screens that still miss 150 ms on a cold first view stay recorded as `over:` with their measured counts; that is accepted for this round. |
| + |
| +## What to check |
| + |
| +1. The per-app frame cache (`internal/console/appframe.go`, the registerRoute hook in `claim_routes.go`, rename clear in `appsettings.go`): every console write that changes an app's channels, production flag or pipeline clears that app's entry before its response; per-app generation stops an in-flight GET from storing a pre-write value; nothing unbounded grows from unauthenticated requests; cached values are copied on read; write doors never read the cache. Look for a write path that escapes the hook. |
| +2. The per-request memo (Task 3): request-scoped only; partial box listings stay partial; no cross-request state; memo installed only on GET/HEAD. |
| +3. Settings sections (Task 4): every section still renders everything it showed before for owners and members; `appDeployEmpty` one-key listing behaves the same on stores without ListPage. |
| +4. Account telemetry (Task 5): the account level shown matches what errorsview/analyticsview write. |
| +5. Security gate order (session, CSRF, owner/member 404) unchanged on every touched handler; the registerRoute hook runs nothing that changes responses. |
| +6. The perf walk and `perf-budgets.txt` records are truthful (cold reset clears the frame cache and manifest memo; `calls` records only where cold also fits). |
| +7. Census approvals (AGENTS.md "The census: an approval, not a decision"): for each unit on `docs/superpowers/notes/census-proposal-console-perf-quick-wins.md` (body: loadRolloutJoin, systemBoxes, handleAppLogs; sites: geoipInventory; the internal/console envelope re-pin) answer APPROVE or ESCALATE to the card's 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?). Confirm the three decision rows in `internal/provision/testdata/plan14-root-reads-console-perf-quick-wins-decisions.tsv` match Paul's ruling. |
| + |
| +## 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 or task, 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. |