Skip to content

ci(evals): install shfmt for plugins whose guard reads Bash through it - #18727

Merged
kyle-sexton merged 2 commits into
mainfrom
ci/evals-shfmt-for-guarded-plugins
Nov 24, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
ci/evals-shfmt-for-guarded-plugins

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #18655

Summary

pr-run-plugin-evals.yml installed the pinned shfmt only when plugins/guardrails was staged.
repo-hygiene's destructive-command guard also denies every command it reads when shfmt is missing
(plugins/repo-hygiene/prerequisites.json,
the shfmt degrade line), and the baseline run's captured replies show it blocking every Bash call
in 9 repo-hygiene cases. bash-format's su-apply-repeat-already-configured also reported
shfmt is missing. The owner decision is option (A) of
owner-decisions.md#L393.

Fix

Both install steps (the suite leg and its twin) now run when plugins/guardrails,
plugins/repo-hygiene or plugins/bash-format is staged, and are renamed "Install pinned shfmt
for shell-reading plugins". The pin stays in the setup-pinned-shfmt action.

Verification

  • node --test --test-concurrency=4 .github/scripts/plugin-eval/workflow.test.mjs: 17 pass, 0 fail.
    No test asserts these conditions; no other tracked file names the old step.
  • scripts/check-affected.sh: 18 passed, 6 skipped.
  • No eval run.

Related

🤖 Generated with Claude Code

The pinned shfmt install ran only for plugins/guardrails. repo-hygiene's
destructive-command guard also denies every command it reads when shfmt
is missing (plugins/repo-hygiene/prerequisites.json), and bash-format's
setup checks for it, so widen both install steps to those plugins.

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:24
@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:26:10.956902Z 9bf818a 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 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18727 (incremental since 9bf818a1)

No security issues found. This lane already reviewed an earlier head, so this review was blocking only.

What changed since the last review

One file changed: .github/workflows/pr-run-plugin-evals.yml. It has two hunks, in the suite leg's shfmt install step (L509-L513) and in its twin (L1222-L1226). Each hunk adds one more clause to the step's if: condition: contains(steps.plugins.outputs.list, 'plugins/source-control').

What I checked

  • Install source: unchanged. Both steps still use ./.base/.github/actions/setup-pinned-shfmt with bin-dir: /opt/tools/bin. That action keeps the pin and is loaded from the base checkout (.base), not from the PR head, so this push installs nothing new.
  • The new condition: it matches a fixed string against a step output inside an if: expression. Nothing from the PR is put into a run: block, so there is no expression-injection path.
  • Trust controls: none changed. Permissions, token requests, triggers, the trusted-actor check, the kill switch, merge holds and the token broker are all as they were at the last review.
  • Untrusted input: no new untrusted text or code reaches a lane that holds credentials. The only effect is that a pinned tool gets installed for one more set of plugin eval runs.
  • Trusted path: the file matches the trusted-path list, so I read its whole change and what the steps gate. The match by itself is not a finding.

Other notes

  • PR context: I found no embedded instructions in it. The description lists three plugins, while the head commit (ci(evals): install shfmt for source-control evals too) adds a fourth, plugins/source-control. That gap has no security impact.
  • Lenses that don't apply: the plugin-manifest and instruction-surface lenses don't apply because the diff changes no manifest and no standing instruction.
  • Prior findings: the earlier summary comment reported no findings, so nothing carries over.

Spend: the shfmt install step now also runs on source-control eval runs, adding a few seconds of runner time on top of the API usage those runs already consume. That isn't a billing change, so there is no hold.

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #18727 (incremental, blocking only)

This was an incremental review of the push since 9bf818a1. It changes one file, .github/workflows/pr-run-plugin-evals.yml, in two hunks, and I read both. This lane already reviewed an earlier head, so this review reports blocking findings only.

The earlier finding is fixed. Both "Install pinned shfmt for shell-reading plugins" steps now also check contains(steps.plugins.outputs.list, 'plugins/source-control'), at L513 and its twin at L1226. The two conditions are still identical. The new check can't match the wrong plugin: plugins/source-control is the only plugin directory with that prefix.

No new blocking findings.

Advisory: the PR description's Fix section still lists only plugins/guardrails, plugins/repo-hygiene and plugins/bash-format. It should name plugins/source-control too.

Closing issue: the PR says Refs: #18655 and closes no issue, so there are no acceptance criteria to check.

Loosened checks: the prompt had no loosened_check_verdict: or loosened_check_patterns: line, so I used fail with no consumer entries. It had no decision-record line either, so I didn't check the citation requirement. I didn't read the criterion file, so I can't report its Loosened checks would be marked: line. This change loosens no check: it only adds a case in which an install step runs.

Spend: eval runs that stage plugins/source-control now also run the short shfmt install step. That uses existing Actions and eval capacity, not a new billed charge.

I didn't run the workflow or any tests. The author's verification is their own claim and I haven't checked it.

Verifier dropped 0 of 0 candidates.

source-control's prerequisites.json marks shfmt required: without it
pr-body-linkage-gate.sh and worktree-add-containment-gate.sh deny the
commands they read. It is the fourth and last plugin whose
prerequisites.json lists shfmt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit ea40c8d Nov 24, 2026
60 checks passed
@kyle-sexton
kyle-sexton deleted the ci/evals-shfmt-for-guarded-plugins branch November 24, 2026 05:51
@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