Resume-eval sessions: Bash sandbox instead of git permission globs

未关闭
#17,792 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
bash, git

调研方向

The change lives in the resume-eval sessions' --settings and their git allow/deny globs, so start by locating those settings and the existing blanket git ls-remote deny. Read the linked owner-decision record for Q63/Q66, then update each session to enable the Bash sandbox and narrow the deny patterns to URL and user@host forms. Add a test covering git ls-remote and git fetch with and without -C, then run the before-arm trial on re-late-event and re-decision-trimmed-to-fit to confirm at least 2 of 4.

由索引模型根据 Issue 内容生成。

描述

host-run

Problem

In the session-flow resume eval, a resumed Claude Code reader confirms the refs its case story names (a PR head, a release branch) with git -C <run repo> ls-remote origin or git fetch origin. The eval sessions denied git ls-remote outright, the auto-mode classifier refused the -C form ("Undermining Oversight"), and the run counted as not delivered. In the last A/A, the before arm delivered 0 of 16 runs on re-decision-trimmed-to-fit and 0 of 15 on re-late-event.

Allow and deny globs could not open the local read without opening network forms: review lanes and pr-verify on #17700 found --upload-pack, scp-style host:path fetches, -C to another checkout and --exec-path slipping through, because a glob cannot tell which argument a colon or flag belongs to.

Owner decisions

Recorded in the owner-decisions record: https://github.com/melodic-software/architecture/blob/fb7ac72fc5417e324d7744ee8297039b3e2e6231/docs/owner-decisions.md#L287-L288 (melodic-software/architecture#143)

  • Q63, 2026-11-20 ~23:3xZ, owner verbatim: "Go with recommendations. Just make sure that the rules are generalized and safe. I don't want repo-specific rules. The rules that we put there, permissions need to be generalized, basically."
  • Q66, 2026-11-21 ~03:5xZ, on "Should eval sessions use the Bash sandbox with no allowed network domains, instead of the git allow and deny globs?", owner verbatim: "Go with recommendations."

Done when

  • Each resume-eval session's --settings enables the Bash sandbox with auto-allow, allowUnsandboxedCommands: false, failIfUnavailable: true, no allowed network domains and strictAllowlist: true, writable only in the working directory, the run folder and the harness temp directory.
  • The eval sessions' blanket git ls-remote deny narrows to the URL (*://*) and user@host (*@*) forms of git ls-remote and git fetch, with and without -C; the curl, wget, WebFetch and WebSearch denies stay. No allow rule is added.
  • A test asserts those network forms stay denied and the local origin reads are not denied.
  • A trial on re-late-event and re-decision-trimmed-to-fit (before arm, Claude Code reader, 4 runs each) delivers at least 2 of 4 per case.
主要语言
Shell
星标
22
派生
2
平均合并
2 小时
30 天内合并 PR
960

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。