Skip to content

run-validity.py reports VALID when every run failed to start an interpreter #16110

Closed

Description

@kyle-sexton

Summary

plugins/evals/skills/plugin-eval/scripts/run-validity.py reports VALID for a result file whose every run failed to start an interpreter the skill under test needs. Two before/after evals of the prototype plugin were read as valid evidence while node could not run in any sandboxed session.

Steps to reproduce

  1. On a machine where node on PATH is a mise shim, launch claude plugin eval on plugins/prototype through the Docker link-swap wrapper without putting a real node directory on PATH, for a case that runs the skill's node resolver (for example ed-offline-mockup-handover, whose skill text runs the medium resolver).
  2. Run run-validity.py <result>.json --runs <n> --scaffolded.

Expected

The file is INVALID, or carries a warning that names the runs, when a trace holds a tool result showing that an interpreter or tool could not start: a shim error (mise ERROR ... is not a valid shim) or the shell's command not found for a command the session ran.

Actual

verdict: VALID. The script counts a denial only by the text denied by your permission settings (run-validity.py:300) and its session check looks for a sandbox failure and zero-turn runs (:1102-1105); nothing reads a tool result for a missing program.

Evidence, counted from the result files' trace paths on 2026-11-13:

  • PR 16069 (picker slice S5): 72 of 72 traces across three files hold node is not a valid shim. All three files read VALID. Both new cases scored 0 of 6 because the level resolver never ran. Result.
  • PR 15868 (picker slice S1, merged): 16 of 16 round-4 traces hold the same error. Both files read VALID, and the result was used as "no loss". Correction.

Severity

High for the eval lane's evidence, low for users: a verdict that gates a merge can rest on runs that never exercised the code path under test, in both arms, with no signal. No data is lost and nothing ships broken by this defect alone.

Suggested fix location

  • plugins/evals/skills/plugin-eval/scripts/run-validity.py: a new check beside the permission-denial check that scans is_error tool results (and Bash output) for a shim error or command not found, lists the runs and the command, and makes the file INVALID (or a named warning that a registration can treat as an exclusion).
  • plugins/evals/skills/plugin-eval/reference/sandboxes.md: state how to give the sandbox a working interpreter. One launch on this machine already prefixes the real install directory, env TMPDIR=<tmp> PATH=<mise installs>/node/<version>/bin:<rest of PATH> claude plugin eval ..., inside the wrapper; whether that is the documented form is UNVERIFIED.

Found during workshop 03 landing work; the run-validity script was not changed by the session that found it.

