carlos / platform Public

review: Astra brief for gitleaks-1251, round 3 of 3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 614cc4ae228f6def225d1a9fc49189a4aecd229a parent c057934
1 file changed, +53 −0
  • docs/superpowers/reviews/REVIEW-BRIEF-gitleaks-1251.md +53 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-gitleaks-1251.md b/docs/superpowers/reviews/REVIEW-BRIEF-gitleaks-1251.md
new file mode 100644
index 000000000..78b696947
--- /dev/null
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-gitleaks-1251.md
@@ -0,0 +1,53 @@
+# Review brief: branch gitleaks-1251, round 3 of 3
+
+Repo carlos/platform, branch `gitleaks-1251`, commit c057934314434f290a5d89459f8dc5dd7fee68f6.
+Under review: the diff `origin/main...c057934314434f290a5d89459f8dc5dd7fee68f6`.
+Authorities: amadan #1251 (the design), AGENTS.md ("Stopping rules").
+
+**Round history.** This design had two earlier rounds on branch race-helpers:
+`docs/superpowers/reviews/FINDINGS-race-helpers-R1.md` (on main) rejected a
+path-plus-hex allowance; a scoped check then rejected whole-line patterns
+because the census entry's second field accepted arbitrary text. Stopping
+rule 2 applied and Paul chose to split gitleaks out with a tighter design.
+This is the last round.
+
+You are the independent reviewer. The invariant: **an allowance can only
+ever hide an approved digest, never a credential.**
+
+The design: `.gitleaks.toml` holds 35 exact anchored values and no shape
+patterns; `scripts/gitleaks-gate` runs the scan and accepts a finding as a
+digest only if the whole line is a valid census or checklist entry AND the
+reported secret is that entry's digest field; a self-test plants generated
+keys (38 cases) and requires each to be reported.
+
+## What to check
+
+1. Try to break the invariant. Can any credential, in any field of a census
+ entry, the JSON checklist, a chunk boundary, a multi-line value, a
+ comment after an entry or an ordinary file, pass the gate or the 35
+ exact values? Does the gate parse gitleaks' report so a crafted line or
+ secret can't confuse it (Match vs Secret vs Line, encoded or decoded
+ findings)?
+2. Known limit: a 64-character lowercase hex value in the digest field is
+ accepted. Does the census test independently fail a digest that isn't
+ the real source digest, so a real key there can't reach main? Verify
+ for both census entries and the checklist file.
+3. Fails closed: bad or missing config, missing binary, wrong version,
+ truncated or unparsable report, zero files scanned.
+4. Does the self-test run in CI on every run, and fail if planted keys go
+ unreported?
+5. Are all 35 exact values really non-secrets?
+6. README, AGENTS.md and the step header match 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. A NOT READY
+in this round also says whether cutting the step would be better. Do not
+edit files, spawn reviewers or run full suites.