Skip to content

feat(evals): convert a plugin's evals.json cases to claude plugin eval suites - #11720

Merged
melodic-automation-lanes[bot] merged 6 commits into
mainfrom
work-resolve-issue/issue-11651-41240746088-1
Nov 1, 2026
Merged

melodic-automation-lanes[bot] merged 6 commits into
mainfrom
work-resolve-issue/issue-11651-41240746088-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11651

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Adds plugins/evals/skills/plugin-eval/scripts/convert-evals-json.py <plugin-dir> [--dry-run]. It turns every skills/*/evals/evals.json case into plugins/<plugin>/evals/<skill>-<name>/: a prompt.md holding the prompt as its body plus description, tags, allowed_tools [Read, Glob, Grep, Skill] and expected_outcome; a case.yaml with one llm grader per expectation (focus: trace, since skill-creator's grader also reads the transcript); and, for natural-language prompts, a skill-fired tool_used grader with samples/skill-fired.json. It prints the plugin's case count and one count per evals.json, removes each converted evals.json, and refuses, writing and removing nothing, when a case directory already exists, two cases map to one directory, or a case cannot be converted. Choices and their basis: samples go only on the deterministic grader, because the source's expectations are criteria with no labeled answers and the validator only checks samples on deterministic graders (validate-cases.py check_samples); slash-invoked cases get no Skill grader (case-authoring.md, Graders); a case whose expectations read as the skill staying quiet gets no Skill grader, because run-validity.py marks a run INVALID when a required Skill call is missing; fixture files listed in files stay in place under the skill, and description and a note name them, because a run starts in an empty workspace (plugin-evals page, Seed the workspace). The script and its suite lack a #! line because this lane cannot set the exec bit and check-affected's exec-bit check fails a #! file at 100644. Every caller names the interpreter (python3 / bash).

Not verified

  • The new unittest suite (convert-evals-json.test.sh) was not run: this lane cannot run Python. Left to the PR's CI test lane
  • The issue's 'converting a sample plugin passes /evals:validate with no FAIL' is covered by the test suite running validate-cases.py on a converted synthetic plugin. Neither the suite nor the converter ran in this lane, and no real plugin was converted: the per-plugin conversions are the follow-up sl
  • ruff (scripts/run-ruff.sh) was not run on the new Python files; this lane can run only the named wrappers. The PR's CI lint runs it
  • tidy skipped: the change is about 700 changed lines over 6 files, above the 300-line tidy cutoff
  • Fixture files a case lists in files are not routed into the run: the converter names them in the case description and a note line, and leaves them under the skill. Wiring them through context.add_dirs or a scaffold_script is left to each plugin's conversion slice, since how an add_dirs path appear
  • The skill-fired grader matches the skill's directory name, not a SKILL.md frontmatter name; output always goes to <plugin>/evals/, not a manifest experimental.evals dir (no plugin in this repo sets one)
  • git status lists untracked files this run did not create (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc at the checkout root), apparently sandbox mount stubs; they are not part of this change and should not go into the patch

Fix

  • plugins/evals/skills/plugin-eval/scripts/convert-evals-json.py: new converter (Python 3.8+, standard library only)
  • plugins/evals/skills/plugin-eval/scripts/test_convert_evals_json.py: new unittest suite (13 tests): converts a synthetic two-skill sample plugin and runs validate-cases.py on the output, asserting exit 0 and no FAIL; prompt/expected_outcome/YAML quoting round-trip through the validator's own parser;
  • plugins/evals/skills/plugin-eval/scripts/convert-evals-json.test.sh: new wrapper so run-plugin-tests.sh discovers and runs the suite, with a test-scope header for validate-cases.py
  • plugins/evals/skills/plugin-eval/SKILL.md: the evals.json bullet under Boundary now names the converter command, --dry-run, and the /evals:validate step after it
  • plugins/evals/README.md: one sentence naming the converter
  • .changes/evals/work-resolve-issue-issue-11651-3f9c1a7e.md: minor changelog fragment (Added). Written by hand because new-changelog-fragment refuses on a detached HEAD

Verification

The runner ran each check from the base copy against 85feebc:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • read https: //code.claude.com/docs/en/plugin-evals: case.yaml requires schema_version "1.1" and name; prompt.md frontmatter overrides matching case.yaml fields and graders/*.md are added after the case.yaml list; allowed_tools defaults to [] and read-only tools are granted when listed; expected_ou
  • read https: //github.com/melodic-software/claude-code-plugins/issues /8635: owner decision that case.yaml becomes the one skill eval format, with the evals.json files converted plugin by plugin and removed, and the per-plugin slices filed after the converter with their counts
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: All 31 changelog fragments valid
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 13 passed, 5 skipped, 0 failed (first run after the fix failed machine-specific-paths on a /home/me example path; it now uses /srv/app)
  • cant-fail-scan --file plugins/evals/skills/plugin-eval/scripts/test_convert_evals_json.py --check: PASS, 13 test blocks, no gating findings
  • fresh-context review subagent over the whole diff: one CI-blocking finding (#! files not executable), fixed by dropping the #! lines; heuristic findings fixed (no-trigger wording now checked per expectation with a wider verb list; a leading path such as /srv/app no longer counts as a slash command;
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41240746088

Left out: the items under Not verified.

Related

#11651

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 0e4705a09525bd420511cb8d3aef0d6bb0415926: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, since 366ff95)

I found no security issues in this change.

What changed: one hunk in plugins/evals/skills/plugin-eval/scripts/test_convert_evals_json.py. A test assertion used to require that the alpha-minimal-form/samples directory not exist. It now requires only that samples/expected-output.json not exist inside it.

Why it has no security surface:

  • It edits a unittest assertion only. It changes no runtime code and no workflow, trust control, token scope, merge hold or plugin manifest.
  • It deletes no standing instruction.
  • No file in this change matches a trusted path.

I stopped after reading the diff, under skip gate 2 (no security-relevant surface). The other five files in the pull request haven't changed since 366ff95 and are not re-reviewed here.

No embedded instructions were found in the PR context file.

critical-findings: 0

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 0e4705a09525bd420511cb8d3aef0d6bb0415926: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Incremental review (366ff95 → 0e4705a): no findings.

The only change since the last review is in plugins/evals/skills/plugin-eval/scripts/test_convert_evals_json.py, in test_expectation_graders_get_samples_from_expected_output. The old assertion required alpha-minimal-form/samples/ not to exist at all. That was wrong for this fixture. "Summarize the doc." is a natural-language prompt with no wording about the skill staying quiet, so the converter adds a skill-fired grader and writes samples/skill-fired.json for it (convert-evals-json.py, the elif not slash_invoked: branch). The samples/ directory therefore always exists and the old assertion would always fail.

The new assertion checks only that samples/expected-output.json is absent. That is the property the message names ("expected-output is its own criteria"). The test can still fail: if the converter ever wrote samples for the fallback expected-output grader, that file would exist.

Closing issue #11651: this change only adjusts a test, so it doesn't change how the issue's criteria stand. The rest of the PR is unchanged since 366ff95 and was reviewed then.

I did not run any tests. This lane has no shell.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 0e4705a09525bd420511cb8d3aef0d6bb0415926. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 182a044db1b2915bcb85bd826bef12f2ec802162; the summary is in this lane's pull request comment.

claude-lane: claude-review

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 182a044db1b2915bcb85bd826bef12f2ec802162.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so nothing will resolve it. The lane sets no label: the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=11720 -f activity=address-feedback

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

A lane run on this pull request's head failed because the token broker refused it as workflow-modified: .github/workflows/pr-feedback-dispatch.yml changed on main after the run's event, and a rerun keeps the old file. pr-merge pushes an empty commit so the next pr-unblock run uses main's files. It does this once per version of that file, so if a run fails the same way again, a person looks at it. The push starts no run itself: the conflict-resolution run starts at the next push to main or half-hourly pr-unblock-dispatch tick, or when a listed person runs it by hand, and an address-feedback run can start after both review lanes review the new head, if an unresolved thread is left for it.

The token broker refused a lane run on the previous head as workflow-modified (.github/workflows/pr-feedback-dispatch.yml). This commit changes no file.
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yVUfR
Lane-Thread: PRRT_kwDOTCGFQM6yVUfT
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 366ff95.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 366ff957a89e27a20b7999108c67e35ade15830e; the summary is in this lane's pull request comment.

claude-lane: claude-review

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yWLdu
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on 0e4705a.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 0e4705a09525bd420511cb8d3aef0d6bb0415926.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit 29d5288 Nov 1, 2026
44 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-11651-41240746088-1 branch November 1, 2026 01:36
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 29d5288c1281bc4967e3cc54f6d7eeb0a1fa58f3; later checks count it verified from this comment.

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.

feat(evals): convert a plugin's evals.json cases to claude plugin eval suites

1 participant