| new file mode 100644 |
| index 000000000..d254ab5db |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/FINDINGS-race-helpers-R1.md |
| @@ -0,0 +1,27 @@ |
| +Reviewed `origin/main...f8014804fbe1dd7e450c6bddb4b9b8032b840dc3`, round 1. The difference from the brief’s named commit, `302b9886`, is only the brief itself. |
| + |
| +- **P1 — The census allowance also suppresses real hexadecimal credentials.** |
| + [.gitleaks.toml:32](/home/paulca/amadan.net/carlos/platform-race-helpers/.gitleaks.toml:32) allows every `generic-api-key` finding consisting of 10–64 lowercase hexadecimal characters anywhere in matching census files or `implementation/always-awake-consumers.json`. It does not check whether the value occupies a source-digest field. |
| + |
| + **Failure scenario:** someone copies a real hexadecimal API key into a census test—for example, an `api_key = "…"` assignment. Both allowance conditions match, so the new security step silently accepts it. |
| + |
| + **Evidence:** the pinned v8.30.1 executable detected a synthetic 64-character hexadecimal API key through stdin and returned exit 1. The configured path and value expressions both match that value in an existing census-file path. Inspection of v8.30.1’s `checkFindingAllowed` confirms that this conjunction suppresses the finding. This conclusion combines the detector check with source inspection; I did not plant a file in the worktree. |
| + |
| + **Fix:** retain the path restriction, but match the actual census-entry or JSON digest-field structure using `regexTarget`, or enumerate exact approved digests. Verify that a synthetic hexadecimal credential elsewhere in the same files still fails. |
| + |
| + **Fault family:** secret-scanning exceptions must distinguish approved source digests from credentials. |
| + |
| +No additional P2 or P3 findings. |
| + |
| +The remaining checks found: |
| + |
| +- **No production Go changes:** all 78 changed Go files are tests. The other changes concern CI, configuration and documentation. |
| +- **Race gate:** discovery and shards receive `-race`; nonzero job statuses propagate to failure. Normal mode retains its existing commands. The bcrypt timing exclusion and reduced simulation seeds are consistent with the tests and documented scope. |
| +- **Excluded packages:** the README explicitly records activator’s unfinished cleanup work and lease’s dependency race. Cached litestream sources confirm that v0.5.14 closes databases before stopping monitors, while v0.5.18 reverses that order. |
| +- **Log capture:** the shared buffers synchronize reads, writes and resets. Review across all three packages found no additional assertion regression from the migration. |
| +- **Test fixes:** the rootfs cgroup-reader installation, separate claimstop context, wakecheck callback cleanup and concurrent bootstrap pipe drain address their stated failures. |
| +- **Ratchet:** only lowered—one sleep allowance removed and one function-length allowance reduced from 332 to 330. |
| + |
| +Shell syntax checks and `git diff --check` passed. The cached, pinned gitleaks executable rejected synthetic hexadecimal and GitHub-shaped credentials. Full suites were not run. The read-only sandbox prevented Go build-directory creation, so the complete Make targets were not executed. No files were changed or reviewers spawned. |
| + |
| +NOT READY |
| \ No newline at end of file |