carlos / platform Public

reviews: Astra brief for pdf-host client groups

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev eb8e6e17f199afd68dd89fd46e5e3df952fb460a parent 7d6c4ff
1 file changed, +14 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PDF-HOST-CLIENT-GROUPS.md +14 −0

CI cancelled — superseded by a newer push — run details

Intent

Attributed to this commit: 104 g CO₂e (13,534,593 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on pdf-host-client-groups, 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-PDF-HOST-CLIENT-GROUPS.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PDF-HOST-CLIENT-GROUPS.md
new file mode 100644
index 000000000..907fb4192
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PDF-HOST-CLIENT-GROUPS.md
@@ -0,0 +1,14 @@
+# Review brief: pdf-host additional client groups, round 1 of 3
+
+Repo carlos/platform, branch `pdf-host-client-groups`, commit 7d6c4fff7263940d32d5c40a0b395b10a4c368f8. Diff: `origin/main..7d6c4fff7263940d32d5c40a0b395b10a4c368f8` (infra/modules/pdf-host and the census overlay).
+Why: Bill's review of Tito infra #61 (teamtito/carlos-infrastructure PR 61): the module takes one client group, so a console failover to a standby box with its own group needs a hand edit and a targeted apply. The change adds `additional_client_security_group_ids` so both groups are admitted up front.
+
+Check:
+1. Security: the PDF box's ingress stays TCP 3000 from the listed groups only; no CIDR, no self, no widening when the list is empty (byte-identical plan to before for existing callers). Duplicates handled.
+2. Replacement: adding or removing an extra group must be an in-place update of aws_security_group.pdf (inline ingress), never a replacement of the group or the instance; the VPC still comes from the client group. Note any case (e.g. data source for_each over unknown ids at plan time) where plan fails or forces replacement.
+3. The VPC precondition: correct and not bypassable; behaviour when an extra group id is unknown at plan (computed from another module's output in the same apply).
+4. Tests: would each fail without its guard? (The controller removed the precondition and saw the other-VPC test fail.)
+5. README: accurate to the code.
+6. **Census:** `docs/superpowers/notes/census-proposal-pdf-host-client-groups.md` and the overlay: APPROVED or REFUSED per changed unit and envelope.
+
+Severity P1 (blocks) / P2 (fixed without another round) / P3 (follow-up). End with READY, READY AFTER FIXES or NOT READY. Do not edit files; no subagents. `tofu test` in infra/modules/pdf-host is fine if the provider cache allows.