Skip to content

fix(evals): remove a run's kept sandboxes after its results are reviewed - #10581

Merged
melodic-automation-lanes[bot] merged 5 commits into
mainfrom
work-resolve-issue/issue-10487-40623269644-1
Oct 28, 2026
Merged

melodic-automation-lanes[bot] merged 5 commits into
mainfrom
work-resolve-issue/issue-10487-40623269644-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #10487

Summary

Opened by the work-resolve-issue lane. The run's own summary:

/evals:plugin-eval read now ends by removing the --keep-temp sandboxes of the run whose aggregate-result.json it read. It removes them by literal path, after the spot-read and any trace evidence the reading needs, so they no longer pile up until a later preflight and a manual cleanup. Each sandbox is the claude-eval-* directory holding a run's tracePath; the issue calls these the tracePath directories, but tracePath is the trace file inside the sandbox (run-validity.py reads it as out/trace.jsonl). It never globs, checks each path afterwards, prints the per-sandbox command for any path it could not remove, and leaves the preflight leftover count unchanged.

Not verified

  • new-changelog-fragment wrapper refused on the detached HEAD ('HEAD is not on a branch'), so the fragment was written by hand in the same shape; check-changelog-fragments validates it
  • tidy: the ai-slop fix pass (pass 4) was skipped because its detector, detect.sh, and the sha256sum digest guard are not runnable under this lane's Bash allowlist. The changed lines were read by hand against the catalog (no em dashes or listed vocabulary). Passes 1-2 had no code lines to work on, a
  • review stand-in LOW 3, partly applied: the cleanup does not require a sandbox to show the recorded out//sealed//config/ layout before rm. It finds the sandbox only by its claude-eval-* name on the tracePath
  • changed-skills check and the typos check were skipped by check-affected (they run the checked tree's own code, or typos is not installed); the skill-quality and evals-quality suites are left to the PR's CI
  • no build or test suite covers this markdown-only change; the PR's CI runs the repository suites
  • the checkout root has untracked dotfiles (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) that this run did not create (they look like sandbox mount placeholders). They were excluded from the tidy measure and are not part of this change

Fix

  • plugins/evals/skills/plugin-eval/SKILL.md: the read row in the Actions table names the cleanup; a new ### Removing the run's sandboxes subsection at the end of Reading the delta covers what to finish first (spot-read, INVALID trace evidence, the large-skill cost anchor), how to find each sandbox
  • plugins/evals/skills/plugin-eval/reference/sandboxes.md: the Record notes that a kept run's tracePath lies inside its claude-eval-* sandbox (out/trace.jsonl per run-validity.py), and the recheck trigger now includes a tracePath with no claude-eval-* directory on it
  • .changes/evals/fix-10487-plugin-eval-read-sandbox-cleanup-4b7e19c2.md: new patch fragment (### Fixed) for the evals plugin

Verification

The runner ran each check from the base copy against 7d163ca:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • .lane/checks/bin/check-changelog-fragments: all 4 fragments under .changes/ valid (run before and after tidy and after the review fixes)
  • .lane/checks/bin/check-affected: 11 passed, 7 skipped, the rest CI-only, over 3 changed files (run before and after tidy and after the review fixes)
  • read plugins/evals/skills/plugin-eval/scripts/run-validity.py:90-175: tracePath is read as a trace file (out/trace.jsonl), resolved against the result file's directory when relative
  • fresh-context review subagent over the diff: no HIGH; 2 MEDIUM and 5 LOW, all addressed (re-read INVALID note, post-loop existence check, quoted paths, relative resolution, records pointer, traces needed before removal, last-step wording); the layout check before rm (suggested in LOW 3) was not adde
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40623269644

Left out: the items under Not verified.

Related

#10487

Lane-Activity: work-resolve-issue/resolve-issue

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-security-review: 1 inline finding(s) on 7d163ca53db1a3750cf16341e708e2e41c27f78e; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of the move of the "Removing the run's sandboxes" section from plugins/evals/skills/plugin-eval/SKILL.md into plugins/evals/skills/plugin-eval/reference/sandboxes.md.

No security issues found.

  • The change is a pure relocation. I compared the moved text with the removed text line by line. Every guard survives word for word:
    • the tracePath must have no .. segment;
    • the sandbox must not be a symlink;
    • the sandbox's realpath must be a direct child of realpath of <tmp>;
    • the sandbox must hold out/ and sealed/;
    • the path must hold no ' or control character;
    • unmatched candidates are listed and nothing is removed for them;
    • removal is by literal path, never a glob;
    • the shell loop re-checks symlink, location, name and layout before chmod -R and rm -rf.
  • Instruction-surface lens: no rule was deleted, narrowed or softened. SKILL.md now only links to the procedure. If a model skips the link, it has no removal procedure and does nothing, which fails closed. The protected-class register is not needed because no rule is removed.
  • Untrusted input: the aggregate-result JSON is untrusted, and the selection rules and loop checks still confine deletion to claude-eval-* directories directly under <tmp> that have the out/ and sealed/ layout. The residual case, where the JSON names a concurrent run's kept sandbox, was covered in the earlier review and is disclosed in the text.
  • Cosmetic only, not counted: sandboxes.md says "the sudo rm -rf fallback below", but the sudo rm -rf note sits above, at the end of the preceding section.
  • Manifests: no plugin.json or marketplace.json change in this increment, so no manifest lines apply.
  • Spend: none beyond prepaid or subscription usage.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 7d163ca53db1a3750cf16341e708e2e41c27f78e; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 074516df89a901f1f42d15a9db493cee25763a5d: 0 finding(s), 0 as inline comments.

Incremental review of the change since 475a555 (SKILL.md and reference/sandboxes.md): no findings.

The change moves the "Removing the run's sandboxes" procedure out of SKILL.md into a new "Removing a read's sandboxes" section in reference/sandboxes.md. I diffed the removed and added text and found no wording or safety changes.

  • Procedure text: The eligibility conditions, the single-quoted literal-path loop, the post-loop check and the sudo fallback are all kept.
  • Links: SKILL.md links to reference/sandboxes.md#removing-a-reads-sandboxes from the read row (line 25) and from the end of "Reading the delta" (line 364). That anchor matches the new heading. The [Record](#record) link points at the existing ## Record heading. Nothing else in the repository referenced the old heading.
  • Relative references: "as above" for <tmp> resolves to line 3 of sandboxes.md. "the sudo rm -rf fallback below" still points at a later sentence in the same section.

I only read these files and did not run anything. The closing issue's acceptance criteria are still met: removal by literal path, no glob, a printed command when removal is refused, and the preflight leftover count unchanged. None of this PR's changed files matches a trusted path, and no hold applies.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-security-review: 1 inline finding(s) on c9493cf57a24f036a2fac77e88e4390715b53b05; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on c9493cf57a24f036a2fac77e88e4390715b53b05; the summary is in this lane's pull request comment.

claude-lane: claude-review

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on c9493cf.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 475a555799b32e3ff0e1cd7aee47da5b61e1bdcf. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on 06dcdb7.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 06dcdb7ad6b565f6ff8a396b628e72f84fcfd7d9; the summary is in this lane's pull request comment.

claude-lane: claude-review

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 3 of max 4 on 475a555.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 074516df89a901f1f42d15a9db493cee25763a5d.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 05bd117 Oct 28, 2026
40 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-10487-40623269644-1 branch October 28, 2026 15:20
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.

fix(evals): remove a run's kept sandboxes after its results are reviewed

0 participants