Skip to content

build(nix): install sandbox-runtime from nixpkgs-unstable - #455

Merged
furedea merged 1 commit into
mainfrom
build/install-sandbox-runtime
Nov 12, 2026
Merged

furedea merged 1 commit into
mainfrom
build/install-sandbox-runtime

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Pi の bash とファイル系ツールを srt で包むため(furedea/agent-harness#221,#228),unstable.sandbox-runtime(srt 0.0.79)を入れる.0.0.52 は deny の glob がディレクトリの中身に効かないため使えない.

項目 現在 変更後
srt 未インストール nixpkgs-unstable の 0.0.79
deny glob(**/.git/hooks/** など) 0.0.52 はディレクトリ自体にしか一致しない denyGlobRegex で中身まで一致する

検証

  • nix build .#darwinConfigurations.mba.system が成功
  • 実 srt 0.0.79(macOS)で次を確認(8/8 PASS)
    • linked worktree 内での書き込みと commit が通る
    • glob だけで指定した .git/hooks/**・.git/config・.git/worktrees/*/config.worktree への書き込みが拒否される
    • glob で指定した denyRead 下のファイルを読めない
    • worktree 外のファイルへのハードリンク作成が拒否される
範囲外
  • Pi 拡張を配るための flake.lock の agent-harness 更新(別 PR)
  • Pi の実機確認(ChatGPT プランが使えるようになってから)
  • 最新の srt 0.0.82 は公開から日が浅いため見送り

🤖 Generated with Claude Code

Pi's generated extensions run its bash and file tools through srt.
nixpkgs-unstable ships srt 0.0.79, whose deny globs also match the
contents of a denied directory; the stable 0.0.52 matched only the node.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea

furedea commented Nov 12, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 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-12T04:22:11.320046Z 7bd1e4f Manual request
ℹ️ 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

Review summary: This PR adds one line: unstable.sandbox-runtime in nix/home/default.nix. It follows the same pattern as the other unstable.* packages in that file, and the description says the darwin system build succeeds. I found no correctness bugs or security problems, and nothing blocks the merge. A one-line package addition needs no extra tests.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 7bd1e4fd63

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea
furedea merged commit bbe19ee into main Nov 12, 2026
21 checks passed
@furedea
furedea deleted the build/install-sandbox-runtime branch November 12, 2026 04:24
@furedea-agent furedea-agent Bot mentioned this pull request Nov 12, 2026
2 tasks done
furedea added a commit that referenced this pull request Nov 12, 2026
agent-harness を `37de3ac` に更新し,furedea/agent-harness#228(Pi の bash
とファイル系ツールを srt 内で実行)を Pi に配る.srt 本体は #455 で導入済み.

| 項目 | 現在 | 変更後 |
| --- | --- | --- |
| agent-harness | `e010600`(#228 を含まない) | `37de3ac` |
| `~/.pi/agent/extensions` | `hook_bridge.ts` のみ |
`bash_sandbox.ts`・`sandbox/file_operations.mjs`・`sandbox_policy.json`
が加わる |

## 検証

- [x] `nix build .#darwinConfigurations.mba.system` が成功
- [x] 生成物に Pi の拡張と `sandbox_policy.json` が含まれ,`denyRead` に
`~/.pi/agent/auth.json`,`network.deniedDomains` が出力されている

<details><summary>範囲外</summary>

- Pi の実機確認(ChatGPT プランが使えるようになってから)

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

1 participant