Guides · ← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team · 6 min read

Deterministic Eval Scanning: Same Input, Same Report, Every Time

A measurement that changes its mind is an opinion. Determinism is the quiet property that makes every other EvalEgress feature — diffs, gates, chains, trends — mean anything at all.

The short answer: run the same declared files through EvalEgress twice and you get the same findings, the same order, the same score — byte-stable where it matters, because the scanner is pattern matching plus published arithmetic and nothing else: no sampling, no model, no account history, no network state. Findings are sorted by severity, file, line, class and id, so even the list order is a function of the input alone. That is what lets a baseline diff mean 'your files changed', a CI verdict be fair, and a trend line be a trend. Prove it to yourself with the free scan: scan a file set, change nothing, scan again.

What is deterministic scanning?

Deterministic scanning means the report is a pure function of the declared input: identical files in, identical findings, ordering and score out, on any account, at any time. The scanner achieves it by construction — fixed patterns for 16 classes, fixed severity weights (25/15/8/3), a fixed sort — with no randomness, live data or learned component anywhere in the pipeline.

What breaks without determinism?

Everything downstream, quietly. A baseline diff against a non-deterministic scanner reports 'new exposures' that are really the sampler's mood, and the first false block teaches the team to dismiss the gate. A trend line over a wandering ruler measures the ruler. Two teams scanning the same folder for a handover get two reports and a meeting about whose is right. Evidence shown to a reviewer months later cannot be re-derived, so its authority rests on trust in the tool's memory. Each failure is small; together they are why teams stop believing scanners and go back to vibes — determinism is the property that keeps the whole evidentiary economy denominated.

The property is cheap to keep and expensive to retrofit, because it forbids tempting features: no 'smart' severity adjustments per account, no live enrichment of findings, no heuristic re-ranking. EvalEgress's scoring is a published table and an addition sum — a design that looks plain beside learned risk scores and outlasts them, for the same reason a metre stick outlasts a estimate: anyone can check it against the thing it measures.

Where is determinism load-bearing in the product?

In the CI verdict first: new versus pre-existing versus resolved is a set difference between two reports, meaningful only if unchanged files yield unchanged findings — determinism is the verdict's entire premise. In the boundary graph: edges appear and disappear as findings do, so the graph's changes are file changes, drawn honestly. In the evidence pack: findings copied verbatim from a stored report can be re-derived by re-scanning the same declared set, which a reviewer is free to do — the pack invites its own audit. And in scan history: a score series over a quarter is a record of the folder's contents changing, full stop, which is what makes it presentable to leadership without footnotes.

Even finding identity is deterministic: each finding carries an id derived from its file, line and class, so the same pattern in the same place is recognisably the same finding across reports — the join key that lets diffs, histories and closures refer to findings as persistent objects rather than as similar-looking rows.

How do you keep your side of the bargain?

Determinism is a contract: the scanner's output is a pure function of the input, and you control the input. Scan the identical declared set when you intend comparability — the same set definition, the same files — and record the set with the report, so a future delta is attributable: files changed, or set changed, never 'the scanner felt different'. When the set definition legitimately grows (a new side service declared), say so in the run record; the score will move, and the movement will have a named cause that is not a regression.

Resist normalising scores across different sets to force comparability — the trend-per-set rule from the scoring guide. A suite whose declared set doubles has not 'gotten worse'; it has gotten more visible, which is progress wearing a worse number. Report the set size beside the score and the pair tells the truth.

Worked example: Halcyon Grid Software, scored end to end

Example. Halcyon Grid, a fictional energy-software firm, adopted the CI gate and, in its first month, watched it block a change the team swore was 'config-only'. The diff named three new exposures; the author insisted the scanner had changed its mind about an old file. The team re-ran the baseline scan on the untouched main branch in the meeting:

FindingClassSeverityWeight
Generic secret assignment in the newly added worker config (new)generic_secret_assignmentHIGH15
Service bound to 0.0.0.0 in the newly added worker config (new)open_bindingMEDIUM8
Debug route string in the newly added worker config (new)debug_routeLOW3

The arithmetic: 15 + 8 + 3 = 26 points of exposure, so the score is 100 − 26 = 74/100, grade C. 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.

The main-branch re-scan reproduced the baseline report exactly — same findings, same order, same score — and the three blocked findings traced to a worker config the change had added from a tutorial, secret assignment and all. The gate's credibility in that organisation dates from that meeting: the ruler demonstrably had not moved, so the conversation stayed on the files, the config was rebuilt, and the re-run passed with an empty new-exposure list.

Use determinism well: the five actions

Hold the input steady, trust the output:

  1. Verify the property once, yourselves. Scan a set, change nothing, scan again, and diff the reports. A team that has watched the outputs match argues about files thereafter, never about the ruler.
  2. Fix the declared set definition under version control. Comparability requires an identical input; the set list is a reviewed artefact, changed deliberately and recorded when it changes.
  3. Record the set size beside every score. A score without its set is half a fact — growth in coverage moves numbers for good reasons, and the record should say so.
  4. Let diffs drive reviews. New, pre-existing, resolved: the CI classification is the meeting agenda, because determinism guarantees each label means a file event.
  5. Never average or normalise across sets. Trend per set. Forced comparability manufactures certainty the input does not support — the one sin determinism exists to prevent.

Determinism sounds like an implementation detail until a gate, a graph or a pack depends on it — then it is the foundation. The features built on it include the CI verdict and the evidence chain.

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, eval scan limits: files, size and lines, using a secrets manager for eval credentials, rotating credentials found in eval files. EvalEgress is one of the Ingenious AI platforms.

Sources

Frequently asked questions

Is the report literally byte-identical between runs?
The findings, their order and the score are functions of the input alone — that is the guarantee that matters, and timestamps or presentation chrome do not enter findings, ordering or arithmetic.

Could a scanner update change results for the same input?
New classes or weights would be a product change, versioned and visible — the scanner carries a version identifier (evalscope 1.0.0) for exactly this reason. Within a version, identical input means identical output.

Why no AI in the scanning itself?
A learned component would make findings probabilistic — the same file could score differently across runs or accounts, dissolving diffs, gates and evidence. Pattern classes are less glamorous and entirely auditable; for a boundary audit, auditable wins.

Does determinism make the CI gate fair?
It makes it mechanical: exit 1 exactly when the current scan introduces an exposure the baseline lacks. Fairness follows from the verdict being re-derivable by anyone who re-runs both scans.

What if two findings are truly identical in one file?
Ordering still resolves: severity, file, line, class and the finding id — itself derived from the finding's coordinates — give every finding a stable, unique place in the list.