review: Astra brief for race-helpers, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+48
−0
docs/superpowers/reviews/REVIEW-BRIEF-race-helpers.md+48 −0
CI cancelled — superseded by a newer push — run details
Intent
diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-race-helpers.md b/docs/superpowers/reviews/REVIEW-BRIEF-race-helpers.md| new file mode 100644 |
| index 000000000..acba13b10 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/REVIEW-BRIEF-race-helpers.md |
| @@ -0,0 +1,48 @@ |
| +# Review brief: branch race-helpers, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `race-helpers`, commit 302b9886a720535d5d8b71c058df4860b79cba0d. |
| +Under review: the diff `origin/main...302b9886a720535d5d8b71c058df4860b79cba0d`. |
| +Authorities: the Go code-health plan (batch 3), AGENTS.md ("Build & test", |
| +"Stopping rules"), .amadan/README.md. |
| + |
| +You are the independent reviewer. The branch makes test log capture safe |
| +for concurrency (about 75 test files), fixes two test races and one test |
| +hang, adds `70-race` / `make race` (edge in 16 shards, rootaws, systemd, |
| +host tests named Loop or Lease; 371 s on CI) through GATE_RACE=1 in |
| +.amadan/test-gate.sh, and adds `80-gitleaks` / `make gitleaks` (v8.30.1 |
| +over tracked files, .gitleaks.toml with 211 allowlisted findings). No |
| +production code changes are claimed: confirm that. |
| + |
| +## What to check |
| + |
| +1. **gitleaks allowlist:** is it narrow (paths and specific patterns), or |
| + could a real secret added later slip through it? Any allowlisted value |
| + that is actually a real credential? Does the step fail on a planted |
| + secret, and does it scan what it claims? |
| +2. **Race step:** does it really run with -race on what it says; does |
| + GATE_RACE=1 leave the normal gate unchanged; is skipping |
| + TestLinkPinForwardedFallback and running 50 link seeds justified; do |
| + failures fail the step? activator and lease are left out because of 45 |
| + test-cleanup races and a litestream v0.5.14 Store.Close race: is that |
| + recorded honestly in the README? |
| +3. **Log capture helpers:** correct synchronisation; any test weakened by |
| + the migration (an assertion that no longer sees the log it needs, a |
| + lost t.Cleanup restoring the logger)? Sample broadly across the 75 |
| + files. |
| +4. **Test fixes:** the pty CgroupEvents swap, claimstop ctx reassignment, |
| + wakecheck goroutine ending before cleanups, the bootstrap pipe hang: |
| + each correct? |
| +5. **Ratchet record:** only lowered. |
| +6. README, AGENTS.md and step headers true to the scripts. |
| + |
| +## 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. End |
| +with exactly one verdict: READY, READY AFTER FIXES, or NOT READY. Do not |
| +edit files, spawn reviewers or run full suites. |