spec: Astra review brief for hub HA round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+16
−0
docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha.md+16 −0
Intent
Attributed to this commit: 55.0 g CO₂e (5,887,800 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-hub-ha, 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/specs/CODEX-REVIEW-BRIEF-hub-ha.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha.md| new file mode 100644 |
| index 000000000..301d61991 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-hub-ha.md |
| @@ -0,0 +1,16 @@ |
| +# Astra review brief: hub HA design, round 1 |
| + |
| +Review `docs/superpowers/specs/2026-11-25-hub-ha-design.md` on branch `design-hub-ha` (commit named in the prompt). The repo is this worktree, at origin/main bac71e00 plus the spec. You are an independent second reader. Read the spec, then check it against the code it cites. |
| + |
| +Context: CARLOS fleet boxes dial a reverse HTTP/2 tunnel to one "hub" per region (internal/edge/tunnel.go, internal/tunnelclient). The hub edge restarting takes every fleet app down ~15 s (#1388). Part 1 is a small short-term fix; Part 2 is several hubs per region. Related machinery: backhaul and alternatives (internal/edge/backhaul_holder.go, backhaul_retry.go, replay.go), edges-file name authority (internal/edgesfile), tenant admission (internal/host/group_admission.go, internal/edge/group_admission.go), W6 ingress drain (internal/host/ingressdrain.go, internal/edge/ingressdrain.go), replica routing (internal/edge/replicaprober.go, replicaproxy.go), region HA spec §25 held requests (2026-10-26-region-ha-without-claims-design.md on branch design-region-ha-held-requests; the merged code is on main). |
| + |
| +Fixed rulings (do not re-argue): no Kubernetes; fleet boxes accept no inbound connections; at most two forward attempts per request and a box never forwards a request it received as a hop (I4); new features must state a steady-state S3 request budget and must not add per-box polling outside the change index; bucket records are not a tenancy boundary, and root/hub must never read fleet-state authority from a fleet-writable key. |
| + |
| +Find what is wrong, not what is good. In particular: |
| +1. Correctness of the measured/reconstructed gap (§2) against the code. |
| +2. Part 1: is S1's admission exemption safe (anything a fleet row needs that admission protects)? S2's hold and the one-probe warm-up rise. S3: is holding on connect failure really safe for any method and body (is any request byte or body read before the dial in the backhaul path)? Interaction with the suspect set, the attempt counter, held-request bounds of §25, and the hop's own timeouts. S4: socket activation with this unit layout (carlos-edge.service, carlos-edge-drain.service, tenant units bound to the edge), PPv2, W6 CloseIngress, rollback below the floor. |
| +3. Part 2: revocation and credential freshness across hubs; the hub view's authority; whether several hubs' unstamped claims really resolve as described in edgesfile name authority and the home map; the hub-to-hub forward against I4; replica routing per hub; the fleet box dialling every resolved address; anything that today assumes exactly one hub (grep HubArmed, TunnelHub, replica coordinator, store door, fleet bindings pass, sole-box rule, fleet record labels). |
| +4. Request budget. |
| +5. Anything missing that would make the build fail or cause an outage. |
| + |
| +Output: a list of findings, each with severity P1 (blocks the design), P2 (must fix before build), P3 (minor), the spec section, the code citation (file:line) that proves it, and a concrete proposed fix. End with a verdict line: READY, READY AFTER FIXES, or NOT READY. |