summaryrefslogtreecommitdiff
path: root/plugins/security-guidance/tests/test_untracked_cap.py
AgeCommit message (Collapse)Author
2026-10-15security-guidance: stop re-reviewing untracked files past the snapshot cap ↵Mohamed Hegazy
(#6541) * security-guidance: stop re-reviewing untracked files past the snapshot cap The untracked-file snapshot stops at 2,000 entries. Every pre-existing untracked file past the cap looked new on each turn, so the same files were reviewed again and again. Record when a capped snapshot was taken and treat unlisted files older than that as pre-existing. * security-guidance: test the metric that shows the capped-snapshot path preexisting_untracked_excluded stays at the 2,000 cap before this fix and rises above it after, which is how the fix can be confirmed from metrics. No new key.