Repository navigation
Migrate LLM evals to the Vally harness - #877
Conversation
Skill Coverage Report
Uncovered:
|
|
The dispatched end-to-end CI run referenced in the description is here:
Both were What the run actually proves (verified from the logs):
Caveat worth flagging: because the job stops at the token gate, the run does not exercise the actual eval execution, Minor: |
JanKrivanek
left a comment
There was a problem hiding this comment.
Looks good as is.
There will likely be change in scoring - but we can consider it a new baseline.
We should also observe if the eval results + session data storing works as expected after the flip.
Collapses the parallel skill-validator + Vally eval pipeline into a single Vally-only path while preserving every capability skill-validator provided: PR gate, PR comment, dotnet/skills-data historical push, and the dashboard. The skill-validator `check` linter is retained (skill-check.yml) pending microsoft/vally #463. - evaluation.yml: delete build-validator and the skill-validator `evaluate` job; single `evaluate:` job now uses vally-evaluation.yml. Forward the COPILOT_PAT_0..9 pool onto it (from #911) so the reusable workflow's token gate is satisfied. Rewire comment-on-pr / report-status / publish-* / deploy-dashboard onto `evaluate` and vally-results-* artifacts. - vally-evaluation.yml: pin @microsoft/[email protected]; keep the #911 prepare guard; write the generated per-plugin experiment to $GITHUB_WORKSPACE so relative eval globs resolve. - adapt.mjs: reconcile #887's runCompareWithRetry + conclusive/unmatched hardening with the consolidation helpers (nonActivation, compareByStim, roleToDashboard, etc.). Add consolidate.mjs and gen-experiment.mjs. - build-replay-sessions.ps1: read Vally executor-session-logs/events.jsonl instead of skill-validator session output. - Rename all tests/*/*/eval.vally.yaml to eval.yaml (Vally format is now the only eval format); author Vally evals for the four skills that lacked one. - CONTRIBUTING.md + InvestigatingResults: point contributors at the Vally harness; drop non-public links. Co-authored-by: Copilot <[email protected]>
0b3c791 to
9a260fc
Compare
The hand-authored setup-local-sdk eval used skill-validator grader/environment schema that Vally rejects at validation (no stimuli executed): - file-contains/file-not-contains graders require 'value:' not 'substring:' (output-contains correctly keeps 'substring:'). - environment.files entries require 'src:'/'dest:' (copy a fixture) rather than inline 'path:'/'content:'. Moved the global.json body into fixtures/global.json. Verified with 'vally lint --eval-spec' (0 errors) across all 97 eval.yaml. Co-authored-by: Copilot <[email protected]>
…vals-to-vally # Conflicts: # tests/dotnet-template-engine/template-authoring/eval.vally.yaml # tests/dotnet-template-engine/template-authoring/eval.yaml # tests/dotnet-template-engine/template-comparison/eval.vally.yaml # tests/dotnet-template-engine/template-comparison/eval.yaml # tests/dotnet-template-engine/template-instantiation/eval.vally.yaml # tests/dotnet-template-engine/template-instantiation/eval.yaml # tests/dotnet-template-engine/template-smart-defaults/eval.vally.yaml # tests/dotnet-template-engine/template-smart-defaults/eval.yaml # tests/dotnet-template-engine/template-validation/eval.vally.yaml # tests/dotnet-template-engine/template-validation/eval.yaml # tests/dotnet-test-migration/migrate-mstest-v1v2-to-v3/eval.vally.yaml # tests/dotnet-test-migration/migrate-mstest-v1v2-to-v3/eval.yaml
Co-authored-by: Copilot <[email protected]>
- Consolidate run-vally-evals.sh into a single neutral entrypoint eng/run-skill-evals.sh (deletes the thin wrapper; adapt.mjs stays in eng/vally-adapter/ since CI invokes it directly) - Rename reusable workflow vally-evaluation.yml -> evaluation-run.yml and update all references/self-trigger regexes - Rename local output dir vally-results -> eval-results - Bake prerequisite preflight (Node 20+, GITHUB_TOKEN/gh) into the runner - Simplify CONTRIBUTING "Running tests locally" prerequisites - Scrub harness name from consumer-facing surfaces Co-authored-by: Copilot <[email protected]>
Overfitting detection previously ran inside skill-validator's `evaluate`
command, which the Vally migration replaced, so it silently stopped running.
Reinstate it as a standalone step wired into the Vally pipeline:
- Add `skill-validator overfitting` command that discovers skills, parses
each eval.yaml, runs the existing OverfittingJudge, and emits
[{plugin, skill, overfittingResult}] JSON (per-skill failures non-fatal,
bounded parallelism).
- Add a Vally-format parser bridge (ParseEvalConfigFlexible) so the judge
handles the current stimuli/graders eval.yaml format; the legacy
scenarios-only parser rejected all 98 evals, so the judge never ran.
- adapt.mjs: merge overfitting results onto each verdict via
--overfitting <file> (keyed by plugin/skill); output is byte-identical
when the flag is absent.
- evaluation-run.yml: build skill-validator (shared cache with check),
run the judge per leg reading GITHUB_TOKEN, and pass --overfitting to
adapt.mjs so the dashboard/skills-data consume it unchanged.
Co-authored-by: Copilot <[email protected]>
Resolve evaluation.yml conflict in favor of the reusable evaluation-run.yml structure (the migration extracts the evaluate job); re-apply the Dependabot grouped action bumps (#918) to evaluation.yml and evaluation-run.yml so the pinned SHAs match main. Co-authored-by: Copilot <[email protected]>
|
❌ Evaluation failed. View workflow run |
PR #919 landed on main adding fresh Vally specs for three coverage-gap skills (setup-local-sdk, convert-blazor-server-to-webapp, dotnet-webapi) under the interim eval.vally.yaml filename. This branch collapses to a single Vally spec named eval.yaml, so the merge left each skill with both my migrated eval.yaml and #919's newer eval.vally.yaml (a git-clean but semantic duplicate the pipeline would not discover). Adopt #919's reviewed Vally content as the canonical eval.yaml for all three skills and drop the redundant eval.vally.yaml files, preserving the 'sole eval.yaml, zero eval.vally.yaml' invariant. Content is byte-identical to #919's blobs (b14121c / 47d4382 / 18a9362), which already passed vally-evaluate on main. Co-authored-by: Copilot <[email protected]>
|
❌ Evaluation failed. View workflow run |
Adds a standalone cross-family evaluation workflow that runs every runnable skill through a matrix of executor models, judged head-to-head (skilled vs baseline) by `vally compare`, with judge != executor family. It intentionally lives under the existing `vally-evaluation.yml` filename so it is dispatchable from a feature branch WITHOUT a merge to main: workflow_dispatch only registers workflow files that exist on the default branch, and vally-evaluation.yml already does. Cherry-pick this single commit onto your branch, push, then dispatch with --ref <your-branch>. Eval-spec filename auto-derives from dotnet-skills.experiment.yaml so it works whether the repo globs eval.vally.yaml (current main) or eval.yaml (post-#877). NOT intended to merge to main as-is: doing so would replace main's reusable shadow-eval vally-evaluation.yml (its workflow_call path). This is a cherry-pick / dispatch source only. Co-authored-by: Copilot <[email protected]>
Adds a standalone cross-family evaluation workflow that runs every runnable skill through a matrix of executor models, judged head-to-head (skilled vs baseline) by `vally compare`, with judge != executor family. It intentionally lives under the existing `vally-evaluation.yml` filename so it is dispatchable from a feature branch WITHOUT a merge to main: workflow_dispatch only registers workflow files that exist on the default branch, and vally-evaluation.yml already does. Cherry-pick this single commit onto your branch, push, then dispatch with --ref <your-branch>. Eval-spec filename auto-derives from dotnet-skills.experiment.yaml so it works whether the repo globs eval.vally.yaml (current main) or eval.yaml (post-#877). NOT intended to merge to main as-is: doing so would replace main's reusable shadow-eval vally-evaluation.yml (its workflow_call path). This is a cherry-pick / dispatch source only. Co-authored-by: Copilot <[email protected]>
Adds a standalone cross-family evaluation workflow that runs every runnable skill through a matrix of executor models, judged head-to-head (skilled vs baseline) by `vally compare`, with judge != executor family. It intentionally lives under the existing `vally-evaluation.yml` filename so it is dispatchable from a feature branch WITHOUT a merge to main: workflow_dispatch only registers workflow files that exist on the default branch, and vally-evaluation.yml already does. Cherry-pick this single commit onto your branch, push, then dispatch with --ref <your-branch>. Eval-spec filename auto-derives from dotnet-skills.experiment.yaml so it works whether the repo globs eval.vally.yaml (current main) or eval.yaml (post-#877). NOT intended to merge to main as-is: doing so would replace main's reusable shadow-eval vally-evaluation.yml (its workflow_call path). This is a cherry-pick / dispatch source only. Co-authored-by: Copilot <[email protected]>
Hosts the cross-family executor x plugin evaluation matrix under evaluation-run.yml so it is dispatchable on any branch before merging to main (workflow_dispatch is only registered for filenames present on the default branch, and #877 removed the previous host vally-evaluation.yml). - Executor x plugin (x shard) matrix; judge != executor family (default judge = latest Opus; GPT when Opus executes). - Inputs: plugins (empty=all), skills (empty=all), executors (default opus,gpt,sonnet46,haiku,mai), runs, workers, shards, timeout_minutes. - EVAL_SPEC filename auto-derived from dotnet-skills.experiment.yaml's evals: glob (works with eval.yaml on current main or eval.vally.yaml). NOT FOR MERGE: this replaces main's reusable evaluation-run.yml and drops its workflow_call trigger. Cherry-pick / dispatch source branch only. Co-authored-by: Copilot <[email protected]>
Hosts the cross-family executor x plugin evaluation matrix under evaluation-run.yml so it is dispatchable on any branch before merging to main (workflow_dispatch is only registered for filenames present on the default branch, and #877 removed the previous host vally-evaluation.yml). - Executor x plugin (x shard) matrix; judge != executor family (default judge = latest Opus; GPT when Opus executes). - Inputs: plugins (empty=all), skills (empty=all), executors (default opus,gpt,sonnet46,haiku,mai), runs, workers, shards, timeout_minutes. - EVAL_SPEC filename auto-derived from dotnet-skills.experiment.yaml's evals: glob (works with eval.yaml on current main or eval.vally.yaml). NOT FOR MERGE: this replaces main's reusable evaluation-run.yml and drops its workflow_call trigger. Cherry-pick / dispatch source branch only. Co-authored-by: Copilot <[email protected]>
Picks up the Vally-harness eval migration (#877) and related infra so the /evaluate workflow can discover and run this PR's evals. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 3c9f9823-7f2f-4f7d-9d1b-f2b9e7a20c60
…ally harness schema Adapts both eval.yaml files from the legacy scenarios/assertions format to the stimuli/graders/config schema introduced by #877 (Migrate LLM evals to the Vally harness). Prompts and rubrics are preserved verbatim; assertions map 1:1 to graders (file_contains->file-contains, run_command_and_assert-> run-command, output_matches->output-matches) and copy_test_files-> environment.files. Validated with `vally experiment run --dry-run`: both evals now resolve and match the experiment filter (previously matched none). Co-authored-by: Copilot App <[email protected]> Copilot-Session: 3c9f9823-7f2f-4f7d-9d1b-f2b9e7a20c60
…ally harness schema Adapts both eval.yaml files from the legacy scenarios/assertions format to the stimuli/graders/config schema introduced by #877 (Migrate LLM evals to the Vally harness). Prompts and rubrics are preserved verbatim; assertions map 1:1 to graders (file_contains->file-contains, run_command_and_assert-> run-command, output_matches->output-matches) and copy_test_files-> environment.files. Validated with `vally experiment run --dry-run`: both evals now resolve and match the experiment filter (previously matched none). Co-authored-by: Copilot App <[email protected]> Copilot-Session: 3c9f9823-7f2f-4f7d-9d1b-f2b9e7a20c60
…ally harness schema Adapts both eval.yaml files from the legacy scenarios/assertions format to the stimuli/graders/config schema introduced by #877 (Migrate LLM evals to the Vally harness). Prompts and rubrics are preserved verbatim; assertions map 1:1 to graders (file_contains->file-contains, run_command_and_assert-> run-command, output_matches->output-matches) and copy_test_files-> environment.files. Validated with `vally experiment run --dry-run`: both evals now resolve and match the experiment filter (previously matched none). Co-authored-by: Copilot App <[email protected]> Copilot-Session: 3c9f9823-7f2f-4f7d-9d1b-f2b9e7a20c60
…ally harness schema Adapts both eval.yaml files from the legacy scenarios/assertions format to the stimuli/graders/config schema introduced by #877 (Migrate LLM evals to the Vally harness). Prompts and rubrics are preserved verbatim; assertions map 1:1 to graders (file_contains->file-contains, run_command_and_assert-> run-command, output_matches->output-matches) and copy_test_files-> environment.files. Validated with `vally experiment run --dry-run`: both evals now resolve and match the experiment filter (previously matched none). Co-authored-by: Copilot App <[email protected]> Copilot-Session: 3c9f9823-7f2f-4f7d-9d1b-f2b9e7a20c60
Summary
Switches dotnet/skills to use the Vally harness as the sole LLM eval engine, fully replacing skill-validator's
evaluatecommand across every surface — PR gate, PR comment, scheduled runs, the dotnet/skills-data historical push, and dashboard publishing. skill-validator'schecklinter is retained unchanged (still built + run viaskill-check.yml) pending Vally linter support (microsoft/vally#463). skill-validator'soverfittingjudge is also retained (Vally has no equivalent) and now runs alongside the Vally comparison, feeding overfitting flags into the same results the dashboard/skills-data consume.What changed
Workflows
.github/workflows/evaluation.ymlto orchestrate the Vally path; all security gating preserved (actor write-perm check, bot trust, numericpr_numbervalidation, fork detection,pull_request_targetgating, matrix-entry allowlist, SHA-pinned actions,persist-credentials: false)..github/workflows/vally-evaluation.ymlas the Vally engine (permissions: contents: read, allowlisted dispatch inputs, matrix-entry validation, PAT pool).Data layer —
eng/vally-adapter/adapt.mjs— splits avally experiment runby eval file, runsvally compareper skill, emits per-skillresults.json(compare verdict for gating + absolute per-role dashboard fields). Added--overfitting <file>to merge the retained judge's per-skill result ontoverdict.overfittingResult(guarded: when the flag is absent the property is never added, so output stays byte-identical).consolidate.mjs— builds the PR-comment (simple) and step-summary (full) tables.gen-experiment.mjs— appends a whole-plugin variant per leg.run-vally-evals.shlocal runner;InvestigatingResults.mdtriage guide.Overfitting (retained skill-validator judge)
skill-validator overfittingcommand runs the LLM overfitting judge with no agent trajectories (it previously only ran inside the retiredevaluate, so it silently stopped under Vally until this change).EvalSchema.cs(ParseEvalConfigFlexible) lets the judge read the migrated Vally-formateval.yamlspecs directly.evaluation-run.ymlbuilds the shared skill-validator archive and runsoverfittingper leg before adapting; failures are non-fatal (informational signal, never breaks an eval leg).Dashboard — rewrote
eng/dashboard/build-replay-sessions.ps1for Vally'sexecutor-session-logslayout.generate-benchmark-data.ps1consumesverdict.overfittingResult(per-scenariorubricAssessments/assertionAssessments/promptAssessments, verdict-level fallback) unchanged.Specs & docs — added
dotnet-skills.experiment.yaml; eval specs use the filenameeval.yamlwith Vally-format content (renamed from the interimeval.vally.yaml; zeroeval.vally.yamlfiles remain). UpdatedCONTRIBUTING.md; deprecation banner on the old validator doc.End-to-end proof (real CI, not just unit tests)
Dispatched the actual workflow on real GitHub Actions (
workflow_dispatch, branch ref,plugin=dotnet-nuget):discoversucceeded — repointed infra-change triggers + filename-agnosticeval.yamldiscovery work; matrix built correctly.gate/pr-status/fork-pr-statuscorrectly skipped;evaluate/preparesucceeded; the Vally job ran npm install of@microsoft/[email protected]+ matrix-entry validation.copilot-pat-poolsecret gate — a pre-existing environment branch policy that scopes tokens tomain. Verified not a regression:vally-evaluation.ymlonmainalready usedenvironment: copilot-pat-poolwithCOPILOT_PAT_0..9; the diff only touches comments.issue_comment/pull_request_targetalways runmain's YAML (documented security model), so the real/evaluatepath gets tokens.Also validated the real Vally CLI against the migrated specs via
vally experiment run --dry-run: the plan resolvesbaseline+skilled+pluginvariants against the renamedtests/**/eval.yaml, withagent.*correctly excluded.Locally re-verified end-to-end (latest revision
e82d0c3c)Re-ran every seam I could exercise off-CI against the current merged tree. All green:
OverfittingCommandTests)adapt.mjs)node --test adapt.test.mjsoverfittingcommand againsttests/dotnet/setup-local-sdkofflineeval.yaml→ invokes judge (reaches the realLlmSessionLLM call); offline it times out, handled non-fatally → writes[], exit 0--overfittingmerge into resultsadapt.mjson a fixture, with and without the flagverdict.overfittingResultpopulated (severity/score/rubricAssessments); without → property absent (byte-identical guard proven)generate-benchmark-data.ps1on a full-shape results.jsonoverfitting=high, overfittingScore=0.72; baseline correctly unflagged; per-scenario match onrubricAssessments[].scenarioconsolidate.mjs --format simpleand--format fullactionlinton all changed workflowschecklinterCI on the PR head is green across the required checks (Native AOT
buildon 5 platforms,check,analyze,actionlint,lint,discover,codeowners,pr-status,comment, CLA).evaluation-statusshows pending by design — it stays pending until a maintainer posts/evaluate(same behavior asmain).Bug found & fixed by the end-to-end proof
The dry-run surfaced a real defect: vally resolves an experiment's relative
evals:/environment.skillspaths against the experiment file's directory, not the process CWD. The per-leg experiment (with the appendedpluginvariant) was written underartifacts/, sotests/*/.../eval.yamlmatched zero files and every eval would have been silently dropped onmain. Fixed by generating it at the content root ($GITHUB_WORKSPACE). Re-verified: at the content root the dry-run resolves all three variants; underartifacts/it resolves zero.A second correctness issue was caught in multi-model review:
adapt.mjsassignedverdict.overfittingResultunconditionally, so non-overfitting output wasn't byte-identical to before. Fixed by guarding the assignment behind the--overfittingflag (see the table above).Remaining verification (needs a call)
Actual token-spending agent trajectories + the PR-comment + skills-data push are gated to
main/allowlisted branches by thecopilot-pat-poolpolicy, so they can't run from this feature branch. To exercise that last leg with real tokens before merge, the branch would need to be temporarily allowlisted tocopilot-pat-pool(repo-admin action). Otherwise it's exercised on the first/evaluateafter merge.Follow-up
Co-authored-by: Copilot [email protected]