Skip to content

feat(engine): limit findings returned per scan #64

Description

@Ramzi-Abidi

Problem

Scanners such as CSV can generate very large finding arrays.

This increases memory usage, response size, logging cost, and may expose excessive uploaded content.

Proposed fix

Add maxFindings with a safe default.

Add result metadata:

findingsTruncated?: boolean;
totalFindings?: number;

Built-in scanners should stop collecting findings once their budget is exhausted.

Acceptance criteria

  • Result never contains more than configured limit
  • Blocking decision remains correct
  • Truncation clearly reported
  • CSV stops allocating findings after limit
  • Custom scanner behavior documented

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions