carlos / platform Public

review: Astra brief for audit-gate-vet-staticcheck, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 4d5862b0470a6f55477cadfd438bb8c9a87fc1cc parent 11602a4
1 file changed, +70 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-audit-gate-vet-staticcheck.md +70 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-audit-gate-vet-staticcheck.md b/docs/superpowers/reviews/REVIEW-BRIEF-audit-gate-vet-staticcheck.md
new file mode 100644
index 000000000..20a0d22ae
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-audit-gate-vet-staticcheck.md
@@ -0,0 +1,70 @@
+# Review brief: branch audit-gate-vet-staticcheck, round 1 of 3
+
+Repo carlos/platform, branch `audit-gate-vet-staticcheck`, commit 11602a453adbac58d12eed62df40e25e921a9c4e.
+Under review: the diff `origin/main...11602a453adbac58d12eed62df40e25e921a9c4e` (base 15b1ee6b).
+Authorities: AGENTS.md on main ("Build & test", "The census", "Stopping
+rules"), .amadan/README.md. Context: amadan discussion #1123 (Go audit
+backlog, first batch item 4).
+
+You are an independent reviewer and the census reviewer. Card:
+`docs/superpowers/notes/census-proposal-audit-gate-vet-staticcheck.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. The new `vet-tags` job in .amadan/test-gate.sh (`go vet -tags
+ rootrunner,carlos_cutover_witness ./...`): does it really compile every
+ tagged test file, and does the plain vet still cover the `!rootrunner`
+ files? Any file with a build tag that is still never compiled by any
+ gate job?
+2. `.amadan/ci.d/40-staticcheck` and `make staticcheck`: pinned, fails on
+ any output, works on the CI runner (module fetch, cache location), does
+ not slow `make test`. Does the GOCACHE rule match the machine policy
+ (default user cache; never a per-task cache)?
+3. `staticcheck.conf`: SA only; the three excluded families (SA1012,
+ SA1019, SA4006) are named with counts. Is any excluded check hiding a
+ real bug that should be fixed here instead? (The implementer reports
+ one: internal/console/apisubdomain.go ~467, a shadowed err; and
+ internal/host/replicaplacement.go:126 ignored errors. Judge whether
+ they belong in this branch or a follow-up.)
+4. Every `//lint:ignore` added: is the reason true? In particular the
+ three production empty critical sections (internal/edge/lbhealth.go,
+ internal/schedule/hostgate.go, internal/tunnelclient/upgrade.go): are
+ they really deliberate barriers?
+5. Production edits (console/apiinstances.go dead slice, demo_jobs.go
+ ignored parameter, hostbox/regionalworker.go empty if): behaviour
+ unchanged?
+6. Test edits for SA4000 etc.: does each test still test what it did?
+7. Docs (.amadan/README.md tables, AGENTS.md, 10-gate header) true to
+ the scripts.
+
+## 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.