Repository navigation
test(evals): a local runner for the affected eval suites, and a lint that every case carries its suite tag - #224
Merged
Merged
Conversation
rajamatt
marked this pull request as draft
November 3, 2026 21:27
kazo0
added a commit
that referenced
this pull request
Nov 13, 2026
- Remove evals/reports/, Test-EvalReports.ps1 and Update-EvalReport.ps1, and the "Eval reports are fresh and passing" step. - Trim the shared script to what Test-EvalCases.ps1 uses and rename it Evals.Common.ps1. - CONTRIBUTING.md and evals/README.md: evals are run locally, not gated. The cases, Test-EvalCases.ps1 and the skill fixes are unchanged. Running the evals in CI is left to #224. Refs #216 Co-Authored-By: Claude Fable 5.2 <[email protected]>
6 tasks done
kazo0
added a commit
that referenced
this pull request
Nov 13, 2026
- Remove evals/reports/, Test-EvalReports.ps1 and Update-EvalReport.ps1, and the "Eval reports are fresh and passing" step. - Trim the shared script to what Test-EvalCases.ps1 uses and rename it Evals.Common.ps1. - CONTRIBUTING.md and evals/README.md: evals are run locally, not gated. The cases, Test-EvalCases.ps1 and the skill fixes are unchanged. Running the evals in CI is left to #224. Refs #216 Co-Authored-By: Claude Fable 5.2 <[email protected]>
kazo0
added a commit
that referenced
this pull request
Nov 13, 2026
… the eval cases (#223) * test(evals): per-skill evals for claude plugin eval, modeled on dotnet/skills: realistic prompts, regex and rubric graders on the reply, no-plugin baseline Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls5hVHL6n2FFoq1SqoN * test(evals): graders accept every answer their rubric passes, and anti-patterns match code, not mentions - navigates-with-data: Navigation.Request on the ListView, and Navigate*Async with data: - confirm-delete-dialog: renamed to awaits-dialog-result, also accepts a dialog route for result - removes-through-state: UpdateAsync; awaits-result: GetDataAsync<> - retry-binds-refresh: utu:AncestorBinding to the FeedView's Refresh - android-uiautomator: UiAutomator2 / UIAutomator / UI Automator - restart-condition: Rude Edit, rude-edit, InternalError - exact-count: no longer accepts items>=12 - not_contains graders match declarations, calls and overrides, so a reply warning against them passes - attach-photo graders need a copy call and a dispatcher or a code-behind handler, not a bare mention Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls3w24yPnjKnVnfTLL7 * test(evals): no-hand-rolled-incremental matches a class implementing ISupportIncrementalLoading, not a prose colon before a mention Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PZQ75iiJeNEGPVn8YpWUaw * test(evals): the same cases run through GitHub Copilot CLI with Waza, generated from evals/ by ConvertTo-WazaEval.ps1 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Sn8GmJ41W3eBgT7866J3jV * ci(evals): a PR carries a fresh, passing eval report per suite, written locally by Update-EvalReport.ps1 and checked without model calls by Test-EvalReports.ps1 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Sn8GmJ41W3eBgT7866J3jV * ci(evals): the routing report depends on each SKILL.md's frontmatter, not its body, so a typo fix in a skill no longer makes it stale An agent picks a skill from its name and description alone, so the routing cases (which check that no Uno skill loads) can't change when only a skill's body does. Get-EvalInputsHash now hashes the frontmatter block of each SKILL.md for the routing suite (LF endings, "<path>#frontmatter" lines) instead of the whole file. Other suites hash as before. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ * test(evals): each llm grader judges one criterion, in its own rubric-<criterion>.md, checked by Test-EvalCases.ps1 A judge asked whether several things all hold rates the same reply differently from run to run when one of them is missed (the lesson Google's skills team drew from compound expectations). Each case's rubric.md is split into one llm grader per criterion, carrying only the facts that criterion needs; criteria a regex can check (UseToolkitNavigation, the xmlns URIs, the card style, SelectionMode="None", UIViewControllerBasedStatusBarAppearance) are regex graders. Test-EvalCases.ps1, a new step in Validate Plugin, checks without model calls that every prompt is non-empty and unique, and that every llm grader is named rubric-*.md, has one "PASS if" and no list. The uno-platform report is rerun against the split graders. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ * docs(plugin): the skill table's reference counts match references/, checked by Test-Plugin.ps1 The table said uno-testing had 4 references (6 on disk) and uno-themes 3 (5). Test-Plugin.ps1 now fails when a skill is missing from the table or listed twice, or when its References cell ("8", or "14 topics + 4 shell templates") does not add up to the files in its references/ folder. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ * docs(skills): a reference over 100 lines opens with a contents line, and in-file anchor links name a real heading Eleven references over 100 lines gain a one-line list of links to their ## sections, so an agent sees what the file holds and can go to the part it needs. Test-Plugin.ps1 now fails when such a reference has no link to a section in its first 30 lines, and when a `](#anchor)` link in any plugin Markdown file matches no heading by GitHub's slug rules. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ * test(evals): a report names each case's failed graders, and every suite has a report Each case in evals/reports/<suite>.json lists the graders that failed and in how many runs ("info-plist": "3/3"), so a reviewer sees why a case lost points without rerunning it; Test-EvalReports.ps1 names them when a case is below the threshold. Adds the reports for routing, uno-build-app, uno-mvux, uno-navigation, uno-testing, uno-themes and uno-toolkit, run against the one-criterion graders. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ * fix(skills): close the gaps the eval reports' failed graders pointed at - uno-toolkit: the iOS Info.plist step for StatusBar, the selectable item root ItemsRepeater selection needs, and "a command on a list row tap" in the description - uno-mvux: debugging triggers in the description, and a pointer to uno-toolkit for a command on a row tap - uno-testing: names uno_app_get_screenshot, which agents had been inventing as uno_app_screenshot - uno-navigation: leads with why the content area must be a Grid (any other panel replaces the whole page) Two rubrics judged syntax instead of the criterion: rubric-delete-error-role accepts the error roles in any XAML form, and rubric-names-cause asks for the StackPanel as the cause of the replacement. Reports rerun for the six suites these change; every case that lost a grader in all runs now scores 1. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ * test(evals): feed-list-loaded judges selectors and suggesting automation ids separately rubric-selectors also asked for a suggestion to add AutomationProperties.AutomationId, in a parenthesis the one-criterion lint does not see. Split, the selector half passes every run and the new rubric-suggests-automation-ids fails 2/3: agents use ids without telling the user to add them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ * fix(skills): uno-testing tells the user to add automation ids it has not seen in the XAML Step 4 assumed the agent knows the ids from the XAML. When it has not seen the XAML, it now names the controls that need an AutomationProperties.AutomationId and asks for any that are missing. feed-list-loaded's rubric-suggests-automation-ids goes from 1/3 to 3/3 runs passing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ * fix(skills): uno-platform routes feature work to uno-build-app, and uno-build-app and uno-mvux say when they must load Traced runs showed the skills skipped for three reasons: uno-platform's routing table never named uno-build-app, so feature requests went to the domain skills only (attach-photo-to-note loaded uno-build-app in 1/6 runs); command-reads-search-text answered MVUX questions from memory with no tool call (3/6); and mvvm-app-stays-mvvm's grader rejected uno-build-app, which keeps an existing MVVM app on MVVM. After the change each case loads its skill in 6/6 runs. Every suite is rerun, since uno-platform routes for all of them; no case regressed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ * docs(skills): uno-authentication's flow and uno-kiota's calling references open with a contents line Both arrived from main over 100 lines; Test-Plugin.ps1 requires a contents line on such a reference. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ * test(evals): drop the Waza (GitHub Copilot CLI) runner from this feature The evals run through claude plugin eval only. Removes evals/waza/ (ConvertTo-WazaEval.ps1 and its README), the README link to it, and its .gitignore entry. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013G4Ls49wSVy4U1M9v4HwHQ * test(evals): uno-authentication and uno-kiota suites, and a report gate that checks models and the shared skills (#218) Co-authored-by: Claude Opus 5.5 <[email protected]> * test(evals): uno-themes and uno-build-app reports after #214 and #217 Merging main brought #214's and #217's edits to uno-themes and uno-build-app, which made both reports stale. Both pass. shared-page-both-themes scored 0.926: rubric-delete-error-role failed 2 of 3 runs whose replies made "Delete profile" a text button with error-coloured text, while the rubric asks for an error-role background. The prompt asks only for "a red Delete profile button". Refs #216 Co-Authored-By: Claude Opus 5.5 <[email protected]> * ci(evals): drop the committed-report gate; CI only lints the eval cases - Remove evals/reports/, Test-EvalReports.ps1 and Update-EvalReport.ps1, and the "Eval reports are fresh and passing" step. - Trim the shared script to what Test-EvalCases.ps1 uses and rename it Evals.Common.ps1. - CONTRIBUTING.md and evals/README.md: evals are run locally, not gated. The cases, Test-EvalCases.ps1 and the skill fixes are unchanged. Running the evals in CI is left to #224. Refs #216 Co-Authored-By: Claude Fable 5.2 <[email protected]> --------- Co-authored-by: Steve Bilogan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
kazo0
marked this pull request as ready for review
November 13, 2026 15:52
…nt that every case carries its suite's tag - Invoke-Evals.ps1 picks the suites whose inputs changed since origin/main (or runs the ones named), runs them with the plugin only, Sonnet 5.5 as agent and judge, a 0.8 threshold and a $5-a-suite cost ceiling, and prints each case's score and failed graders. It always passes --no-publish. - Evals.Common.ps1 records what each suite depends on (Get-EvalInputPaths): its cases and skill, the uno-platform and uno-build-app SKILL.md, the hooks, and the runner; routing depends on every skill's frontmatter only. - Test-EvalCases.ps1 fails a case whose tags don't include its suite (`--tag <suite>` would skip it) and a suite folder name that isn't lowercase letters, digits and hyphens. - Nothing runs the evals in CI. Refs #216 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs #216 Co-Authored-By: Claude Opus 5.5 <[email protected]>
kazo0
force-pushed
the
dev/mara/evals-in-ci
branch
from
November 13, 2026 18:37
a2ef079 to
c3df5f8
Compare
kazo0
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #216
Adds a local runner for the eval suites and a lint check that catches cases the runner would skip. Nothing runs the evals in CI: this was reworked from the earlier version of this PR, which ran them in CI with an API key, because of the cost.
What it does
Invoke-Evals.ps1runs the suites your branch affects compared withorigin/main, including uncommitted changes, or the ones you name with-Suite. It runs them the wayevals/README.mdrecommends: plugin only, Sonnet 5.5 as agent and judge, a 0.8 threshold, a $5-per-suite cost ceiling and--no-publish. It prints each case's score and the graders that failed.-Listshows which suites would run without spending anything.Get-EvalInputPathsinEvals.Common.ps1records what each suite depends on: its cases and skill, theuno-platformanduno-build-appSKILL.md(which route every request), the hooks and the runner.routingdepends only on each skill's frontmatter.Test-EvalCases.ps1, already run by the "Validate plugin and skills" check, now also fails:tagsdon't include its suite, whichclaude plugin eval --tag <suite>would silently skip;Reviewer's guide
.github/scripts/Invoke-Evals.ps1, thenGet-EvalSuitesForChangesand the functions above it inEvals.Common.ps1.c3df5f8is docs only (CONTRIBUTING.md,evals/README.md)..github/workflows/evals.yml, theANTHROPIC_EVALS_API_KEYsecret andEVALS_ENABLEDvariable, the cache of suites that already passed, and the GitHub Actions summary and annotation output. The old head isa2ef079.Checked
Test-EvalCases.ps1passes (42 cases), and fails as expected when a case's tag is removed.Invoke-Evals.ps1 -Listpicks onlyuno-mvuxfor a change under that skill or its cases, onlyroutingfor a routing case, every skill suite foruno-platform/SKILL.md, and nothing forREADME.md. It rejects an unknown suite name before running anything.Test-Plugin.ps1passes.Invoke-Evals.ps1. The run and summary code is unchanged from the earlier version.🤖 Generated with Claude Code