Skip to content

fix(hooks): redirect sandbox-failing Git forms and drop covered prompts - #180

Merged
furedea merged 1 commit into
mainfrom
fix/sandbox-git-forms-and-scope
Oct 17, 2026
Merged

furedea merged 1 commit into
mainfrom
fix/sandbox-git-forms-and-scope

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Prompts reported after #178 came from three sources other than the allowlist.

  • Sandbox-failing Git forms are redirected.
    • The dangerous-Git guard denies git commit -S/--gpg-sign, git tag -s/--sign/-u, and git push -u/--set-upstream.
    • The denial message names the form that works. These forms fail inside the sandbox, and sessions then retried them with the sandbox disabled, which prompted.
    • Options are matched as parsed arguments, so a commit message that mentions -S passes.
  • nix develop moves to allow. It enters the project's development shell, which flake.lock pins. nix shell and nix run keep asking.
  • The shell directory scope check is dropped.
    • cd and git -C outside the registered worktree asked even for reads. The sandbox confines shell writes, and the check never saw absolute-path writes made without a cd.
    • Write, Edit, patch, and workdir target checks stay.

Closes #179

Verification

  • uv run --frozen pytest tests: 1464 passed. The 3 errors in tests/hermes/test_hermes_gateway.py also occur on main.
  • ruff, ty, and lefthook pre-commit passed.

🤖 Generated with Claude Code

Signed commits and tags and upstream pushes fail inside the sandbox, and
sessions then retried them with the sandbox disabled. The Git guard now
denies them and names the form that works.

nix develop enters the locked project shell and moves to allow. The
shell directory scope check goes: the sandbox confines shell writes, and
the check never saw absolute-path writes. Tool path checks stay.

Closes #179

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea
furedea merged commit 7e0a238 into main Oct 17, 2026
11 checks passed
@furedea
furedea deleted the fix/sandbox-git-forms-and-scope branch October 17, 2026 09:00
@furedea-agent furedea-agent Bot mentioned this pull request Nov 12, 2026
1 task done
furedea added a commit that referenced this pull request Nov 12, 2026
agent-config 0.1.2(`3b3d9c5`)を取り込みます.#74 のモデル判定まわりの残りがすべて入ります.

| 取り込む変更(furedea/agent-config) | 中身 |
| --- | --- |
| #172 | 「ルールの見本のフォルダ」の判定を 1 か所にまとめる |
| #173 | jev-lint の子プロセスに `GIT_LITERAL_PATHSPECS=1` を渡す(#159) |
| #174 | 時間に頼らないタイムアウトのテスト(#171) |
| #175,#178 | Go と Rust のルールの穴と,境目の見本(#164) |
| #180 | 読み取り専用の GraphQL の問い合わせのあとに `jq` を付けてよくする |
| #177 | Stop のテストの行を,ランナーごとに 1 つの件数にまとめる(Rust は `312 passed` のように合計する)
|

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

ほかのセッションが main の古い `flake.lock` で反映すると,これらが取り消されます.早めにマージします.

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

Redirect sandbox-failing Git forms and drop prompts the sandbox already covers

1 participant