Skip to content

fix(evals): read a skill that failed to load as INVALID, and warn on the pre-computed lines Claude Code runs - #16150

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16146-43562358552-1
Nov 14, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16146-43562358552-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Refs: #16146

Summary

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

run-validity.py has a new skill loaded check. It fails a run whose skill load aborted on its pre-computed command, and names the case and run. It matches both abort texts (Shell command failed for pattern and Shell command permission check failed for pattern) in a slash command's local-command-stderr or in the result of a Skill call, so the verdict says "failed to load" instead of reading VALID or "did not fire". In an invocation-probe or --measured-fire case a failed Skill call only warns, since the call is what those cases measure; a failed slash command still fails. validate-cases.py now applies the rule from the Claude Code skills docs: an inline !command counts only at a line start or after whitespace, and a line opening a ```! block counts too. That explains the two observed shapes. plugin-eval's SKILL.md writes !`command` with a backtick before the `!`, so Claude Code leaves it as text: it loaded, yet it was warned. skill-authoring's SKILL.md writes `` !`command` `` with a space before the `!`, so Claude Code ran it and failed: it was never warned. Two other gaps also kept the skill-authoring cases silent, and both are fixed: the slash-command regex kept the trailing period of `/playbooks:skill-authoring.`, and tags in case.yaml were never read.

