Repository navigation
Harden vally comparison reliability - #887
Conversation
Retry transient comparison errors once, surface unmatched trajectories, and mark degraded reports as inconclusive. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 33efeadb-dcc9-4005-a63f-c5d832b06f45
There was a problem hiding this comment.
Pull request overview
This PR hardens the “vally shadow evaluation” path by making comparison results more reliable (retrying transient judge errors) and more explicit (surfacing unmatched trajectories), and updates CI rendering + documentation so inconclusive comparisons don’t look like skill regressions.
Changes:
- Add a one-time retry for
vally comparewhen the report contains errored trials, preferring the retry result if it reduces errors. - Preserve and report unmatched baseline/treatment trajectories, and classify affected verdicts as inconclusive (cannot pass).
- Render inconclusive shadow results as warnings in the GitHub Actions summary, and document how to interpret these reliability signals; add focused adapter tests.
Show a summary per file
| File | Description |
|---|---|
| eng/vally-adapter/adapt.test.mjs | Adds node-based tests for retry behavior and unmatched trajectory surfacing. |
| eng/vally-adapter/adapt.mjs | Implements retry logic, adds conclusive + unmatched fields to verdicts, and adjusts pass/fail + summary icon behavior. |
| eng/skill-validator/src/docs/InvestigatingResults.md | Documents how to interpret erroredCount, unmatched trajectories, and conclusive in vally shadow verdicts. |
| .github/workflows/vally-evaluation.yml | Updates shadow-results summary rendering to show inconclusive verdicts as warnings. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 4/4 changed files
- Comments generated: 0
Targeted Sonnet validationI reran
This reproduces the upstream baseline executor reliability problem and validates this PR’s containment behavior: the seven matched comparisons are no longer presented as a complete skill verdict. |
Harden test diagnostics, pass workflow paths as arguments, and clarify the shadow-result schema. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 33efeadb-dcc9-4005-a63f-c5d832b06f45
Skill Validation Results
[1] (Isolated) Quality unchanged but weighted score is -0.5% due to: efficiency metrics Model: claude-opus-4.6 | Judge: claude-opus-4.6 🔍 Full Results - additional metrics and failure investigation steps
▶ Sessions Visualisation -- interactive replay of all evaluation sessions |
|
✅ Evaluation passed for |
|
👋 @artl93 — this PR has 1 unresolved review thread(s). When you're ready, please address the feedback and push an update; the triage bot will pick up the next state automatically. (Add the |
Keep shadow evaluation reliability documentation with its implementation. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 33efeadb-dcc9-4005-a63f-c5d832b06f45
Skill Validation Results
[1] (Isolated) Quality unchanged but weighted score is -0.0% due to: efficiency metrics
Model: claude-opus-4.6 | Judge: claude-opus-4.6 🔍 Full Results - additional metrics and failure investigation steps
▶ Sessions Visualisation -- interactive replay of all evaluation sessions |
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]>
* Make Vally the sole LLM eval engine, retiring skill-validator evaluate 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]> * Fix setup-local-sdk eval for Vally schema 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]> * Fix markdownlint violations in migration docs Co-authored-by: Copilot <[email protected]> * Address PR review feedback on eval migration - 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]> * Reinstate overfitting detection under the Vally harness 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]> * Reconcile #919 Vally eval configs into the sole eval.yaml convention 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]> --------- Co-authored-by: Copilot <[email protected]>
Summary
vally compareonce when its report contains comparison-judge errors, keeping the result with fewer errorsThe investigation confirmed the reported
analyzing-dotnet-performancefailure was a transient comparison timeout, while baseline agent timeouts were silently omitted as unmatched treatment trajectories. No skill, fixture, or eval content changes are needed.Validation
node --check eng/vally-adapter/adapt.mjsnode --test eng/vally-adapter/adapt.test.mjsdotnet run --project eng/skill-validator/src/SkillValidator.csproj -- check --plugin ./plugins/dotnet-diagactionlint -shellcheck= -pyflakes=for all hand-authored workflowsanalyzing-dotnet-performanceSonnet 4.6 experiment locally with five workers: 18 of 22 trials succeeded and four baseline trials timed out atsession.idleafter 180 seconds; all 11 skilled trials completed. The updated adapter emittedconclusive: false,erroredCount: 0, and four named unmatched treatment trajectories rather than treating the seven matched comparisons as a complete result.This validates the adapter’s containment behavior. The recurring baseline executor timeout remains an upstream Vally reliability issue.
Upstream tracking
Fixes #885
Quality and overfitting improvements remain separate in #886.