Skip to content

fix(evals): run plugin evals with a short TMPDIR on Linux and WSL2 - #10104

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/plugin-eval-run-short-tmpdir
Oct 25, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/plugin-eval-run-short-tmpdir

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #10096

Summary

Since #10096 the eval validity gate fails runs whose Bash calls all failed. Under the default temp directory, that was 97 of 123 kept runs on this host, because the eval sandbox cannot write there (anthropics/claude-code#104631). The workaround lived only in reference/sandboxes.md, so evals run the usual way now mostly come back INVALID, including evals gating a skill change on "no loss".

Fix

  • The plugin-eval Run step (step 3) now says: on Linux and WSL2, run the CLI as env TMPDIR=<dir> claude plugin eval …, with <dir> a short directory outside the system temp directories (for example /run/user/$(id -u)/ev). The cause and its pointers stay in sandboxes.md, the one place they live.
  • The sentence goes on an existing line, so SKILL.md stays at 499 lines, under its 500-line cap.

Verification

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 25, 2026 15:57
Under the default temp directory the eval sandbox cannot write, so on
this host 97 of 123 kept runs had every Bash call fail, and the
validity gate now marks such runs INVALID. The Run step tells the
operator to set TMPDIR to a short directory outside the system temp
directories, pointing at sandboxes.md for the cause.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 25, 2026 19:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 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-10-25T20:00:32.018976Z bd81d22 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd81d2276e

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 7bfd9dbf0ef9a4d35197f1732a876dcea881e7bd: 0 finding(s), 0 as inline comments.

Incremental review of plugins/evals/skills/plugin-eval/SKILL.md since bd81d22. No findings.

The change cuts the inline cause clause ("under the default temp directory the sandbox cannot write, and the gate fails the runs") from the Run step and replaces it with "Why: sandboxes.md, Sandbox start". This matches the PR description, which keeps the cause in sandboxes.md only.

  • The link anchor #sandbox-start resolves to the ## Sandbox start heading at reference/sandboxes.md:27.
  • That section covers the default-<tmp> and long-$TMPDIR failure and the short-TMPDIR rerun, so the pointer lands on the explanation.
  • The edit is on one existing line, so the file's line count is unchanged and stays under the 500-line cap.
  • It is docs-only. No trusted path is touched, and nothing here is a cost or security concern.

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 7bfd9dbf0ef9a4d35197f1732a876dcea881e7bd: 0 finding(s), 0 as inline comments.

No security issues found in the incremental change (bd81d22 → 7bfd9db).

The only change is one line in plugins/evals/skills/plugin-eval/SKILL.md. It cuts the inline explanation of why TMPDIR must be set ("under the default temp directory the sandbox cannot write, and the gate fails the runs") and points to reference/sandboxes.md#sandbox-start with "Why:" instead.

I read it under the instruction-surface lens. The instruction itself is unchanged: on Linux and WSL2, run env TMPDIR=<dir> claude plugin eval … with a short directory outside the system temp directories. The sandbox, --allow-tools and --trust-plugin guidance is also untouched. The diff compresses the rationale without changing what the rule requires or forbids, so it removes no guardrail.

No manifest, trusted-path or workflow files changed in this increment, so there are no manifest <field> lines. Nothing here can cause a charge.

critical-findings: 0

The Run step gave upstream sandbox behavior as its reason, which the
skill-bodies rule forbids; the reason stays in the sandboxes.md record
with its pointer, as-of date and recheck trigger.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 25, 2026
Merged via the queue into main with commit 8ebfba1 Oct 25, 2026
36 checks passed
@kyle-sexton
kyle-sexton deleted the fix/plugin-eval-run-short-tmpdir branch October 25, 2026 20:25
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