Description
Problem
plugins/evals/skills/plugin-eval/scripts/run-validity.py can never downgrade a Bash permission denial to a warning, even when the denied call reads a path outside the plugin and the run scores the same as the denial-free runs.
- A denial's target path comes from
TARGET_KEYSin the tool input (lines 400-403). A Bash call carriescommand, not a path key, sopathisNone. inside(None, roots)returns True: "no path ... counts as inside" (lines 413-428).same_as_cleanreturns False for any with-arm denial that is inside (lines 431-436). So every with-arm Bash denial makes the run INVALID.
Seen on PR #9328's scratch drive case attach-asks-before-attaching. The sandbox denied read-only ls /proc and cat /proc/sys/kernel/yama/ptrace_scope calls. Both arms scored 1.00 over 3 runs with unanimous judge votes, and the verdict was still INVALID. Rerunning cannot change that.
Fix
For a Bash denial, take the rooted path arguments out of the command (whitespace-split, skip flags, keep tokens that start with the root separator). Treat the call as inside only when one of those paths falls under, or contains, a plugin root. With no rooted argument, keep today's inside verdict. Add one test where a Bash denial on /proc/... with equal scores gets the warning, and one where a Bash denial on a plugin-root path stays INVALID.
Activity