Skip to content

fix(evals): decide whether run-validity counts a denied compound call whose plugin part was then allowed alone #12256

Closed

Description

@kyle-sexton

Problem

run-validity.py counts a denied compound Bash call as a with-arm plugin denial whenever a resolved path in it sits under the plugin directory. That holds even when the same plugin script call, run alone, is allowed on the next turn and the run goes on to finish. The result is that a state-saving skill can't get a VALID number: the model wraps prescribed script calls in improvised extras, and each of those turns into a counted denial.

The fix in #12156 (PR #12225) resolves same-command shell variables. It does not change this case: every verdict below is the same under main's script and under #12225's.

Evidence (#11564 measurement, 2026-11-02, Claude Code 2.1.316, claude-opus-5-5, judge opus, --runs 3)

harness-config case ap-config-lane-run-state was INVALID before (5 counted denials) and after (8) the rewrite, under both scripts. In each denied call the prescribed run-state.sh call was wrapped in one or more of these: shell variables, cd, $(date), or a trailing ls/echo/cat.

  • After run 2: bash <plugin>/.../run-state.sh lease classify --run-dir <plugin-data>/...; ls -la <plugin-data>/... was denied. The same lease classify alone was allowed on the next call.
  • After runs 1 and 2: denied paths and lease acquire calls were retried as the single literal command SKILL.md prescribes, and both were allowed.

The denial text names only the whole command, so which part triggered each denial is unverified.

ai-skills-scope-report-only (audit-instructions) stays INVALID too. Its remaining denials are improvised probes: an ls above plugin data, and a sed/grep Bash read of a reference file.

Question for triage

Should a denied compound call count as a plugin denial when the same plugin-path call, run alone, was then allowed? Options:

  1. Keep counting it (current behavior). State-saving skills stay unmeasurable until the model stops composing such commands.
  2. Set it aside when a later call in the same run is the plugin-path part alone and was allowed. Report it as a warning.
  3. Split the compound command into its parts and count only the denied parts that are not already allowed elsewhere in the run. This needs per-part denial attribution, which the trace does not carry.

Recommendation: option 2. It keeps a denial that was never recovered as a FAIL, and it only excuses a call the run shows was allowed in its plugin form. Basis: judgment, from the traces above.

Done when

  • The rule is decided and recorded in plugins/evals/skills/plugin-eval/reference/reading-results.md.
  • run-validity.py implements it, with a test for each of these: a denied compound call whose plugin part was later allowed alone, and one whose plugin part was never allowed.

Refs #11564, #12156

Activity

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

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Decision recorded. Option 2: set aside a denied compound call when a later call in the same run is its plugin-path part alone and was allowed; report it as a warning.

    Basis: the owner, in the lane 1 session at 2026-11-02 13:2xZ, adopted lane 1's recommendations ("Lets go with recommended"), including that lane 1 owns this issue; option 2 is the issue's and intake's recommendation. Refinement Q2 (what counts as the plugin-path part alone) follows the refinement's recommendation: split on ; && || and newlines, drop variable assignments, cd, and trailing ls/echo/cat, and require a later allowed Bash call equal to the remaining plugin-script segment after whitespace normalization.

    Claimed by lane 1 (melo-lap-001, host-run). PR follows.

    #12256 (comment)

    This decision settles the open question (option 2). The later amendment on matching, word by word instead of as a string, is an implementation detail within it.

    I read this as a bounded fix: run-validity.py should set aside a denied compound call when its plugin part was later allowed alone, and the rule should be recorded in reading-results.md. Both cases need a test. I found no duplicates.

    Automated triage, applied by the lanes App.

  3. added
    needs-owner-decision
    on Nov 2, 2026
  4. melodic-automation-lanes commented on Nov 2, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: the issue is at status: ready.

  5. added and removed
    needs-triage
    on Nov 2, 2026
  6. melodic-automation-lanes commented on Nov 2, 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 sets aside a denied compound Bash call as a warning when a later call in the same run is its plugin-path part alone and was allowed, and still fails an unrecovered one (option 2).

    Related work

    Open questions

    1. Which rule should run-validity apply to a denied compound Bash call whose plugin-path part was later run alone and allowed: keep counting it (1), set it aside with a warning (2), or split it into parts (3)?
      RECOMMENDED: Option 2: set it aside when a later call in the same run is the plugin-path part alone and was allowed, and report it as a warning. Basis: judgment: the issue's and intake's recommendation; option 3 needs per-part attribution the trace lacks; no Decision recorded comment exists yet.
    2. What counts as the plugin-path part alone: which wrappers are stripped, and must the later allowed call match the script, subcommand and arguments exactly?
      RECOMMENDED: Split the denied command on ; && || and newlines, drop variable assignments, cd, and trailing ls/echo/cat, and require a later allowed Bash call equal to the remaining plugin-script segment after whitespace normalization. Basis: judgment: the issue lists the wrappers seen (variables, cd, $(date), trailing ls/echo/cat) but does not define the match.

    Sources read

    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/plugins/evals/skills/plugin-eval/scripts/run-validity.py: the script the rule would change (denial logic, 58 mentions)
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/plugins/evals/skills/plugin-eval/reference/reading-results.md: where the rule must be recorded (denials mentioned)
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/plugins/evals/skills/plugin-eval/scripts/test_run_validity.py: existing tests where the two new cases would go

    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.**.

  7. removed
    needs-owner-decision
    on Nov 2, 2026
  8. self-assigned this
    on Nov 2, 2026
  9. kyle-sexton commented on Nov 2, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. Option 2: set aside a denied compound call when a later call in the same run is its plugin-path part alone and was allowed; report it as a warning.

    Basis: the owner, in the lane 1 session at 2026-11-02 13:2xZ, adopted lane 1's recommendations ("Lets go with recommended"), including that lane 1 owns this issue; option 2 is the issue's and intake's recommendation. Refinement Q2 (what counts as the plugin-path part alone) follows the refinement's recommendation: split on ; && || and newlines, drop variable assignments, cd, and trailing ls/echo/cat, and require a later allowed Bash call equal to the remaining plugin-script segment after whitespace normalization.

    Claimed by lane 1 (melo-lap-001, host-run). PR follows.

  10. kyle-sexton commented on Nov 2, 2026

    @kyle-sexton
    MemberAuthor

    Amendment to the Q2 matching rule (lane 1, implementing in #12373): the later allowed call is compared with the denied command's one remaining plugin command word by word, after quote removal and resolution of same-command variables, not as a whitespace-normalized string.

    Basis: the decision drops assignment-only commands, which only has effect if the $S/$PD they set are substituted into the remaining command; the issue's own example (run 1's paths call, retried as literal quoted paths) is recovered only this way. It is no looser than string equality: a quoted "/a b" stays one word. Everything else in the decision stands.

  11. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (attempt 1 of 2).

  12. added
    status: ready
    on Nov 2, 2026
  13. added
    admission-deferred
    on Nov 2, 2026
  14. melodic-automation-lanes commented on Nov 2, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: open pull request #12373 is for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

admission-deferredstatus: ready

Type

Fields

Work status

deferred

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions