Repository navigation
fix(evals): stop counting no-Bash-tool results as Bash that ran - #17425
Conversation
bash_state counted any Bash result that was neither a permission denial nor a sandbox start failure as RAN, so a session offered no Bash whose calls got "No such tool available: Bash" reported `bash ran: with 2 of 2`. Such a result is now its own state: the call does not count as ran, a run offered no Bash whose only Bash calls hit it is left out of its arm, and the line ends `, absent tool <n>`. The eval workflows' grep -x on the `bash ran:` line accepts the new ending, so the line is not dropped from validity.txt and the summary. Co-authored-by: Claude Opus 5.5 <[email protected]>
Drop the Sources row for the no-Bash-tool result: SKILL.md would reach the 500-line hard cap, and the pointer, as-of date and recheck trigger already sit beside ABSENT_TOOL_TEXT in run-validity.py. Co-authored-by: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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: PR #17425, fix(evals): stop counting no-Bash-tool results as Bash that ranNo security issues found. I read every hunk of all 8 changed files in What changed
Trusted paths
Trust controls: none touched. The diff changes no trusted-trigger check, lane token request or broker, kill switch, merge-hold script, or Instruction surfaces and manifests: none in the diff. No Checked and not a finding
Spend: none beyond existing eval runs. The change only adds parsing. critical-findings: 0 |
|
claude-review reviewed Code review: no findingsThis PR stops What I checked (by reading the code; I ran nothing):
Loosened-check criterion: the prompt had no Loosened-check verdict: fail (default, prompt supplied no settings); patterns: 0 Verifier dropped 0 of 0 candidates. |
No related issue: defect seen on CI run 44475945897 and fixed in this PR.
Summary
run-validity.py'sbash ran:line counted a Bash call as RAN when its result was anything other than a permission denial or a sandbox start failure. In a session with no Bash tool, the result<tool_use_error>Error: No such tool available: Bash ...matched neither, so the event-stormingsimulation-default-markdownrun printedbash ran: with 2 of 2, without n/a. Both of those calls failed because the session had no Bash tool.Fix
tool_absent()matches anis_errorresult containingNo such tool available: Bash.bash_statenow returns its state together with the number of such calls.bash ran:line now ends, absent tool <n>(calls, over every run). The suffix is also added after a baren/a. That run would now printbash ran: n/a, absent tool 2.bash_ran=... grep -xEsites in.github/workflows/pr-run-plugin-evals.ymland the three in.github/workflows/maintenance-measure-skill-edit-pass.ymlnow accept the optional(, absent tool [0-9]+)?ending. Without that change,-xwould reject the new line and|| truewould drop it fromvalidity.txtand the summary without any error.workflow.test.mjsandhill-climb-workflow.test.mjsassert the new group.denied by your permission settings, sois_denialnever matches it. It could only enter the count through the result line'spermission_denials. Neither the plugin-evals page (no mention ofpermission_denials,No such toolor disabled tools) nor any trace available here shows the CLI listing it there. The run's artifact holds no traces, so its 5 denials cannot be checked against the 2 absent calls. The module docstring records that the denials check counts such a call only whenpermission_denialslists it.traces/bash-absent.jsonl: a hand-written trace in the recorded result shape, with an init tools list that leaves Bash out.Verification
python3 plugins/evals/skills/plugin-eval/scripts/test_run_validity.py: 180 tests, OK. Two of them are new:bash ran: n/a, absent tool 2and no denial FAIL. Absent calls in one arm and real calls in the other givewith n/a, without 2 of 2, absent tool 3.with 1 of 3, without 1 of 3, unknown 1, absent tool 4.node --test --test-concurrency=4 .github/scripts/plugin-eval/workflow.test.mjs .github/scripts/plugin-eval/hill-climb-workflow.test.mjs: 18 tests, all pass.bash ran: n/a,bash ran: n/a, absent tool 2, and lines with or withoutunknown. It rejects the suffix in the wrong position.scripts/run-ruff.sh checkon both Python files: clean. The pre-pushcheck-affectedhook passed, including changed-skills.Related
simulation-default-markdown)🤖 Generated with Claude Code