carlos / platform Public

review: Astra brief for staticcheck-sa1012, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 09b2f3502baffe03d03cacfd5335c6cb3e744db8 parent 83c7c2f
1 file changed, +38 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa1012.md +38 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa1012.md b/docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa1012.md
new file mode 100644
index 000000000..fbacd295e
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa1012.md
@@ -0,0 +1,38 @@
+# Review brief: branch staticcheck-sa1012, round 1 of 3
+
+Repo carlos/platform, branch `staticcheck-sa1012`, commit 83c7c2f56a49a4ee82c7160b01453d641f9fdee6.
+Under review: the diff `origin/main...83c7c2f56a49a4ee82c7160b01453d641f9fdee6` (base 5048247f).
+Authorities: the Go code-health plan (batch 3), AGENTS.md ("The census",
+"Stopping rules").
+
+You are the independent reviewer and census reviewer (card:
+`docs/superpowers/notes/census-proposal-staticcheck-sa1012.md`, 152 units).
+The branch replaces nil contexts with context.Background() (174 sites, 151
+in internal/registry production code) and turns SA1012 on.
+
+## What to check
+
+1. In internal/registry/remote.go `remoteClient.call` and `acquire`: does
+ context.Background() behave exactly as nil did (the request-slot wait,
+ q.Deadline, the AfterFunc)? Is there any other code path, in or out of
+ the registry, that branches on `ctx == nil` and now takes a different
+ branch? Search for every such comparison.
+2. internal/activator/swaphold.go: Background kept on purpose rather than
+ sctx. Is that the same behaviour as before?
+3. Audit that every production change is only the replacement (no other
+ edit hidden in 151 sites). A scripted check of the diff is welcome.
+4. The 8 test sites kept as nil with lint:ignore: reasons true?
+5. Census: one verdict may cover the mechanical class if you verified it
+ for every unit by script; list any unit that differs from the class.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work.
+- **P2**: wrong or missing. Fixed without reopening this review.
+- **P3**: clarity or polish. Follow-up list only.
+
+## Output
+
+Findings ranked P1, P2, P3 with file:line, failure scenario and fix. Then
+the census verdict. End with exactly one verdict: READY, READY AFTER
+FIXES, or NOT READY. Do not edit files, spawn reviewers or run full suites.