carlos / platform Public

reviews: Astra brief for the #996 design

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev fe57f5846fb12c3a8fb2c1c59b59b2fb435fd74f parent ace5c80
1 file changed, +21 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-INSTANCE-MEMORY-ALERT-996.md +21 −0

Intent

Attributed to this commit: 13.7 g CO₂e (1,765,604 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on plan-tito-nesting-moves, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-INSTANCE-MEMORY-ALERT-996.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-INSTANCE-MEMORY-ALERT-996.md
new file mode 100644
index 000000000..a83d34c09
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-INSTANCE-MEMORY-ALERT-996.md
@@ -0,0 +1,21 @@
+# Review brief: instance memory alert design (#996), round 1 of 3
+
+Repo carlos/platform, branch `plan-tito-nesting-moves`, commit ace5c8093eee83a05407a88ac1921755f0ae5d36.
+Under review: `docs/superpowers/specs/2026-11-13-instance-memory-alert-design.md`.
+Authorities, merged on main: `docs/superpowers/specs/2026-10-30-fleet-alerts-and-traffic-design.md` (alerts engine), AGENTS.md (stopping rules, census, "no new per-box polling of S3"). Do not review against unmerged branches.
+
+You are an independent reviewer. Read the design, then the code it cites, and check every claim against origin/main.
+
+## What to check
+1. Every file:line claim about cgroup paths (flat vs nested), the 60 s metrics sampler, the 5-minute status report's private block, and who reads memory.events today.
+2. Whether the signal (memory.events high and oom_kill deltas, at the cgroup holding the cap) detects "near its limit" without false alarms from page cache, across both layouts, swaps (a new generation cgroup resets counters?), restarts and hibernation (a sleeping instance has no cgroup).
+3. Episode logic on the box: start, end, restart of the agent mid-episode, an instance that moves boxes mid-episode.
+4. Trust: the box reads files in a cgroup the tenant's processes live in; can a tenant influence what is read or reported (e.g. create files, hit oom_kill on purpose to spam alerts)? Any root read? Census scope.
+5. Cost: no new S3 objects or requests as claimed.
+6. Whether the "approaches considered" are fair and the recommendation follows.
+
+## Severity
+P1: unsafe or would not work; blocks. P2: wrong or missing; fixed without another round. P3: polish, follow-up list.
+
+## Output
+Findings ranked P1, P2, P3 with evidence (file:line), failure scenario and fix. End with exactly one verdict: READY, READY AFTER FIXES, or NOT READY. Do not edit files; do not spawn subagents; no full test suites.