Skip to content

test(disk-hygiene): drop the plugin-directory engine path from clean prompts - #13352

Merged
kyle-sexton merged 1 commit into
mainfrom
feat/7296-disk-hygiene-clean-prompt-path
Nov 4, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
feat/7296-disk-hygiene-clean-prompt-path

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #7296

Summary

The round-14 local run of the clean cases was INVALID: the no-plugin arm read /eval/plugin/skills/clean/SKILL.md and was denied, in cl-approval-question-keeps-path-evidence and in cl-execute-request-one-tier-preview (2 runs). The prompts named engine /eval/plugin/skills/clean/scripts/hygiene.py (case.yaml:8), a path that exists only when the plugin is loaded.

Fix

In the three cl-* prompts, the engine guard value becomes "the clean skill's bundled scripts/hygiene.py", which names no absolute path. No grader in the three cases matches hygiene.py or /eval/plugin. none changelog fragment.

Verification

  • validate-cases.py plugins/disk-hygiene: 0 FAIL (only the earlier WARN lines).
  • Local claude plugin eval of the three cases, --runs 3, on this head: validity verdict in a follow-up comment.

Remaining on #7296

The other round-15 items are tracked on the issue. These cases say "This session has no shell", so Bash never runs in them; that needs its own decision.

Related

🤖 Generated with Claude Code

…prompts

The no-plugin arm read /eval/plugin/... from the prompt and was denied, which made the suite INVALID.

Refs: #7296

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

Eval on head fbd3993: local claude plugin eval plugins/disk-hygiene over the three cl-* cases, --runs 3 -j 2 --allow-tools Bash Write Edit --judge-model opus (Claude Code 2.1.318, model claude-opus-5-5, auto memory off).

run-validity (origin/main script): verdict: VALID (warnings: permission denials in case cl-execute-request-one-tier-preview). Round 14 on main was INVALID (2 permission denials). The one remaining denial is a without-arm Read of the plugin's own SKILL.md in one run, counted as a warning only.

case with (main, this head) without (main, this head)
cl-approval-question-keeps-path-evidence 1.00, 1.00 0.90, 0.95
cl-execute-request-one-tier-preview 1.00, 1.00 0.79, 0.91
cl-preselected-tick-is-not-approval 1.00, 1.00 0.86, 0.94

The without-arm rose. This change edits only the prompt, not a grader, and the no-plugin arm no longer spends turns on a denied read of a path named in the prompt.

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 4, 2026 21:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T21:30:58.817475Z fbd3993 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed fbd3993b18e91b1be57f4fcb428f7e8cdfd79b22: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13352 (head fbd3993)

I found no security issues. I read every hunk of all 4 changed files, so this is a complete review.

What the PR changes

  • .changes/disk-hygiene/feat-7296-disk-hygiene-clean-prompt-path-e2a7c915.md is a new changelog fragment with bump: none. It is prose only and triggers no release.
  • Three eval case.yaml files under plugins/disk-hygiene/evals/cl-*/:
    • In each execution.prompt, the guard value engine /eval/plugin/skills/clean/scripts/hygiene.py becomes engine: the clean skill's bundled scripts/hygiene.py.
    • Nothing else in these files changes: allowed_tools: [Read, Glob, Grep, Skill], max_turns, timeout_seconds, plugins and expected_outcome are all as before.

Checks

  • No security-relevant surface. All the changes are eval fixture prompt text.
    • No workflow, action, trust control, token request, kill switch, merge hold or plugin manifest is touched.
    • No file matches a TRUSTED PATHS glob.
    • The eval sessions still have no Bash or write tool (allowed_tools is unchanged), and their prompts still say nothing can be run.
  • Instruction surface. The diff removes or softens no standing instruction (CLAUDE.md, skill or agent body, hook list). Swapping one path string in a test prompt does not loosen any guardrail.
  • Plugin manifests. None changed, so there are no manifest lines.
  • PR context. I checked the description against the diff and they match. It contains no embedded directives aimed at the lane.
  • Prior findings. This lane has not reviewed an earlier head, so this is not a blocking-only review.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed fbd3993b18e91b1be57f4fcb428f7e8cdfd79b22: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #13352, no findings

Scope: full review of all 4 changed files. I read every hunk in .claude-lane/pr.diff. This lane had no earlier findings on this PR, so the review was not limited to blocking findings.

What changes: the three cl-* disk-hygiene eval prompts used to give the engine guard value as /eval/plugin/skills/clean/scripts/hygiene.py. That path only exists when the plugin is loaded, so the no-plugin arm tried to read it and was denied. The prompts now say "the clean skill's bundled scripts/hygiene.py" instead. The only other change is a new bump: none changelog fragment.

Checks:

  • The rest of each prompt is unchanged. In all three prompts, the engine guard value is the only text that changed. The audit tables, the preview JSON and the user messages are the same, so no other grader input moved.
  • The PR description's claim about graders is slightly off, but it has no effect. The description says "No grader in the three cases matches hygiene.py". In fact, the no-unconditional-apply grader in cl-execute-request-one-tier-preview does match it: its pattern includes hygiene\.py\W{1,12}apply\b (case.yaml#L66).
    • That grader is a not_contains check, and the same pattern has a second branch, \bapply\s+--execute\b.
    • The skill's own apply command ends with hygiene.py" apply --execute (SKILL.md#L402). So the second branch still catches an unconditional apply even if a reply no longer writes the literal hygiene.py path.
    • I don't count this as a finding.
  • The changelog fragment is correct. bump: none fits a change that only touches eval prompts; nothing shipped changes.
  • The path-scoped rule is respected. .claude/rules/eval-case-transcripts.md covers these files. The new text is synthetic and holds no transcript or machine-specific detail.
  • Plugin manifests: none changed.
  • Closing issue: the PR only references Run the eval suites deferred by the upstream-pointer sweep PRs #7296 ("Refs"); it doesn't close it. The PR context has no closing-issue section, so there are no acceptance criteria to check.

Verification: these are claimed by the author and I have not checked them. validate-cases.py reported 0 FAIL, and the result of the local claude plugin eval --runs 3 is promised in a later comment. I ran neither.

Spend: none beyond the eval runs the author does locally. Nothing here can start a billed charge.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 75be2c7 Nov 4, 2026
67 checks passed
@kyle-sexton
kyle-sexton deleted the feat/7296-disk-hygiene-clean-prompt-path branch November 4, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant