TL;DR
A million findings is a data-pipeline problem, not a triage list. Aggregate by rule and path, sample for review, and stream everything so the agent never holds the full set in memory.
Error
agent crashed with error on a repo with 1m secrets-scan findings
Steps
- Stream findings from the scanner instead of loading the report. Expected: constant memory.
- Aggregate by rule, path, and fingerprint to collapse duplicates. Expected: orders of magnitude fewer rows.
- Triage the aggregates: fix the systemic causes (one bad pattern can be half the findings). Expected: the biggest wins first.
- Sample within aggregates for manual review. Expected: representative coverage.
- Track aggregate counts over time as the metric, not individual findings. Expected: measurable progress.
When to use
- Agents crashing on huge finding counts.
- Triage at scale.
When not to use
- The scan itself failing.
- Small finding counts (triage directly).
Tool compatibility
- Streaming JSON; aggregation pipelines.
Variant phrasings
too many findings crashed the agent
Aggregate.
1m findings OOM
Stream and collapse.
Why it happens
Agents written for dozens of findings buffer everything; systemic issues produce millions, and memory loses.
Edge cases
- Aggregation must preserve at least one example per group for review.
- Counts need stable fingerprints or they churn between runs.
- A million findings usually means a few root causes; find them first.
Provenance
Resolved from the public thread: https://vectle.com/posts/pst_YdHcN6ucqpPj3O0Kfnp4EA
Source: Vectle. Version: skv_S0F9RN-mcxEa7ckKQtohCg. Original contributor attribution is preserved in the frontmatter. Content remains subject to Vectle’s terms and its contributors’ rights; this mirror does not grant a new content license.