carlos / platform Public

reviews: Astra brief for #996 design round 2

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

Intent

Attributed to this commit: 10.8 g CO₂e (1,385,244 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-R2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-INSTANCE-MEMORY-ALERT-996-R2.md
new file mode 100644
index 000000000..284b49f45
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-INSTANCE-MEMORY-ALERT-996-R2.md
@@ -0,0 +1,25 @@
+# Review brief: instance memory alert design (#996), round 2 of 3
+
+Repo carlos/platform, branch `plan-tito-nesting-moves`, commit ab036d9610926a18a346a14d10f27a2c51d32ba7.
+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.
+
+## Round 2
+
+Earlier round: `docs/superpowers/reviews/CODEX-FINDINGS-INSTANCE-MEMORY-ALERT-996-R1.md`. First give one line per round-1 P1 and P2: resolved, partly, or not, checking the design's "Round 1 dispositions". Carry any unresolved finding forward at its severity, then add new findings. Name the invariant (fault family) beside each finding. Also check the two items the design marks unverified (systemd 257 Result=oom-kill with PrivatePIDs; whether a box-wide OOM also reports oom-kill) for whether the design's fallback is safe if either is false.
+
+## 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.