Run Your First Eval
This is the third and final step to run your first eval.
Run these commands from the same shell where you configured the runtime. You’re ready to scaffold a spec, execute an agent, capture a trajectory, and grade the results.
You need Node.js >=22.15.0, the Vally CLI, and a GitHub account with an active Copilot
subscription.
-
Scaffold a starter eval
vally initwrites a starter spec so you don’t have to start from an empty file:Terminal window vally initThis creates
evals/hello/eval.yaml. -
Run the eval
Terminal window vally eval \--eval-spec evals/hello/eval.yaml \--output-dir ./results \--verbosevally evalvalidates the spec before running the agent.A successful run ends with a passing summary and the saved artifact paths:
────────────────────────────────────────────────────────SummaryPASS helloSaved ./results/<timestamp>/
What vally init created
Section titled “What vally init created”The generated spec defines one stimulus: a prompt asking the agent to
write a hello.json file. Deterministic graders check the result without needing a judge model.
name: hellodescription: A minimal example eval — the agent writes a small hello.json and we check it.type: capability
defaults: timeout: 2m
stimuli: - name: greeting-json prompt: | Create a file named hello.json that describes a greeting. It must be valid JSON with two fields:
- "message": a short, friendly greeting - "language": the two-letter code "en" graders: - type: file-exists config: path: hello.json - type: file-matches config: path: hello.json pattern: '"language"\s*:\s*"en"' - type: file-matches config: path: hello.json pattern: '"message"\s*:\s*".+"'Understanding the output
Section titled “Understanding the output”As your eval runs, the terminal shows which workers are active and updates the summary
as each stimulus finishes all its repetitions. Failures include grader evidence to help
you understand what went wrong; use --verbose to see passing result cards and more
failure detail.
At completion, the summary shows PASS, FAIL, or FLAKY. If evidence is
truncated in the terminal, the saved results and session logs contain the full details.
Metrics
Section titled “Metrics”Every eval run captures a trajectory — a record of everything the agent did:
| Metric | What it means |
|---|---|
| Tokens | Total input + output tokens across all LLM calls |
| Turns | Number of agent conversation turns |
| Tool calls | How many tools the agent invoked |
| Wall time | Real clock time for the run |
| Skills used | How many skills were activated by the agent |
Grader results
Section titled “Grader results”Each grader produces a pass/fail with evidence explaining why:
✔ file-exists Files matching 'hello.json' found: hello.json— the grader checked, file exists, passed.✘ file-matches Pattern /"language"\s*:\s*"en"/ not found in any file matching 'hello.json'— the grader checked, pattern missing, failed.
Verdicts
Section titled “Verdicts”By default, every grader is must-pass (must_pass: true): a stimulus passes only if all of its must-pass graders passed (you can set must_pass: false on an individual grader to make it advisory). See Scoring for how verdicts and multi-trial metrics work.
Optional: Re-grade saved trajectories
Section titled “Optional: Re-grade saved trajectories”Each run’s results.jsonl contains one trial-result record per trial, with the full trajectory
embedded inline. Pipe it back through vally grade to re-score with different graders without
re-running the agent:
cat ./results/<timestamp>/results.jsonl | vally grade --eval-spec evals/hello/eval.yamlWhat to try next
Section titled “What to try next”| If you want to… | Start here |
|---|---|
| Add or improve behavior checks | Choose a grader |
| Test a multi-turn conversation | Write a multi-turn eval |
| Compare a model or configuration | Run your first experiment |
| Automate an eval quality gate | Add Vally to CI |
| Understand verdicts and multi-trial metrics | Understand scoring |
| Diagnose a validation or run failure | Debug an eval |
| Explore results across runs | Start the dashboard |