Skip to content

feat(claude): let Go CLIs verify TLS inside the sandbox - #167

Merged
furedea merged 1 commit into
mainfrom
feat/let-go-clis-verify-tls-in-the-sandbox
Oct 15, 2026
Merged

furedea merged 1 commit into
mainfrom
feat/let-go-clis-verify-tls-in-the-sandbox

Conversation

@furedea

@furedea furedea commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Go CLIs such as gh verify certificates through com.apple.trustd.agent, which the macOS sandbox blocks; inside the sandbox gh fails with x509 OSStatus -26276. sandbox.enableWeakerNetworkIsolation allows only that trustd lookup on macOS (anthropics/claude-code#34876, #82793; effective since 2.1.220, installed 2.1.296). Filesystem and network restrictions are unchanged.

This is the first step toward running gh and git push inside the sandbox with an agent-scoped token, so chained calls no longer need an unsandboxed retry.

Closes #166

Verification

  • tests/agents/claude/test_settings.py: 6 passed, including a new test that the setting is on.
  • dprint, ruff, and commitlint passed.
  • Before this change, inside the sandbox: gh api rate_limit with an invalid GH_TOKEN fails with x509 OSStatus -26276. After merge and home-manager switch the same call should fail with HTTP 401, which proves TLS verification works.

🤖 Generated with Claude Code

Go CLIs such as gh verify certificates through trustd, which the macOS sandbox blocks.

enableWeakerNetworkIsolation allows only that lookup on macOS, so gh can run sandboxed.

Closes #166

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 15, 2026 10:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@furedea
furedea merged commit 01dff28 into main Oct 15, 2026
11 checks passed
@furedea
furedea deleted the feat/let-go-clis-verify-tls-in-the-sandbox branch October 15, 2026 10:23
furedea added a commit that referenced this pull request Oct 21, 2026
## 概要

- `flake.lock` の `agent-harness` を main の最新(4057e01)に上げる.手元で `switch`
済み.
- 中身は furedea/agent-harness#166(数値 lint を入れるための,振る舞いを変えないリファクタリング)と
#167(`rustls-webpki` と `webpki-roots` の脆弱性の修正).

| 項目 | 変更前 | 変更後 |
|---|---|---|
| agent-harness | 60c871b(0.9.5) | 4057e01(main) |

## 受け入れ条件

- [x] 手元で `switch` できる
- [ ] CI が通る

<details>
<summary>参照元</summary>

- furedea/agent-harness#166,#167
- Refs #247
</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]>
furedea added a commit that referenced this pull request Nov 12, 2026
agent-config の最新を取り込みます.#74 のモデル判定の改善がまとめて入ります.#452 の置き換えです(#452 はこの PR
の前の版の `flake.lock` でした).

| 取り込む変更(furedea/agent-config) | 中身 |
| --- | --- |
| #157 | Stop に判定の秒数を出す.`model-rules/**/fixtures/**` をモデル判定に送らない |
| #160 | `model-rules/*/fixtures/*` をテストの検証で数えない |
| #163 | Python と TypeScript の誤検知を直す(M-05 は原則の書き直しと基準値,M-21 は送る範囲を
`located` に) |
| #167 | 保存結果の数を下見から取る |
| #158 | Go と Rust の M-05,M-21,M-60 を追加.保存した基準を相対パスで取り直した |
| #170 | Stop の表示を `jev-lint: 0 findings · 74 subjects · passed ·
$0.0004 · 4.3s` の 1 行にする |

- [x] `darwin-rebuild switch` で反映済み

🤖 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.

Let Go CLIs verify TLS inside the Claude sandbox

2 participants