review: Astra brief for fix-dbforward-reuse-1032, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+52
−0
docs/superpowers/reviews/REVIEW-BRIEF-fix-dbforward-reuse-1032.md+52 −0
CI passed — run details
diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-fix-dbforward-reuse-1032.md b/docs/superpowers/reviews/REVIEW-BRIEF-fix-dbforward-reuse-1032.md| new file mode 100644 |
| index 000000000..6f7273028 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/REVIEW-BRIEF-fix-dbforward-reuse-1032.md |
| @@ -0,0 +1,52 @@ |
| +# Review brief: branch fix-dbforward-reuse-1032, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `fix-dbforward-reuse-1032`, commit 3b3d2235446a630b9e77b19588769c9b44d89122. |
| +Under review: the diff `origin/main...3b3d2235446a630b9e77b19588769c9b44d89122` (base a23423b7). |
| +Authorities: amadan #1032, AGENTS.md ("The census", "Stopping rules"). |
| + |
| +You are the independent reviewer and census reviewer (card: |
| +`docs/superpowers/notes/census-proposal-fix-dbforward-reuse-1032.md`: |
| +Edge.ServeHTTP body change, new unit declaredBody.Read). This is the |
| +**tenant request path** of every edge. |
| + |
| +Claimed root cause: net/http's transport, after writing a request body's |
| +declared bytes upstream, reads once more to confirm EOF; on HTTP/1.1 the |
| +server closes the inbound request body when the response head is written; |
| +when the upstream streams its first line at once, the edge writes the |
| +head before that confirming read, the read gets "invalid Read on closed |
| +Body", and the transport closes the upstream connection mid-stream. The |
| +fix: Edge.ServeHTTP hands the drain tracker a request whose body reports |
| +EOF at its declared length (withDeclaredBodyEnd / declaredBody). |
| + |
| +## What to check |
| + |
| +1. Is the root cause right (read the Go 1.26.10 net/http transport and |
| + server code it cites)? Is the fix complete for every edge proxy path |
| + (unix, tcp, backhaul, multi, held, tunnel, WebSocket upgrade, asset |
| + cache, page cache)? |
| +2. Correctness of declaredBody: ContentLength -1 / chunked bodies, |
| + ContentLength 0, a client sending fewer bytes than declared (must |
| + still error, not silently truncate), more bytes than declared, |
| + Expect: 100-continue, request smuggling (CL/TE conflicts must still |
| + be rejected as before), hijack/upgrade paths, GetBody/retries, body |
| + size limits (MaxBytesReader) still enforced, Close semantics. |
| +3. Any behaviour change on a request path a tenant would notice? |
| +4. EnableFullDuplex was rejected (panics); demo_api.go and handoverExit |
| + still use it: real risk to file? |
| +5. Tests: the new deterministic test fails on the old code; the |
| + -count=20 runs and the 0/400 loop. |
| +6. Census verdicts. |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. |
| +- **P2**: wrong or missing. Fixed without reopening this review (request |
| + path and census changes in the fix still get a scoped check). |
| +- **P3**: clarity or polish. Follow-up list only. |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3 with file:line, failure scenario and fix, and |
| +the invariant each breaks. Then census verdicts. End with exactly one |
| +verdict: READY, READY AFTER FIXES, or NOT READY. Do not edit files, spawn |
| +reviewers or run full suites. |