Activity

  1. added
    needs-triage
    on Nov 14, 2026
  2. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: run-validity.py and its test file in the plugin-eval skill; eval authors and CI read the verdicts.
    Reversible: yes; revert the check and its tests.
    Open questions: none

    I understood the report as: run-validity.py reads a result as VALID even when every run failed to start an interpreter (a mise shim error or command not found).

    A recorded decision covers this issue, quoted below.

    Decision recorded. run-validity reports INVALID on a shim error or command not found, and warns otherwise (option A).

    Question as put to the owner (Q39): "run-validity says VALID when every run failed to start."

    • A (recommended): report INVALID on a shim error or command not found, warn otherwise.

    No other option was shown. Chosen: A. The owner answered the batch on 2026-11-17, typed in an agent session, verbatim: "Go with recommendations."

    This adopts the refinement's recommendations for questions 1 and 2: the command not found that makes a file INVALID is the one for the interpreter the skill under test runs, so a case that probes a missing command on purpose only warns. Question 3 (the documented PATH form in sandboxes.md) stays out of scope until a host checks it on a machine where node comes from a mise shim.

    [quote truncated; the full decision is at the link]

    Decision link: #16110 (comment)

    The decision settles the open questions, and its acceptance criteria give the done-when. I found no duplicate among the open issues and no merged pull request that already fixes this.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 14, 2026
  4. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited; intake's refinement of this body is due and may supply them.

  5. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: run-validity.py gains a check beside check_denials that scans is_error Bash tool results for a shim error or command not found, names the runs and command, and fails or warns the file; sandboxes.md documents a working-interpreter launch form.

    Related work

    Open questions

    1. Should a missing interpreter or tool make the file INVALID (FAIL) or only a named warning?
      RECOMMENDED: FAIL when the error is a shim error or the failing command is the skill's own interpreter; WARN naming runs and command otherwise, so cases that deliberately run a missing command are not failed. Basis: run-validity.py:3061-3073 (FAIL gives INVALID, WARN only annotates VALID); judgment on false positives
    2. Which texts count as a start failure: only 'is not a valid shim', or also 'command not found'?
      RECOMMENDED: Both, matched in is_error Bash tool results, reporting the run list and the first failing command. Basis: run-validity.py:905-946 (shell_failure reads only silent failures and sandbox failures); issue Expected section
    3. What is the documented form for giving the sandbox a working interpreter in sandboxes.md?
      RECOMMENDED: Owner to confirm the env PATH=<install>/node/<version>/bin:$PATH prefix inside the wrapper before it is documented; the issue marks it UNVERIFIED and sandboxes.md has no PATH text now. Basis: judgment: issue Suggested fix location; Grep of sandboxes.md found no PATH or interpreter mention

    Sources read

    • plugins/evals/skills/plugin-eval/scripts/run-validity.py:300: DENIAL_TEXT is the only denial text matched
    • plugins/evals/skills/plugin-eval/scripts/run-validity.py:905-946: shell_failure counts silent failed Bash calls, read-only file system and sandbox start failures, not shim errors
    • plugins/evals/skills/plugin-eval/scripts/run-validity.py:3061-3073: FAIL or UNCHECKED gives INVALID, WARN only annotates VALID
    • plugins/evals/skills/plugin-eval/reference/sandboxes.md: no mention of PATH or interpreters
    • plugins/evals/skills/plugin-eval/scripts/test_run_validity.py: existing test file for the new check

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  6. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. run-validity reports INVALID on a shim error or command not found, and warns otherwise (option A).

    Question as put to the owner (Q39): "run-validity says VALID when every run failed to start."

    • A (recommended): report INVALID on a shim error or command not found, warn otherwise.

    No other option was shown. Chosen: A. The owner answered the batch on 2026-11-17, typed in an agent session, verbatim: "Go with recommendations."

    This adopts the refinement's recommendations for questions 1 and 2: the command not found that makes a file INVALID is the one for the interpreter the skill under test runs, so a case that probes a missing command on purpose only warns. Question 3 (the documented PATH form in sandboxes.md) stays out of scope until a host checks it on a machine where node comes from a mise shim.

    Acceptance criteria

    • plugins/evals/skills/plugin-eval/scripts/run-validity.py has a new check beside the permission-denial check that reads is_error tool results and Bash output in each run's trace for a shim error (is not a valid shim) or command not found.
    • A shim error in any run, or command not found for the interpreter the skill under test runs, makes the check FAIL, so the file reads INVALID; the output names the runs and the first failing command.
    • Any other command not found makes the check WARN, naming the runs and the command, and the verdict stays VALID.
    • A result file with no such text reads as it does today.
    • plugins/evals/skills/plugin-eval/scripts/test_run_validity.py covers: a shim error gives INVALID, the interpreter's command not found gives INVALID, another command's command not found gives a warning with VALID, and a clean file is unchanged. CI passes.
    • plugins/evals/skills/plugin-eval/reference/sandboxes.md gains no PATH or interpreter-launch text in this change.

    Posted by an agent session.

  7. github-actions commented on Nov 17, 2026

    @github-actions
    Contributor

    A listed human released the issue's Work status hold, so it goes back to intake triage.

  8. melodic-automation-lanes commented on Nov 17, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"23086092b8c609537d480612db32188b48e7f18d18e2acae0b2c73b1f67d418f","body_sha256":"c33f87b7af18849039fc46a28382e8c398d78dff93d7b72af15af27090c50542"}

  9. github-actions commented on Nov 17, 2026

    @github-actions
    Contributor
    No description provided.
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

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions