carlos / platform Public

reviews: Astra brief for pdf-host client groups round 2

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

CI cancelled — superseded by a newer push — run details

Intent

Attributed to this commit: 59.2 g CO₂e (7,678,118 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-R2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PDF-HOST-CLIENT-GROUPS-R2.md
new file mode 100644
index 000000000..a233fdd5c
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PDF-HOST-CLIENT-GROUPS-R2.md
@@ -0,0 +1,18 @@
+# Review brief: pdf-host additional client groups, round 2 of 3
+
+Repo carlos/platform, branch `pdf-host-client-groups`, commit ef49fa874fd8715021fba4922b34229362d18943. 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.
+
+## Round 2
+
+Round 1: `CODEX-FINDINGS-PDF-HOST-CLIENT-GROUPS-R1.md` (one P1: for_each keyed by unknown ids). Rev 2 keys the lookups by list position and adds `tests/computed.tftest.hcl` (a terraform_data-derived id unknown at plan; the controller saw it fail with "Invalid for_each argument" on id keys) and a duplicates test. First one line on R1 P1: resolved, partly, or not. Re-give census verdicts for the re-frozen overlay (two new test files). `tofu init -backend=false` then `tofu test` in infra/modules/pdf-host should work if the provider can download.