Skip to content

fix(evals): stop outcome passes failing validity on denials under the skill's own plugin-data directory #12003

Closed

Description

@kyle-sexton

Refs: #11560, #11727

Observed

Outcome passes of skills that persist state to CLAUDE_PLUGIN_DATA come back INVALID under run-validity.py, and no case-level change can fix it. Measured on the #11560 harness-config smoke pass on 2026-11-01 (Claude Code 2.1.316, --runs 1 --scaffold, with-arm only):

check permission denials: FAIL (3 denials in 1 run)
  case ap-config-lane-run-state, with-arm run 1: Read <run-tmp>/config/plugins/data/harness-config-inline/runs/local/<id>/ap-<ts>/lease
  case ap-config-lane-run-state, with-arm run 1: Bash cat <run-tmp>/config/plugins/data/harness-config-inline/runs/local/<id>/ap-<ts>/lease
  ...
verdict: INVALID (3 permission denials in the traces)

The re-smoke of ai-skills-scope-report-only hit the same shape on audit-instructions' Phase D last-audit.md write.

CLAUDE_PLUGIN_DATA resolves inside the run's own Claude Code config directory, which the eval sandbox puts under denyWrite and partly denies to reads. A case cannot work around it:

  • claude plugin eval --help lists no writable-path option.
  • A case's env takes only EVAL_* keys, so CLAUDE_PLUGIN_DATA cannot be redirected.
  • add_dirs is read-only.
  • Neither audit-pass (run-state lease) nor audit-instructions (last-audit.md) has a flag that skips persistence.

#11727 covers two other INVALID shapes (a required user-scope read, and forked skills reporting 0 turns). This one is a third cause: the skill's own data directory. The #11561 and #11563 cases (ag-, pp-) always persist too, so they will hit it next.

Fix wanted

One of these, chosen on evidence:

  1. run-validity.py treats a denial whose path sits under the run's own config directory (<run>/config/plugins/data/) as environment: a WARN, not a FAIL. This is the smallest change and keeps every other denial a FAIL.
  2. claude plugin eval gains a writable plugin-data path. This is upstream, so filing it there is the owner's call.
  3. The persisting skills get a no-persist flag that cases pass. This touches every skill that persists and changes their contracts, so it is the costliest option.

Recommendation: option 1. Basis: the validity gate exists to catch runs the environment broke. A denial on the skill's own data directory is the harness's sandbox design, not a defect the case or skill can fix, and option 1 changes one script and its tests.

Done when

  • A scaffolded outcome pass whose only denials are under the run's own plugin-data directory gets a verdict other than INVALID, with a WARN naming each such denial.
  • test_run_validity.py covers that case and a near miss (a denial outside that directory) that still FAILs.

This was generated by AI.

Activity

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

    @github-actions
    Contributor

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

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

    Understood: outcome passes of skills that persist to CLAUDE_PLUGIN_DATA fail run-validity as INVALID because the sandbox denies access to the run's own plugin-data directory. The fix is to make run-validity.py treat denials under that directory as a WARN. Every other denial stays a FAIL, and tests cover both cases. The issue's recommended option 1 is a change to one script and its tests, and the done-when is exact, so I treated it as settled. The work may conflict textually with #11727, which touches the same gate. No duplicates found.

    Automated triage, applied by the lanes App.

  3. added and removed
    needs-triage
    on Nov 1, 2026
  4. added
    status: ready
    status: confirmed
    and removed
    status: ready
    on Nov 1, 2026
  5. melodic-automation-lanes commented on Nov 1, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: a criterion names <run-tmp>/config/settings.json, which the issue lane cannot push (patch-protected-path); a builder session takes it. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  6. melodic-automation-lanes commented on Nov 1, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: confirmed; its comment says why.

  7. added
    needs-triage
    and removed
    status: confirmed
    on Nov 1, 2026
  8. melodic-automation-lanes commented on Nov 1, 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's permission-denials check downgrades a denial whose target path is under the run's own config/plugins/data directory to a WARN, and every other denial still FAILs.

    Acceptance criteria

    • In plugins/evals/skills/plugin-eval/scripts/run-validity.py, check_denials (line 958) treats a denial as environment (a WARN, not a FAIL) when every path it targets is under a config/plugins/data/ directory of the run, for Read, Bash and the other tools whose paths denials() extracts (lines 785-826).
    • A denial with several paths, such as a Bash command, counts as environment only when all its rooted paths are under that directory; one path outside it keeps the denial a FAIL.
    • A run with a mix of plugin-data denials and any other denial still returns FAIL, with the reason counting only the non-environment denials.
    • The WARN detail lines name each plugin-data denial (the existing case, arm, run: tool target \(trace\) line), and the WARN reason names the affected case.
    • A scaffolded outcome pass whose only denials are under &lt;run>/config/plugins/data/ gets a permission denials status of WARN, and the final verdict is not INVALID when no other check fails.
    • plugins/evals/skills/plugin-eval/scripts/test_run_validity.py has a test for that case: Read and Bash denials under &lt;run-tmp>/config/plugins/data/&lt;plugin>/... give WARN and a verdict other than INVALID.
    • test_run_validity.py has a near-miss test: a denial outside that directory, such as &lt;run-tmp>/config/settings.json or &lt;run-tmp>/config/plugins/other/x, still gives FAIL.
    • The docstring's permission denials paragraph (run-validity.py lines 39-57) states the new plugin-data warning rule.
    • The existing tests in test_run_validity.py still pass, run with python3 -I -m pytest or the file's own runner on that file.

    External state: none

    Dependencies

    • #​11727 touches the same validity gate (other INVALID causes). The two changes are independent, but they may conflict textually in check_denials and its docstring, so rebase on whichever lands first.
    • #​11560, #​11561 and #​11563 are the eval-case work that benefits; none must land first.

    Related work

    Sources read

    • plugins/evals/skills/plugin-eval/scripts/run-validity.py:39-57: the docstring lists the current rules; only same-score, in-every-run and probe denials are warnings, and any with-arm denial at or under the plugin directory or with no known path is a FAIL.
    • plugins/evals/skills/plugin-eval/scripts/run-validity.py:785-826: denials() returns each denial's target paths, including Bash rooted arguments.
    • plugins/evals/skills/plugin-eval/scripts/run-validity.py:958-1015: check_denials decides the warned and failed runs; this is where the new rule goes.
    • plugins/evals/skills/plugin-eval/scripts/test_run_validity.py: the existing test file where the two new tests go.

    Automated refinement by the lanes App. Intake triages the issue again with it.

  9. removed
    needs-triage
    on Nov 1, 2026
  10. added
    status: ready
    status: confirmed
    and removed
    status: ready
    on Nov 1, 2026
  11. kyle-sexton commented on Nov 1, 2026

    @kyle-sexton
    MemberAuthor

    Ownership: this blocks valid before/after measurement for lane 1's harness-config rewrites (#11564, #11565, #11566) and the #11561/#11563 cases that persist plugin data. Lane 1 has asked the hub to assign it to lane 1 and will take it on that assignment. Another lane that already owns /evals:plugin-eval work can claim it first.

    This was generated by AI.

  12. self-assigned this
    on Nov 1, 2026
  13. kyle-sexton commented on Nov 1, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status: confirmed

Type

Fields

No fields configured for Bug.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions