Skip to content

The documented plugin eval commands select the cases of their skill - #2217

Merged
zlareb1 merged 1 commit into
mainfrom
fix/plugin-eval-commands-select-cases
Dec 5, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
fix/plugin-eval-commands-select-cases

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in a release)

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.md and docs/benchmarks/skill-eval.md select a skill's cases with --tag loom-memory and --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:

No eval cases found matching --case "loom-memory/*" under <checkout>/integrations/claude-code-plugin.
Wrote evals-result.json

.claude/rules/plugins.md asks 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.md frontmatter: name defaults to the directory name and is the "Case name. --case globs match it and the report keys on it". tags are "Labels for --tag filtering. A case runs if any of its tags matches".
  • Write and refine cases: "To group cases, nest them under a directory that isn't itself a case". The group folder is not a case and no part of a name.
  • Choose what to evaluate: "Add --case <glob> to filter by case name and --tag <tag> to keep cases with any of the given tags."
  • Its troubleshooting entry for "No eval cases found" names this state: "your --case and --tag filters matched no case".

The three memory cases are named pr_review_batch, research_note_revisions and sre_alert_investigation by their front matter, and the mentor case had no front matter and takes its directory name, shared-records-and-tasks. Neither loom-memory/* nor loom-mentor/* matches any of the four.

The fix is a tag per skill. Each case's prompt.md front matter carries tags: [loom-memory] or tags: [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:

Alternative Cost
Names that share a prefix (loom-memory-*) Renames three cases whose names are the bench task names: bench/skill_eval.py --task <case> and the task list tests/unit/test_skill_eval.py pins use them.
One --case <name> per case Every new case edits the commands in two pages.
Renaming the folders The tool does not read a group folder into a name, so no folder name can make loom-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 case prompt.md files, 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 --tag selects 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:

  • The prompt bodies. The memory cases' bodies stay byte-identical to the bench task briefs, which tests/unit/test_skill_eval.py checks. The mentor case gains a front matter block that holds tags only, so its max_turns and allowed_tools keep their defaults.
  • The plugin manifests: evals/ is not a file a plugin ships, and python -m scripts.codegen.agent_plugin_sync --check reports the copies current.
  • i18n/: the translation workflow reads the English pages after the merge.
  • The skill-eval page documents the memory skill's eval, so the mentor command stays in the README only.

What could break: a front matter key the tool does not accept fails a case at load. tags is a documented prompt.md field. 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:

claude plugin eval integrations/claude-code-plugin --trust-plugin --no-publish \
  --tag loom-memory --runs 3 --threshold 1.0 --json evals-result.json

claude plugin eval integrations/claude-code-plugin --trust-plugin --no-publish \
  --tag loom-mentor --runs 3 --threshold 1.0 --json mentor-evals-result.json

Compatibility, rollout and rollback

  • Wire: no op, field, table, column, migration or setting is added, changed or removed.
  • Operator steps: none.
  • Rollback: a revert restores the previous commands and front matter and leaves nothing behind.

Tests

tests/unit/test_plugin_eval_commands.py reads every claude plugin eval command 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 a prompt.md or a case.yaml, its name is the name field or the directory name, --case is a glob over the whole name, and --tag keeps 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:

integrations/claude-code-plugin/evals/README.md: `integrations/claude-code-plugin --trust-plugin --no-publish --case loom-memory/* --runs 3 --threshold 1.0 --json evals-result.json` selects no case; `integrations/claude-code-plugin --trust-plugin --no-publish --case loom-mentor/* --runs 3 --threshold 1.0 --json mentor-evals-result.json` selects no case
docs/benchmarks/skill-eval.md: `integrations/claude-code-plugin --trust-plugin --no-publish --case loom-memory/* --runs 3 --threshold 1.0 --json evals-result.json` selects no case

What ran on the final tree:

  • pytest -n 2 over tests/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) and tests/analyzer: 641 passed, 12 skipped.
  • ruff format and ruff check on the new test: pass. make typecheck: pass.
  • npx prettier@3.9.9 --check on the two pages and the four prompt.md files: pass.
  • python3 .claude/skills/loom-writing/scripts/check_prose.py on the two pages: no hit.
  • python -m scripts.codegen.agent_plugin_sync --check: current.
  • A probe of the test's selection helper with other filters: --case '*' and --tag loom-memory loom-mentor select cases of both skills, --case 'pr_*' selects one of the three memory cases, --case 'loom-memory/*' selects none.

Not run:

  • The two eval commands: they call a model.
  • claude plugin validate integrations/claude-code-plugin --profile directory --strict exits 1 on one warning, which names the plugin's bin/ folder. This change touches no file there.
  • make lint and make format-check as 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

  • Local format, lint, type checks and focused tests pass. The full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Generated files are regenerated in this PR, not by hand: the SDK op tables, docs/reference/configuration.md and the docs/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).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.
  • I signed the Contributor License Agreement (CLA) if CLA assistant requested a signature.

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 eval commands that used --case 'loom-memory/*' and --case 'loom-mentor/*', which match no case names (names come from prompt.md name or 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] or tags: [loom-mentor] in front matter; docs/benchmarks/skill-eval.md and integrations/claude-code-plugin/evals/README.md switch to --tag and explain how --tag vs --case selection works, including the empty-filter behavior. tests/unit/test_plugin_eval_commands.py parses 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.

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>
@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 5, 2026 6:19am UTC
loom-telemetry Ready Ready Preview Dec 5, 2026 6:19am UTC

Request Review

@zlareb1
zlareb1 merged commit c1523ab into main Dec 5, 2026
82 of 86 checks passed
@zlareb1
zlareb1 deleted the fix/plugin-eval-commands-select-cases branch December 5, 2026 06:31
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.

1 participant