Skip to content

test(evals): a local runner for the affected eval suites, and a lint that every case carries its suite tag - #224

Merged
kazo0 merged 2 commits into
mainfrom
dev/mara/evals-in-ci
Nov 13, 2026
Merged

kazo0 merged 2 commits into
mainfrom
dev/mara/evals-in-ci

Conversation

@rajamatt

@rajamatt rajamatt commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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.ps1 runs the suites your branch affects compared with origin/main, including uncommitted changes, or the ones you name with -Suite. It runs them the way evals/README.md recommends: 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. -List shows which suites would run without spending anything.
  • Get-EvalInputPaths in Evals.Common.ps1 records what each suite depends on: its cases and skill, the uno-platform and uno-build-app SKILL.md (which route every request), the hooks and the runner. routing depends only on each skill's frontmatter.
  • Test-EvalCases.ps1, already run by the "Validate plugin and skills" check, now also fails:
    • a case whose tags don't include its suite, which claude plugin eval --tag <suite> would silently skip;
    • a suite folder name that isn't lowercase letters, digits and hyphens.

Reviewer's guide

  • Start with .github/scripts/Invoke-Evals.ps1, then Get-EvalSuitesForChanges and the functions above it in Evals.Common.ps1.
  • c3df5f8 is docs only (CONTRIBUTING.md, evals/README.md).
  • Removed from the earlier version: .github/workflows/evals.yml, the ANTHROPIC_EVALS_API_KEY secret and EVALS_ENABLED variable, the cache of suites that already passed, and the GitHub Actions summary and annotation output. The old head is a2ef079.

Checked

  • Test-EvalCases.ps1 passes (42 cases), and fails as expected when a case's tag is removed.
  • Invoke-Evals.ps1 -List picks only uno-mvux for a change under that skill or its cases, only routing for a routing case, every skill suite for uno-platform/SKILL.md, and nothing for README.md. It rejects an unknown suite name before running anything.
  • Test-Plugin.ps1 passes.
  • Not checked: a paid run of Invoke-Evals.ps1. The run and summary code is unchanged from the earlier version.

🤖 Generated with Claude Code

@rajamatt rajamatt self-assigned this Nov 3, 2026
@rajamatt
rajamatt added this pull request to stack #225 November 3, 2026 20:07
@rajamatt
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]>
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]>
Base automatically changed from feat/plugin-evals to main November 13, 2026 15:52
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
kazo0 marked this pull request as ready for review November 13, 2026 15:52
kazo0 and others added 2 commits November 13, 2026 13:37
…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]>
@kazo0
kazo0 force-pushed the dev/mara/evals-in-ci branch from a2ef079 to c3df5f8 Compare November 13, 2026 18:37
@kazo0 kazo0 changed the title ci(evals): run the evals in CI with an API key, in place of committed reports test(evals): a local runner for the affected eval suites, and a lint that every case carries its suite tag Nov 13, 2026
@kazo0
kazo0 merged commit 04caad3 into main Nov 13, 2026
7 checks passed
@kazo0
kazo0 deleted the dev/mara/evals-in-ci branch November 13, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants