Secrets scan until clean
Run a secrets scanner over the working tree and drive the findings to zero: real secrets get flagged for rotation, false positives get baselined.
Implementation note
Rotation itself stays human-owned: the loop replaces and flags but never sees rotation flows. The never-print rule keeps credentials out of the transcript.
Source: looprepo ↗graded D · 30/100 — how grades work (Safety Score v2) →
Similar loops
All security loops →Burn down critical security findings
Run your static analyzer on the security ruleset, fix one high-severity finding at a time, re-verify, and loop until zero remain or 10 turns pass.
Audit the system from evidence
Read-only pass that verifies architecture, security, platform behavior, ops, and business logic from current evidence, not assumptions.
Burn down CVEs by reachability
Rank dependency CVEs by reachability and exposure, apply one bounded fix, and verify the whole project before moving on.