Skip to content

fix(ci): run the eval dispatch with TMPDIR outside /tmp - #12643

Merged
kyle-sexton merged 1 commit into
mainfrom
fix/12083-eval-dispatch-tmpdir
Nov 3, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
fix/12083-eval-dispatch-tmpdir

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #12083

Summary

eval-browser-dispatch.yml ran claude plugin eval with the runner's default TMPDIR, so every run root landed under /tmp, which the run's own sandbox makes read-only to Bash. Any case that writes in its workspace failed in CI. This PR moves TMPDIR to $HOME/.ev.

Fix

  • The Run the plugin eval step exports TMPDIR="$HOME/.ev" and creates it. On a hosted runner that is /home/runner/.ev, 17 characters, within the 24 plugins/evals/skills/plugin-eval/reference/sandboxes.md allows.

Verification

  • #12083's host evidence: with TMPDIR outside /tmp, the two pull-request-ready-* cases had no read-only write and scored 1.0.
  • Pre-push check-affected passes.
  • Left out: the dispatch itself. The workflow runs by hand only on the default branch, so it runs after this merges.

Related

N/A

Remaining

🤖 Generated with Claude Code

https://claude.ai/code/session_01VQb9Q296cDKeBR2kaZuHaV

The run's own sandbox makes a run root under /tmp read-only to Bash, so any
case that writes in its workspace failed in CI.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VQb9Q296cDKeBR2kaZuHaV
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 3, 2026 03:39
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 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-03T03:41:05.506601Z 0f158ad 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 3, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #12643 (complete, 1 of 1 files read)

I found no security issues.

What I reviewed: .github/workflows/eval-browser-dispatch.yml is on the trusted-path list, so I read its whole change and the step it affects (lines 531–607).

The change: the Run the plugin eval step now runs export TMPDIR="$HOME/.ev" and mkdir -p "$TMPDIR" before it calls claude plugin eval, so the run roots move from /tmp to /home/runner/.ev.

What I checked:

  • Credentials and trust: No change to permissions:, triggers, if: conditions, the CLAUDE_CODE_OAUTH_TOKEN secret wiring, CLAUDE_CODE_SUBPROCESS_ENV_SCRUB, tool grants or the dispatch input validation. No token gets wider scope and no untrusted text gets new access. TMPDIR is a fixed value; no input from a pull request or dispatch feeds it.
  • Pull request runs: these still grant no tool and keep env scrub on (line 546), so a pull request's cases get no new write surface from this change.
  • Uploads: artifacts still come only from ${{ runner.temp }}/eval-results/ (lines 714, 722). The traces kept by --keep-temp now sit in $HOME/.ev, which nothing uploads, the same as when they sat in /tmp. Nothing new is exposed.
  • The sandbox: the run's Bash sandbox stays on. The change only moves the temp root to a directory the sandbox lets the run write to. The hosted runner is ephemeral, so $HOME/.ev doesn't carry over between jobs.
  • Trust controls: none touched (trusted-trigger check, lane token, kill switch, merge holds). No plugin manifest changes.

Embedded text: the PR description has no instructions aimed at this review.

Spend: none new. Each suite still runs under --max-cost-usd 5, billed to the existing OAuth subscription credential.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

Scope: I read the full diff for .github/workflows/eval-browser-dispatch.yml, the one changed file. It is a trusted path, so I also read the steps around it: the deny policy, the probe, the bwrap check, the eval step, the summary step, the Bash-error excerpts step and the upload steps.

The change: The Run the plugin eval step now runs export TMPDIR="$HOME/.ev" and mkdir -p "$TMPDIR" before it calls claude plugin eval. The comment above the step now says why.

What I checked:

  • Effect on other steps. TMPDIR is exported only inside this step's shell, so no other step changes. summarize.mjs and the Print Bash error excerpts step find traces through each run's tracePath in results.json, not by a fixed /tmp location. With --keep-temp, those traces now sit under $HOME/.ev and stay readable. Uploads and the credential scan still read ${{ runner.temp }}/eval-results/, which did not move.
  • Path length. On a hosted runner, $HOME/.ev is /home/runner/.ev, which is 17 characters. plugins/evals/skills/plugin-eval/reference/sandboxes.md (lines 75–94 and 121–122) caps this at 24 characters, outside the system temp directory, and names this exact path as its example. The new comment matches that reference.
  • Pull request runs. The managed deny policy (lines 403–418) blocks the runner root, _temp, _actions, .config, .ssh, .docker and ~/.claude. None of those cover /home/runner/.ev, so pull request runs are not newly blocked. They also grant no Bash, so the sandbox's read-only /tmp never mattered to them.
  • .claude/rules/. No rule file's paths: glob matches .github/workflows/**.
  • Closing issue. The PR says "Refs: ci(evals): run the eval dispatch with TMPDIR outside /tmp so Bash cases can write #12083" and closes no issue, so there are no acceptance criteria to check.
  • Prior findings. This is round 0 of a cap of 3, so nothing has been posted before.

Not verified: The author says pre-push check-affected passes and points to #12083's host evidence that cases score 1.0 with TMPDIR outside /tmp. I could not run either, so both are the author's claims. The PR also says the dispatch itself can only run after merge, since the workflow runs by hand on the default branch only.

Spend: None. The change doesn't alter model, turn, cost-cap or schedule settings.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 67b9d57 Nov 3, 2026
58 of 70 checks passed
@kyle-sexton
kyle-sexton deleted the fix/12083-eval-dispatch-tmpdir branch November 3, 2026 03:57
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