carlos / platform Public

review: Astra brief for audit-request-path, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 2d1f36fdbf4ee5b7b8128ba3893cda755a043d65 parent 9604346
1 file changed, +68 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-audit-request-path.md +68 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-audit-request-path.md b/docs/superpowers/reviews/REVIEW-BRIEF-audit-request-path.md
new file mode 100644
index 000000000..cef95fea9
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-audit-request-path.md
@@ -0,0 +1,68 @@
+# Review brief: branch audit-request-path, round 1 of 3
+
+Repo carlos/platform, branch `audit-request-path`, commit 9604346a0cd833bbe39cbd5d97f5f2d6c2234083.
+Under review: the diff `origin/main...9604346a0cd833bbe39cbd5d97f5f2d6c2234083` (base 15b1ee6b).
+Authorities: AGENTS.md on main ("The census", "Stopping rules"). Context:
+amadan discussion #1123 (Go audit backlog, first batch item 3).
+
+You are an independent reviewer. Read the diff, then the code it touches,
+and check every claim in the commit messages against that code.
+
+You are also the census reviewer for this branch: the card is
+`docs/superpowers/notes/census-proposal-audit-request-path.md`. Give a
+verdict for every unit and envelope it lists, citing the lines you read,
+per AGENTS.md "Getting a change approved" step 4.
+
+## What to check
+
+1. IdleTimeout (120 s, `publicIdleTimeout`) on five public servers: does
+ any of them carry long-lived traffic an idle timeout could cut (held
+ streams #432, WebSockets #471, tunnels, hijacked connections)? Go's
+ IdleTimeout applies only between requests on keep-alive connections;
+ confirm nothing here relies on a different behaviour. Is 120 s right
+ against the NLB's 350 s default and the 90 s backhaul client idle?
+2. `tcpUpstreamDialer` (30 s Timeout and KeepAlive): link-local refusal
+ from 15b1ee6b still enforced on every path that used it?
+3. `waitHealthyCtx` / `waitHealthyAddrCtx`: cancellation is prompt, no
+ goroutine or connection outlives the call, success and timeout paths
+ behave as before for every caller (list the callers you checked). The
+ deleted `waitHealthy`/`waitHealthyAddr`: truly unused outside tests?
+4. Plan-disabled throttle key: now built only from box-controlled values
+ (logThrottled's contract in edge.go)? Any other logThrottled caller
+ still keyed on remote input?
+5. New tests: would each fail against the old code? Do any rely on
+ wall-clock sleeps that could flake on a loaded CI runner?
+6. Cross-compile: anything Linux-only in files the darwin/windows CLI
+ build links?
+
+## 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. (The
+ census, and review of any newly changed security, root, termination
+ or production-storage behaviour, still check the fix; see AGENTS.md,
+ "Stopping rules".)
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for
+ another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not
+raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives the section or task, the problem,
+the evidence (file:line, verified), the failure scenario, a concrete
+fix and the invariant or trust boundary it breaks (that is its fault
+family). Then the census verdict per unit and envelope. End with exactly
+one verdict:
+
+- **READY**: no P1 and no P2.
+- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another
+ round.
+- **NOT READY**: one or more P1s, listed.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites; targeted `go test -run` on a
+single package at `nice -n 19` is allowed if you need evidence, with
+GOCACHE unset.