Skip to content

fix(evals): plugin-eval sealed-sandbox cleanup and --scaffold condition in the run step - #10438

Merged
kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-9414-40458116942-1
Oct 27, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-9414-40458116942-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9414

Summary

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

plugin-eval's leftover-sandbox cleanup advice used chmod -R u+w, which cannot enter a kept sandbox's mode-000 sealed/ directory. It now prints a per-sandbox loop that opens the sandbox and sealed/ with chmod 700 first, and keeps the sudo rm -rf note. The run step now says that a selected case whose case.yaml sets context.scaffold_script needs --scaffold, after its script has been read because it runs as the user outside the sandbox. Without the flag such a case runs unstaged and its delta reads 0. Per the issue's refinement, the deterministic preflight or validate check is out of scope.

Not verified

  • check-affected skipped changed-skills (it runs the checked tree's own skill-quality code), the three validate-plugins sub-checks that run tree code, and typos (not installed); these are left to the PR's CI
  • the checks check-affected lists as CI only (evals-schema, lychee-offline, editorconfig, portability-lint, cant-fail-scan and the rest) are left to the PR's CI
  • cant-fail-scan was not run usefully here: with no arguments it timed out after 2 minutes, and it scans test files, which this change does not touch
  • the new cleanup loop and the --scaffold guidance were not exercised against a real claude plugin eval run: that needs a paid run on a host with kept sandboxes

Fix

  • plugins/evals/skills/plugin-eval/SKILL.md: preflight cleanup sentence prints the sealed-aware per-sandbox loop and points at sandboxes.md, keeping the sudo rm -rf note; run step 3 adds the scaffold_script -> read the script, then --scaffold condition, and says to deselect a case via --case/--tag
  • plugins/evals/skills/plugin-eval/reference/sandboxes.md: cleanup block replaced by the per-sandbox loop with the mode-000 sealed/ reason; Record section cites the 2026-10-23 observation (#9414)
  • plugins/evals/skills/plugin-eval/evals/evals.json: eval 1 expected_output and expectation name the new cleanup loop; new eval 15 scaffold-case-gets-the-flag
  • .changes/evals/fix-9414-plugin-eval-scaffold-cleanup-5d3a9e17.md: new patch fragment with two Fixed entries

Verification

The runner ran each check from the base copy against 07b2ae9:

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

The run reports:

  • read https: //code.claude.com/docs/en/plugin-evals: a case's scaffold_script runs only when --scaffold is passed, as the user outside the agent's sandbox; the command-options table lists --scaffold (default Off) as running each case's scaffold_script; the 'Add setup or history with case.yaml' sectio
  • .lane/checks/bin/check-changelog-fragments: All 9 changelog fragment(s) under .changes/ are valid
  • .lane/checks/bin/check-affected: 10 passed, 7 skipped over 4 changed files
  • .lane/verify/bin/check-evals-quality plugins/evals/skills/plugin-eval/evals/evals.json: PASS, 0 warnings, exit 0
  • fresh-context review subagent over the whole diff: 4 findings; fixed 2 (the zero-delta claim was narrowed to the affected cases in SKILL.md, evals.json and the fragment; the way to keep an unrun case out is now stated with --case/--tag); rejected 2 (the #add-setup-or-history-with-case-yaml anchor is
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40458116942

Left out: the items under Not verified.

Related

#9414

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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

No findings in the incremental change to plugins/evals/skills/plugin-eval/SKILL.md.

I read the diff and checked its links and claims against the files:

  • New links: ../methodology/reference/local-decisions.md#interval-method, reference/records.md#spoke-reach and #sources all resolve to existing headings. The "CI pins" row is in the Sources table.
  • Spoke-reach wording: the new version split matches reference/records.md (denied on 2.1.270 and 2.1.287, succeeded on 2.1.289) and the plugins/evals/CHANGELOG.md entry that records the same correction.
  • Boundary section: the added sentence "never re-implements grading and never simulates a run or a score" repeats line 16 of the same file. That is harmless, so I did not count it as a finding.
  • Closing issue fix(evals): plugin-eval cleanup fails on sealed sandboxes and run template omits --scaffold #9414: this increment changes only wording and links. Its criteria are the sealed-sandbox cleanup and the --scaffold condition, and both were in the earlier, already-reviewed part of the PR. The increment does not undo them. The issue's optional preflight or validate check is out of scope, as the PR states.
  • Not verified: I did not run claude plugin eval or any of the checks the PR body lists as passing. Those results are author-claimed.
  • Spend: none. Documentation change only.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental security review of plugins/evals/skills/plugin-eval/SKILL.md (changes since 07122ed). I found no security issues.

The change is documentation wording only:

  • It adds two cross-reference links.
  • It rewrites the Spoke reach note to give version-specific behavior (2.1.270 and 2.1.287 versus 2.1.289).
  • It adds clarifying text to the CLI boundary bullet, including "never re-implements grading and never simulates a run or a score".

I checked it against the instruction-surface lens. No standing instruction, guardrail, allowlist or block list is deleted, narrowed or softened, and the added sentence is stricter. The file matches no trusted-path or trust-control glob. No manifest, hook, MCP, workflow or token-scope change is in this increment. The other files in the pull request are unchanged since the earlier review.

I did not consult the instruction exception register, because no removed rule needed checking against it.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 27, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.

  • Reason: feedback-uncertain
  • Resume key: cdf08785eefa307433a74ed3f3814db029f2786e (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=10438 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=10438 -f activity=address-feedback

@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 27, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 0de10be Oct 27, 2026
80 of 83 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-9414-40458116942-1 branch October 27, 2026 17:20
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 0, survived 0, timeout 0, no coverage 0, invalid 0, not run 8.
Covered-code score n/a; mutation score n/a.

File Killed Survived Timeout No coverage Invalid Not run
plugins/planning/surface/round.py 0 0 0 0 0 1
plugins/planning/surface/server.py 0 0 0 0 0 6
plugins/planning/surface/surface-checks.sh 0 0 0 0 0 1

The run's summary has the full report.

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): plugin-eval cleanup fails on sealed sandboxes and run template omits --scaffold

1 participant