Repository navigation
fix(evals): grant converted cases the tools their skill needs - #11987
Conversation
Refs: #8635 convert-evals-json.py wrote [Read, Glob, Grep, Skill] into every case, so a skill with a pre-computed context line could not load and the run ended at 0 turns. Cases now add Bash for such a line or a Bash instruction in the body, plus the skill's allowed-tools frontmatter. validate-cases.py warns when a case names such a skill and its allowed_tools lacks Bash. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #8635 Give PRECOMPUTED in both scripts a pointer, as-of date and recheck trigger, like the validator's other upstream constants, and count a Bash(...) grant as Bash in the validator's new WARN. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: incremental (bfe6832 → b734be4)Scope: I read every hunk of the two in-scope files in
Neither file matches a trusted-path glob. Assessment: I found no security issues.
Spend: none beyond normal eval runs. This incremental change does not alter eval run counts or billing. critical-findings: 0 |
|
claude-review reviewed Incremental review (bfe6832 → b734be4)This round reviews only the What the regex change does. The old pattern was
The new pattern,
Indented continuation lines that do not start a block still join, so the existing wrapped-negation tests behave as before. Test coverage. Closing issue. The PR only references #8635 ( Embedded text. The PR context contains no embedded instructions. Out of scope. No plugin manifests changed in this increment. No |
The converter's body-wording grant had no test of its own, and it
matched wording that forbids Bash ("Do not use the Bash tool."). A
sentence that names Bash as the tool to run now grants it only when the
same sentence carries no negation. Two tests cover a body-only grant
and three negated forms.
Refs: #8635
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-review finding on
Fix: a sentence that names Bash as the tool to run now grants it only when that same sentence has no negation (
|
A sentence-wide negation dropped the grant for eol-normalizer,
desktop-notification and actionlint check skills ("lines do not run,
so run X through Bash"). Join hard-wrapped lines first, then test only
the clause before the Bash phrase.
Refs: #8635
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The trailing whitespace in the wrap regex backtracked past its lookahead, joining a nested list item or a whitespace-only blank line to a negated line above and dropping the Bash grant. Refs: #8635 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #8635
Summary
convert-evals-json.pywroteallowed_tools: [Read, Glob, Grep, Skill]into every converted case. A skill that needs Bash could not run, and the validator did not flag it. The first slice-3 conversion showed this: a paid run of the convertedrate-limit-guardsuite was INVALID. Itssetupskill has a pre-computed!`command -v node …`line, so without Bash the slash command failed to load and the run ended at 0 turns. Thecheckskill could not runnode --version. That run had 26 permission denials.Fix
allowed_toolsis now the base list, plusBashwhen the skill's SKILL.md has a!`pre-computed line or names Bash as the tool to run, plus the tools in the skill's ownallowed-toolsfrontmatter.Bash(git *)becomesBash. The order is stable and duplicates are dropped./<plugin>:<skill>or by a tag) has a pre-computed line and the case'sallowed_toolslacks Bash: "without it the slash command fails to load and the run ends at 0 turns". The WARN paragraph in/evals:validatenames it.evalschangelog fragment.Verification
convert-evals-json.test.sh: 21 tests OK.validate-cases.test.sh: 80 tests OK. I re-ran both on this branch.scripts/run-ruff.sh check plugins/evals/skills: clean.rate-limit-guardwith this converter. All 5 cases list Bash, and a--runs 1 --allow-tools Bashsmoke is VALID, with-arm mean 0.88 against 0.60 without, delta +0.28 (95% interval +0.12 to +0.44). Removing Bash from the two setup cases makes the new WARN fire on both.Related
Remaining
🤖 Generated with Claude Code