carlos / platform Public

stripe-write-http1: review brief, round 1 of 3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 42e3bb1cba3ee897eb378ad7b17a5b1635bb46f1 parent 8241475
1 file changed, +24 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-stripe-write-http1.md +24 −0

CI passed — run details

diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-stripe-write-http1.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-stripe-write-http1.md
new file mode 100644
index 000000000..a0c05c3e1
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-stripe-write-http1.md
@@ -0,0 +1,24 @@
+# Review brief: branch stripe-write-http1, round 1 of 3
+
+Repo carlos/platform, branch `stripe-write-http1`, the commit that adds this brief (named in your prompt).
+Under review: the diff `origin/main...HEAD` (internal/billingstripe/client.go newWriteTransport and a new test file).
+
+The bug: newWriteTransport cloned http.DefaultTransport, whose TLS config already offered "h2" by ALPN once DefaultTransport had been used, while the transport itself was HTTP/1.1-only (ForceAttemptHTTP2 false, empty TLSNextProto). Stripe negotiated h2 and every billing POST failed with "malformed HTTP response", classified as no response. Reproduced on the dev console against the Stripe sandbox; the fix was confirmed against the real sandbox (a customer create now succeeds through Provider.Send).
+
+## What to check
+
+1. The write transport offers only http/1.1 by ALPN, never shares or mutates DefaultTransport's TLS config, and keeps the plan 6b write-path properties: keep-alives off, no automatic resend of a keyed POST (GetBody nil), the same timeouts and redirect refusal.
+2. The tests really exercise an h2-capable TLS server through the write path and would fail without the fix; no test leaks global state (DefaultTransport) into others.
+3. Anything else in internal/billingstripe that builds a transport or client with the same flaw (the read client, the portal, webhook-related calls).
+
+## 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.
+
+## Output
+
+Findings ranked P1, P2, P3 with file:line, failure scenario and fix. 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.