Skip to content

Add an eval suite for the skills; keep a pasted token out of answers - #7

Merged
orcamedia merged 1 commit into
mainfrom
test/evals
Nov 13, 2026
Merged

orcamedia merged 1 commit into
mainfrom
test/evals

Conversation

@orcamedia

Copy link
Copy Markdown
Collaborator

An eval suite for the skills (claude plugin eval), stacked on #6 because one case covers check-lockfile.

What it is

Four prompts that run in a real Claude Code session against mocked OpenArtifact tools, so no server is needed. The tool schemas were saved from a server built from main, and the answers are shaped like the server's own, including its untrusted-data notice. Each case is scored by free checks (which tool was called, a pattern in the answer or in the files) and a few judged criteria.

Case Checks
blocked-version a curation-blocked version is refused with the reason and never worked around
lockfile-unknown-is-not-blocked one check_dependencies call; unknown is reported as "not cached yet", not as blocked
blocked-repository-403 a 403 from a blocked repository isn't blamed on missing access
configure-keeps-the-token-out setup never writes the token into a file or repeats it in a command

It already found something

On its first run, configure-keeps-the-token-out failed. The agent kept the token out of composer.json, but repeated the full token in the command it told the user to run. configure-project now says never to repeat a token the user pasted: write <TOKEN> and suggest replacing it. After that change the case passed twice.

Results

All four cases pass (score 1.00), single-arm, 1 to 2 runs each. Cost is about $0.10 per run at list price.

Not in CI

Runs use the caller's Claude credentials and cost money, so CI doesn't run them. The README says how to run one case or the whole suite, and asks for a run before a release and after changing a skill. evals/results/ is git-ignored, and evals/** is covered in REUSE.toml.

🤖 Generated with Claude Code

evals/ runs four prompts in a real Claude Code session against mocked
OpenArtifact tools (schemas saved from a server, answers shaped like its
own) and scores them: a blocked version is refused and not worked around,
a lockfile's unknown is not reported as blocked, a 403 from a blocked
repository is not blamed on missing access, and project setup keeps the
token out of files and commands.

The last case failed on its first run: the agent kept the token out of
composer.json but repeated it in the command it told the user to run.
configure-project now says never to repeat a token the user pasted.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@orcamedia
orcamedia merged commit cf537dc into main Nov 13, 2026
4 checks passed
@orcamedia
orcamedia deleted the test/evals branch November 13, 2026 16:56
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