review: Astra round 4 findings for gitleaks-1251 (READY)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+21
−0
docs/superpowers/reviews/FINDINGS-gitleaks-1251-R4.md+21 −0
CI passed — run details
diff --git a/docs/superpowers/reviews/FINDINGS-gitleaks-1251-R4.md b/docs/superpowers/reviews/FINDINGS-gitleaks-1251-R4.md| new file mode 100644 |
| index 000000000..47d39591d |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/FINDINGS-gitleaks-1251-R4.md |
| @@ -0,0 +1,21 @@ |
| +Reviewed `origin/main...8ea340c26149f7c0afa3c85a1d7ac7457cea13a8`, round 4 of 4, within the brief’s fixed scope. The change after its named commit, `99612d24`, is the review brief alone. |
| + |
| +**No P1, P2 or P3 findings.** |
| + |
| +- **Both R3 P1s are closed.** `judge.go` is deleted. The wrapper no longer approves findings by digest shape or source line. In [main.go:219](/home/paulca/amadan.net/carlos/platform-gitleaks-1251/scripts/gitleaks-gate/main.go:219), only a finding matching both the generated sentinel’s exact filename and exact value is set aside; every other reported finding remains. |
| + |
| +- **Exclusions are exact paths.** [main.go:247](/home/paulca/amadan.net/carlos/platform-gitleaks-1251/scripts/gitleaks-gate/main.go:247) obtains unquoted, NUL-delimited paths from Git. The exclusion lookup compares those full strings directly, before filesystem path conversion. There is no glob, prefix, suffix, case folding or cleaning in that comparison. Git’s canonical index paths prevent `./`, `..` and trailing-slash aliases. Symlinks and submodules do not satisfy a listed regular-file entry, so substituting either leaves the entry unsatisfied and fails the gate. All 26 current entries are unique, tracked regular files. |
| + |
| +- **The rename-and-replace edge is acceptable under the chosen contract.** Renaming listed file A to B makes B eligible for scanning. Removing A without replacement fails the stale-entry check. If the same commit installs new content at A, A remains excluded. That follows the explicitly accepted limitation that credentials at named paths are not found; it does not widen the exclusion to B. |
| + |
| +- **The sentinel cannot overwrite a copied file.** [main.go:200](/home/paulca/amadan.net/carlos/platform-gitleaks-1251/scripts/gitleaks-gate/main.go:200) uses `O_CREATE|O_EXCL` after copying tracked files. A collision fails before writing. Creation, write and close errors propagate. [selftest.go:192](/home/paulca/amadan.net/carlos/platform-gitleaks-1251/scripts/gitleaks-gate/selftest.go:192) calls production `scanTree`, which calls production `copyTracked`. Its required findings cover the former sentinel filename, an unlisted census file and three near misses per exclusion. Restoring the former fixed-name overwrite would remove a required finding and fail this test. |
| + |
| +- **The requested failure paths reject the scan.** Missing or wrong-version binaries, invalid or missing configuration, unreadable or malformed/truncated JSON, inconsistent report/exit status, zero copied files, a missing sentinel finding, stale exclusions and tracked `.gitleaksignore` files have rejection paths. The self-test runs before the repository scan. |
| + |
| +- **Documentation and allowances match the implementation.** The config header, CI step, Makefile, README and AGENTS.md identify the omitted digest files and their exact-path list. The documentation explicitly acknowledges the credential blind spot. None still describes an active digest judge. The remaining allowance definitions and comments are byte-for-byte unchanged from R3; only the 9B8 fragment allowance was removed. |
| + |
| +Shell syntax and Go formatting checks passed. `git diff --check` reported only two Markdown hard-break lines in the committed R3 findings. |
| + |
| +The complete wrapper/self-test was not executed because this sandbox prohibits filesystem writes. Network restrictions prevented independently reading amadan #1251; the review uses the ruling recorded in the R4 brief. No files were changed, reviewers spawned or full suites run. |
| + |
| +READY |
| \ No newline at end of file |