carlos / platform Public

review: Astra brief for staticcheck-sa1019, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 80304c738bf190ed02c2e900213b2f7abbe29a36 parent 2af919b
1 file changed, +41 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa1019.md +41 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa1019.md b/docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa1019.md
new file mode 100644
index 000000000..27f8f405a
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa1019.md
@@ -0,0 +1,41 @@
+# Review brief: branch staticcheck-sa1019, round 1 of 3
+
+Repo carlos/platform, branch `staticcheck-sa1019`, commit 2af919b117dabd4645d386aa5d5349bbae63f4ea.
+Under review: the diff `origin/main...2af919b117dabd4645d386aa5d5349bbae63f4ea` (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-sa1019.md`). The branch
+migrates some deprecated APIs and suppresses the rest with 41 lint:ignore
+comments (16 production, 25 test), then turns SA1019 on.
+
+## What to check
+
+1. **internal/console/apidbclaim.go (ecdsa raw coordinates replaced).** A
+ secret or handle derived from a public key must come out byte-for-byte
+ the same as before for every key, including coordinates with leading
+ zeros. A change here would invalidate existing DB handles or claims.
+2. **internal/demobuild/source.go (tar.TypeRegA).** Same accept and refuse
+ set for tar entries as before, the NUL typeflag included; no new way
+ for a tenant-supplied archive to pass (links, devices, path handling).
+3. **Each lint:ignore in production** (edge/tunnel.go, tunnelclient/
+ upgrade.go, awsmanaged/storage.go, console/store_gate.go): is the
+ stated blocker true, and is the suppression as narrow as it can be? Is
+ any one of them easily migratable, so that it should be migrated now?
+4. The ReverseProxy Director change is claimed to be test-only: confirm no
+ production proxy changed.
+5. New tests pin behaviour; each fails under the mutation claimed?
+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.
+- **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.