Tunnel WebSockets (#471): Astra spec review brief, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+31
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets.md+31 −0
CI passed — run details
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets.md| new file mode 100644 |
| index 000000000..bbbe0d185 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-tunnel-websockets.md |
| @@ -0,0 +1,31 @@ |
| +# Review brief: tunnel WebSockets design (#471), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `design-tunnel-websockets-471`, commit 92fb3af34714a8367d026f8709d99da5573e3940. |
| +Under review: `docs/superpowers/specs/2026-10-30-tunnel-websockets-design.md`. |
| +Authorities: main's code (origin/main 65fd8060, fleet public routes merged and live in v0.32.0), docs/superpowers/specs/2026-10-29-fleet-public-routes-design.md (forward rows, one enforcement point at the hub), AGENTS.md (census, request budget, provider-neutral core, production-wired witnesses, stopping rules). |
| + |
| +You are an independent reviewer. Read the spec, then the code it names, and check every claim against that code (file:line). |
| + |
| +## Fixed: do not re-argue |
| +- Goal (Paul via #471): WebSocket upgrades to fleet apps work through the hub's fleet tunnel (Action Cable on dev shop), keeping one enforcement point at the hub. |
| +- Controller's calls on the spec's open questions (platform-60): option B (the upgrade carried unchanged in one HTTP/2 stream); Q1 cap 128 open upgrades per fleet box in v1; Q2 do not shrink the hub's per-stream window now; Q3 -tunnel hand rows get WebSockets too; Q4 add an Action Cable channel to examples/rails-shop as the last task; Q5 file the client-address finding as its own discussion. Report only mechanisms that fail these. |
| + |
| +## What to check |
| +1. Trust: can a client, an app, or a fleet box use the marker header or the stream to bypass the hub's gate, throttle, cap or tenant rules, reach another app or box, or keep a socket open after CloseAccountUpgrades, detach, rotation or owner change? |
| +2. Correctness of the handshake end to end (hop-by-hop headers, Sec-WebSocket-*, subprotocols, extensions, X-Forwarded-*, the gate cookie, HTTP/2 framing of a half-open body, flow control), against x/net and net/http's actual behaviour (cite the versions the module uses). |
| +3. Resource safety: stream slots, flow-control windows, the cap, goroutine and memory bounds per socket, slowloris/stalled readers, a box with many sockets, hub restart and tunnel loss; does any existing plain-request path degrade. |
| +4. Lifecycle table: every way a socket ends; leaks; swaps and overlap deploys on the fleet box. |
| +5. Compatibility: old box / new hub and new box / old hub; is "no release floor" right? |
| +6. Request budget zero; census claims; tests: is the witness production-wired and would it catch the failure modes in 1-4? |
| +7. The §10 side findings (client address, scheme): accurate? |
| + |
| +## Severity |
| +- **P1**: unsafe, would not work, or contradicts the code. Blocks the plan. |
| +- **P2**: wrong or missing. Fixed without reopening this review. |
| +- **P3**: polish. Follow-up list only. |
| +A P1 states its failure scenario and evidence (file:line). |
| + |
| +## Output |
| +Findings ranked P1, P2, P3 with section, problem, evidence (file:line, verified), failure scenario, concrete fix, invariant. End with exactly one verdict: READY, READY AFTER FIXES, or NOT READY. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites. |