Remaining work

  • Add a run-validity fixture trace recorded from a real run whose Skill call returned Shell command permission check failed for pattern (from the hub session's skill-authoring result files), plus a test that feeds it to run-validity.py
  • Run the before/after plugin eval that docs/review/skills-and-agents.md requires for the plugin-eval skill-text change, and put it in the pull request body

Not verified

  • The done-when asks for a test fed a recorded trace taken from a real run. The real result files and traces from the 2026-11-14 compare are kept by the hub session and are not in the repository, so this run could not get one. The new run-validity test uses a hand-written trace in the shape the issue…
  • test_run_validity.py and test_validate_cases.py were not executed: this lane cannot run Python. They are left to the PR's CI (run-validity.test.sh, validate-cases.test.sh).
  • The before/after eval that docs/review/skills-and-agents.md requires for a skill-text change (plugin-eval SKILL.md Gotchas, reading-results.md) was not run: this lane cannot run claude plugin eval.
  • CI-only checks were not run here: eval-cases (validate-cases.py over plugin eval dirs; the six skill-authoring cases will now WARN, which does not fail) and evals-quality.
  • tidy: passes 1-4 ran with no edits. In pass 5 the ai-slop detector script cannot run in this lane, so only the rubric was applied, by reading the listed lines; no tells were found.
  • review-venue.txt was absent, so the review ran locally in one fresh-context subagent.

Fix

  • plugins/evals/skills/plugin-eval/scripts/run-validity.py: added load_failure() and the skill loaded check (FAIL naming case and run, WARN for a failed Skill call in a probe or --measured-fire case). PRE_COMMAND_FAILURE now matches both abort texts. session started no longer handles pre-computed…
  • plugins/evals/skills/plugin-eval/scripts/test_run_validity.py: the two existing pre-computed-command tests now expect the skill loaded check. Added a Skill-call load-failure test (INVALID; verdict says failed to load, not did not fire) and a loaded-Skill-call test (PASS).
  • plugins/evals/skills/validate/scripts/validate-cases.py: PRECOMPUTED counts !cmd only at a line start or after whitespace, plus a ```! block. SLASH_SKILL no longer keeps a trailing period. case.yaml tags are merged with prompt.md tags. The warning text no longer claims the run ends at 0 turns.…
  • plugins/evals/skills/validate/scripts/test_validate_cases.py: tests for both observed shapes (a space before the ! warns, through a /plugin:skill. prompt; a backtick before it does not), a ```! block, and a case.yaml tag. One assertion updated for the new warning text.
  • plugins/evals/skills/plugin-eval/SKILL.md: the Gotchas line now names the skill loaded check, separates failed-to-load from did-not-fire, and states the probe exception.
  • plugins/evals/skills/plugin-eval/reference/reading-results.md: the gate description now matches the new skill loaded check and the probe exception.
  • .changes/evals/work-resolve-issue-issue-16146-43562358552-1-0677f86c.md: evals patch changelog fragment.

Verification

The runner ran each check from the base copy against 2b7abd5:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • read https: //code.claude.com/docs/en/skills (Inject dynamic context): the inline form is recognized only when ! is at a line start or right after whitespace; a refused command aborts with Shell command permission check failed for pattern, a failed one with Shell command failed for pattern;…
  • checked by reading: plugin-eval SKILL.md:463 holds !`command` (a backtick before the !) and skill-authoring SKILL.md:182 holds !`command` (a space before it); the skill-authoring prompts start /playbooks:skill-authoring. and keep their tags only in case.yaml
  • check-changelog-fragments: all 14 fragments valid
  • check-changed-skills: plugin-eval and validate PASS, 0 errors (pre-existing size warnings only)
  • check-affected: 15 passed, 6 skipped, 0 failed
  • fresh-context review subagent over the whole diff: one bug (a failed slash load in a probe case only warned) was fixed. It traced the existing and new tests in both suites by reading and found them consistent with the code
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/43562358552

Left out: the items under Not verified.

Related

#16146

Follow-ups

  • Pre-existing (advisory): **Advisory: no-trigger control cases aren't exempted the way probes are.** (thread)
  • Pre-existing (advisory): **Advisory: the WARN branch of 'check_loaded' has no test.** (thread)

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

Copy link
Copy Markdown
Contributor

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

Security review: PR #16150 (head 2b7abd5)

No security issues found.

I read every hunk of all 7 changed files. None of them matches a trusted-path glob.

What the change does. It changes the plugin-eval tooling and its docs:

  • run-validity.py gets a new skill loaded check. It matches the pre-computed-command abort texts in local trace files and fails or warns on them.
  • validate-cases.py changes its PRECOMPUTED and SLASH_SKILL regexes and now merges case.yaml tags with prompt.md tags.
  • The rest is tests, the plugin-eval SKILL.md and reading-results.md text, and a changelog fragment.

What I checked:

  • Trust controls. No trusted-actor list, token request, kill switch, token broker, merge hold or .github/actions/ file is touched.
  • Plugin manifests. No plugin.json or marketplace.json changes, so there are no userConfig keys to judge.
  • Instruction surface. The SKILL.md and reading-results.md edits split one gate description into two checks (session started and skill loaded) and add a warn-only exception for invocation-probe and --measured-fire cases. They remove no guardrail from the instruction exception register's protected classes.
    • The warn-only exception and the narrower PRECOMPUTED regex only change what eval-quality validation reports (whether a run is VALID, or whether a case gets a WARN). Neither gates credentials, tokens, untrusted input or code execution.
  • Injection and data flow. The new code reads trace JSON with json.dumps and runs re.search on it. Nothing goes to a shell, a path or a template, and the new regexes have no catastrophic-backtracking shape.
  • Embedded text. The PR context has no directives aimed at the review.

Spend. The change adds no cost and no new spend.

Prior findings. None. This is the lane's first review of this pull request, so it was not limited to blocking findings.

critical-findings: 0

@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 2b7abd5c4ac1e393af79785eae04cc03e41036f1; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 2b7abd5c4ac1e393af79785eae04cc03e41036f1: read 7 of 7 changed file(s); 2 finding(s), 2 as inline comments.

Code review: PR #16150 (head 2b7abd5)

I read all 7 changed files in full. The PR fixes two things. In run-validity.py, load_failure now splits the slash-command check (local-command-stderr in a user line's own text) from the Skill-call check (the tool_result answering a Skill tool_use), and a new skill loaded check takes these runs over from session started. In validate-cases.py, a pre-computed line now counts only where Claude Code reads one, a trailing period no longer sticks to a slash-command skill name, and tags in case.yaml are merged with the prompt.md tags. I traced the new tests in both suites against the code and they look consistent. I did not run them (no shell), so whether they pass is the author's claim and unverified.

Findings (2, both advisory, posted inline):

  1. check_loaded exempts invocation probes and --measured-fire cases from FAIL but not no-trigger control cases. A control case also measures the Skill call, so a false trigger that fails to load makes the whole run INVALID when it should be scored as a false trigger.
  2. Nothing tests the WARN branch of check_loaded. That includes the fix the author's own reviewer asked for: a failed slash load in a probe case must still FAIL.

Notes, not counted as findings:

  • The PR says Refs: #16146 and closes no issue, so I checked no closing-issue criteria. The PR body lists two items still open: a test fed a trace recorded from a real run (the new test uses a hand-written trace), and the before/after plugin eval for the skill-text change.
  • No .claude-plugin/plugin.json or marketplace.json changed, so there are no manifest lines. The changelog fragment is bump: patch under ### Fixed.
  • No security concerns in this change. No cost hold.
  • I dispatched no verifier subagents, so all candidates are reported as found. Verifier dropped 0 of 2 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43564104593

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 2b7abd5.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 43564104593

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 2b7abd5c4ac1e393af79785eae04cc03e41036f1, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 2b7abd5

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-16150-2b7abd5c4ac1e393af79785eae04cc03e41036f1, expires on 2026-12-14.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=HIGH demote=true head=2b7abd5c4ac1e393af79785eae04cc03e41036f1 rubric=9.0.1 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 071a2ea Nov 14, 2026
87 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16146-43562358552-1 branch November 14, 2026 06:15
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 071a2ea564dd622cf9832445768ef026f8b0c42c; 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.

0 participants