review: Astra brief for audit-aws-timeouts, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+77
−0
docs/superpowers/reviews/REVIEW-BRIEF-audit-aws-timeouts.md+77 −0
CI failed — run details
diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-audit-aws-timeouts.md b/docs/superpowers/reviews/REVIEW-BRIEF-audit-aws-timeouts.md| new file mode 100644 |
| index 000000000..08ead4cc2 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/REVIEW-BRIEF-audit-aws-timeouts.md |
| @@ -0,0 +1,77 @@ |
| +# Review brief: branch audit-aws-timeouts, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `audit-aws-timeouts`, commit bfe0e558be1d07011d84cba795b8ed786d718926. |
| +Under review: the diff `origin/main...bfe0e558be1d07011d84cba795b8ed786d718926` (base 15b1ee6b). |
| +Authorities: AGENTS.md on main ("The census", "Stopping rules"). Context: |
| +amadan discussion #1123 (Go audit backlog, first batch item 1). |
| + |
| +You are an independent reviewer. Read the diff, then the code it touches, |
| +and check every claim in the commit messages against that code. This |
| +branch changes **production storage** behaviour: every AWS client the |
| +platform builds through internal/rootaws, including the root host agent's. |
| + |
| +You are also the census reviewer: the card is |
| +`docs/superpowers/notes/census-proposal-audit-aws-timeouts.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. `internal/rootaws/stall.go`: ResponseHeaderTimeout 120 s and a |
| + body-idle timeout 120 s that runs only while a Read is waiting. Can it |
| + ever cut a transfer that is making progress, or a caller that pauses |
| + between reads (streamed GetObject handed to a slow consumer, multipart |
| + or manager uploads, S3 Select/streaming APIs, presigned flows)? Does the |
| + timer leak (goroutine or timer per body) or race with Close? Is the |
| + error surfaced so the SDK retries it sensibly? |
| +2. Installing one HTTP client per loaded config: any loss of an existing |
| + option (AWS_CA_BUNDLE, custom endpoints via s3compat, defaults modes, |
| + caller-supplied HTTP clients overriding ours or being overridden)? |
| + Ordering: bounds are added ahead of caller options; can a caller |
| + option silently remove them, and is that acceptable? |
| +3. Shared connection pool across service clients from one config: any |
| + effect on behaviour or limits? |
| +4. Values: 120 s each, so a stalled call with 3 SDK attempts fails in |
| + about 6.5 min at worst. Is that consistent with the per-request limits |
| + already in the tree (hostbox.RequestLimit, lease stagingRequestTimeout, |
| + generationRequestLimit)? Would a shorter value break anything you can |
| + name? |
| +5. `internal/host/movescut.go`: error-path lease releases now go through |
| + `releaseLease` (10 s) and log a failure instead of dropping it. Any |
| + ordering change against the renewer stop or the cut's state? |
| +6. The implementer's list of sites NOT covered (grouprollaws, hostfence, |
| + mail/sessend, hostenv SSM non-root path, movesstore, NewStagingMirrorAt, |
| + cmd/moveprobe): is any root-side one a real gap that should be covered |
| + in this branch rather than a follow-up? |
| +7. Tests: would each fail against the old code? Any wall-clock sleeps that |
| + could flake on a loaded runner? |
| + |
| +## 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. |