Guides · ← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team · 7 min read
Batch Eval Scanning: Auditing a Whole Folder in One Run (Up to 50 Files)
A single-file scan answers 'is this config clean?'. A batch scan answers the question that matters: 'what can this eval reach?' — across every file it runs with.
The short answer: Batch scanning exists because eval exposure is usually a path whose legs live in different files. a batch scan (Pro, up to 50 files per run) reads the eval's whole declared set at once — harness configs, policies, infrastructure declarations, side-service configs, CI files — and returns one report in which cross-file combinations are visible: the credential in one file, the wildcard in a second, the open rule in a third, scored together. That joint view is the product: single-file scans cannot see a path whose legs live in different files, and eval exposure is almost always a path. Organise batches by boundary (one eval environment per run), include every category the declared-surface guide lists, and start from the free scan to see the single-file shape before stepping up.
What is a batch scan?
A batch scan is a single EvalEgress run over many declared files at once — up to 50, the scanner's MAX_FILES — producing one findings list and one score for the set. Findings retain their per-file locations, and the set-level score aggregates every file's findings, so the report prices combinations that span files.
Why does the joint report change the findings' meaning?
Because exposure is relational. A credentials file alone is a rotation task; a policy file alone is a scoping task; a network file alone is an enumeration task. Together they are a route an agent can walk, and the joint report is the only artefact that prices the route — the score falls by the sum of all three, and the triage conversation starts from the combination rather than from three separate tickets in three separate weeks. Teams that scan file-by-file routinely 'fix' the loudest file and leave the route standing with two legs; the batch report's single list, sorted by severity across all files, makes that error visible in a way per-file hygiene cannot.
The joint view also exposes provenance. Findings cluster in copied folders and inherited stacks; a batch report makes the cluster undeniable — nine findings, one source directory — and converts the remediation from line-editing to the allow-list rebuild, which is the correct unit of work for inherited exposure.
How should a batch be composed?
By boundary: all and only the files one eval environment runs with. The harness and its environment files; the IAM and resource policies, as declared; infrastructure files carrying network rules, storage ACLs and service bindings; the side services' configs (metrics, logging, viewers, auth helpers); the CI configuration that injects the run's credentials; and any bundle or export that was pasted into the workspace as content. Fifty files covers a realistic environment with headroom — the cap is the engine's, shared with the plan, and most environments declare in at twenty to forty files when generated bulk is excluded. What does not belong: other environments' files (their findings would pollute this boundary's score and ownership), and generated mega-artefacts that belong split into their source files, per the limits guide.
Keep the batch definition as a file list under version control — the declared set — so the human batch, the CI diff and the evidence pack's foundation scan are the same set by construction. A batch that varies by who ran it is a measurement with a variable instrument.
What do you do with a 50-file report?
Work it as one incident with one order: the triage method (paths first, CRITICAL, HIGH by folder, MEDIUM/LOW in the same pass) applied to the joint list, with owners assigned per file cluster. Then re-run the identical batch after fixes — the second report is the closure evidence, and because the scan is deterministic, every delta between the two reports is a fix or a regression, attributable line by line. File the pair with the run record; over quarters, the sequence of batch reports per boundary is the programme's assurance spine, the artefact from which packs, graphs and diligence exhibits are all derived.
Resist splitting a stubborn batch to make the score prettier. Score-shopping by set design — excluding the policy file because it 'always fails' — manufactures the blind spot the batch exists to eliminate. If a category perpetually fails, that is the programme's most important finding wearing a scheduling costume.
Worked example: Rowan & Frost Engineering, scored end to end
Example. Rowan & Frost, a fictional engineering firm, had scanned single files for a year — each config 'mostly clean' — before running its first full batch over the eval environment's 34 declared files. The joint report reframed the year:
| Finding | Class | Severity | Weight |
|---|---|---|---|
| AdministratorAccess referenced in the role policy file | admin_managed_policy | CRITICAL | 25 |
| AWS secret access key assignment in the CI configuration | aws_secret_access_key | HIGH | 15 |
| Wildcard IAM service ("s3:*") in the same policy file | wildcard_iam_service | HIGH | 15 |
| Public-read ACL on the results bucket declaration | public_bucket_acl | HIGH | 15 |
| Debug mode enabled in the metrics service settings | debug_mode_enabled | MEDIUM | 8 |
The arithmetic: 25 + 15 + 15 + 15 + 8 = 78 points of exposure, so the score is 100 − 78 = 22/100, grade F. Scoring uses EvalEgress's published weights — CRITICAL 25, HIGH 15, MEDIUM 8, LOW 3 — with grades at A ≥ 90, B ≥ 75, C ≥ 50 and D ≥ 25.
Individually, each file had been somebody's minor ticket. Jointly, they described a complete path — CI-held credentials, an admin role, a public archive — and the remediation was reorganised as one programme: identity rebuilt (scoped role, manager-held secrets, CI injecting references), storage made private, debug closed in the stack. The re-run batch over the identical 34 files reported zero findings. The firm's retrospective line: 'We did not have five small problems. We had one medium-sized diagram we had never drawn.'
Run batches that mean something: the five actions
One boundary, whole set, same set:
- Define the batch as the boundary's full declared set. Harness, policies, infrastructure, side services, CI — every category, version-controlled as a file list so humans and gates scan identically.
- Exclude other environments and generated bulk. Other boundaries get their own batches and owners; generated artefacts are declared as their source files, keeping findings pointed at editable configs.
- Work the joint report as one incident. Paths first, then CRITICAL, HIGH by folder cluster, the rest in the same pass — owners per cluster, one closure date for the set.
- Re-run the identical batch to close. Determinism makes the delta attributable; the clean second report over the same 34 (or however many) files is the evidence.
- Never edit the set to improve the score. A perpetually failing category is a programme finding, not a set-design problem. Fix the files; the set stays whole.
Batch is where the scanner stops being a spell-checker and becomes an audit. The set definition discipline comes from declared-surface scanning; the limits that shape it are in the limits guide.
Keep checking the boundary
Run the free exposure scan on the files your next eval will run with. Compare plans, read the scoring documentation, and keep reading: what is eval-to-production exposure?, what is egress in AI evaluation?, pre-deployment eval safety checklist, how to stop an AI evaluation from reaching production secrets, JSON report export for eval findings, team workflows for eval security, the free eval exposure scan: single file. EvalEgress is one of the Ingenious AI platforms.
Sources
- EvalEgress scoring documentation — the 16 finding classes, severity weights and declared-surface scope every judgement in this guide applies, published 2026.
- Declared-Surface Scanning: Why EvalEgress Only Reads What You Paste — the companion guide this page builds on, published November 14, 2026.
- The free EvalEgress scan — the declared-file scan this guide's checks are performed with.
Frequently asked questions
Why 50 files — what if our environment is bigger?
Split by sub-boundary (the eval stack versus its platform services), each with its own batch, owner and report — the split should follow accountability, not the cap. Most environments declare in well under 50 once generated bulk is excluded.
Is batch available on the free plan?
Free covers single-file scans with the full findings report — the right tool for spot checks. Batch runs (and JSON export) are the Pro tier's core, with Team adding seats and the evidence pack, as /pricing sets out.
Do all files in a batch need to be the same type?
No — the scanner reads declared text of any kind: JSON policies, YAML configs, env files, infrastructure declarations, plain listings. Mixed sets are the normal, intended case.
How does batch scoring work across files?
One deduction per finding, wherever it lives — the set's score is 100 minus the sum of all findings' weights, floored at 0. A set's grade is therefore a property of the whole boundary, which is the point.
Can I save a batch definition?
Keep it as a version-controlled file list beside the harness — the same definition the CI gate consumes, so every scan of the boundary is the same scan.