carlos / platform Public

review: Astra brief for small-fixes-1246-1248, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 9217723bbce3ef573136b0f90cb53bc80e1c06b5 parent 31210cc
1 file changed, +47 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-small-fixes-1246-1248.md +47 −0

CI passed — run details

diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-small-fixes-1246-1248.md b/docs/superpowers/reviews/REVIEW-BRIEF-small-fixes-1246-1248.md
new file mode 100644
index 000000000..bd7f7aee2
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-small-fixes-1246-1248.md
@@ -0,0 +1,47 @@
+# Review brief: branch small-fixes-1246-1248, round 1 of 3
+
+Repo carlos/platform, branch `small-fixes-1246-1248`, commit 31210ccba1a758f040304a6b4a72a208a28a12b2.
+Under review: the diff `origin/main...31210ccba1a758f040304a6b4a72a208a28a12b2`.
+Authorities: amadan #1246 and #1248, AGENTS.md ("The census", "Stopping rules").
+
+You are the independent reviewer and census reviewer (card:
+`docs/superpowers/notes/census-proposal-small-fixes-1246-1248.md`).
+
+## What to check
+
+1. **#1248, the tenant request path (internal/edge/demo_api.go).** On the old
+ code an early answer on the demo API alias, with the upload still
+ arriving, could panic net/http ("invalid concurrent Body.Read call") or
+ make the next keep-alive request answer 400. The fix: an HTTP/1 answer
+ sent before the body has fully arrived sends Connection: close, and the
+ handler discards the rest of the body for at most exitLingerBound (1 s)
+ through watchBody and finishEarlyAnswer.
+ - Is the root cause right, and is the fix complete on the local and
+ backhaul paths? Any window left where the transport still reads the
+ body when the handler returns?
+ - Request smuggling: can bytes after the early answer ever be read as a
+ new request on any path?
+ - Can a slow client hold a handler past the bound?
+ - Does a normal upload, fully received before the answer, keep its
+ connection? HTTP/2 unchanged?
+ - Alias refusals (503, 429) that leave the body unread also close the
+ connection: right choice?
+2. **#1246 (internal/host/replicaplacement.go).** Failures log at most once
+ per backoff step; retry timing unchanged. Should the provision.Incarnation
+ and reg.Get errors log too? Is one line enough when a record changes on
+ every attempt and the backoff never advances?
+3. Tests: does each fail on the old code; flake risk on a loaded runner?
+4. 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. 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.