Skip to content

Anatomy of an eval

A pipeline from left to right: a task card; the teal robot agent inside a glass workspace with a folder and documents; an unrolled transcript; a magnifying glass, a checklist and a peach robot judge with a clipboard; and a score gauge with a green check.

One trial, from the task to the score.

Every eval, whatever tool runs it, has the same parts. Learn them once, and Vally’s YAML, the GitHub Copilot Evals screens and other eval tools all start to read the same. This page is the reference the labs point back to.

A trial is one run of one task. Here’s what happens in every trial:

What happens in one trial
  • Vally the eval runner
  • Agent under test started by the executor
  • Graders checks and judges
  • Trial record results.jsonl
  1. Vally: Takes one task In Vally, a stimulus: the prompt and its inputs.
  2. Vally: Prepares the environment A fresh workspace with the skills and files the task needs.
  3. Vally to Agent under test: The executor starts the agent And sends the prompt. copilot-sdk runs GitHub Copilot.
  4. Agent under test: Works Turns, tool calls, skill use: the transcript records each one.
  5. Agent under test to Vally: Finishes With an answer, and a workspace it may have changed.
  6. Vally to Graders: Hands over the evidence Each grader reads the answer, the transcript or the workspace.
  7. Graders to Vally: Pass or fail, a score, evidence One result per grader.
  8. Vally to Trial record: Records the verdict The score against the threshold: the trial passes or fails.

Then the same task runs again, several times, and the eval reports the pass rate: how many trials passed.

Eval (eval spec)

One file that describes a complete test: the tasks, the environment, the checks and the settings.

Think of it as: a test file with several test cases

Where you see it: a *.eval.yaml file in evals/

Task (stimulus)

One request to the agent: the prompt, plus everything specific to that request. Vally calls it a stimulus; other tools say task or test case.

Think of it as: one test case

Where you see it: stimuli:, each with a name and a prompt

Environment

What the agent finds when it starts: skills, files, settings. Vally builds a fresh, isolated workspace for every trial, so one trial can't affect the next, and nothing else from your repository reaches the agent.

Think of it as: a clean test fixture

Where you see it: agent_environment: with skills and files

Agent under test

The AI agent whose behavior you measure: a model, plus its instructions and tools. In the labs: GitHub Copilot with the release-notes skill.

Think of it as: the system under test

Where you see it: defaults.model, and the skill in agent_environment.skills

Executor (harness)

The part of Vally that starts and drives the agent. copilot-sdk runs GitHub Copilot. mock runs no model at all: it returns the prompt as the answer, to test the checks.

Think of it as: the test runner's driver

Where you see it: defaults.executor

Trial

One run of one task. Agents vary, so you run several trials of each task.

Think of it as: one roll of the dice

Where you see it: defaults.runs, or --runs on the command line

Transcript (trajectory)

The full record of a trial: messages, tool calls and their results, tokens and timing. It tells you how the agent got its answer.

Think of it as: a flight recorder

Where you see it: results.jsonl and the trial folders under vally-results/

Outcome

What the trial produced: the final answer, plus the state of the workspace afterwards (for example, whether a file changed).

Think of it as: the end state you assert on

Where you see it: the answer in the transcript; files in the trial's workspace

Grader (check)

One test of the outcome or the transcript. It returns pass or fail, a score from 0 to 1, and evidence: why it decided that. Vally says grader; the GitHub Copilot Evals screens say check.

Think of it as: one assertion

Where you see it: graders: under each stimulus; each has a type, a name and a config

Code grader

A grader that checks something exactly, without a model: does the answer contain a text, does a file contain a value, was a skill used. Fast, free and the same every time.

Think of it as: assertEquals

Where you see it: output-contains, file-contains, skill-invocation

LLM judge

A grader that asks a second model to read the answer and decide against written criteria. For qualities code can't check, such as tone. Slower, costs tokens, and needs checking itself.

Think of it as: a reviewer with a checklist

Where you see it: a grader with type: prompt

Rubric

The written criteria an LLM judge applies, one per line. It's the specification for the judge: vague criteria give inconsistent judgments.

Think of it as: the reviewer's checklist

Where you see it: rubric: under a stimulus

Score and threshold

A trial's score is the average of its graders' scores. The threshold is the score a trial needs to pass. With threshold: 1, every check must pass.

Think of it as: the pass mark of an exam

Where you see it: scoring.threshold

Pass rate

How many trials passed, such as 2 of 3. With several trials, Vally also reports pass@k and pass^k.

Think of it as: a batting average

Where you see it: the Pass Rate column in eval-results.md

Suite

A named group of evals you run together, for example everything tagged for CI.

Think of it as: a test suite

Where you see it: suites: in .vally.yaml; run with --suite

Baseline and variant

To compare a change, you run the same eval twice: the baseline (before) and a variant (after), with exactly one thing different.

Think of it as: the control group and the test group

Where you see it: an experiment file in experiments/

This is the eval you’ll run in Lab 3, with each part marked:

evals/release-notes.eval.yaml
name: release-notes-completed-only # the eval
description: The release-notes skill announces completed work only and leaves the in-progress status in backlog.json alone.
type: capability # intent: "can the agent do this yet?"
defaults:
executor: copilot-sdk # executor: runs GitHub Copilot
model: claude-sonnet-5.5 # the agent's model
runs: 3 # trials per task
timeout: 120s
agent_environment: # environment, rebuilt for every trial
skills:
- ../.github/skills/release-notes # the skill under test
files:
- src: ../backlog.json
dest: backlog.json
scoring:
threshold: 1 # every check must pass
stimuli:
- name: completed-work-only # the task (stimulus)
prompt: Write the release notes for this release from backlog.json.
graders: # the checks
- type: output-contains # code grader on the answer
name: leaves-out-unfinished-export
config: { substring: CT-102, negate: true }
- type: output-contains
name: includes-done-search
config: { substring: CT-101 }
- type: output-contains
name: includes-done-dark-mode
config: { substring: CT-103 }
- type: skill-invocation # code grader on the transcript
name: release-notes-skill-used
config:
required:
- release-notes
- type: file-contains # code grader on the workspace
name: backlog-still-in-progress
config:
path: backlog.json
value: '"status": "in-progress"'

Notice the three things the graders look at: the answer (output-contains), the transcript (skill-invocation: did the agent use the skill?), and the workspace (file-contains). A complete eval checks all three where it matters.

This workshop Vally YAML GitHub Copilot Evals screens Other tools often say
Task stimuli Task, case Test case, sample
Grader graders Check Evaluator, metric, scorer
Transcript Trajectory Transcript, evidence Trace, log
Trial Run (runs) Attempt Epoch, repetition

Workshop created by Jeffrey Groneberg · Connect on LinkedIn

The illustrations are AI-generated (MAI-Image-2.6). Command output comes from real runs with Vally 0.21.0 in November 2026.