Skip to content

ci: bump run-claude-cli pins to the sandbox default - #14250

Merged
kyle-sexton merged 1 commit into
mainfrom
ci/run-claude-cli-sandbox-pins
Nov 8, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
ci/run-claude-cli-sandbox-pins

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: melodic-software/ci-workflows#1060

Summary

Bumps every run-claude-cli pin (95 steps in 13 workflows) to
8f22403,
the merge commit of ci-workflows#1061 and
ci-workflows main today. That commit runs the leg's Bash in Claude Code's sandbox by default, with no
unsandboxed retry and network only to github.com and api.github.com. It also fails closed when
socat is missing and the sandbox is on. Lanes whose Bash needs more get sandbox: "false", with a
comment that names the need and ci-workflows#1060.

Fix

Callers

"Bash" means the tools input names Bash. Every launcher job installs socat through
setup-runner-isolation with install-subprocess-isolation on. That action runs
apt-get install bubblewrap socat together and skips the install only when both binaries are
present (.github/actions/setup-runner-isolation/action.yml, the install loop). No job needed a new
install step.

Workflow Jobs (steps) Old pin Bash Needs beyond GitHub / outside workspace+temp Sandbox Why
intake-triage.yml refine-issue ×3 legs b8bdd7f no none on Bash is in disallowed-tools, so the sandbox has nothing to wrap
maintenance-audit-lane-runs.yml judge ×3 legs b8bdd7f no none on Read/Grep/Glob only
maintenance-measure-skill-edit.yml propose (3) b8bdd7f no none on no Bash
pr-rate-merge-risk.yml rate-merge-risk ×3 legs b8bdd7f no none on no Bash
pr-review-main.yml review ×3 legs (12) b8bdd7f no none on Read only, Bash disallowed
pr-run-activity-read.yml summary (3) b8bdd7f no none on Read(./.summary/**) only
pr-unblock.yml adjudicate-feedback (9) b8bdd7f no none on no Bash
pr-verify.yml check-intent ×3 legs (39) b8bdd7f no none on Read only, Bash disallowed
post-merge-test-mutation.yml generate ×3, triage ×3 b8bdd7f yes none: Bash allows only git status/diff/branch/rev-parse and bash suppression-lint.sh, which uses mktemp (plugins/mutation-testing/scripts/suppression-lint.sh:402), awk and sha256sum on Post-merge, so a sandbox fault blocks no merge. These are the first live sandboxed-Bash runs ci-workflows#1060 asks for.
maintenance-tidy-code-upkeep.yml model ×3 legs b8bdd7f yes (unrestricted) PyPI/npm installs (plugins/code-tidying/skills/remove-comments/reference/tooling.md:24-28), ecosystem test suites (.../reference/safety.md:113), writes under ~ off :357, :693, :980
upstream-apply-changelog.yml model ×3 legs b8bdd7f yes (unrestricted) raw.githubusercontent.com (plugins/harness-ops/scripts/fetch-changelog.sh:25, through curl, which the WebFetch allow does not cover) off :384, :775, :1118
upstream-apply-changelog.yml scrub-probe ×3 legs b8bdd7f yes (capture-probe.mjs only) none of its own off The job runs under the "same conditions as the model job" (:1264). It certifies the scrub where the model's Bash runs, and that Bash runs unsandboxed. :1386, :1617, :1843
pr-verify-capture.yml capture: "Capture the change" 4aba9be yes driver.mjs launch starts a nested claude (api.anthropic.com) and runs npm ci (registry.npmjs.org). The launch broker and runtime dir live under /home/runner/.ccd off :1180
pr-verify-capture.yml capture: "Probe what head code can reach" 4aba9be yes (capture-probe.mjs only) none of its own off The probe runs "where the driver commands will run" (:842-849), so it matches the drive leg. :871
pr-run-activity-read.yml run: act-key, act-token, act-fallback b8bdd7f dynamic (steps.stage.outputs.tools) ci-context skills get bare Bash (.github/actions/collect-base-activity/action.yml:498-499). "a skill that needs the head's own packages runs npm ci there" (pr-run-activity-read.yml:1644-1646) off fix-ci/fix-docs are on the merge path. Read-only skills have no Bash, so false changes nothing for them. :1756, :1816, :1866

None is UNVERIFIED: the code settled every Bash caller's needs.

Coupled pins and tests

  • eval-browser-dispatch.yml and eval-hill-climb-pass.yml (3 classifier checkouts each) now check
    out ci-workflows at the same commit. lane.cjs at 8f22403 requires ./managed-settings.cjs (added
    in ci-workflows 4aba9be), so that file joins every sparse list and CLASSIFIER_FILES in
    eval-handoff.mjs.
  • apply-claude-managed-settings moves to 8f22403 in pr-verify.yml and pr-verify-capture.yml,
    so each stays at one commit with its run-claude-cli, as parity.test.mjs and
    pr-verify/workflow.test.mjs require. Its default settings JSON is unchanged since b8bdd7f.
    Between 4aba9be and 8f22403 only its name: changed.
  • replay.mjs RUN_CLAUDE_CLI_PIN moves to 8f22403. I re-read cliArgs and legEnv: the only argv
    change is --settings <sandbox JSON>, at the position where the replay already passes its settings
    file. The comments now say so. The judge has no Bash, so the sandbox cannot change its verdict.
  • callers.test.mjs: 8f22403 is added to PERMISSION_PROMPTS_NONE_LAUNCHERS. --permission-prompts none
    is unconditional in cliArgs at lane.cjs:467-468, so the pin is safe to add. CLASSIFIER_PIN moves to 8f22403.
  • hill-climb-workflow.test.mjs: the allowed pin list and the classifier ref follow.
  • pr-verify/workflow.test.mjs: the capture pin list follows, and a new assertion checks that both
    capture legs keep sandbox: "false".

run-claude-cli changes between the old pins and 8f22403

These are the ci-workflows commits that touched run-claude-cli. For these callers each one is
additive or a rename:
4aba9be (loopback-base-url opt-in, managed-settings.cjs),
e6e5227 (select-model-credential),
944fe9a (fallback-ready: handoff-only),
000790a (execution-file-clean output),
2a6e268 (Title Case names),
8f22403 (sandbox default, socat check).

Verification

  • node --test on resolve-config/callers.test.mjs, plugin-eval/hill-climb-workflow.test.mjs,
    plugin-eval/eval-handoff.test.mjs (it fetches the classifier files at the new pin and loads
    them), pr-verify/workflow.test.mjs, pr-verify/probe/parity.test.mjs,
    post-merge-test-mutation/report.test.mjs, pr-merge-risk/workflow.test.mjs,
    pr-review-main/workflow.test.mjs, pr-unblock/workflow-gates.test.mjs,
    upstream-apply-changelog/upstream-apply-changelog.test.mjs and
    maintenance-audit-lane-runs/workflow.test.mjs: 642 pass, 0 fail.
  • actionlint 1.7.12 on the 14 touched workflows: no findings apart from the existing cache-mode
    and concurrency.queue keys, which that version does not know.
  • Pre-push (lefthook check-affected, guardrails reference-verify and content): pass.
  • Not yet verified: a live sandboxed-Bash run. The first such run is post-merge-test-mutation after
    this merges.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_015XWwmbdW8moDiQ5Rtgt7d5

Refs: melodic-software/ci-workflows#1060

Bump every run-claude-cli pin to 8f22403 (ci-workflows #1061), which runs
the leg's Bash in Claude Code's sandbox by default with network only to
github.com and api.github.com, and fails closed without socat while the
sandbox is on.

Set sandbox: "false" where the model's Bash needs more:
- maintenance-tidy-code-upkeep model legs: pip/npm installs and test suites.
- upstream-apply-changelog model legs: the changelog fetch from
  raw.githubusercontent.com; its scrub-probe legs match them.
- pr-verify-capture: launch's nested claude and npm ci; the probe matches.
- pr-run-activity-read launcher legs: ci-context skills get bare Bash and
  may run npm ci.

post-merge-test-mutation keeps the sandbox: its Bash runs local git and
suppression-lint.sh only. Every launcher job installs socat through
setup-runner-isolation.

Follow the pin where it is coupled: the eval classifier checkouts (plus
managed-settings.cjs, which lane.cjs now requires), apply-claude-managed-settings
in pr-verify and pr-verify-capture, the replay pin, and the pinned-SHA tests.

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

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-08T21:15:41.450496Z
We couldn’t complete this review. Comment @codex review to try again.
7df3660 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #14250, bump run-claude-cli pins to the sandbox default

No security issues found. I read every hunk of all 20 changed files in .claude-lane/pr.diff. Several of them are on trusted paths: pr-review-main.yml, pr-verify.yml, pr-unblock.yml, pr-rate-merge-risk.yml, pr-run-activity-read.yml, pr-verify-capture.yml, intake-triage.yml, post-merge-test-mutation.yml, maintenance-*, eval-* and upstream-apply-changelog.yml.

What changed

  • Pin bumps. Every run-claude-cli pin, the apply-claude-managed-settings pin and the ci-workflows classifier checkout move from b8bdd7f/4aba9be to a full commit SHA, 8f2240359aff2febf49ff1ff838d1ffb27d6b14f, in the owner's own melodic-software/ci-workflows repository. It stays a full SHA, persist-credentials: false stays on the classifier checkouts, and no outside source is added. Pin hygiene is zizmor's lane, and no attacker-controlled source enters.
  • sandbox: "false" on some legs. It is set on the Bash-using legs in maintenance-tidy-code-upkeep.yml, upstream-apply-changelog.yml (model and scrub-probe), pr-verify-capture.yml (capture and probe) and the three pr-run-activity-read.yml activity legs. At the base pins these legs ran with no Claude Code sandbox at all, so opting out keeps base behaviour. It is not a widening against base. The legs that do pick up the new sandbox default (read-only lanes and post-merge-test-mutation) are only narrowed.
  • eval-handoff.mjs. CLASSIFIER_FILES gains .github/actions/run-claude-cli/managed-settings.cjs, and each sparse checkout gains the same path. That file comes from the same pinned owner commit lane.cjs already loads from, so no new trust source is added.
  • Tests and comments. callers.test.mjs (resolve-config tests, not the signer control), hill-climb-workflow.test.mjs, parity.test.mjs, pr-verify/workflow.test.mjs, and replay.mjs's RUN_CLAUDE_CLI_PIN and comments only follow the pin.

Trust controls checked. I found no change to:

  • the trusted-trigger check or the trusted-actor list;
  • any lane token request or the broker's resolve-config signer modules;
  • the kill switch;
  • any merge-hold script or step;
  • any permissions: block, if: condition, tools, allowed-tools or disallowed-tools input.

Nothing widens.

Limits of this review. I did not read ci-workflows' code at 8f22403 (it is outside this checkout), so the PR's claim that those commits are additive is unchecked here. Even so, the pinned code is the owner's own repository at a fixed SHA, so no outside party reaches it through this diff.

Embedded text. The PR context contains no instructions aimed at this lane.

Spend. No change to turn limits, timeouts, models or schedules. Nothing draws extra prepaid or subscription usage.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

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

Code review: ci: bump run-claude-cli pins to the sandbox default

I read every hunk of all 20 changed files and found no blocking or advisory issues.

What I checked myself (read-only; I ran no tests or actionlint):

  • Pin coverage. Every run-claude-cli@ pin under .github/workflows now names 8f2240359aff2febf49ff1ff838d1ffb27d6b14f: 95 steps in 13 workflows, matching the PR's count. No b8bdd7f or 4aba9be pin of run-claude-cli is left. PERMISSION_PROMPTS_NONE_LAUNCHERS gains the new SHA, so the caller test still covers every pin.

  • Classifier files. CLASSIFIER_FILES in eval-handoff.mjs gains managed-settings.cjs. All six sparse-checkout lists (3 each in eval-browser-dispatch.yml and eval-hill-climb-pass.yml) gain the same path in the same position. eval-handoff.test.mjs:88 already asserts each sparse list equals CLASSIFIER_FILES, so the two stay locked together. loadLauncher copies every listed file before it requires lane.cjs, so the new require resolves.

  • sandbox: "false" placement. It is set on exactly the Bash legs the PR table names:

    • the 3 tidy-code model legs
    • the 3 upstream-apply-changelog model legs and their 3 scrub-probe legs
    • both pr-verify-capture legs
    • the 3 pr-run-activity-read run legs

    The legs left sandboxed either have no Bash, like the pr-unblock adjudicate legs (tools: Read only, at pr-unblock.yml:2153 and the others), or are post-merge only (post-merge-test-mutation). Every post-merge-test-mutation job sets install-subprocess-isolation: "true", so socat is present when the sandbox starts.

  • New test assertion. The sandbox assertion in pr-verify/workflow.test.mjs uses the file's raw-text input() helper (workflow.test.mjs:48). '"false"' matches the YAML as written.

  • Coupled pins. pr-verify.yml and pr-verify-capture.yml keep apply-claude-managed-settings and run-claude-cli at one commit, as their parity and workflow tests require.

Author-claimed, not verified by this lane: the node --test result (642 pass), the actionlint run, the claim that lane.cjs cliArgs at 8f22403 differ only by --settings, and the claim that apply-claude-managed-settings's default settings JSON is unchanged since b8bdd7f.

Note (not counted as a finding): three workflows now run run-claude-cli@8f22403 with apply-claude-managed-settings still at b8bdd7f:

The managed-settings.cjs check entered run-claude-cli at 4aba9be, after b8bdd7f. These legs therefore pair it with an older settings writer, a combination no caller ran before this PR. The PR says the default settings JSON is unchanged since b8bdd7f, which would make this harmless. I can't read ci-workflows to confirm, and none of the three workflows is in the PR's verification list.

Closing issues: the PR closes none; it only refers to ci-workflows#1060. No acceptance criteria to check.

Embedded text: none in the PR context.

Spend (not a hold, not a finding): this adds no new runs, turns or models. Some Bash legs now run sandboxed, which can make a leg fail and retry, using prepaid API credit or subscription usage.

No plugin manifests changed. No paved-path or path-scoped rule applies.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 8, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 8, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 8, 2026
Merged via the queue into main with commit 0e4818d Nov 8, 2026
136 of 141 checks passed
@kyle-sexton
kyle-sexton deleted the ci/run-claude-cli-sandbox-pins branch November 8, 2026 22:14
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 8, 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