Skip to content

test(evals): fix or revert cases the CI sandbox blocks - #18734

Merged
kyle-sexton merged 2 commits into
mainfrom
test/evals-ci-sandbox-cases
Nov 24, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/evals-ci-sandbox-cases

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Refs: #18655

Summary

Each eval case the CI sandbox blocked (class ENV in the #18655 triage) is now fixed or removed, per the owner's fix-or-revert decision (owner-decisions.md L393). The repo-hygiene and bash-format shfmt rows are in #18727. The non-ENV rows are in #18726.

Fix

Plugin Case Action
go-format su-apply-rerun-changes-nothing, su-check-goimports-path-no-version-flag Install step: pinned goimports into /opt/tools/bin when go-format is evaluated
spelling su-apply-repeat-changes-nothing, su-check-reports-entry-and-options Install step: the ci-workflows typos action holds the pin. The binary is copied into /opt/tools/bin because the eval sandbox denies RUNNER_TEMP
docs-naming gate-emits-and-names-unwired, gate-emitted-rule-file-hands-to-codify, gate-not-replaced-by-rule Case fix: the sandbox masks scripts/ and .github, so the prompts ask for the gate in tools/ (emit-gate.sh --out-dir), and the graders and samples look there
visualization viz-personal-override-medium, viz-team-file-medium Grader fix: CI=true makes view-settings.mjs treat the run as non-interactive, so medium: file falls back to the terminal. The report-line graders also accept view: terminal (fell back: file unreachable: non-interactive run). That line names no layer. In each scaffold only one layer sets file, and the visualize lane has no default, so file unreachable can only come from that layer
docs-hygiene setup-resolves-and-runs-the-binary Reverted: the runner puts markdownlint-cli2 on PATH (/opt/tools/node_modules/.bin), and a scaffold cannot change the session's PATH
corrections codify-rules-ledger-accounts-for-every-rule Reverted: .git/worktrees is read-only in the sandbox, and prove-check.sh only works through git worktree add
plugin-profiles setup-installs-only-after-yes Reverted: ~/.claude is read-only (EROFS) in the sandbox
guardrails su-apply-headless-toggle-and-no-hooks Reverted: the run was denied Read on the plugin-reconfiguration reference and network access to the CLI docs, and those sources hold every route it grades
performance pr-ratchets-verified-spawn-count Reverted: Bash was denied partway through the run, before ratchet.py add, and no scaffold change avoids that
context7 lk-uncovered-bounded-fallback Reverted: the repository pins no ctx7 installer (prerequisites.json uses @latest)

The goimports pin (Go 1.27.4 with its SHA-256, goimports v0.52.0) moves out of an inline step in pr-require-checks.yml into .github/scripts/lib/install-pinned-goimports.sh, and both workflows call it, the way install-pinned-ffmpeg.sh is shared. plugin-profiles/evals/setup-no-install-without-a-yes no longer points at the removed sibling's scaffold. Each changed plugin has a bump: none fragment.

Loosened checks

  • plugins/visualization/evals/viz-personal-override-medium/case.yaml report-line-personal and plugins/visualization/evals/viz-team-file-medium/case.yaml report-line-team now also accept view: terminal (fell back: file unreachable: non-interactive run). CI=true makes plugins/visualization/lib/view-settings.mjs resolve non-interactively, so medium: file falls back to the terminal and the printed line names no layer. The deciding layer is still fixed: only one layer in each scaffold sets file, and the visualization:visualize lane has no default (plugins/visualization/lib/view-registry.mjs:53).
  • plugins/context7/evals/lk-uncovered-bounded-fallback/ deleted: the runner has no ctx7, and the repository pins no installer for it (plugins/context7/prerequisites.json uses ctx7@latest).
  • plugins/corrections/evals/codify-rules-ledger-accounts-for-every-rule/ deleted: .git/worktrees is read-only in the eval sandbox, and prove-check.sh proves only through git worktree add.
  • plugins/docs-hygiene/evals/setup-resolves-and-runs-the-binary/ deleted: the runner puts markdownlint-cli2 on PATH (/opt/tools/node_modules/.bin), which breaks the case's premise, and a scaffold cannot change the session's PATH.
  • plugins/guardrails/evals/su-apply-headless-toggle-and-no-hooks/ deleted: the sandbox denied Read on the plugin-reconfiguration reference and network access to the CLI docs, and those sources hold every route the case grades.
  • plugins/performance/evals/pr-ratchets-verified-spawn-count/ deleted: the eval environment denied Bash partway through the run, before ratchet.py add.
  • plugins/plugin-profiles/evals/setup-installs-only-after-yes/ deleted: ~/.claude is read-only (EROFS) in the sandbox, so the save and install the case grades cannot succeed.

Each item follows the owner's fix-or-revert decision for cases that cannot run in CI: https://github.com/melodic-software/architecture/blob/4f147729e726cb622d9b14a903583ba773333a30/docs/owner-decisions.md#L393.

Verification

  • validate-cases.py on the evals of visualization, docs-naming, docs-hygiene, corrections, plugin-profiles, guardrails, performance and context7: exit 0 and no FAIL in any of them. The WARNs are the allowed_tools notes these suites already had.
  • check-matchers.py on visualization and docs-naming: ok.
  • node --test .github/scripts/plugin-eval/workflow.test.mjs: 17/17 pass.
  • scripts/eval-leg-scripts.test.sh: 14/14 pass, including the new cases for the goimports script (SHA-256 mismatch refused, cached archive rechecked and not downloaded again, usage error).
  • A real local run of install-pinned-goimports.sh checked the Go archive, built goimports v0.52.0 into the bin dir and wrote both PATH lines.
  • actionlint on both workflows, plus shellcheck and shfmt on the changed scripts: clean.
  • No eval was run. The next eval run on these plugins is what confirms the install steps and case fixes in the sandbox.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 24, 2026 00:39
Install pinned goimports and typos on the eval runner for go-format and
spelling. The goimports pin moves out of pr-require-checks into
install-pinned-goimports.sh, which both workflows now call. typos comes
from the ci-workflows typos action and is copied into /opt/tools/bin,
since the eval sandbox denies RUNNER_TEMP.

Fix: the docs-naming gate cases emit into tools/, because the sandbox
masks scripts/ and .github; the visualization report-line graders accept
the CI fallback line for a file medium.

Revert six cases that cannot run in the CI sandbox: docs-hygiene
setup-resolves-and-runs-the-binary, corrections
codify-rules-ledger-accounts-for-every-rule, plugin-profiles
setup-installs-only-after-yes, guardrails
su-apply-headless-toggle-and-no-hooks, performance
pr-ratchets-verified-spawn-count, and context7
lk-uncovered-bounded-fallback (no ctx7 pin exists).

Refs: #18655

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 24, 2026 05:42
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T05:44:20.109785Z 444897a 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

Copy link
Copy Markdown
Contributor

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

Security review: PR #18734 (test(evals): fix or revert cases the CI sandbox blocks)

I found no security issues in this pull request.

What I checked

.github/scripts/lib/install-pinned-goimports.sh (new) and the step in pr-require-checks.yml that now calls it

  • The script verifies the Go archive's SHA-256 (GO_SHA256) whether it was just downloaded or taken from the cache. A mismatch exits 1 before tar runs.
  • It also checks that the unpacked toolchain reports go$GO_VERSION. GOTOOLCHAIN=local stops Go from fetching a different toolchain.
  • go install golang.org/x/tools/cmd/goimports@v0.52.0 names a fixed module version, so Go's default proxy and checksum database (sum.golang.org) verify the module. This is the same install the inline step did before.
  • set -e covers the [[ -f ]] || curl list, so a failed download stops the script.
  • pr-require-checks.yml is triggered by pull_request and merge_group (L34). Running a script from the checkout there gives pull request code no more trust than the inline step gave it. This is not one of the ci-status hold steps.

.github/workflows/pr-run-plugin-evals.yml: the new goimports and typos steps in both legs

  • The goimports script runs from .base/, the default-branch checkout (L267-L273), not from the pull request head in .head.
  • Both new steps run after the runner is isolated (sudo and docker access removed, L475-L479) and before any step that receives the model credential (that starts at L577).
  • go install runs from the workspace root, not from .head. With a version suffix, Go ignores any go.mod or go.work there.
  • The typos action is the owner's own melodic-software/ci-workflows/.github/actions/typos@main. The other ci-workflows actions in this job are also referenced at @main, and ref pinning belongs to zizmor's lane. It only scans .base/_typos.toml.
  • The PR's changed-plugin list only decides whether these trusted installs run. It does not decide what they run.
  • None of these steps changes a permission, the kill switch, the trusted-trigger check, or the read-deny policy.

Eval case edits (docs-naming, visualization, plugin-profiles) and the .changes/ fragments

  • These change prompts, grader regexes and sample data only.
  • The docs-naming prompts now ask for the gate in tools/. The visualization graders also accept the line printed when the run falls back to the terminal under CI. Neither change touches a hook, a manifest or any code that runs.

Deleted eval cases (context7, corrections, docs-hygiene, guardrails, performance, plugin-profiles setup-installs-only-after-yes)

  • These are tests, not standing instructions (not CLAUDE.md, AGENTS.md, a rule, a skill or agent body, or a hook list). The instruction-surface lens therefore doesn't apply.
  • I did not consult the instruction exception register, because no standing instruction is removed or weakened.
  • Deleting these cases removes test coverage of skill behavior but no control that enforces anything.

Copied file: plugins/docs-naming/evals/gate-not-replaced-by-rule/samples/checker-created.json has the same change as its first path. As grader sample data, its location doesn't change what it does.

PR context: it contains no embedded instructions aimed at this review.

No manifests changed: no .claude-plugin/plugin.json or marketplace.json is in the diff.

Spend: the extra installs add a few minutes of Actions time when go-format or spelling evals run on the existing runner type. That is not a billing change.

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 444897add1cd44867504891fc29c387efd78afbd; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

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

CI code review: PR #18734

This PR fixes or removes the eval cases the CI sandbox blocked. It adds a shared install-pinned-goimports.sh that both workflows call, installs goimports and typos in /opt/tools/bin for the eval jobs, moves the docs-naming gate cases to tools/, widens two visualization report-line graders to accept the CI fallback line, and deletes six eval cases.

I read all 37 files in scope. The deleted case files appear in the diff only, not in the list I counted. Their deletions are covered by the finding below.

What I checked and found sound:

  • install-pinned-goimports.sh keeps every check the old inline step in pr-require-checks.yml had: the SHA-256 check (now on the cached archive itself), the GOVERSION check, GOTOOLCHAIN=local, and both GITHUB_PATH lines.
  • The new test cases in scripts/eval-leg-scripts.test.sh cover a mismatched download, a mismatched cached archive that is not downloaded again, and the usage error.
  • The eval-job steps follow the ffmpeg and shfmt pattern next to them. They run after isolation and write to /opt/tools/bin, which the eval runs can read. The typos@main use is the same pattern as pr-require-checks.yml:3735.
  • The fallback text the visualization graders now accept matches what the resolver builds (fell back: ${fell} in plugins/visualization/lib/view-settings.mjs:249).
  • The docs-naming graders compare paths only through file_exists, and the tool_used matchers do not depend on the directory. emit-gate.sh supports --out-dir.

Blocking:

  • Fail a change that loosens a check. The PR deletes six eval cases and widens two graders. The PR body's table gives a reason for each, but the only texts that can give a reason are a closing-issue spec and a ## Loosened checks section. This PR only Refs: #18655 and has no such section. See the inline comment on plugins/visualization/evals/viz-personal-override-medium/case.yaml:28 for every place and the fix.

Closing issue: none. The PR has Refs: #18655 only, so I checked no acceptance criteria.

Verification: I ran nothing. The test, actionlint and local-install results in the PR body are the author's claims and I did not confirm them. The PR body also says no eval was run, so the new install steps and case fixes are untested in the sandbox.

Spend (not a hold): the eval jobs gain a Go download and a go install when go-format is evaluated, and a typos install when spelling is evaluated. That is extra Actions runner time only.

Loosened checks would be marked: fail (default: the prompt has no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The prompt has no loosened_check_decision_record: line, so I did not check the citation requirement.

Verifier dropped 0 of 1 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 29a20b0 Nov 24, 2026
122 of 123 checks passed
@kyle-sexton
kyle-sexton deleted the test/evals-ci-sandbox-cases branch November 24, 2026 06:42
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant