carlos / platform Public

spec: PROXY protocol v2 on the region HA load balancers

Client IP preservation off and PPv2 on for both target groups of each
region NLB, so NATed clients reusing a source port through both NLB
addresses no longer collide at a target. One-way PPv2, a trust barrier
and alarm for the forbidden state, and a vN floor on NLB targets.
Approved 2026-11-12 (Paul via 8a3d302); three Astra rounds recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from design-edge-ppv2 into main.
claude agent, operated by paul@keymail.dev 99df838cf28237c05b067424f9b4112f2ad16b12 parent 8660f95
5 files changed, +658 −0
  • docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md +383 −0
  • docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R1.md +75 −0
  • docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R2.md +52 −0
  • docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R3.md +69 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-edge-ppv2.md +79 −0

CI passed — run details

diff --git a/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md b/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md
new file mode 100644
index 000000000..afa7bb1d5
--- /dev/null
+++ b/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md
@@ -0,0 +1,383 @@
+# PROXY protocol v2 on the region HA load balancers
+
+Design, 2026-11-12, **rev 5** (Astra rounds 1 to 3 applied, §12, §13 and §15. Round 3, the last, was NOT READY with one P1 in F1; its fix, the trust barrier, was **accepted without a fourth round by 8a3d302 on 2026-11-12** (§15). **APPROVED 2026-11-12** for build: Paul approved "PPv2 ... before G6"; no infra or live change without 8a3d302's GO and a #421 window. Earlier: round 2 repeated fault family F1, so under stopping rule 2 the choice went to Paul: **option A, one-way PROXY protocol, decided 2026-11-12** by agent manager 8a3d302 on Paul's standing acceptance of recommendations, Paul informed and free to override; §14). Rev 4 wrote A in; rev 5 applies round 3's P2s and proposes the barrier for its P1 (§4.7, §15). Agent manager 8a3d302 asked for it on 2026-11-12 with Paul's approval: client IP preservation off and PROXY protocol v2 on, on both target groups of each region NLB, before G6 opens the NLBs to customers. Design only; the build is a separate GO. Review budget: at most three Astra rounds (AGENTS.md stopping rules); all three rounds are spent.
+
+Line citations are to `origin/main` at ae1b8cca. AWS facts quote "Edit target group attributes for your Network Load Balancer" (docs.aws.amazon.com/elasticloadbalancing/latest/network/edit-target-group-attributes.html, read 2026-11-12) unless another page is named.
+
+## 1. The finding
+
+On the v0.34.46 flagship roll (2026-11-11), four requests through the US NLB died in the TCP connect: the SYN was never answered for 30 s, and no edge saw the connection (`~/.cache/lost-post/REPORT.md`). The best fit is a limit AWS documents ("Intermittent TCP connection establishment failure", NLB troubleshooting page): with client IP preservation on and cross-zone on, one client IP and source port can reach the same target through two NLB addresses, and the target sees one 4-tuple for two connections. A NAT that keeps source ports (docs-t1's, many office routers, some carrier NATs) makes this happen to ordinary clients. The user sees a connect that hangs 20 to 30 s.
+
+The 2026-11-12 drain experiment (`~/.cache/drain-syn/REPORT.md`) cleared the W6 drain and the NLB's handling of target changes, and left this limit as the open issue. It found PAWS counters on every target (PAWSEstab 10,716 on leo, 97,318 on sophie), which is what colliding 4-tuples produce.
+
+AWS lists four mitigations: more targets (lowers the odds), clients changing ports (not ours to change), cross-zone off, or client IP preservation off with the client address read from PROXY protocol v2. Cross-zone off is ruled out: the group spec needs it (2026-10-15 §A1-1; `group.tf` refuses an NLB without it) and US 1a has one target.
+
+Today on both NLBs (read 2026-11-12, `~/.cache/ppv2/aws/`):
+
+| | dev IE (`carlos-dev-ie-nlb`) | flagship US (`carlos-flagship-us-nlb`) |
+|---|---|---|
+| Targets in both TGs | leo, sophie (fixed), 2 members | adi (fixed), 2 members |
+| Node private addresses | 172.31.29.110 (1a), 172.31.11.189 (1c) | 172.31.3.3 (1a), 172.31.17.119 (1c) |
+| `preserve_client_ip` / `proxy_protocol_v2` | true / false on both TGs | true / false on both TGs |
+| Health checks | HTTP :80 `/.carlos/lb-health`, both TGs | same |
+| Peak new flows, 14 days | 1,203 a minute, NLB-wide | 198 a minute |
+
+## 2. What changes, in one paragraph
+
+Each target group stops preserving the client address and sends a PROXY protocol v2 header instead. The target then sees every NLB connection coming from one of the NLB's own private addresses, on a source port the NLB chose, so two client connections can never share a 4-tuple at the target. The edge learns the client address from the header. It reads a header as identity only on connections whose socket peer is one of its region NLB's private addresses, listed in a new host-env key; it rewrites the connection's remote address to the header's source before net/http sees it, so every reader of `r.RemoteAddr` downstream (rate limits, protection, geo, records, analytics, `X-Forwarded-For`) sees the client exactly as today. A header from any other peer is consumed and ignored. A trusted connection without a client address may only answer the health check. The cutover flips one attribute on one target group per step, through states where every target handles every new connection correctly, each forward step proven converged on every NLB node before the next. PROXY protocol is one-way: once on, it never goes off, so the one unsafe state (preservation off with PROXY protocol off) is never a step. The tooling refuses it, an alarm detects it for the whole armed lifetime, and a root barrier takes identity away from every connection it could have touched (§4.7). The price is stated in §7.3: once a target group has PROXY protocol on, no edge older than this release can run behind it again.
+
+## 3. Guarantee and invariant
+
+**The trust invariant.** A node address grants trust to the first header on a connection only because the NLB writes that header. That holds only while the target group has PROXY protocol on. With preservation off and PROXY protocol off (S3, §6.2) the node address still arrives as the peer, the NLB writes nothing, and a client's own header would be read as the NLB's: any client could choose its address, and that address reaches limits and the signed `X-Forwarded-For` (`homemap.go:1684-1718`, `forwardproof.go:44-51`). So **S3 is a security state, not a degraded one**. It is kept out by making PROXY protocol one-way: the only moves are S0 to S1, S1 to S2 and S2 to S1 (§6.2), none of which can pass through S3 however the NLB nodes disagree mid-change, and the step tooling refuses every other move (§6.3). S3 then needs someone to turn PROXY protocol off outside the tooling. That is detected for the whole armed lifetime, not only in a window, by the edge's trust-violation metric and its alarm (§4.5): in S3 every client that sends no header of its own is refused, so the metric is loud. The incident (§6.5) raises a trust barrier on every target, which closes trusted connections and keeps any later or half-parsed one from carrying an identity (§4.7), and then restores preservation.
+
+**Fixed:** with preservation off, two client connections through the NLB never share a 4-tuple at a target: the NLB allocates the source address and port toward each target, so the documented collision cannot happen. Hairpin connections through the NLB work too (AWS: "you can also prevent this type of connection error by disabling client IP preservation"), which removes the A21 limit (region HA spec 2026-10-26 §12.4).
+
+**Kept:** every request that reaches an edge through the NLB carries the same client address in `r.RemoteAddr` as it does today, in every state the cutover passes through (§6.2). Requests that do not come through the NLB (fixed boxes' own EIPs, cross-region backhaul to a member's public address, hop-signed forwards between boxes, the door, hairpin, tunnels) are unchanged, except that on an armed box the edge reads their first bytes before net/http does (§4.3).
+
+**Zero downtime is the target and is measured** (§10), as in W6. AWS states that preservation changes "take effect only for new TCP connections" and states nothing for PROXY protocol. The design assumes both apply only to new connections, because a header can only be the first bytes of a connection; the dev witness tests the assumption with connections held open across every step (§10 row 3) before the flagship relies on it.
+
+**Not covered:**
+- A target running an edge older than the release that carries this (vN) while its TG has PROXY protocol on. It answers the header with 400 or a TLS error, fails its health checks and leaves the target group: one lost target, not an outage, unless every target is old, when the NLB fails open to all of them. Refused up front by a box-side guard and by the release and roll checks: §7.3.
+- Real client addresses inside the NLB's own TCP layer (NLB logs, flow logs): unchanged, off.
+
+## 4. Edge parsing
+
+### 4.1 Which listeners
+
+The public `:80` and `:443` listeners bound in `Serve` (`internal/edge/edge.go:5295-5310`), on a box whose host.env carries `CARLOS_INGRESS_PROXY_SOURCES` (§4.2). Both, because both TGs flip and both TGs' health checks land on `:80` (`HealthCheckPort 80` on the `:443` TG today). The dev-mode single listener (`edge.go:5124-5139`), the door, the backhaul port, devbox listeners and the relay are never wrapped.
+
+A box without the key runs exactly today's listeners: no wrapper, no peek. That keeps every box that is not an NLB target (annie, Tito's boxes, self-hosters) out of the change, and it is the dormancy switch.
+
+The wrapper goes outermost, after `ConfigureGroupHairpin` (`edge.go:5303-5310`), so that `hairpinListener.Accept` (`internal/edge/hairpin.go:66-82`) still classifies the raw socket and never blocks on a header. `hairpinConnContext` (`hairpin.go:84-92`) unwraps the new connection type before its type assertion (one `NetConn()`-style accessor, the same shape as `tls.Conn.NetConn`), and a test pins that a hairpin connection through the wrapped listener keeps its normalisation (`normalizeHairpin`, `hairpin.go:93-110`).
+
+### 4.2 The trust rule
+
+`CARLOS_INGRESS_PROXY_SOURCES` is a comma-separated list of 1 to 16 IPv4 addresses: the region NLB's node private addresses, one per enabled zone (two today). It is a new `Optional` host-env key (`internal/hostenv/hostenv.go:75`), validated at write and seed like `CARLOS_INGRESS_TARGET_GROUPS` (`hostenv.go:255-282`): each entry a private (RFC 1918) IPv4 address, no duplicates. The edge reads it once at start; a change takes an edge restart (drained on fixed boxes by W6, on members by the group roll).
+
+A connection is **trusted** when its socket peer address (the kernel's, before any rewrite) is in the list. Nothing else makes it trusted: not the destination, not a header, not the VPC CIDR. The VPC CIDR is not enough because target security groups admit 443 from the VPC (`infra/modules/region-host/group.tf:150-156`) and tenant code runs on boxes in that VPC; a tenant could otherwise send a header from a box's private address and choose its client address, which reaches other tenants' apps as `X-Forwarded-For`. VPC source/destination checks stop a box sending from an NLB node's address.
+
+Trust is also conditional on the NLB writing the first header (§3): the list says who may speak, the target group attribute says that it does. The edge cannot check the second half, so §6 owns it.
+
+Where the addresses come from: tofu reads the NLB's network interfaces and outputs their private addresses (§8.1). They are fixed for the NLB's life and change only if a zone is added to the NLB; §4.5's `ignored_private` counter catches a list that is out of date.
+
+### 4.3 Reading the header
+
+The wrapper's `Accept` returns at once; nothing is read on the accept goroutine. Each wrapped connection owns a parse state: pending, then exactly one of `proxied` (header source), `no-client` (LOCAL, UNSPEC or no header on a trusted connection), `plain` (untrusted), or failed (closed). The state resolves once, on the connection's own goroutine, at the first of `Read` or `RemoteAddr`.
+
+net/http calls `RemoteAddr` first thing in `conn.serve` (`$GOROOT/src/net/http/server.go:1908`, Go 1.26.10), before any deadline or read of its own, and `tls.Conn.RemoteAddr` delegates to the wrapped connection (`crypto/tls/conn.go:136`). So the state is resolved before net/http or TLS read a byte, and before any handler runs. `ConnContext` runs earlier, on the accept goroutine (`server.go:3474-3476`): it stores a pointer to the connection's parse state in the context and reads nothing. Handlers read the resolved state through that pointer; a handler that finds it pending is a bug, and a test pins that it cannot happen through `Serve` and `ServeTLS` (HTTP/1.1 and HTTP/2). `ConnState` hooks and the existing `ConnContext` hooks (hairpin, `connDrain.serve` at `internal/edge/hadrainconns.go:152-165`) must not call `RemoteAddr`; a test pins that a silent trusted connection does not delay the accept of the next one.
+
+Untrusted connection: `RemoteAddr` answers the socket peer at once. On the first `Read`, the wrapper reads up to 12 bytes, stopping at the first byte that differs from the PPv2 signature (`\r\n\r\n\0\r\nQUIT\n`). HTTP and TLS both differ at byte 0, so this is one read. A mismatch replays the bytes read to the caller. A full signature means a header: §4.4.
+
+Trusted connection: the first `RemoteAddr` or `Read` reads the same way, under a read deadline of 10 s from accept (the listeners' `ReadHeaderTimeout`, `internal/edge/ingressdrain.go:92-93`), then clears that deadline. The design does not depend on whether the NLB sends the header at connect or with the client's first bytes ("prepends a proxy protocol header to the TCP data"). A timeout closes the connection.
+
+`Close` never waits for the parse: it closes the socket without taking the parse lock, which fails a pending read at once. So `Server.Shutdown` (which closes `StateNew` connections older than 5 s, `server.go:3227-3230`) and W6's `CloseIngress` (`ingressdrain.go:121`) end a connection still waiting for its header as they end one waiting for request headers today. Tests cover a silent and a partial header through both.
+
+v1 (text) headers are never parsed: the NLB sends only v2. A client that sends `PROXY TCP4 ...` gets today's 400.
+
+### 4.4 What each header does
+
+| Peer | First bytes | Parse state and result |
+|---|---|---|
+| trusted | PPv2, command PROXY, family INET or INET6, a usable source (below) | `proxied`: remote address = header source address and port |
+| trusted | PPv2, command LOCAL, or PROXY with family UNSPEC | `no-client`: remote address = socket peer; health check only (§4.6). AWS health checks carry this: "the client connection information is not sent" |
+| trusted | no PPv2 signature | `no-client`, as above. Before step A (§6.2) this is every health check; after it, only S3 produces it |
+| trusted | PPv2, malformed or over the limits | connection closed |
+| untrusted | PPv2, well formed | `plain`: header consumed and ignored; remote address = socket peer. Needed in S1 (§6.2), where the peer is the client itself |
+| untrusted | PPv2, malformed | connection closed |
+| untrusted | anything else | `plain`, unchanged |
+
+Limits and checks: version nibble 2; command LOCAL or PROXY; family and protocol INET/STREAM, INET6/STREAM or UNSPEC; the declared length at least the address block (12 bytes for INET, 36 for INET6) and at most 512 bytes in total, TLVs included. TLVs are skipped unread (AWS sends `PP2_TYPE_AWS` 0xEA only for PrivateLink). A usable source is a unicast address that is not loopback, unspecified, link-local or multicast; anything else closes the connection (a real NLB cannot send it). Exactly one header is consumed. AWS: the NLB "does not discard or overwrite ... any incoming proxy protocol headers sent by the client", so in S1 and S2 a client's own header after the NLB's reaches net/http as payload and fails as today. The forgery probe (§6.4) relies on this.
+
+The header's destination address and port are not used.
+
+### 4.5 Counters
+
+Per listener and, for trusted connections, per node address, since start: `proxied`, `no_client`, `no_client_refused` (§4.6), `ignored` (untrusted header consumed), `ignored_private` (untrusted header from a private address: almost certainly an NLB node missing from the key), `marker_trusted` (§6.4), `malformed`, `timeout`. One journal line at start (`edge: proxy protocol: armed on :80 and :443, trusting 172.31.29.110,172.31.11.189`), and one throttled line every minute while armed, naming every counter. `no_client_refused` and `ignored_private` above zero also log once a minute at warning level with the peer address. The cutover reads these lines over SSM (§6.4).
+
+**The trust-violation metric, for the whole armed lifetime.** `no_client_refused` plus `marker_trusted` is the S3 signal: in S3 every client that sends no header of its own lands in `no_client_refused` (§4.6), which on a serving target group is nearly every client, and the forgery probe's marker lands in `marker_trusted`. The agent publishes the per-minute increase of that sum as `IngressProxyTrustViolations` in the `Carlos/Host` namespace, with the `Deployment` and `Region` dimensions the clock and admission metrics already use (`internal/host/memwatch.go:53-90`, `ingress/alarms.tf:49-90`), on every armed box with `CARLOS_HOST_METRICS=cloudwatch`. The agent runs the edge in-process (`internal/host/ingressdrain.go:87-88` holds it) and reads the counters directly. One alarm in the ingress module (§8.1) fires on Maximum > 0 for one minute, missing data not breaching (unarmed boxes publish nothing). The armed prerequisite (§6.1) includes `CARLOS_HOST_METRICS=cloudwatch` on every target.
+
+### 4.6 A trusted connection without a client address answers the health check only
+
+A `no-client` connection has an NLB node as its socket peer and no client to key limits on, and outside the health check it exists only in S3 (§4.4). So a request on it is served only when it is a `GET` or `HEAD` of `/.carlos/lb-health` on `:80`, and then the outer wrapper calls `lbHealthAnswer` (`internal/edge/lbhealth.go:34-48`) directly, never entering the ordinary handler chain: in that chain `redirectDemoRequest` runs before the health branch (`internal/edge/edge.go:3788-3799`, `demo.go:94`), so a demo `Host` would otherwise escape. If `lbHealthAnswer` declines (region HA off), the answer is 503. Every other request on such a connection, on either listener, is answered `503` with `Connection: close`, before any routing, rate limit, analytics or forwarding, and counted `no_client_refused`. The check is one wrapper around each public server's handler that reads the parse state (§4.3). Tests cover ordinary, demo and unknown `Host` values.
+
+So no request ever reaches a client-address reader without a client address: `clientIP(r)` (`internal/edge/analytics.go:100-115`) always answers a real client, nothing is forwarded with a node address in `X-Forwarded-For`, and analytics never sees an empty address (`internal/analytics/meter.go:68`, `:191` would otherwise hash it into one shared visitor).
+
+In S3, ordinary clients (no header of their own) are refused loudly by this rule. A client that sends its own header is still believed; only §6 prevents that.
+
+### 4.7 The trust barrier (rev 5, accepted 2026-11-12; replaces rev 4's one-shot `close-trusted`, see §15)
+
+A root command on the box, `carlos system edge trust-barrier`, raises a barrier in the edge. While it is up, a trusted connection's header grants no identity: **every** connection from a node address, whether open, still parsing its header, or accepted later, is treated as `no-client` (§4.6) once its state resolves, so it can answer the health check and nothing else. Raising the barrier sets it before it closes anything: first the flag, then it closes every open connection from a node address, pending ones included. The wrapper tracks trusted connections from accept, not from parse, for this. A connection that finishes a forged header after the flag is up is still `no-client`; a node still in S3 that sends new connections meets the same rule. Health checks keep passing, so targets stay in service, and in S0 or S1 every client connection is untrusted and served as normal.
+
+The barrier is written to a file in the agent's state directory and read at edge start, so a restart does not lower it. Only `carlos system edge trust-resume` lowers it, run after the target group is verified back in S1 or S2 by the marker probe (§6.4). The step script refuses a forward step while any target's barrier is up. The commands are root CLI verbs that reach the agent the way W6's and §25's verbs do: a child that drops to the agent's user and calls the drain socket (`internal/host/hadrain_call.go`, `hadrain_socket_linux.go:23`, which admits only the agent's UID). The agent holds the edge in-process (`internal/host/ingressdrain.go:87-88`). Each reports how many connections it closed and the barrier state; the state also goes in the §4.5 journal line.
+
+## 5. Client IP everywhere it is used
+
+Every reader derives the client from `r.RemoteAddr`, directly or through `clientIP(r)`; none reads the socket. The wrapper changes the connection's `RemoteAddr`, net/http copies it into `r.RemoteAddr` (`server.go:1908`, and `:2152`/`:4002` for HTTP/2), so no reader changes.
+
+| Reader | Where | With PPv2 |
+|---|---|---|
+| Per-client rate limit | `ratelimit.go:133` | client, as today |
+| Protection tiers: probe-burst cooling and trip | `guard.go:161`, `:316` | client |
+| Backhaul fair share | `edge.go:4554-4561` | client |
+| Geo headers | `geoipheaders.go:41` | client; door, hop and tunnel branches unchanged |
+| Request records | `reqrecords.go:46` | client |
+| Analytics visitor hash and pace | `analytics.go:100-115`, `:154`; `internal/analytics/meter.go:191` | client |
+| `X-Forwarded-For` and its proof to apps and holders | `homemap.go:1684-1718` (`SetXForwarded` reads `r.RemoteAddr`), `forwardproof.go:44-51` | client, signed as today |
+| Gate attempt limiter | `gate.go:260-268` | client |
+| Journal lines naming a peer | `burst_notice.go:603`, `hadrain.go:282`, net/http's TLS handshake error (`server.go:1953`) | client |
+| Asset catch record | `assetcatch.go:676` | client |
+| Hairpin normalisation | `hairpin.go:93-110` | unchanged (hairpin peers are never trusted) |
+| Door, devbox front, tunnel hub log | `door.go:126`, `devboxfront.go:44`, `tunnel.go:329` | not on a wrapped path, or not via the NLB |
+| Console readers (`authcli.go:574`, `cliplace.go`, `demo_api_origin.go:38`, `stepup.go:499`) | console on annie | annie is not an NLB target; they read what the local edge forwards |
+
+Hop-verified requests between boxes keep taking the client from the signed `X-Forwarded-For` (`analytics.go:101-108`); the sending edge now fills it from the header-derived address, and never from a `no-client` connection (§4.6).
+
+## 6. Cutover
+
+### 6.1 Prerequisites, per NLB
+
+In this order:
+1. **vN on every target in both TGs.** Fixed boxes rolled. Members replaced through the group roll onto a launch template naming vN.
+2. **The bootstrap object at vN or later.** Members run the separately seeded bootstrap binary (`group-init.sh.tftpl:200-215`) for `host-env write` (`:332`), and it refuses a key outside its compiled allowlist (`internal/hostenv/group.go:112`). So the region's `boot/bootstrap-object` and `boot/bootstrap-sha256` name a vN build, checked from SSM and the object's hash, **before** the key is published.
+3. **The key.** `CARLOS_INGRESS_PROXY_SOURCES` equal to the module output (§8.1): in the region's host-env parameters, then a group roll so every member is launched with it (members write host.env only at launch, `hostenv.go:144-150`), and in each fixed box's host.env with a drained restart, as W6 delivered `CARLOS_INGRESS_TARGET_GROUPS`. Each target's journal shows the §4.5 armed line with exactly the module's addresses.
+4. **The group module at vN**, whose precondition accepts the new states (§8.2). A group plan with the old module would refuse once the TGs change.
+5. **Metrics and alarm.** `CARLOS_HOST_METRICS=cloudwatch` on every target; the module's `proxy_trust_alarm` input set, both alarms applied, in OK, and notification delivery seen (§4.5, §8.1, §8.3).
+
+Arming changes nothing on the wire: until step A80 no connection carries a header, and trusted peers are only health checks, which §4.6 serves.
+
+**Before A80 everything can still be unwound** in reverse: the key removed from the parameters and the fixed boxes, then the bootstrap object or any target may go below vN. A bootstrap below vN with the key still published stops every new member at boot. **After A80 nothing below vN comes back** (§7.3).
+
+### 6.2 States and steps
+
+Two attributes per TG, four combinations. The steps visit only S0, S1 and S2, and PPv2 is one-way: S1 never goes back to S0.
+
+| State | preserve | PPv2 | Socket peer at target | First header | Edge result |
+|---|---|---|---|---|---|
+| S0 today | on | off | client | none, or the client's | untrusted; a client header ignored |
+| S1 | on | on | client | NLB's, source = client | untrusted, header ignored, peer = client: same address |
+| S2 target | off | on | NLB node | NLB's | trusted, header source = client |
+| S3 **forbidden** | off | off | NLB node | none, or the client's | trusted: a client header is believed (§3) |
+
+In S1 the edge must ignore, not trust, the header, because the peer is the client and is not in the list; §4.4 does that. While one attribute propagates, nodes can disagree, so new connections are in one of the two states on either side of the step; every edge handles both of each allowed pair. The allowed moves are S0 to S1 and S1 to S2 forward, and S2 to S1 back. None of them changes PPv2 while preservation is off, so no node can be in S3 at any point of any of them, converged or not. That is why S2 to S1 needs no convergence proof and the probe's inability to tell S1 from S2 (round 2) no longer matters. The moves that could touch S3 (S0 to S2 and S2 to S0 in one go, and S1 to S0 after a reverse B that may not have reached every node) are refused.
+
+Steps, per NLB, each a targeted tofu apply of one attribute on one TG (0 add / 1 change / 0 destroy):
+1. **A80:** PPv2 on, `:80` TG (S0 to S1).
+2. **A443:** PPv2 on, `:443` TG.
+3. **B80:** preservation off, `:80` TG (S1 to S2).
+4. **B443:** preservation off, `:443` TG.
+
+`:80` goes first in each pair because it carries only ACME challenges, redirects and health checks. Each step starts only when the previous step's convergence evidence (§6.4) is in.
+
+### 6.3 The step tool refuses any move that could pass through S3
+
+A card script in each root (`scripts/ppv2-step.sh <tg-port> <attribute> <value>`) is the only way the attributes change:
+- it reads the TG's live attributes (`describe-target-group-attributes`) and refuses unless the move is one of S0 to S1, S1 to S2, S2 to S1 for that TG; any change that sets PPv2 off is refused, whatever the state;
+- it runs `tofu plan -target` and refuses unless the plan changes exactly that one attribute on that one TG;
+- for a forward move, it refuses unless the previous forward step's convergence record (§6.4) exists and passed; S2 to S1 needs none;
+- then it applies, and starts the next convergence check.
+
+The module also refuses S3 as a declared state (§8.1), so an ordinary plan cannot request it. Direct `aws elbv2 modify-target-group-attributes` is allowed in only one direction and only in an abort or incident: preservation **on** (S2 to S1, or S3 to S0), which can never create S3. Tofu is reconciled afterwards with a plan that shows no change. Turning PPv2 off by any route (tofu, CLI, console) is outside every procedure; if it happens, §4.5's alarm fires and §6.5 runs.
+
+### 6.4 Convergence evidence and the forgery probe
+
+The probe runs in region (§10), with one process per NLB address and port, each binding source ports from its own range so the probe itself never sends one source port to both addresses. Each process sends, every 2 s, two requests on fresh connections:
+- **plain:** a normal request to the echo app, which returns the `X-Forwarded-For` it received;
+- **marker:** a PPv2 header claiming source 192.0.2.1 (TEST-NET-1), then the same request.
+
+What each state answers, per NLB address. On `:443` the request goes to the echo app. On `:80` it is a `GET` for the echo app's host with redirects not followed, so the expected answer is today's `302` to HTTPS (`internal/edge/edge.go:3840`), not 200:
+
+| State on that node | plain `:443` | marker `:443` | plain `:80` | marker `:80` |
+|---|---|---|---|---|
+| S0 | 200, probe's address | 200, probe's address (client header ignored, §4.4) | 302 | 302 |
+| S1 | 200, probe's address | fails: the NLB's header is first, the marker is payload (TLS error) | 302 | fails: 400 |
+| S2 | 200, probe's address | fails, the same way | 302 | fails: 400 |
+| S3 | 503, refused (§4.6) | connection closed by the edge; `marker_trusted` counts it | 503 | the same |
+
+The edge catches the forged marker itself: a trusted `proxied` header whose source is in 192.0.2.0/24 (TEST-NET-1, never a real client) closes the connection before any response and increments `marker_trusted`, logged at warning level. So the probe never sees a forged echo; `marker_trusted` above zero means S3 on that target's port. (A marker that fails in S1 or S2 fails with an answer, 400 or a TLS alert; a marker closed in S3 gets none. The probe records which, but the counter is the verdict.)
+
+Convergence of a step, per TG port, needs all of:
+- after A: the marker fails on **both** NLB addresses for 30 consecutive attempts (60 s); plain stays at its port's answer on both addresses (`:443`: 200 with the probe's address; `:80`: 302, not followed);
+- after B: the same, plus every target's counters show `proxied` rising from **both** node addresses and `no_client_refused` at 0;
+- all the time: `malformed`, `timeout`, `ignored_private` and `marker_trusted` at 0.
+
+**Transition gates and maintenance rows are separate.** From the start of an attribute step until its convergence record is written, every target is healthy in both TGs (`describe-target-health` every 10 s) and no drain, restart or group roll runs. Maintenance rows (§10 rows 5 and 6) run only between steps: during one, the named target may be `unhealthy.draining` or deregistered, every other target stays healthy, and the plain probe stays at 0 errors. The all-healthy gate is back before the next attribute step starts.
+
+The script writes the record (times, counts, per-address results) that the next step requires.
+
+**Any `marker_trusted` or any `no_client_refused` is S3 on some node: §6.5 at once.** The probe runs for the whole window, not only between steps; outside windows the alarm (§4.5) carries the watch.
+
+### 6.5 Rollback and the S3 incident
+
+**Rollback ends at S1.** B443 then B80 back, each preservation **on**, by the step script or, in an abort, the direct command. S1 is today's client addresses through the NLB and today's collision behaviour, which is everything a rollback needs to restore; the edge stays armed and keeps ignoring the NLB's header as in S1. A80 and A443 are never reversed (§6.2, §7.3). No convergence proof is needed for S2 to S1, because every node is in S1 or S2 throughout and neither trusts a client header.
+
+**S3 incident** (the alarm, any `marker_trusted`, or any `no_client_refused`):
+1. `carlos system edge trust-barrier` (§4.7) on every target in that TG, over SSM on all of them at once. From that moment no connection from a node address carries an identity, open, pending or new, and the forged ones are closed. Health checks keep passing.
+2. Preservation **on** for the affected TG with the direct command (§6.3). New client connections become untrusted (S0 or S1) and are served normally behind the barrier.
+3. Find who turned PPv2 off. Verify the TG is in S1 with the marker probe on both addresses, then `trust-resume` on every target, then go forward with the step script (S1 to S2) in a window.
+4. Report to 8a3d302 with the alarm, the counters and the barrier's close counts.
+
+### 6.6 Order across NLBs
+
+Dev IE first, in a dev #421 window after vN is on dev. Flagship US after the dev witness passes every row, in a flagship window with the lock posted on #421 (region HA live window rules), before G6 opens the US NLB to customers. Not in the same window as a release roll or a group roll, except the group roll that §6.1 calls for.
+
+## 7. Interactions
+
+### 7.1 Fixed boxes in the target groups and W6
+
+leo, sophie and adi carry NLB traffic and their own EIP traffic on the same listeners. NLB connections come from the node addresses (trusted); EIP connections come from clients (untrusted, unchanged). W6's drain reads TG health and fails `/.carlos/lb-health` on purpose (`lbhealth.go:34-48`); health checks reach that handler as `no-client` or, before step A, without a header, so the drain is unchanged. The W6 witness rows (drained restarts with 0 errors) rerun in S2 (§10).
+
+### 7.2 Health checks
+
+Both TGs check `:80` `/.carlos/lb-health`. After A80 or A443, that TG's checks carry a LOCAL header from trusted peers. Between A80 and A443, `:80` sees both kinds at once, per connection. Admission gating (`lbhealth.go:38-46`) is unchanged.
+
+### 7.3 The cost: no release below vN on an NLB target, ever again
+
+**Once A80 is done on a region's NLB, no carlos build older than vN can run on any target of that NLB again.** PPv2 is one-way (§6.2), and an edge below vN answers the NLB's header with a 400 or a TLS error, fails its health checks and drops out (all of them at once is an outage). So for those boxes a platform release rollback below vN is off the table. Rollbacks stay possible to any build at or above vN, which all parse; a bad release after vN is rolled back to the previous good one as today, as long as that one is vN or later, or fixed forward. Boxes that are not NLB targets (annie, the AU and UK boxes, Tito's, self-hosters) are not affected.
+
+Today that means: dev leo, sophie and the IE members from dev's A80; flagship adi and the US members from flagship's A80. The list grows with every region that gets an HA group.
+
+**Refused up front on the box.** One guard, in the code that activates a carlos binary on a box (`carlos system apply` and `rollback`, and `install-channel` in member boot, `group-init.sh.tftpl:332`): a box whose host.env carries `CARLOS_INGRESS_PROXY_SOURCES` refuses to activate a binary that does not report the `ingress-proxy-v2` feature. The check runs the staged binary's `carlos version --json` (vN adds a `features` list; an older binary has none, so it is refused) and leaves the running binary in place. On a fixed box the update or rollback fails with the reason; a member launched from a template below vN fails its boot, which the group's launch hook and the HA capacity alarms already report. The key is the trigger, not the TG state, so the guard also holds before A80; unwinding before A80 removes the key first (§6.1).
+
+**What the release recipe must check** (written into the recipe by the build plan):
+- Before promoting any build to a channel pointer (canary or stable) of a deployment, read `proxy_protocol_v2.enabled` on every region NLB target group of that deployment (`aws elbv2 describe-target-group-attributes`, read-only). If any is `true`, the build must be vN or later. Re-promoting an old build as a quick rollback is refused; cut forward instead.
+- The same check before changing a region's bootstrap object or re-pinning a group launch template.
+- The recipe's state line records, per deployment, "PPv2 on since <date>: floor vN".
+
+**What the roll card must check:**
+- Pre-roll: the same read per region; for each region with PPv2 on, the card lists its NLB targets and states "rollback below vN is off the table on these boxes; rollback target is <previous build ≥ vN> or forward fix".
+- The card's rollback section names that target build explicitly, never "the previous release" unchecked.
+- Post-roll: every NLB target shows the §4.5 armed line with the module's addresses, and the trust-violation alarm is OK.
+
+Members launched while PPv2 is on must come from a launch template naming vN or later, with a vN bootstrap object and the key in the region's parameters (§6.1).
+
+### 7.4 Hairpin (A21)
+
+Members redirect their own traffic to the NLB addresses to the local edge (§12.4 of the HA spec, `hairpin.go`). That stays: it is correct in every state, and it saves a round trip. With preservation off, hairpin through the NLB would work, so the redirect becomes optional; retiring it is a separate simplification, not part of this change.
+
+### 7.5 Capacity
+
+AWS: with preservation off, about 55,000 connections a minute to each target IP and port. Peak is 1,203 new flows a minute NLB-wide on dev and 198 on the flagship (14 days to 2026-11-12). The NLB alarms gain `PortAllocationErrorCount` (§8.1).
+
+### 7.6 Security groups
+
+Unchanged. Targets already admit 80 and 443 from the NLB's security group (`group.tf:134-143`); the NLB's egress already covers the VPC CIDRs on both ports (`ingress/main.tf:51-63`). Health checks already come from the node addresses.
+
+## 8. Tofu
+
+### 8.1 This repo, `infra/modules/region-host/ingress` (rides vN)
+
+- `aws_lb_target_group.target` (`ingress/main.tf:97-126`): `preserve_client_ip` and `proxy_protocol_v2` from two map variables keyed by port (`{ "80" = ..., "443" = ... }`), defaults `true` and `false`, so a root can flip one TG at a time and re-pinning to vN plans no TG change. A validation refuses any port with preservation off and PPv2 off (S3).
+- Output `proxy_protocol_sources`: the node private addresses, sorted. One singular `data "aws_network_interface"` per zone in `var.zones` (keys known at plan time), filtered on `description = "ELB ${aws_lb.nlb.arn_suffix}"` and that zone's `subnet-id`, each yielding exactly one interface and its `private_ip`. (The plural `aws_network_interfaces` returns only IDs.)
+- A new input, `proxy_trust_alarm = object({ deployment = string, region = string, topic_arn = string })`, default null, separate from `regional_metrics` (`ingress/variables.tf:68`) so that setting it does not also switch on the clock and admission alarms. A precondition on the target groups refuses any port with PPv2 on while it is null: no TG gets PPv2 without its alarm.
+- Alarm `<name>-proxy-trust` on `Carlos/Host` `IngressProxyTrustViolations` (§4.5), dimensions `Deployment` and `Region` from that input, Maximum > 0 for one 60 s period, `treat_missing_data = "notBreaching"`, actions and OK actions on its `topic_arn`.
+- Alarm `<name>-port-allocation` on `AWS/NetworkELB` `PortAllocationErrorCount`, Sum > 0 over 5 minutes, on the same topic. Both alarms exist only when the input is set.
+
+### 8.2 This repo, `infra/modules/region-host/group.tf` (rides vN)
+
+The existing-target-group precondition (`group.tf:182-187`) requires `preserve_client_ip == "true"`. It changes to accept S0, S1 and S2 and refuse S3 per TG: `tg.preserve_client_ip == "true" || tg.proxy_protocol_v2`. The error message names both attributes. Other checks stay.
+
+### 8.3 Roots
+
+Neither root sets `regional_metrics` on the ingress module today (pinfra `dev/region-ha-ingress.tf:24` has it commented out with no topic; carloku-infrastructure `region-ha-us.tf:5` has a topic and no `regional_metrics`), so the trust alarm cannot ride it; that is why it has its own input. Each root sets `proxy_trust_alarm` with its deployment bucket and region code (the `Carlos/Host` dimensions its boxes publish) and a confirmed topic: on the flagship, the topic the module already uses; on dev, the region HA alert topic the dev root already publishes to (the plan quotes its ARN). The re-pin to vN then plans **2 to add** (the two alarms), 0 to change, 0 to destroy. Delivery is verified on the card with one test datapoint and the notification seen (§10 row 11).
+
+- **dev, platform-infrastructure:** re-pin `dev/region-ha-ingress.tf` (with `proxy_trust_alarm`) and `dev/region-ha-group.tf` to vN; bootstrap object to vN; `CARLOS_INGRESS_PROXY_SOURCES` into `/carlos/dev/ie/` and into leo's and sophie's host.env; group roll; then the four steps through `scripts/ppv2-step.sh`.
+- **flagship, carloku-infrastructure:** push vN to the GitHub mirror, bump `?ref=` on `region-ha-us.tf` and `region-ha-us-group.tf`, the same sequence with adi.
+
+First-of-kind applies need 8a3d302's GO; later NLBs' identical steps fall under the standing approval for counted applies when the plan and the step script's record match the card exactly.
+
+## 9. Tests
+
+- `internal/proxyproto` (new, about 250 lines, no dependency): table tests for every row of §4.4 and every limit; byte-at-a-time and split reads; a 12-byte prefix that diverges at each position; timeout; exactly one header consumed, a second left as payload; a v1 header passed through; `Close` during a pending read returns at once.
+- Listener: a real `http.Server` behind the wrapper, plain and TLS (HTTP/1.1 and HTTP/2), with a trusted and an untrusted dialler (a test hook supplying the peer), asserting `r.RemoteAddr` and the parse state seen by the handler; a silent trusted connection does not delay a second connection's accept; `ConnContext` and `ConnState` hooks never block; `Shutdown` and `CloseIngress` end silent and partial-header connections within their bounds.
+- Production wiring (house rule, production-wired witnesses): the listener stack built the way `Serve` builds it (`publicServers`, `ConfigureGroupHairpin`, the wrapper, the §4.6 handler wrapper), with a header-carrying request reaching the rate limiter and `X-Forwarded-For` with the header's address, a hairpin connection keeping its normalisation, a `no-client` health check answered and a `no-client` request for an app refused with 503 before routing.
+- hostenv: the key's validation (private IPv4, 1-16, no duplicates), in both `Assemble` and the group `write` path.
+- Tofu: `ingress` tests for the defaults (S0), each per-port step, the S3 refusal and the output with one interface per zone; `group.tf` test for the precondition in all four states.
+- The step script: a dry-run mode tested against recorded `describe-target-group-attributes` outputs for every allowed and refused move, PPv2 off refused from every state.
+- The trust barrier (§4.7), **two mandatory race tests the plan must carry by name**: (a) a trusted connection that is mid-header when the barrier is raised and completes a valid PROXY header afterwards resolves to `no-client` and can answer only the health check; (b) a trusted connection accepted after the barrier is raised, with a valid header, likewise. Also: raised, it closes open and pending trusted connections and leaves `plain` ones; a partial header completed after it is raised resolves to `no-client`; a trusted connection accepted after it answers only the health check; it survives an edge restart; only `trust-resume` lowers it; it is reachable only through the drain socket's caller path.
+- The activation guard (§7.3): with the key set, a staged binary without the `ingress-proxy-v2` feature (including one with no `version --json`) is refused by `apply`, `rollback` and `install-channel`, and the running binary stays; without the key, nothing changes.
+- The trust-violation metric: the agent publishes the per-minute increase of `no_client_refused` plus `marker_trusted`, and nothing on an unarmed box.
+- `go vet` and cross-builds (darwin, windows) for the new package.
+
+## 10. Witness
+
+**Probe:** in region, as the drain experiment recommends: a throwaway t4g.nano (or the root runner) in the NLB's VPC public subnet, running §6.4's processes on both NLB addresses and both ports. **Echo:** an app on the HA pool that returns the `X-Forwarded-For` it received (the plan names it; a 20-line app if none exists).
+
+Dev rows, all in one window:
+1. Prerequisites (§6.1) shown from command output: versions, bootstrap object hash, armed lines, key equal to the module output.
+2. Each step A80 to B443 through the step script, with its convergence record; record how long after each apply the marker starts failing on each address, which measures propagation.
+3. **Held connections across steps.** Before each step, open and keep open through both NLB addresses: an HTTP/1.1 keep-alive connection sending a request every 5 s, an HTTP/2 connection doing the same, and an SSE stream. Each must keep working, with the echo showing the probe's address, through the step and the next 2 minutes. Any failure stops the window: the new-connections-only assumption (§3) is wrong.
+4. In S2: the echo shows the probe's public address; a rate-limit burst from the probe is limited and a request from a second address is not; a request to an app whose holder is another box arrives with the probe's address in the signed `X-Forwarded-For`.
+5. In S2: 4 W6 drained restarts (2 leo, 2 sophie) under the probe, 0 errors.
+6. In S2: one group roll replacing a member, under the probe, 0 errors, the new member armed from the vN bootstrap.
+7. In S2: from a member, `curl` an NLB public address (hairpin redirect, unchanged path), 200.
+8. **Collision row:** from one host, 200 pairs of connections with the same source port to both NLB addresses (the lost-post repro), in S0 and then S2. In S2, target-side `ss` shows the pairs as distinct 4-tuples from the node addresses. S0 is expected to pass too (the repro never failed); the row shows the mechanism, not a before and after.
+9. **Rollback drill:** B443 then B80 back to S1 through the script, under the probe and the held connections, 0 errors; then forward to S2 again with convergence records.
+10. **Refusals, dry:** the step script refuses S0 to S2, S2 to S0 and S1 to S0 against the live TG, and the module refuses an S3 plan. S3 itself is never entered.
+11. **Containment and alarm, safely:** with the TG back in S1 (row 9), raise the barrier on one target: its health checks keep passing, the probe's plain requests keep answering (in S1 they are untrusted), the barrier survives one drained edge restart, then `trust-resume`. The races (a pending header completed after the barrier, a trusted accept after it) are covered by §9's tests, since only the NLB can open a trusted connection. Separately, publish one test datapoint and see the trust alarm fire, notify (the message received) and return to OK.
+12. **The activation guard:** on one armed fixed box, `carlos system apply` of a build below vN is refused with the reason and the box keeps serving.
+
+Flagship rows: 1, 2, 3 (one held connection of each kind), 4 (echo and burst), 5 (2 adi restarts), 8 in S2 only, 11 (the alarm datapoint only).
+
+## 11. Decisions (8a3d302, 2026-11-12)
+
+1. **Hairpin redirect (§7.4):** kept; retiring it is a later, separate change.
+2. **Direct rollback command (§6.3):** allowed for preservation **on** only, in an abort or S3 incident, reconciled by a no-change tofu plan after.
+3. **S3 containment (§6.5):** a root action on every target replaced rev 3's drained restarts and member roll; rev 5 proposes the barrier form of it (§4.7, §15).
+4. **When:** build after this is approved; dev window on the first dev roll after vN; flagship before G6. The dormant code's switch-on date is that dev window.
+
+## 12. Astra round 1 and where it went
+
+`docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R1.md`, NOT READY: one P1, six P2s.
+
+| Finding | Fault family | Disposition |
+|---|---|---|
+| P1: in S3 a client's own header is trusted, so S3 is forgery, not "limits off" | F1: client bytes becoming trusted identity | Accepted. §3 states the invariant; §6.2-§6.4 make S3 unreachable by the step script and detect it with the marker probe; §6.5 incident; §4.6 no longer claims S3 is bounded. |
+| P2: client unknown turns into a node address after forwarding | F2: missing identity across a hop | Accepted by removing client unknown: a `no-client` connection answers only the health check (§4.6), so nothing is forwarded without a client. |
+| P2: analytics hashes an empty address into one visitor | F2 | Resolved by the same change: no request reaches analytics without a client (§4.6). |
+| P2: the context mark needs a deferred-state contract | connection metadata without blocking | Accepted: §4.3 parse state, pointer in `ConnContext`, resolved on the serving goroutine, `Close` never waits; tests in §9. |
+| P2: the witness does not prove the cutover claims | rollout claims beyond evidence | Accepted: §3 states the assumption; §6.4 convergence per address and port gates each step; §10 row 3 holds connections across steps. |
+| P2: `aws_network_interfaces` has no private addresses | infra discovery | Accepted: singular lookups per zone (§8.1). |
+| P2: the member bootstrap binary refuses the new key | bootstrap compatibility | Accepted: §6.1 step 2 and the unwinding order. |
+
+## 13. Astra round 2 and where it went
+
+`docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R2.md`, NOT READY. Round 1 dispositions: R1.2, R1.3, R1.4, R1.6, R1.7 resolved; R1.1 (F1) and R1.5 partly.
+
+| Finding | Fault family | Disposition |
+|---|---|---|
+| P1: S3 still reachable on rollback and not bounded. S1 and S2 answer the probe identically, so S2 to S1 cannot be proven converged before PPv2 goes off; S3 drift after the window has no detector (forged requests count as `proxied`); the incident's serial drained restarts keep forged connections serving and can fail | **F1, second round running** | **Not fixed: stopping rule 2. Options in §14.** |
+| P2: the probe table is wrong for `:80` (302 redirect, not echo) | rollout evidence | Fixed in rev 3: per-port table with redirects not followed; the edge's own `marker_trusted` counter covers `:80` (§6.4). |
+| P2: "every target healthy all the time" contradicts the drain and roll rows | rollout evidence | Fixed in rev 3: transition gates and maintenance rows separated (§6.4). |
+
+## 14. Fault family F1: the decision
+
+**Decided 2026-11-12: A**, by agent manager 8a3d302 on Paul's standing acceptance of recommendations on this work (Paul informed, free to override). Rev 4 writes it in: §6.2 (allowed moves), §6.3 (the step script refuses PPv2 off from every state; the refusal sits in the script, not the module, because the module cannot read the live attribute of a target group it manages), §6.5 (rollback ends at S1; incident), §4.5 (metric and alarm), §4.7 (close-trusted), §7.3 (the cost, the activation guard, the release recipe and roll card checks). The options as put to Paul:
+
+F1 is "client bytes becoming trusted identity". It lives in one AWS state the edge cannot see, S3, and in the transitions next to it. Round 1 found S3 unguarded; rev 2 guarded the forward path and added a probe; round 2 found the reverse path (S2 to S1 to S0) unprovable with that probe, no detector outside the window, and an incident that cannot close forged connections promptly. Stopping rule 2 says not to write a third fix in the same family. The choices:
+
+**A. Cut: PROXY protocol is one-way (recommended).** Once a TG reaches S1, PPv2 never goes off again. Rollback ends at S1 (preservation back on, PPv2 on, the edge ignoring the header as in S1 today): that restores today's client addresses and today's collision behaviour, which is the whole of what a rollback needs. S1 to S0 and S2 to S0 are refused by the step script and removed from every card; the module refuses PPv2 off on a TG whose live attribute is on. Every unprovable transition is gone, since the only remaining moves are S0 to S1 (forward, proven by the marker), S1 to S2 (forward, proven by the marker plus per-node `proxied`) and S2 to S1 (reverse, safe whether converged or not: S1 and S2 both trust only the NLB's own header). S3 then needs someone to turn PPv2 off outside the tooling. Two small additions, still F1 but enforcing in one place rather than patching: the edge publishes `no_client_refused` and `marker_trusted` through the existing host metrics path (`CARLOS_HOST_METRICS`, `internal/host/memwatch.go:77`) with one alarm on either above zero (S3 turns every header-less client into a 503, so it is loud), and an edge control action that closes every trusted connection at once, without a drain, for the incident. Cost: an edge older than vN can never again run on an NLB target; that is already true from step A80 on.
+
+**B. Refuse up front with evidence.** Keep S1 to S0, gated on target-side evidence that preservation is back on every node: with the probe dialling both addresses every 2 s, `proxied` from each node address stays at 0 on every target for 5 minutes (in S2 every data connection from a node is `proxied`, so silence from both nodes means both preserve). Plus the alarm and the close-all action from A. This is a third fix in F1, which the stopping rule asks Paul to approve explicitly, and it keeps a transition whose safety rests on reading counters correctly under time pressure.
+
+**C. Stop the work.** Keep preservation on. Clients behind port-preserving NAT keep the rare 20-30 s connect hang on HA-pool names (§1). G6 opens with the known limit.
+
+Recommendation was **A**: it removes the unprovable transition rather than proving it, and costs nothing a rollback needs. Astra round 3 reviews rev 4, as the last round.
+
+## 15. Astra round 3 (the last) and the open P1
+
+`docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R3.md`, NOT READY. Round 2 dispositions: R2.1 (F1) partly (one-way PPv2 removed the unsafe rollback; containment still leaks), R2.2 partly, R2.3 resolved. Astra recommends no further round.
+
+| Finding | Fault family | Disposition |
+|---|---|---|
+| P1: rev 4's one-shot `close-trusted` misses a connection still parsing its header (it completes a forged header afterwards) and connections a node still in S3 opens after the action | **F1, third round** | **Open; fix proposed in rev 5 §4.7 (the trust barrier), needs 8a3d302's go.** |
+| P2: the convergence gate demanded 200 on `:80`; the S3 marker row contradicted the edge's own close | rollout evidence | Fixed: per-port expectations (302 not followed on `:80`), S3 marker row is "closed, `marker_trusted`" (§6.4). |
+| P2: neither root sets `regional_metrics`, so the trust alarm would not exist; setting it would also switch on clock and admission alarms | detection config | Fixed: own input `proxy_trust_alarm`, required before any TG gets PPv2, both roots set it, delivery checked (§8.1, §8.3). |
+| P2: a `no-client` health request with a demo `Host` would hit `redirectDemoRequest` before the health branch | health-only boundary | Fixed: the wrapper calls `lbHealthAnswer` directly (§4.6). |
+| P3: the drain socket admits the agent's UID, not root | description | Fixed in §4.7's text. |
+
+**The P1 and its proposed fix.** Both races share one cause, which Astra names: containment had no barrier covering every trusted peer, only a sweep of the ones already parsed. Rev 5 replaces the sweep with a barrier that is state, not an action: while it is up, a trusted connection's header grants no identity, whenever it was accepted and whenever its header completes; the flag is set before the sweep, so nothing slips between them; it persists across restarts; only an explicit resume after the marker probe shows S1 lowers it. That is Astra's own suggested direction ("refusing trusted application traffic during containment"), and it costs nothing in S0 or S1, where no client traffic is trusted. It does not touch the one-way decision.
+
+**Decided 2026-11-12: option 1**, by 8a3d302: the barrier is accepted as state without another spec round; the build's whole-branch Astra review covers it, and the two race tests in §9 are mandatory in the plan. The choices as put:
+1. **Accept rev 5's barrier without another round** (recommended). The change is one flag checked at one point (the parse state's resolution) plus its persistence and two verbs; §9 tests the two races directly, and the build's whole-branch review covers it.
+2. **A fourth Astra round on §4.7 only**, scoped to the barrier.
+3. **Cut containment back to "stop public ingress"** in an S3 incident (deregister or drain every target), Astra's other suggestion: simpler to state, but an outage for every HA-pool app until the TG is verified, where the barrier keeps serving.
diff --git a/docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R1.md b/docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R1.md
new file mode 100644
index 000000000..6c55c6d08
--- /dev/null
+++ b/docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R1.md
@@ -0,0 +1,75 @@
+Reviewed commit `5eae4ea7569451db267f2a15541edece108e5107` against `origin/main` at `ae1b8cca` and the installed Go 1.26.10 sources. No files changed, subagents spawned, test suites run, or AWS calls made.
+
+1. **P1 — S3 allows client-address forgery, not just disabled limits (§§4.2, 4.4, 6.3).**
+
+ The fallback described at [design:161](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:161) is unsafe. In S3, the NLB supplies its trusted socket address but supplies no header. A client can send a valid PPv2 header followed by TLS; [design:73](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:73) then accepts the client’s chosen address. AWS documents the NLB source address when preservation is disabled and that TCP payload, including client-supplied proxy headers, is retained. [https://docs.aws.amazon.com/elasticloadbalancing/latest/network/edit-target-group-attributes.html](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/edit-target-group-attributes.html)
+
+ That forged address reaches limits and becomes edge-signed forwarding identity through [homemap.go:1685](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/homemap.go:1685) and [forwardproof.go:51](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/forwardproof.go:51). The design also gives affected connections no maximum lifetime.
+
+ **Fix:** remove the claim that §4.6 safely bounds S3. Make “the NLB prepends its own header whenever its source address grants trust” an explicit operational invariant. Specify transition verification and an S3 incident procedure that blocks affected traffic and closes existing connections before recovery. Add a forgery witness; merely refusing headerless application requests does not reject a forged, well-formed header.
+
+ **Fault family:** client-controlled bytes becoming trusted client identity.
+
+2. **P2 — “Client unknown” becomes a known NLB address after forwarding (§§4.6, 5).**
+
+ [Design:91–96](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:91) keeps the NLB address in `r.RemoteAddr` and outbound `X-Forwarded-For`, while storing unknown status only in local context. On another edge, [analytics.go:101](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/analytics.go:101) takes the last forwarded address on a verified hop. [ratelimit.go:133](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/ratelimit.go:133) and [guard.go:161](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/guard.go:161) then treat that node address as a client.
+
+ **Failure scenario:** unknown-client requests forwarded to a holder share one rate-limit and probe-burst bucket per NLB node—the aggregation §4.6 intends to prevent.
+
+ **Fix:** either restrict unknown-client handling to health checks and refuse application traffic, or carry authenticated unknown status across forwarding and consume it before client-address readers. Add a two-edge witness.
+
+ **Fault family:** loss of client-identity status across a trusted hop.
+
+3. **P2 — Analytics does not treat an empty address as “no client” (§4.6).**
+
+ The claim at [design:94](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:94) stops at the observation’s string field. [meter.go:191](/home/paulca/amadan.net/carlos/platform-ppv2/internal/analytics/meter.go:191) still hashes that field, and [meter.go:68](/home/paulca/amadan.net/carlos/platform-ppv2/internal/analytics/meter.go:68) accepts an empty IP. The hash feeds visitor counting and the pace detector.
+
+ **Failure scenario:** unrelated unknown clients with the same user agent collapse into one visitor. Their combined requests can trigger the 20-page pace threshold at [pace.go:19](/home/paulca/amadan.net/carlos/platform-ppv2/internal/analytics/pace.go:19), misclassifying subsequent pageviews as bot traffic.
+
+ **Fix:** specify and test analytics behavior for missing client identity, including skipping visitor deduplication and pace classification while retaining applicable aggregate counts.
+
+ **Fault family:** missing identity becoming a shared analytics identity.
+
+4. **P2 — The unknown-client context mark needs a deferred-state contract (§§4.3, 4.6).**
+
+ [Design:91](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:91) says `ConnContext` sets the mark, but header parsing happens later. Go invokes `ConnContext` before launching the connection goroutine at [server.go:3474](/home/paulca/.local/go-dist/src/net/http/server.go:3474); that goroutine first calls `RemoteAddr` at [server.go:1908](/home/paulca/.local/go-dist/src/net/http/server.go:1908).
+
+ **Failure scenario:** a snapshot taken in `ConnContext` cannot distinguish PROXY from LOCAL or absent headers. Parsing there instead blocks acceptance, contrary to §4.3.
+
+ **Fix:** explicitly put a reference to connection-owned parse state in context without reading the connection. Resolve it once on the serving goroutine and expose the completed status to handlers. Require `Close` to interrupt pending parsing without waiting for its lock, and test silent/partial headers through `Shutdown` and `CloseIngress`.
+
+ **Fault family:** connection metadata becoming available without blocking acceptance or shutdown.
+
+5. **P2 — The witness does not establish the stated cutover guarantees (§§3, 6.2, 10).**
+
+ [Design:35](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:35) says the design does not depend on PPv2 changes affecting only new connections; [design:143](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:143) explicitly assumes that behavior. The parser consumes exactly one initial header. The probe at [design:229](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:229) exercises one NLB address and does not require connections spanning attribute changes.
+
+ **Failure scenario:** the witness passes while an unprobed node, port, or established connection behaves differently. Fixed watch periods and aggregate counter increases do not establish convergence on every node.
+
+ **Fix:** state the assumption honestly and gate rollout on a dev witness covering both NLB addresses and ports, fresh connections, and persistent HTTP/1.1, HTTP/2 and streaming connections across forward and reverse changes. Define the evidence required before proceeding to the next attribute change; retain zero downtime as a measured result.
+
+ **Fault family:** rollout guarantees exceeding transition evidence.
+
+6. **P2 — The ENI data source does not provide private addresses (§8.1).**
+
+ [Design:202](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:202) names `aws_network_interfaces` as the source of node private addresses. Its schema exposes interface IDs and tags, not private addresses; its read function stores only IDs (`vpc_network_interfaces_data_source.go:27–35,65–70`). [https://raw.githubusercontent.com/hashicorp/terraform-provider-aws/main/internal/service/ec2/vpc_network_interfaces_data_source.go](https://raw.githubusercontent.com/hashicorp/terraform-provider-aws/main/internal/service/ec2/vpc_network_interfaces_data_source.go)
+
+ **Failure scenario:** implementing the stated lookup alone cannot produce `proxy_protocol_sources`.
+
+ **Fix:** specify the singular `aws_network_interface` lookups that obtain `private_ip`. Prefer stable zone-keyed lookups filtered by NLB description and subnet, enforcing one interface per expected zone; this also avoids an initial-create `for_each` based on unknown interface IDs.
+
+ **Fault family:** infrastructure discovery producing a complete trust list.
+
+7. **P2 — Host-env prerequisites omit the independently selected bootstrap binary (§§6.1, 8.3).**
+
+ Naming vN in the launch template does not update the binary that initially reads host-env. [group-init.sh.tftpl:208](/home/paulca/amadan.net/carlos/platform-ppv2/infra/modules/region-host/group-init.sh.tftpl:208) fetches and verifies the independently seeded bootstrap object; [group-init.sh.tftpl:332](/home/paulca/amadan.net/carlos/platform-ppv2/infra/modules/region-host/group-init.sh.tftpl:332) runs that binary’s `host-env write` before installation. [group.go:112](/home/paulca/amadan.net/carlos/platform-ppv2/internal/hostenv/group.go:112) rejects keys outside its compiled allowlist.
+
+ **Failure scenario:** the new parameter exists and the launch template names vN, but an older bootstrap rejects `CARLOS_INGRESS_PROXY_SOURCES`; replacement members never reach installation or health.
+
+ **Fix:** explicitly require updating and verifying the bootstrap object/version/hash to a build accepting the key before publishing it. Include bootstrap compatibility in rollback instructions while the parameter remains present.
+
+ **Fault family:** bootstrap/configuration compatibility during member replacement.
+
+No P3 findings.
+
+**NOT READY**
\ No newline at end of file
diff --git a/docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R2.md b/docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R2.md
new file mode 100644
index 000000000..d20b54fd9
--- /dev/null
+++ b/docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R2.md
@@ -0,0 +1,52 @@
+- **R1.1 P1 — S3 forgery: partly resolved.** The invariant is explicit, but rollback verification, detection coverage and incident containment remain incomplete.
+- **R1.2 P2 — Unknown identity across forwarding: resolved.** §4.6 refuses application requests before forwarding.
+- **R1.3 P2 — Empty analytics identity: resolved.** Those requests no longer reach analytics.
+- **R1.4 P2 — Deferred connection metadata: resolved.** The connection-owned state, nonblocking context hook and interruptible `Close` address the finding.
+- **R1.5 P2 — Cutover witness: partly resolved.** Persistent connections are covered, but the port-80 probe and drain-window conditions remain wrong.
+- **R1.6 P2 — ENI discovery: resolved.** Singular, zone-keyed interface lookups provide `private_ip`.
+- **R1.7 P2 — Bootstrap compatibility: resolved.** The bootstrap prerequisite and rollback ordering now cover the allowlist.
+
+1. **P1 — S3 is still neither excluded by the rollback procedure nor reliably bounded (§§3, 6.3–6.5).**
+
+ **Evidence:** The convergence predicates at [design:187](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:187) omit reverse B, although [design:199](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:199) requires it before reverse A. S1 and S2 have identical plain/marker answers. Rising `proxied` counters establish S2 activity; they do not establish that preservation has returned on every node.
+
+ **Failure scenario:** During rollback, one node still uses preservation-off when PPv2-off reaches it. That node enters S3 despite each requested move changing only one attribute. The prescribed probes cannot certify the preceding S2→S1 transition. A client-supplied address then becomes signed forwarding identity through [homemap.go:1685](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/homemap.go:1685) and [forwardproof.go:51](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/forwardproof.go:51).
+
+ Detection and recovery do not close this gap:
+
+ - The probe runs only during the window ([design:195](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:195)). Later S3 drift has no specified forgery detector. Forged requests increment `proxied`, not `no_client_refused`; [design:95](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:95) supplies journal output without an alarm. Thus S3 can occur without the promised detection.
+ - The incident procedure restores preservation, then performs serial graceful restarts ([design:202](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:202)). Existing forged connections remain usable. W6 explicitly keeps serving before closing ingress ([ingressdrain.go:370](/home/paulca/amadan.net/carlos/platform-ppv2/internal/host/ingressdrain.go:370)); member drains can stop with failure ([depart.go:321](/home/paulca/amadan.net/carlos/platform-ppv2/internal/grouproll/depart.go:321)). There is no incident-wide quarantine or closure deadline independent of successful maintenance.
+
+ AWS confirms that preservation changes affect only new TCP connections. [https://docs.aws.amazon.com/elasticloadbalancing/latest/network/edit-target-group-attributes.html](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/edit-target-group-attributes.html)
+
+ **Concrete fix:** Refuse PPv2-off rollback until fresh, correlated observations establish preserved socket peers on every node; the existing echo/marker pair cannot supply this evidence. Specify detection for the entire armed lifetime, and an incident action that blocks affected traffic and closes potentially forged connections before recovery, even when a normal roll fails.
+
+ **Fault family:** **F1 — client-controlled bytes becoming trusted identity**, carried forward from round 1.
+
+2. **P2 — The per-state probe table is wrong for port 80 (§§6.4, 10).**
+
+ **Evidence:** [Design:174](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:174) requires an echo-app response on both ports. Production port 80 instead redirects routable application requests to HTTPS at [edge.go:3840](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/edge.go:3840).
+
+ **Failure scenario:** On port 80, ordinary requests in S0–S2 return a redirect, not `200` with an address. The S0 marker also redirects; an accepted S3 marker redirects without exposing its forged address. Following that redirect creates a separate TLS connection and loses the original marker identity. Literal enforcement therefore prevents the witness from passing; following redirects does not establish the claimed port-80 result.
+
+ **Concrete fix:** Define separate port-80 expectations with redirects disabled. Obtain port-80 identity and parse-state evidence through correlated target observations, or explicitly design a suitable diagnostic endpoint. Keep the echo-app table for port 443.
+
+ **Fault family:** **Rollout guarantees exceeding transition evidence**, carried forward from R1.5.
+
+3. **P2 — “Every target healthy all the time” contradicts the required drain witnesses (§§6.4, 10).**
+
+ **Evidence:** [Design:191](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:191) requires every target healthy throughout the window. [Design:276](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:276) requires drained restarts and a member replacement during that window. W6 deliberately fails health before withdrawing a target ([ingressdrain.go:385](/home/paulca/amadan.net/carlos/platform-ppv2/internal/host/ingressdrain.go:385)).
+
+ **Failure scenario:** A correctly functioning drain violates the probe’s pass condition and aborts the witness.
+
+ **Concrete fix:** Separate attribute-transition gates from maintenance-witness gates. During a named drain, permit only that target’s expected withdrawal while requiring healthy alternatives and successful traffic probes; restore the all-healthy gate before further attribute changes.
+
+ **Fault family:** **Rollout guarantees exceeding transition evidence**, carried forward from R1.5.
+
+No P3 findings.
+
+F1 has recurred in rounds 1 and 2, so stopping rule 2 applies. The choices are to refuse the unsafe rollback up front, cut mixed-state rollback, or enforce the invariant in one place with a guard test or simulation. I recommend the refusal until adequate transition evidence exists.
+
+Reviewed commit `9d1be70aafe46ce56d3b68adb3a70c55620a3b73` against the named `ae1b8cca` code and installed Go 1.26.10 sources. No files changed, subagents spawned, test suites run or AWS calls made.
+
+**NOT READY**
\ No newline at end of file
diff --git a/docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R3.md b/docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R3.md
new file mode 100644
index 000000000..d0d2c9f97
--- /dev/null
+++ b/docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R3.md
@@ -0,0 +1,69 @@
+- **R2.1 P1 — S3 exclusion and containment: partly resolved.** One-way PPv2 removes the unsafe rollback transition. The new close action still permits forged connections to survive containment.
+- **R2.2 P2 — Port-80 probe: partly resolved.** The response table distinguishes ports, but the convergence gate still requires an impossible port-80 response.
+- **R2.3 P2 — Health gates versus maintenance: resolved.** §6.4 separates transition gates from named maintenance withdrawals.
+
+1. **P1 — `close-trusted` does not close every potentially forged connection (§§4.7, 6.5).**
+
+ **Evidence:** [Design:109](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:109) registers connections only when parsing resolves, closes only `proxied` and `no-client`, and explicitly continues accepting connections. [Design:212](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:212) restores preservation and immediately runs this one-shot close.
+
+ **Failure scenarios:**
+
+ - An attacker opens an S3 connection and sends a partial header. It remains `pending` during `close-trusted`, so the action misses it. The attacker completes a forged header within the ten-second deadline afterward. The connection becomes `proxied` and can serve requests indefinitely. Restoring preservation does not change an existing connection’s peer.
+ - While preservation-on propagates, a node still in S3 accepts another connection after that target’s close action. Nothing prevents it from establishing another forged identity.
+
+ The resulting address feeds forwarding at [homemap.go:1685](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/homemap.go:1685) and is signed at [forwardproof.go:51](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/forwardproof.go:51). AWS confirms preservation changes affect only new connections. [https://docs.aws.amazon.com/elasticloadbalancing/latest/network/edit-target-group-attributes.html](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/edit-target-group-attributes.html)
+
+ **Concrete fix:** Track trusted socket peers from acceptance, including pending parsers. Make containment establish a persistent refusal barrier before closing that population, covering concurrent accepts and parse completion. Keep it until explicitly verified recovery; alternatively, stop public ingress during containment. Add witnesses for a partial header spanning the action and a new connection from a node still in S3.
+
+ **Fault family:** **F1 — client-controlled bytes becoming trusted identity.**
+
+2. **P2 — The convergence gate still cannot pass on port 80 (§6.4).**
+
+ **Evidence:** [Design:197](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:197) requires plain responses to remain `200` with the probe’s address, per target-group port; the next line inherits that requirement. Port 80 returns `302` at [edge.go:3840](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/edge.go:3840), as the revised table correctly states.
+
+ The S3 marker row also contradicts the new detector: [design:192](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:192) predicts an echo or redirect, while line 194 closes that marker connection before either response.
+
+ **Failure scenario:** A correctly functioning A80 step cannot obtain its convergence record. A probe implementing the S3 table also expects responses the marker detector prevents.
+
+ **Concrete fix:** Make convergence explicitly require `302`, without following redirects, on port 80 and `200` plus identity on port 443. Change the S3 marker expectations to connection closure plus `marker_trusted`.
+
+ **Fault family:** **Rollout guarantees exceeding transition evidence**, carried from R2.2.
+
+3. **P2 — The root changes omit inputs needed to create and notify the trust alarm (§8).**
+
+ **Evidence:** [Design:270](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:270) gates the alarm on `regional_metrics`; [variables.tf:68](/home/paulca/amadan.net/carlos/platform-ppv2/infra/modules/region-host/ingress/variables.tf:68) defaults that input to null. The checked roots omit it:
+
+ - `platform-infrastructure@a314594d`, `dev/region-ha-ingress.tf:24`: assignment remains commented out; the module also has no alarm topic.
+ - `carloku-infrastructure@afa6ed16`, `region-ha-us.tf:5`: module supplies a topic but no `regional_metrics`.
+
+ **Failure scenario:** The repins described at [design:278](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:278) create no trust alarm. Enabling the shared input also enables the existing clock and admission alarms, so the stated “one new alarm” plan is inaccurate.
+
+ **Concrete fix:** Specify the dimensions and notification topic in both roots, account for all resulting alarms, and verify notification delivery. Alternatively, give the mandatory trust alarm its own explicit configuration.
+
+ **Fault family:** **Required detection omitted by infrastructure configuration.**
+
+4. **P2 — The health-only exception relies on incorrect handler ordering (§4.6).**
+
+ **Evidence:** [Design:101](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:101) says `lbHealthAnswer` already answers first. In fact, [edge.go:3788](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/edge.go:3788) calls `redirectDemoRequest` before the health handler. That function selects an upstream at [demo.go:94](/home/paulca/amadan.net/carlos/platform-ppv2/internal/edge/demo.go:94) and can return a demo response.
+
+ **Failure scenario:** A `no-client` request matching the permitted health method and path, but carrying a demo Host, passes the proposed exception and reaches host routing or a demo response instead of the health answer.
+
+ **Concrete fix:** Have the outer wrapper dispatch permitted `no-client` health requests directly to `lbHealthAnswer`, without entering the ordinary handler chain. Test ordinary, demo and unknown Host values.
+
+ **Fault family:** **Identity-free connections escaping the health-only boundary.**
+
+5. **P3 — The existing drain socket is not root-only (§4.7).**
+
+ **Evidence:** [hadrain_socket_linux.go:23](/home/paulca/amadan.net/carlos/platform-ppv2/internal/host/hadrain_socket_linux.go:23) admits the agent’s UID; root verbs use a child that drops to that UID.
+
+ **Failure scenario:** A direct root caller is rejected, while another process running as the agent can call the socket. This differs from [design:109](/home/paulca/amadan.net/carlos/platform-ppv2/docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md:109).
+
+ **Concrete fix:** Describe the root command and service-UID socket separately, preserving the existing caller mechanism.
+
+ **Fault family:** **Control-interface authority description.** Follow-up only.
+
+The sole outstanding P1 remains F1; both containment races share the absence of a barrier covering all trusted socket peers. Refusing trusted application traffic during containment, or cutting continued public serving during the incident, removes those races without reversing the accepted one-way PPv2 decision. This exhausts round 3; I do not recommend another review round.
+
+Reviewed `b06da7a081ac3e881300e438d0d91ecdda715bc4` against the named `ae1b8cca` code and installed Go 1.26.10 sources. No files changed, subagents spawned, test suites run or AWS calls made.
+
+**NOT READY**
\ No newline at end of file
diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-edge-ppv2.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-edge-ppv2.md
new file mode 100644
index 000000000..2535ae184
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-edge-ppv2.md
@@ -0,0 +1,79 @@
+# Review brief: PROXY protocol v2 on the region HA NLBs (spec), round 3 of 3 (the last)
+
+Repo carlos/platform, branch `design-edge-ppv2`, the commit named in your prompt.
+Under review: `docs/superpowers/specs/2026-11-12-edge-proxy-protocol-design.md`.
+Authorities (merged on main): `docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` (§12),
+`docs/superpowers/specs/2026-10-15-region-ha-two-box-regions-design.md`,
+`docs/superpowers/specs/2026-11-10-fixed-edge-ingress-drain-design.md` (W6). Code at `origin/main` ae1b8cca.
+
+You are an independent reviewer. Read the document, then the code it names, and check every claim against that code.
+Background evidence (read only if useful): `~/.cache/lost-post/REPORT.md`, `~/.cache/drain-syn/REPORT.md`,
+live NLB attributes in `~/.cache/ppv2/aws/`.
+
+## Fixed: do not re-argue
+
+- Paul approved the direction: client IP preservation off plus PROXY protocol v2 on both TGs of each region NLB,
+ edge parses on :80 and :443 trusting only the NLB's private addresses. Cross-zone off is NOT an option.
+- Design only; no infra change is part of this review.
+- Decided after round 2 under stopping rule 2 (spec §14, §11): option A, PROXY protocol is one-way
+ (rollback ends at S1, PPv2 never goes off); keep the A21 hairpin redirect; direct aws rollback only for
+ preservation ON; timing as in §11. The cost (no build below vN on an NLB target after A80) is accepted.
+ Report only mechanisms that fail to honour these, not the choices themselves.
+
+## What to check
+
+1. The trust rule (§4.2): can any party other than the NLB get a header trusted? Tenants on boxes in the VPC,
+ cross-region backhaul to members' public 443, fixed boxes' EIPs, hairpin, health checks.
+2. The cutover states (§6.2): is every new connection handled correctly in S0, S1 and S2 and across each
+ single-attribute step, including propagation where nodes disagree? Is S3 really unreachable or bounded?
+ Is the S1 "ignore untrusted header" rule safe?
+3. Blocking (§4.3): does anything on net/http's accept goroutine (ConnContext, ConnState, hairpin Accept,
+ connDrain) call RemoteAddr or Read on a wrapped connection? Check Go 1.26 net/http and crypto/tls.
+ Interaction with Server.Shutdown / W6 CloseIngress for connections still reading a header.
+4. §5: is any client-address reader missing, or one that reads the socket rather than r.RemoteAddr?
+5. §4.6 (rev 2): a trusted connection without a client address answers only the health check. Can any other
+ request on it reach routing, limits, analytics or forwarding?
+6. Tofu (§8): attribute names and in-place updates in the AWS provider; the group.tf precondition change;
+ the ENI data source; ordering against the pinned module refs in the two roots.
+7. Host-env delivery (§6.1): do members and fixed boxes really get the key the way the spec says?
+8. Witness (§10): does it prove the fix and the zero-downtime claim as far as the spec claims?
+
+## Round 3
+
+Earlier rounds: round 1 `docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R1.md` (NOT READY: P1 F1, six P2s),
+round 2 `docs/superpowers/specs/ASTRA-FINDINGS-edge-ppv2-R2.md` (NOT READY: P1 F1 again, two P2s). The spec's
+§12-§14 give each disposition.
+
+First give one line per P1 and P2 from round 2: resolved, partly, or not. Carry every unresolved or partly
+resolved finding forward, then add new findings. The verdict covers everything outstanding.
+
+Rev 4 answers F1 with option A: allowed moves S0->S1, S1->S2, S2->S1 only (§6.2, §6.3); the trust-violation
+metric and alarm for the whole armed lifetime (§4.5, §8.1); `close-trusted` containment (§4.7, §6.5); and the
+cost section with a box-side activation guard and release/roll checks (§7.3). Check in particular: can any
+allowed move, mid-propagation, put a node in S3? Is the alarm's signal real in S3? Does close-trusted close
+every connection that could carry a forged identity? Does the activation guard cover every way a binary
+reaches a target (apply, rollback, install-channel at member boot, channel pointers)?
+
+This is round 3. A NOT READY must also say whether the P1s share one cause, and whether refusing the case up
+front or cutting the feature would remove them.
+
+## 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.
+- **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
+
+Findings ranked P1, P2, P3. Each gives the section, the problem, the evidence (file:line, verified), the failure
+scenario, a concrete fix and the invariant or trust boundary it breaks (its fault family). 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. Do not make any AWS call that changes anything.