Repository navigation
Description
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 --helplists no writable-path option.- A case's
envtakes onlyEVAL_*keys, soCLAUDE_PLUGIN_DATAcannot be redirected. add_dirsis read-only.- Neither
audit-pass(run-state lease) noraudit-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:
run-validity.pytreats 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.claude plugin evalgains a writable plugin-data path. This is upstream, so filing it there is the owner's call.- 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.pycovers that case and a near miss (a denial outside that directory) that still FAILs.
This was generated by AI.
Activity
github-actions commentedon Nov 1, 2026
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.
melodic-automation-lanes commentedon Nov 1, 2026
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).melodic-automation-lanes commentedon Nov 1, 2026
The latest triage verdict holds nothing: admission moved the issue to
status: confirmed; its comment says why.melodic-automation-lanes commentedon Nov 1, 2026
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
config/plugins/data/directory of the run, for Read, Bash and the other tools whose paths denials() extracts (lines 785-826).case, arm, run: tool target \(trace\)line), and the WARN reason names the affected case.<run>/config/plugins/data/gets a permission denials status of WARN, and the final verdict is not INVALID when no other check fails.<run-tmp>/config/plugins/data/<plugin>/...give WARN and a verdict other than INVALID.<run-tmp>/config/settings.jsonor<run-tmp>/config/plugins/other/x, still gives FAIL.python3 -I -m pytestor the file's own runner on that file.External state: none
Dependencies
Related work
Sources read
Automated refinement by the lanes App. Intake triages the issue again with it.
kyle-sexton commentedon Nov 1, 2026
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.
kyle-sexton commentedon Nov 1, 2026
fix(evals): judge plugin-data denials one at a time, not per run