carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1# Whole-branch code review brief: Plans 2 (boxes read account limits)
2
3You are a senior Go reviewer on the carlos platform. Review branch
4`plans-2-box-limits`, range `4a1e4b29a7196a2a0acb505cd4f8a3dcea054ad0..HEAD` (`git diff 4a1e4b29a7196a2a0acb505cd4f8a3dcea054ad0..HEAD`; the
5docs under docs/superpowers/ are requirements, not code to review). The
6review is read-only: do not modify the working tree, index, HEAD or
7branches. You may run `go test` for packages you want to probe (set
8GOFLAGS=-buildvcs=false).
9
10Requirements, in order of authority:
111. Spec: docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md
12 (§5.2 idle window, §7 limits reach the boxes and fail open, §10). Its
13 section 3 decisions are not to be argued with.
142. Plan: docs/superpowers/plans/2026-10-21-plans-2-box-limits.md, especially
15 "Self-hosters": Paul's requirement that deployments without a plan
16 catalog are never interrupted.
173. Executor rulings: `.superpowers/sdd/2026-10-21-plans-2-box-limits/progress.md`,
18 lines containing `Ruling:`. Weigh each.
19
20The spec is a vision document. For behaviour it is silent on, judge by what a
21reasonable operator, self-hoster or customer would expect, and grade by effect.
22
23Check these deliberately (the plan's Review Focus):
241. Plans off (marker absent): exactly one bucket read per pass, no limits.
252. CARLOS_PLAN_LIMITS=off: zero bucket reads, cache cleared.
263. Bucket blips: marker read error keeps the whole cache; a per-account
27 error keeps that account's last value.
284. Plans turned off again: marker disabled clears the cache; windows revert.
295. A plan idle longer than the box default: the box default stands.
30
31Also look hard at: any path where a self-hosted box (no catalog ever) changes
32behaviour or cost; the activator sweep change (always-on workers, held-for-tick,
33probe entries, sidecar workers); races on the package-level cache and the
34atomic hook; the console marker publisher (once per start, disable path,
35CAS); SetAccountPlan's live-account guard SQL; the hostops and storedoor
36entries for control/plans.json; the census overlay rows' honesty; and
37darwin/windows builds.
38
39Output: findings most severe first, each Critical / Important / Minor with
40file:line, the concrete failure scenario and a suggested fix; then "Declined
41to judge" (every behaviour set aside, one line each with the reason); then a
42verdict: ready to merge, ready with fixes, or not ready.
43