Repository navigation
The documented plugin eval commands select the cases of their skill - #2217
Merged
Merged
Conversation
The commands in the evals README and on the skill-eval page passed `--case 'loom-memory/*'` and `--case 'loom-mentor/*'`. `--case` matches a case's name, which is the `name` in its front matter or its directory name. The folder that groups cases is not part of the name, so each command ended with "No eval cases found" and graded nothing. Each case carries its skill's name in `tags`, and the commands select with `--tag loom-memory` and `--tag loom-mentor`. A unit test applies the documented selection rule to the case files on disk and fails when a documented command selects no case, cases of two skills, or only some of a skill's cases. Signed-off-by: Mohammad Lareb Zafar <lareb.zafar@clickhouse.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The plugin eval commands in
integrations/claude-code-plugin/evals/README.mdanddocs/benchmarks/skill-eval.mdselect a skill's cases with--tag loom-memoryand--tag loom-mentor. The--case 'loom-memory/*'and--case 'loom-mentor/*'forms they replace match no case, so a run graded nothing.Why
Run as written, the README's first command ends with:
.claude/rules/plugins.mdasks for this run after a change to a plugin skill, so a skill change could be pushed after a check that ran no case.The cause is in the tool's documentation, Test plugins with evals:
prompt.mdfrontmatter:namedefaults to the directory name and is the "Case name.--caseglobs match it and the report keys on it".tagsare "Labels for--tagfiltering. A case runs if any of its tags matches".--case <glob>to filter by case name and--tag <tag>to keep cases with any of the given tags."--caseand--tagfilters matched no case".The three memory cases are named
pr_review_batch,research_note_revisionsandsre_alert_investigationby their front matter, and the mentor case had no front matter and takes its directory name,shared-records-and-tasks. Neitherloom-memory/*norloom-mentor/*matches any of the four.The fix is a tag per skill. Each case's
prompt.mdfront matter carriestags: [loom-memory]ortags: [loom-mentor], and the three documented commands select with--tag. A new case takes its skill's tag and the commands stay as they are.Alternatives and their cost:
loom-memory-*)bench/skill_eval.py --task <case>and the task listtests/unit/test_skill_eval.pypins use them.--case <name>per caseloom-memory/*match.The documentation describes no mode that lists what a filter selects without running it, so the README names none. It says what an empty selection prints.
Scope and risk
Touches the evals README,
docs/benchmarks/skill-eval.md, the front matter of the four caseprompt.mdfiles, and one new unit test,tests/unit/test_plugin_eval_commands.py.The README gains a "Selection" line under its manifest table (how a case is named, that the folder is not part of the name, that
--tagselects on the skill's tag) and its "Running" text says which cases each command runs and what a filter that matches nothing prints. The skill-eval page's one command, for the memory skill, takes the same--tag, and its "Adding a task" list names the tag a new case needs.Left alone:
tests/unit/test_skill_eval.pychecks. The mentor case gains a front matter block that holdstagsonly, so itsmax_turnsandallowed_toolskeep their defaults.evals/is not a file a plugin ships, andpython -m scripts.codegen.agent_plugin_sync --checkreports the copies current.i18n/: the translation workflow reads the English pages after the merge.What could break: a front matter key the tool does not accept fails a case at load.
tagsis a documentedprompt.mdfield. The eval cases were not run in this change, because a run calls a model. The two commands for a maintainer to run after the merge:Compatibility, rollout and rollback
Tests
tests/unit/test_plugin_eval_commands.pyreads everyclaude plugin evalcommand in the code blocks of the two pages and applies the documented rule to the case files on disk: a case is a directory that holds aprompt.mdor acase.yaml, its name is thenamefield or the directory name,--caseis a glob over the whole name, and--tagkeeps a case that carries any of the given tags. A command fails the test when it selects no case, cases of two skills, or only some of its skill's cases. The last rule is what fails a new case added without its skill's tag.Written first and run on the unchanged pages and case files, it failed for all three commands:
What ran on the final tree:
pytest -n 2overtests/unit/test_plugin_eval_commands.py,test_skill_eval.py,test_plugin_eval_mocks.py, the repository scans (test_package_contracts.py,test_op_transport_contract.py,test_tunable_constants.py,test_store_names_refused.py,test_degraded_unnoted.py,test_public_copy.py,test_doc_links.py,test_agent_instructions.py) andtests/analyzer: 641 passed, 12 skipped.ruff formatandruff checkon the new test: pass.make typecheck: pass.npx prettier@3.9.9 --checkon the two pages and the fourprompt.mdfiles: pass.python3 .claude/skills/loom-writing/scripts/check_prose.pyon the two pages: no hit.python -m scripts.codegen.agent_plugin_sync --check: current.--case '*'and--tag loom-memory loom-mentorselect cases of both skills,--case 'pr_*'selects one of the three memory cases,--case 'loom-memory/*'selects none.Not run:
claude plugin validate integrations/claude-code-plugin --profile directory --strictexits 1 on one warning, which names the plugin'sbin/folder. This change touches no file there.make lintandmake format-checkas a whole, the full unit suite and the integration suite: CI runs them.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code wrote the test, the front matter and the text, read the selection rule in the tool's documentation and ran the checks listed under Tests.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make test-unitand applicable integration results are reported by CI; a full local run is not required before pushing.docs/reference/configuration.mdand thedocs/reference/tables (python scripts/codegen/docs_reference.py), the reach manifest,schemas/schema.sql(make schema-dump), the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py) and the standalone skill bundles (python3 scripts/codegen/standalone_skills.py).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.Unticked: this change has no generated file, no migration, no shipped plugin file and no frontend file, so those four checks do not apply; the CLA line is the committer's to confirm. The first box is ticked with the gaps named under "Not run".
🤖 Generated with Claude Code
Note
Low Risk
Documentation, eval case metadata, and a unit test only; no runtime or wire changes, though maintainers must add the correct tag when introducing new eval cases.
Overview
Fixes documented
claude plugin evalcommands that used--case 'loom-memory/*'and--case 'loom-mentor/*', which match no case names (names come fromprompt.mdnameor the case directory, not the grouping folder), so runs printed No eval cases found and graded nothing.Each eval case now declares
tags: [loom-memory]ortags: [loom-mentor]in front matter;docs/benchmarks/skill-eval.mdandintegrations/claude-code-plugin/evals/README.mdswitch to--tagand explain how--tagvs--caseselection works, including the empty-filter behavior.tests/unit/test_plugin_eval_commands.pyparses the documented commands from those pages and asserts each one selects exactly one skill’s full case set on disk.Reviewed by Cursor Bugbot for commit 1b45f8e. Bugbot is set up for automated code reviews on this repo. Configure here.