Skip to content

Scoring

Verdicts exist at three levels, and all graders are must-pass by default:

Level Covers Passes when
Trial One run of a stimulus Every must-pass grader passes
Stimulus All trials of that stimulus Every trial passed; mixed results are flagged flaky
Eval All stimuli Every evaluated trial passed

runs defaults to 1, so unless you ask for more trials each stimulus has exactly one and the first two levels coincide.

By default, every configured grader is must-pass (must_pass: true): a trial passes only when every must-pass grader passes:

passed = all must-pass graders passed

One failed must-pass grader fails the trial, and a failed trial fails its stimulus and the eval. Grader and execution errors always fail the trial and are reported distinctly from ordinary grader failures.

To record a grader’s result and evidence without gating the trial verdict, set must_pass: false on that grader entry:

eval.yaml
# Within a stimulus:
graders:
- type: file-exists
config:
path: hello.json
- type: token-budget
must_pass: false # advisory: reported without failing the trial
config:
max: 2000

Most graders are binary checks (for example, file-exists or output-contains). LLM judge graders (prompt and panel) rate the agent on a numeric scale (such as scale_1_5 or scale_1_10), map that rating onto 0.0–1.0, and check whether it meets their config.threshold (which defaults to 0.5).

On the default scale_1_5 (where 1 = 0.0, 3 = 0.5, 4 = 0.75, and 5 = 1.0), a rating of 3 or higher passes by default. To require a higher rating (for example, at least a 4 out of 5), set threshold on the grader:

- type: prompt
config:
scoring: scale_1_5
threshold: 0.75 # requires at least 4 out of 5 to pass

Agents are non-deterministic: the same stimulus can pass on one run and fail the next. Set defaults.runs to repeat each stimulus (a positive integer — 0 is rejected). Each trial gets its own pass/fail verdict:

────────────────────────────────────────────────────────
Summary
FLAKY my-eval · 4 trials each
! my-stimulus 3 passed · 1 failed file-contains failed on trial 2
Metric Meaning
Pass rate Trials that passed, e.g. 3/4
pass^k Chance all k trials succeed — p^k. For 3/4: 31.6%
pass@k Whether any trial passed. Per stimulus: 100% or 0%
Flakiness Minority outcome ÷ total. 4/5 passing → 20%

pass^k is the reliability number: 75% per-trial becomes 31.6% over four runs — the gap between “usually works” and “safe to gate CI on”.

pass@k is computed per stimulus with k set to the number of trials you ran, and a run that already succeeded is guaranteed to contain a success — so a stimulus reports either 100% or 0%. Read it as “did this ever work?” The eval-level figure is the mean of those per-stimulus values, so it can land anywhere in between.

Flakiness is flagged whenever outcomes are mixed (FLAKY in the console, 🟡 in markdown reports) and usually means an ambiguous prompt, a tight timeout, or an over-strict grader. Compare a failing trial’s trajectory against a passing one.

Deprecated scoring.weights and scoring.threshold

Section titled “Deprecated scoring.weights and scoring.threshold”

scoring.weights and scoring.threshold are deprecated and ignored at runtime. If an existing eval.yaml includes them, vally lint emits a deprecation warning (scoring-weights-deprecated / scoring-threshold-deprecated), and the eval still runs using the must-pass verdict rules. Configure pass cutoffs directly on the graders that use them (for example, config.threshold on prompt or panel graders).

Surface Shows
Console Per-grader pass/fail counts, trial counts, and verdict
Markdown report Per-grader results, pass rate, pass^k, pass@k, verdict
results.jsonl Per-trial and per-grader outcomes and evidence
JUnit Testcase pass/fail plus multi-trial metrics
Dashboard Per-trial and per-grader outcomes

The console shows aggregate trial counts and flakiness, not a per-trial glyph sequence or trials table. pass@k and pass^k appear in saved markdown reports rather than the console; they are also available in JUnit output.

Goal Configuration
Checks that must all hold Default (must_pass: true on each grader)
Advisory check that doesn’t fail the run must_pass: false on that grader
Judged quality cutoff config.threshold on prompt or panel judge
Context runs Why
Inner loop 1 Fast feedback while writing graders
CI gate 3 Detects flakiness without slowing PRs
Nightly / benchmarks 5–10 Meaningful pass^k, especially with LLM judges