carlos / platform Public

Astra review brief: fleet alerts Plan 1 whole branch, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 6f28faaeeedfc41488f699d681678e7e87c12490 parent dd7ca3f
1 file changed, +64 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-branch.md +64 −0

CI passed — run details

Intent

Human

<task-notification> <task-id>a15e82fbd5ac1a4a0</task-id> <tool-use-id>toolu_013A5U7BzPkAYT2GLr3TpqBP</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/6112a34e-476e-4b5e-8e07-f93a46fc6d50/tasks/a15e82fbd5ac1a4a0.output</output-file> <status>completed</status> <summary>Agent "Implement Task 11: docs, roll notes, census" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>- **Status:** DONE. All eight R-36 items are fixed in one commit, nothing pushed. - **Commits:** - `8c32f72e` docs: fleet alerts README and roll notes - `75ea37d2` provision: root-read census proposal for fleet alerts plan 1 - `dd7ca3f7` docs: fleet alerts fix round 1 (SNS scope, engine-beat in cli.md, roll-note safety) - **Fixes, in brief:** - The README SNS bullet now covers only `disk` and `engine_silent`. - No new em dashes. The three monitoring lists now all use colons. - The roll notes check for a trailing newline before each `host.env` append. - The witness disk bounds are now at least 10 GiB free and under 80% use. The real worst case is 84%, 6 points under the 90% `disk` rule. - The witness stops and reports if there is no clear by T1+2h20m, and doesn't edit any state. - The engine-beat step has its own account, region and profile lines for dev and for flagship. - Other console deployments are marked out of scope for this roll. - `docs/site/cli.md` now documents the `engine-beat=` suffix. - **Tests:** `TestPlan14RootReadCensus` passes after the fixes, run by name. `internal/docsite` passes. No changed file is in a census envelope (`cli.md` is not embedded), so I did not re-run the proposal. - **Concerns:** - The README and roll-notes prose has not had a copy review. - The engine-beat step depends on the `carlos` user being able to stat `/data/console`. The roll notes check that first and say to stop if it fails. - The census approval is still open for the reviewer on #280. - An untracked `docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-branch.md` in the worktree is not mine, so I left it alone. - **Report:** `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-fleet-alerts/.superpowers/sdd/2026-10-30-fleet-alerts-1-engine-connectors/task-11-report.md` (fix report appended)</result> <usage><subagent_tokens>226744</subagent_tokens><tool_uses>14</tool_uses><duration_ms>185253</duration_ms></usage> </task-notification>

Attributed to this commit: 25.6 g CO₂e (3,293,890 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-fleet-alerts, 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-fleet-alerts-1-branch.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-branch.md
new file mode 100644
index 000000000..0310ae253
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-alerts-1-branch.md
@@ -0,0 +1,64 @@
+# Review brief: fleet alerts Plan 1, whole branch and census, round 1 of 3
+
+Repo carlos/platform, branch `design-fleet-alerts`. Diff: `c24e7a04b16ebafe305f662bdd19fd915e5ff8c5..<this brief's parent>`.
+
+Authorities:
+- the spec `docs/superpowers/specs/2026-10-30-fleet-alerts-and-traffic-design.md` (APPROVED by Paul 2026-10-30, amended through plan review R1-R3)
+- the plan `docs/superpowers/plans/2026-10-30-fleet-alerts-1-engine-connectors.md` (rev 4)
+- main's code at c24e7a04
+- AGENTS.md: the census, the request budget, the stopping rules and production-wired witnesses
+
+You are an independent reviewer. Read the spec, then the branch diff, and check every claim against the code (file:line).
+
+## Fixed: do not re-argue
+
+- **Paul's rulings** in spec §2, his plan-time rulings recorded in the plan header and disposition tables, and the copy approved by delegation (Luna pass, `docs/superpowers/notes/LUNA-COPY-RESULT-fleet-alerts-1.md`).
+- **Controller rulings R-1 to R-35** made during the build. They are listed with their reasons in the build ledger, `.superpowers/sdd/2026-10-30-fleet-alerts-1-engine-connectors/progress.md`, a git-ignored file in this worktree that you can read on disk. Report only rulings that are unsafe, or that leave a control appearing to work when it does not.
+- **Every task had its own review,** with fix rounds where needed; see the ledger. Task 7's noise rules are also covered by a 500-seed invariant simulation.
+
+## What to check
+
+1. **Outbound security.** Can any connector, operator- or later tenant-supplied, reach a refused address, leak its URL, token or key, or be used to send to someone who didn't confirm?
+ - Files: `internal/console/alertdial.go`, `alertnotify.go` and `alertpages.go`.
+ - Consider DNS rebinding, proxies, redirects, IPv6 forms, error strings, logs, job notes and templates.
+2. **Public token doors.** Do GETs ever act? Can a token be used for another action, scope or connector? Is confirm atomic? Are POST bodies capped, and is there any open redirect?
+3. **Root.** Can `internal/host` reach the engine beat path when euid is 0? Do the box sinks still deliver incident rules? Is the census proposal (`fleet-alerts-1`) accurate per unit? For each class, say approve, or what to change. Per AGENTS.md the reviewer decides census classes.
+4. **Engine correctness.** Check `alertengine.go`, `alertengine_pass.go`, `alertsignals.go` and `alertstore.go`:
+ - one transaction for incident, fires and outbox
+ - at-least-once delivery
+ - no duplicate fire across restarts
+ - a failed read never closes an incident
+ - Gone only for sources read this pass
+ - the cutover is once only and per recipient
+ - seeding is once per address
+ - HostClaim refused with zero store calls
+3a. **Request budget, spec §9.** Is every engine GET conditional? Are LISTs limited to `alerts/boxes/` every pass and `status/boxes/` every 5th? Are there no new bucket objects? Is the five-cycle test exact?
+5. **Removing the old watcher.** Do `claim_runtime.go`'s and `storenotify.go`'s remaining uses of the legacy helpers still work? Does the dashboard read `firingMembers()`?
+6. **Deferred minors.** Each `minor (deferred)` line in the ledger was parked by a task review. For each, say "must fix before merge" or "follow-up".
+
+## 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. (The census, and review of any newly changed security, root, termination or production-storage behaviour, still check the fix; see AGENTS.md, "Stopping rules".)
+- **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
+
+Rank findings P1, then P2, then P3. Each finding gives:
+- the section or task
+- the problem
+- the evidence (file:line, verified)
+- the failure scenario
+- a concrete fix
+- the invariant or trust boundary it breaks (its fault family)
+
+Then give the census verdict per class, and the deferred-minor triage.
+
+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.