Skip to content

fix(evals): let run-validity downgrade a Bash denial on a path outside the plugin #9472

Closed

Description

@kyle-sexton

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_KEYS in the tool input (lines 400-403). A Bash call carries command, not a path key, so path is None.
  • inside(None, roots) returns True: "no path ... counts as inside" (lines 413-428).
  • same_as_clean returns 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

  1. added
    status: ready
    on Oct 23, 2026
  2. added theissue type on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: ready

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions