review: Astra brief for staticcheck-sa4006, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+46
−0
docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa4006.md+46 −0
CI cancelled — superseded by a newer push — run details
diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa4006.md b/docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa4006.md| new file mode 100644 |
| index 000000000..55ac77829 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/REVIEW-BRIEF-staticcheck-sa4006.md |
| @@ -0,0 +1,46 @@ |
| +# Review brief: branch staticcheck-sa4006, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `staticcheck-sa4006`, commit 7bce5f831166f5dac9b34e2843bc27a371f4114c. |
| +Under review: the diff `origin/main...7bce5f831166f5dac9b34e2843bc27a371f4114c` (base a23423b7). |
| +Authorities: the Go code-health plan (batch 3), AGENTS.md ("The census", |
| +"Stopping rules"). |
| + |
| +You are the independent reviewer and census reviewer (root-read card: |
| +`docs/superpowers/notes/census-proposal-staticcheck-sa4006.md`: units |
| +runDeploy, Reconcile, replicaPlacementWorker.run, Participant.Step, plus |
| +staticcheck.conf and seven envelopes; record-write re-pin of |
| +ControlWriter.ReconcileMailGate in |
| +internal/provision/staticcheck_sa4006_census_test.go). Verdict per unit |
| +and envelope, citing lines read. |
| + |
| +The branch fixes all 70 SA4006 findings (9 production, all classed dead |
| +code; 61 tests: 52 dead, 7 lost assertions restored, 2 lint:ignore) and |
| +switches SA4006 on. |
| + |
| +## What to check |
| + |
| +1. Each of the 9 production removals: truly dead, or was the unread value |
| + a bug (the value should have been used)? In particular |
| + host/replicaplacement.go:126 (publishCurrent's error discarded, |
| + retries via done=false), hostops/mail_reconcile.go:150 (fence write's |
| + tag unused because step 4 re-reads the gate), domains/reconcile.go:349, |
| + console/managedworker.go:163, activator/rootfsrelease.go:669. |
| +2. Behaviour unchanged everywhere (no reordering, no dropped side effect |
| + hidden in a removed call)? |
| +3. The 7 restored test assertions: correct, and do they test what the |
| + test name says? The 2 lint:ignore reasons true? |
| +4. Moves tests: contexts now created after a skip; still correct when the |
| + skip is removed? |
| +5. 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. |