Repository navigation
fix(evals): name the denied calls in run-validity's INVALID verdict - #17427
Conversation
A hosted eval keeps only run-validity's verdict line, so an INVALID run said "5 permission denials in the traces" and nothing about which calls. The permission-denials reason now names each counted call, its tool and target, redacted by the vendored gitleaks redactor, flattened to one line, cut to 120 characters, repeats counted, at most 10 named; with no redactor it names the tools only. The bash ran line and the workflows are unchanged. The evals plugin carries a generated copy of lib/redact.py and the vendored gitleaks rules and license, registered in shared-copies.txt and the vendored-copies test. Refs: #17262 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: no security issues found (incremental, blocking only)This lane already reviewed an earlier head, so this pass reports only CRITICAL and IMPORTANT findings. It found neither. It covers the two files changed since What changed and what I checked
Neither changed file matches a trusted-path glob. The PR context file contains no embedded instructions to the lane. critical-findings: 0 |
|
claude-review reviewed Code review: incremental since
|
…ending The workflows' grep -xE for the bash ran line now accepts an optional ", absent tool N" ending. The test's copy of that pattern takes the same ending, so it stays the pattern the workflows run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lane run report
Failed GitHub API calls
|
Lane run report
Failed GitHub API calls
|
|
The pr-unblock lane stopped
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 gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17427 -f activity=fix-ci |
Lane run report
Failed GitHub API calls
|
The evals plugin's copy of gitleaks-rules.json holds the same rule text at line 165 that the gitleaks scan reads as an aws-amazon-bedrock-api-key-short-lived match. Each of the other six vendored copies has this path-form entry; the evals copy now has it too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The mixed-run test expected the raw temp path in the INVALID verdict. On Windows the temp root is under C:\Users\<name>, which the redactor's home-path pass turns into ~, so the assertion failed there. The expected target now goes through the same redactor. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #17262
Summary
A hosted plugin-eval run keeps only the last two lines of
run-validity.py's output (thebash ran:line and the verdict), so an INVALID run such as event-stormingsimulation-default-markdownin run 44491110394 reportedINVALID (5 permission denials in the traces)without naming any denied call. The verdict now names them, sovalidity.txtand the step summary show what was denied.Fix
check_denials' FAIL reason now ends with the calls it counted, for example3 permission denials in the traces: Read `.../grading.md` x2, Read `.../success-criteria.md`. Each entry gives the tool and its target: a path, a command, ornetwork-outbound <hosts>for a sandbox network denial.lib/redact.pyplus the vendored gitleaks rules). After redaction, whitespace and control characters collapse to single spaces, backticks become', and the target is cut to 120 characters. A call repeated across runs appears once withxN, and at most 10 calls are listed, then+K more. If the redactor cannot load, or fails closed, the reason names only the tools.lib/redact.pyatplugins/evals/scripts/redact.pyand the vendored rules and license atplugins/evals/vendor/gitleaks/. Both are registered inscripts/shared-copies.txt, and the rules and license are checked byscripts/gitleaks-vendor-copies.test.sh.bash ran:line stays second to last and keeps its format, so the sixgrep -xElines inpr-run-plugin-evals.ymlandmaintenance-measure-skill-edit-pass.ymlmatch as before.win-test.pystill reads^verdict: VALID., absent tool Nending to thebash ran:line and to the workflows' grep. The test's copy of that grep (WORKFLOW_BASH_RAN_GREP) takes the same ending, so it stays the pattern the workflows run. The two PRs' edits torun-validity.pyandtest_run_validity.pymerged without conflict.Verification
python3 plugins/evals/skills/plugin-eval/scripts/test_run_validity.py: 188 tests, OK, on the head updated from main (183 before the update). New tests cover:::error::flattened onto the verdict line, with the line before it still matching the workflows'bash ran:regex;scripts/sync-shared-copies.sh --checkand--check-bump origin/main,scripts/gitleaks-vendor-copies.test.sh,scripts/check-cross-plugin-source-drift.sh --check,scripts/check-changelog-fragments.sh --check, andscripts/run-ruff.sh checkon the changed Python files: all pass.Remaining
This pull request delivers the means to identify the denied call: the verdict now names it. Still
open under #17262:
simulation-default-markdowna tool setup that lets the skill run every call it makesbefore the first reply, keeping
Writeallowed sono-writecan fail.Related
bash ran:regexes in the same workflows. This PR leaves those lines alone and matches its test copy to them.🤖 Generated with Claude Code