Skip to content

feat(dsh): add the dsh hook adapter - #101

Merged
furedea merged 8 commits into
mainfrom
feat/68-dsh-hook-adapter
Nov 9, 2026
Merged

furedea merged 8 commits into
mainfrom
feat/68-dsh-hook-adapter

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

概要

dsh(DeepSeek Harness)用の hook adapter を追加し,共有 guard を dsh の tool 名で動かす.agent-harness v0.9.10(dsh provider を含む)に合わせて flake.lock を更新した.

Closes #68

前提の確認結果:#68 (comment)

変更

  • agents/dsh/hooks/hook_adapter.py: Profile(name="dsh").dsh の tool 名(bash,read,read_image,write,edit,str_replace_editor,apply_patch,glob,grep,web_fetch,web_search)を共有 tool 名へ正規化する.manifest は AGENT_HARNESS_DSH_MANIFEST(既定 ~/.dsh/hooks.json).
  • agents/hooks.json: dsh セクション(tools/pre-execute と tools/post-execute).禁止コマンド,秘密情報パス,harness 境界,秘密内容の scan を pre-execute で,lint/format を post-execute で実行する.
  • bridge が読む出力と dsh の tool 仕様に合わせた共有コードの変更:
    • hook_dispatch: systemMessage を返す.decision(decision/action)は先行する systemMessage より優先する.
    • lint_format.emit と Profile.lint_output: dsh は diagnostics を top-level systemMessage で返す.他 provider は従来どおり.
    • Adapter.lint は str_replace_editor の view と,tool_response.isError が true の呼び出しでは何もしない.Adapter.harness も view ではスキップする.
    • Adapter._payload: tool_input.workdir があればそこへ移動し,転送する payload の cwd に反映して workdir は取り除く(二重適用の防止).guard が実際にコマンドが動くディレクトリで評価される.
    • guard_file: dsh の秘密内容ブロックを decision 形式にし,content write が new_str / file_text も scan する.content read は str_replace_editor の view にも効き,create/str_replace/insert は scan しない.
    • audit_log: provider として dsh を受け付ける.
  • scripts/bootstrap_server.sh: .dsh/hooks の shebang を固定し,agent-harness の既定版を 0.9.10 にした.
  • flake.lock: agent-harness を v0.9.10(6c60666)へ更新.

判断

  • str_replace_editor と read/write/edit/glob/grep の payload 形は,インストール済み dsh 0.2.1-rc.5 の実装と README で確認した.apply_patch は同版に実装が見当たらないが,dsh の UI が扱う名前なので先回りで対応した.
  • bridge は native(session 登録・stop)と audit を呼ばないため,dsh の adapter はこれらを提供しない.dsh の hook 実行は verification session の対象外で,tool の監査ログも入れていない.
  • レビューで指摘された 7 件はすべて対応した(view の read scan,apply_patch,shebang,view の harness と lint,bash の workdir,decision と systemMessage の順序,失敗した編集の lint,workdir の二重適用).各修正は修正前に赤になることを確認している.

検証

  • uv run pytest(ロック済み agent-harness 0.9.10 を AGENT_HARNESS_BIN で指定): 3727 passed,1 skipped.bats 69 件,ruff,ty も通過.
  • ローカルにインストール済みの agent-harness は古く generate-dsh-hooks を知らないため,素の pytest では生成テスト 10 件が失敗する(コードの不具合ではない).CI はロック済みの版を使い,緑になっている.
  • CI の bootstrap は GitHub からのダウンロードの一時的な HTTP エラーで 1 度失敗したが(main でも同じ),再実行で通過した.
  • 未確認:実機の dsh での block と lint の動作(dotfiles#391 の Lane 2 で確認する).

計画からの逸脱

なし.

Add agents/dsh/hooks/hook_adapter.py with a Profile that maps the dsh
built-in tools (bash, read, read_image, write, edit, str_replace_editor,
glob, grep, web_fetch, web_search) to the shared tool names, and a dsh
section in hooks.json for the tools/pre-execute and tools/post-execute
events that the agent-harness bridge dispatches.

The bridge only reads decision/action blocks and systemMessage, so:
- hook_dispatch forwards systemMessage lines
- lint can encode diagnostics as a systemMessage (Profile.lint_output)
- secret-content blocks for dsh use the decision shape
- content write also scans the str_replace_editor new_str/file_text fields
- audit records accept the dsh provider

Update flake.lock to agent-harness v0.9.10, which provides the dsh
provider.

Closes #68

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

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 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-09T08:31:44.952357Z 7639913 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.

Comment thread agents/hooks.json Outdated
]
},
{
"matcher": "^(read|read_image|glob|grep)$",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: str_replace_editor は view コマンドでファイル内容を読めるが,content read を実行するのはこの read グループだけで,str_replace_editor が含まれていない.paths patch は write グループで秘密情報パスを block するが,秘密内容の scan(fixture-sensitive-marker / API key パターン)は view に効かない.たとえば notes.txt に秘密情報が入っていると,read なら block されるが,{"tool_name":"str_replace_editor","tool_input":{"command":"view","path":"notes.txt"}} ならそのまま読める.pi/hermes では read 系 tool はすべて content read を通っているので,dsh だけ抜け道がある.

対策案:str_replace_editor の command == "view" のときに content read を実行する(例:この matcher に str_replace_editor を加え,guard_file.content_text の read 分岐で path を読む).あわせて view のテストも追加する.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

修正しました(5b5db63).str_replace_editor を content read のグループに加え,view が秘密内容の scan を通るようにしました.create/str_replace/insert は書き込みなので read の scan 対象から外しています(既存ファイルに秘密情報が残っていても編集で消せるようにするため).view の block と,3 つの書き込みコマンドが block されないことのテストを追加しました.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

レビュー結果

ブロッキングな指摘はありません(P0/P1: 0 件).

  • P2: str_replace_editor の view が content read(秘密内容の scan)を通らない(agents/hooks.json にインラインコメントあり).

確認したが問題なしと判断した点:

  • hook_dispatch.DECISION_KEYS に systemMessage を加えた件."最初の decision が勝つ" ので,先に出た systemMessage が後の decision: block を隠すおそれがある.ただし pi/hermes の現在の manifest では,stdout に decision を出す guard(content read/write)より前の hook は {} を出すか exit 2 で block するだけなので,実害はない.今後 hook の順番を変えるときは注意が必要.
  • lint_output の既定値は lint_format.context のままなので,既存 provider の lint 出力は変わらない.
  • content write の new_str / file_text の scan と,str_replace_editor の path を使う paths/harness guard はテストされている.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0ea14e5f6b

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

Comment thread agents/hooks.json
]
},
{
"matcher": "^(write|edit|str_replace_editor)$",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge apply_patch にも書き込みガードを適用する

dsh-base または Web standard プリセットで apply_patch が有効な環境では,この matcher が write|edit|str_replace_editor に限定されているため,apply_patch の呼び出しは paths patch,harness 境界,秘密内容スキャン,lint のすべてを通過しません.公式の tool-fs README では apply_patch が複数ファイルを変更でき,これらのプリセットで有効になることが明記されているため,例えばパッチで .env を変更しても本変更が追加する保護を完全に迂回できます.apply_patch を Profile と pre/post matcher に追加し,入力の input を content apply-patch として検査してください.DeepSeek Harness tool-fs documentation

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

修正しました(5b5db63).apply_patch を Profile の tool 対応表に加え,pre-execute に paths patch,harness,content apply-patch のグループを,post-execute の lint の matcher に apply_patch を追加しました.input/patch/command のどのフィールドでも秘密情報パスと harness 境界が block されること,追加テキストの scan,lint の対象になることをテストしています.なお,インストール済みの dsh 0.2.1-rc.5 には apply_patch の実装は見当たらず,新しい preset 向けの先回りの対応です.

- Run the content read scan for str_replace_editor so `view` cannot read
  a file that holds sensitive content; its create/str_replace/insert
  commands are writes and are not read-scanned.
- Route apply_patch through the secret path, harness boundary, content
  and lint hooks like pi and Devin do.

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

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b5db6327e

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

@@ -0,0 +1,39 @@
#!/usr/bin/env -S python3 -IB

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge dsh adapter の shebang も pin する

scripts/bootstrap_server.sh でインストールする環境では,pin_python_shebangs のディレクトリ列挙(346–347行)に .dsh/hooks がないため,新しい adapter だけがこの env python3 shebang のまま残ります.その結果,dsh の実行環境で python3 が PATH にない場合は全 hook が起動せず,別の Python が見つかる場合も bootstrap が導入した管理対象 interpreter を使いません.既存 provider と同様に .dsh/hooks を pin 対象へ追加してください.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

修正しました(3e5fdf7).pin_python_shebangs の対象に .dsh/hooks を追加し,bats の RENDERED_ENTRY_POINTS に dsh の adapter を加えて,shebang が管理対象 interpreter に固定されることをテストしています(修正前は赤になることを確認).あわせて,dsh を描画できる最初のリリースである agent-harness 0.9.10 に bootstrap の既定版を上げ,flake.lock と揃えました.

Pin python shebangs under .dsh/hooks like the other provider hook
directories, so the dsh adapter runs with the managed interpreter on
servers bootstrapped without Nix. Raise the bootstrap agent-harness to
0.9.10, the first release that renders the dsh provider and the version
flake.lock now pins.

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

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

Comment thread agents/hooks.json
]
},
{
"matcher": "^(write|edit|str_replace_editor)$",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2: str_replace_editor is matched here as a write tool, but the same tool also handles view, which only reads. So every view call runs harness (and content write) as well. harness blocks any target on the harness boundary no matter which command is used. As a result, str_replace_editor with {"command": "view", "path": "~/.dsh/hooks/hook_adapter.py"} (or any protected harness file) gets the "agent harness boundary" block, even though viewing is a read. read on the same file is allowed. The adapter already treats view as a read in guard_file.content_text (EDITOR_MUTATIONS). harness should skip view the same way, and the same applies to the post-execute lint group that the PR description mentions. There's also no test for view against the harness boundary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

修正しました(de0676a).harness と lint は,str_replace_editor が view だけを行う呼び出しではスキップします.view で ~/.dsh/hooks/hook_adapter.py を閲覧できること,create/str_replace/insert は引き続き境界で block されること,view で lint が走らないことをテストしました.秘密情報のパスと内容のチェックは view にも適用したままです.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary

Blocking findings: 0 (P0/P1: none)

  • P2: agents/hooks.json: the dsh write-group matcher includes str_replace_editor. Its read-only view command therefore also goes through harness and content write, so viewing a protected harness file is blocked as if it were an edit. read on the same file is allowed. There's no test for this case.

What I checked and found no issues with:

  • hook_dispatch now also treats systemMessage as a decision key. In the current pi/hermes manifests, no notice-only hook comes before a hook that blocks on stdout for the same event, so no block decision gets hidden. One thing to keep in mind: "first decision wins" means a notice placed earlier in a manifest would now hide a later block.
  • lint_format.emit/Profile.lint_output keep the old default for other providers. The guard_file new-field scan, the EDITOR_MUTATIONS read skip, the audit_log/scan_content provider additions, and the bootstrap/lock bumps all look consistent.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3e5fdf756f

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

Comment thread agents/hooks.json
],
"tools/post-execute": [
{
"matcher": "^(write|edit|str_replace_editor|apply_patch)$",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge str_replace_editor の view を自動整形から除外する

str_replace_editor は command: "view" の場合もこの matcher に一致するため,閲覧後に lint_format.diagnostics() が実行されます.この処理は採用済み formatter があるプロジェクトでは ruff --fix や formatter を実行して対象ファイルを書き換えるので,未整形ファイルを単に view しただけで作業ツリーが変更されます.DSH の公式仕様でも view は stat と表示だけを行う読み取り操作です(tool-str-replace-editor README).adapter 側で command == "view" の lint を省くなど,mutation コマンドだけを post-edit 処理へ通してください.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

修正しました(de0676a).view は lint/format を実行しません(view では ruff が走らず出力も空であることをテスト).lint が --fix で閲覧しただけのファイルを書き換える経路は,この変更で閉じています.

Comment thread agents/hooks.json
]
},
{
"matcher": "^(write|edit|str_replace_editor)$",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge str_replace_editor の view を書き込み境界ガードから除外する

str_replace_editor の view もこの書き込み用 matcher に一致し,harness がパスだけを見て mutation として扱います.そのため,例えばデバッグ目的で ~/.dsh/hooks/hook_adapter.py を閲覧するだけでも exit 2 で拒否されますが,公式仕様では view は読み取り専用で,変更操作は create,str_replace,insert です(tool-str-replace-editor README).harness と content write は mutation コマンドの場合だけ適用してください.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

修正しました(de0676a).harness は view では何も検査せず,exit 0 を返します.mutation コマンド(create/str_replace/insert)は従来どおり block されます.content write は view では new_str/file_text が無く検査対象が空になるため,そのままにしています.

The editor tool shares one name for view and for its mutations, so the
write-group hooks also ran on a read. Skip the harness write boundary and
lint/format when the call only views a file: viewing a protected file is no
longer refused, and a view can no longer trigger a formatter that rewrites
the file. Secret path and content checks still apply to a view.

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

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: de0676a2b5

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

Comment thread agents/hooks.json
"type": "command"
},
{
"command": "\"$HOME/.dsh/hooks/hook_adapter.py\" shell commit",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge bash の workdir をコミットガードへ反映する

DSH の standard bash schema を確認すると,workdir がコマンドの実行ディレクトリになり,相対値も Session workspace 基準で解決されます(公式 tool catalog).しかしこの hook から呼ばれる adapter は top-level cwd に移動したまま guard_file.commit_verdict を実行し,tool_input.workdir を反映しません.例えば cwd=A,workdir=B,command="git commit" では A の index を検査してから B で commit が実行されるため,B に staged された .env を秘密コミット検査なしで commit できます.paths command にも同じ基準ディレクトリのずれがあるので,bash guards の有効 cwd を workdir から正規化してください.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

修正しました(b56e2b4).adapter は payload の cwd に移動したあと,tool_input.workdir があればそこへ移動し(相対値は cwd 基準),payload の cwd も実効ディレクトリに置き換えます.shell commit,paths command を含むすべての guard が,コマンドが実際に動くディレクトリで評価されます.存在しない workdir は block されます.cwd が clean な repo,workdir が .env を staged した別 repo のとき,絶対パスと相対パスの両方で commit が block されることを,修正前に赤になることを確認したうえでテストしました.共有の adapter の変更なので,workdir を持つ他 provider の shell tool にも効きます.

A shell tool that carries a workdir runs its command there, but the adapter
evaluated the guards in the payload cwd. With cwd=A and workdir=B, the secret
commit check inspected A's index while the commit ran in B. Change into the
workdir (relative values resolve against cwd) and report it as the payload
cwd, so every guard sees the directory the command uses. A workdir that does
not exist blocks the call.

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

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary (read-only): no blocking findings

What I checked:

  • hook_dispatch now treats systemMessage as a decision. This change affects every provider that fans out through a manifest, including hermes and pi. A systemMessage line could hide a later block printed on stdout, because the first decision line wins. I found no case where that happens in the current manifests: the only pre-tool systemMessage comes from the shell allowed notice, which runs last in the bash group, and every shell guard blocks with exit 2, which still wins. native pre-tool-use prints {} or a denial, never a systemMessage. Keep this in mind if a guard that blocks on stdout is ever placed after a notice in the same group.
  • _in_workdir. This applies to all providers (Codex and Hermes shell tools also send workdir). A relative workdir resolves against the payload cwd. A workdir that doesn't exist or isn't a directory raises OSError, which main turns into exit 2, so the guards block rather than let the call through.
  • str_replace_editor. view still goes through paths patch and content read. The harness and lint checks skip only view, so undo_edit and any unknown command still hit the harness boundary. content write covers new_str and file_text.
  • Tests. The new behavior has tests: dsh adapter end to end, dispatch re-emitting systemMessage, and generated-manifest coverage. One small gap: _in_workdir is only tested through the dsh adapter, though it also applies to codex, hermes and pi.

Note: the PR description says lint still runs on str_replace_editor view, but views_only now skips it, so the description is out of date.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b56e2b4179

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

Comment thread agents/hooks/lib/hook_dispatch.py Outdated

DEFAULT_TIMEOUT = 60
DECISION_KEYS = {"decision", "action"}
DECISION_KEYS = {"decision", "action", "systemMessage"}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge systemMessage より後続の拒否を優先する

同じイベントで先行 hook が systemMessage を出し,後続の guard が {"decision":"block"} を出す場合,systemMessage がここで terminal decision として保存されるため,run() は後続の拒否を無視して最初のメッセージを返し,ツール実行を許可します.通知は拒否判断ではないため,systemMessage を別に集約するか,少なくとも後続の decision/action で上書きできるようにしてください.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

修正しました(daaf907).dispatch は systemMessage を decision とは別に保持し,decision/action が 1 つでもあればそれを優先して出力します(decision がなければ最初の systemMessage).先行 hook の systemMessage の後に後続 guard が block を出すケースで block が返ること,block がなければ最初の通知が返ることを,修正前に赤になることを確認したうえでテストしました.

A notice is not a decision, but dispatch stored the first systemMessage as
the terminal decision, so a later guard's block was dropped and the tool call
ran. Keep the notice separately and print a decision whenever one exists,
falling back to the first notice otherwise.

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

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary (read-only)

No P0–P3 findings.

What I checked:

  • agents/dsh/hooks/hook_adapter.py: dsh tool names map to the shared names. str_replace_editor → Edit works with hook_input.FILE_FIELDS, which already includes path.
  • guard_file.content_text: new_str/file_text are now scanned on write. The EDITOR_MUTATIONS short-circuit only skips the pre-tool file read for create/str_replace/insert, and view is still scanned.
  • provider_adapter._in_workdir: if chdir fails with an OSError, main catches it and exits 2, so the guard blocks rather than letting the call through. The cwd it hands to payload_directory and the commit guard is correct, and tests cover both relative and absolute workdir.
  • views_only: it only matches Edit with command == "view", so lint and harness behave as before for other providers.
  • hook_dispatch: a decision still outranks a systemMessage notice, an exit code 2 still forces a block, and the new tests cover this.

Not verified here: the dsh bridge running end to end, which the PR also lists as unverified.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: daaf907969

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

Comment thread agents/hooks.json
],
"tools/post-execute": [
{
"matcher": "^(write|edit|str_replace_editor|apply_patch)$",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 失敗した編集では lint/format を走らせない

DSH で edit/write/apply_patch が失敗した場合も,tools/post-execute はエラー結果を伴って実行され,hook bridge も結果の成否を判定せず PostToolUse hook を起動します(公式実装).この matcher と lint() は tool 名しか確認しないため,例えば old_string が見つからず edit が失敗した場合でも,既存ファイルに ruff --fix や formatter が実行され,失敗したはずの操作がファイル変更を発生させます.bridge から isError を伝えて成功時だけ lint/format を実行するなど,失敗結果を除外してください.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

修正しました(4029995).bridge は tool_response に dsh の ToolResult をそのまま渡し,isError は最上位にあります.lint は tool_response.isError が true のとき何もしません.write/edit/str_replace_editor/apply_patch の 4 つで,isError: true なら出力が空,false なら diagnostics が返ることを,修正前に赤になることを確認したうえでテストしました.失敗した編集が既存ファイルに ruff --fix や formatter を走らせる経路は,これで閉じています.

The dsh bridge runs tools/post-execute for errored results too, and it hands
the result over as tool_response. Lint ran by tool name only, so a failed
edit (for example an old_string that does not match) still triggered
`ruff --fix` or a formatter on the untouched file. Skip lint when the
tool_response reports isError.

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

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary

I found no blocking issues and posted no inline comments.

What I checked:

  • hook_dispatch: a later decision still outranks a systemMessage notice. Exit code 2 still hard-blocks.
  • provider_adapter:
    • _in_workdir resolves a relative workdir against the payload cwd, so the commit, path and git guards inspect the repository where the command actually runs.
    • views_only exempts only str_replace_editor view from the harness boundary and lint. paths patch and content read still guard view.
    • failed skips lint only when tool_response.isError is true.
  • guard_file:
    • content write now scans new_str and file_text.
    • The editor's create, str_replace and insert commands are no longer read-scanned as if they were reads.
    • The secret-content block uses the decision format for dsh.
  • The agents/hooks.json dsh matchers cover read, edit and patch tools in both the pre-execute and post-execute events.
  • Tests cover the new behavior: the dsh adapter tests, the dispatch notice/decision precedence tests and the generation tests.

Minor notes, not worth inline comments:

  • A workdir that doesn't exist now makes every adapter subcommand exit 2 with BLOCKED: [Errno 2] .... This change is shared code, so it applies to every provider, not just dsh. It fails closed, which is acceptable, but it is untested.
  • The dsh tool names, tool_response.isError and the bridge's handling of systemMessage still need checking on a real dsh, as the PR description already says.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4029995985

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

Comment thread agents/hooks/lib/provider_adapter.py Outdated
Comment on lines +247 to +248
os.chdir(workdir)
return payload | {"cwd": os.getcwd()}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge dispatch 時に相対 workdir を二重適用しない

DSH の dispatch tools/pre-execute 経路では,外側の adapter がここで cwd=/repo と workdir=packages を /repo/packages に正規化した後も,転送する tool_input に workdir=packages を残しています.manifest 内の各コマンドが同じ adapter を再起動すると,内側の _payload() がその値をもう一度適用して /repo/packages/packages へ移動しようとするため,存在しない場合は hook が exit 2 となり,有効な bash 呼び出しが拒否されます.DSH の bash schema では相対 workdir は Session workspace 基準の正当な入力なので,dispatch 済みの payload から workdir を除くか,一度だけ解決してください(公式 tool catalog).

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

修正しました(7639913).指摘のとおり,b56e2b4 で入れた workdir の適用が,dispatch が manifest の各コマンドへ転送する payload に元の workdir を残したため,相対値が内側の adapter で再度適用されていました.workdir を解決して cwd に反映したあとは,転送する tool_input から workdir を取り除きます.cwd が repo,workdir=packages(存在する)の dispatch で,修正前は BLOCKED: No such file or directory: packages(exit 2)になること,修正後は通ることをテストしました.

The adapter now changes into a tool's workdir and forwards the resolved cwd,
but it also forwarded the original tool_input.workdir. Each manifest command
re-runs the adapter on that payload, so a relative workdir such as `packages`
resolved again to `<cwd>/packages/packages` and a valid call was blocked.
Drop workdir from the forwarded payload once it is resolved into cwd.

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

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Review summary

No blocking findings (P0/P1: 0). No inline comments posted.

Checked:

  • _in_workdir (shared by all adapters): this removes workdir and moves cwd to it before native pre-tool-use. I checked whether that lets a shell call escape verification_session.check_scope. It doesn't: registered_record resolves the registration from the new cwd, so a workdir outside the registered worktree finds no registration and is denied. Before, it was an ask; denial() turns both into a block. A workdir that doesn't exist makes os.chdir fail, and the adapter blocks with exit 2.
  • hook_dispatch: a decision still wins over a systemMessage notice, and exit 2 is still a hard block. Hermes and pi now also get notice lines through dispatch. That should be harmless for bridges that ignore unknown keys. One edge case: _run_hook takes only the first matching line of each hook's stdout, so a hook that printed a notice and then a decision would lose the decision. No current hook prints both.
  • guard_file: content write now scans new_str and file_text. content read skips the editor's create, str_replace and insert commands but still scans view. views_only and failed correctly skip the harness check and lint for view-only or errored calls.
  • hooks.json, profile tool map and bootstrap: bootstrap_server.sh gets the version bump and the .dsh/hooks shebang pinning. The tests cover the new behaviour: dsh adapter, dispatch notices and generated-manifest coverage.

Not verified here: whether the real dsh payloads use these exact fields (workdir, tool_response.isError, the str_replace_editor fields). The PR description also says this is still unchecked on a real dsh install.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 7639913974

ℹ️ 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 db86f57 into main Nov 9, 2026
24 checks passed
@furedea
furedea deleted the feat/68-dsh-hook-adapter branch November 9, 2026 08:35
furedea added a commit to furedea/dotfiles that referenced this pull request Nov 9, 2026
## 概要

`agent-harness.dsh.enable = true` を有効化し,dsh に
hooks,bridge,skills,`AGENTS.md` を配置する.
dsh パッケージ自体は #392 で導入済み(Lane 1).

- `agent-harness` を 0.9.10(dsh provider 入り)へ,`agent-config` を dsh hook
adapter(furedea/agent-config#101)入りの eae1408 へ更新
- `nix/home/default.nix` で `dsh.enable = true`

Refs #391(実機確認が済むまで Issue は開いたままにし,ユーザーが確認後に閉じる)

## 検証

| 項目 | 結果 |
|
--------------------------------------------------------------------------------------
| ------------------------------------------------------------- |
| `nix flake check --all-systems --no-build --option
allow-import-from-derivation false` | 通過 |
| `nix build .#darwinConfigurations.mbp.system` | 成功 |
| home.file の `.dsh/*` |
`AGENTS.md`,`bridge`,`hooks`,`hooks.json`,`skills` を確認 |

計画からの逸脱:なし.

## 実機での確認(switch 後,ユーザー作業)

- [ ] `dsh --version` が llm-agents.nix 固定版を返す
- [ ] `~/.dsh/hooks`,bridge,skills,`AGENTS.md` が配置されている
- [ ] dsh 上で禁止コマンドが block される
- [ ] dsh 上で秘密情報パスが読めない
- [ ] skills が dsh の catalog に出る
- [ ] `AGENTS.md` が読み込まれる

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

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
furedea pushed a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


## 0.1.0 (2026-11-10)


### Features

* add devin provider to hooks.json with hook adapter
(furedea/dotfiles[#136](#136))
([5bc5550](5bc5550))
* add git-commit-split skill
([35f4e16](35f4e16))
* add Hermes Agent and pi hook providers
(furedea/dotfiles[#138](#138))
([ed3a774](ed3a774))
* add lock-settings, report-doc-conflict, and report-hook-block skills
([35b8585](35b8585))
* **agents:** add Rust style skill
([a82df41](a82df41))
* **agents:** allow cd, sed, awk, xargs, cp, and mv under the sandbox
(furedea/dotfiles[#165](#165))
([5783f87](5783f87))
* **agents:** bootstrap the harness on servers without Nix
([80a0f9b](80a0f9b))
* **agents:** chain git add, status, commit, and push outside the
sandbox
(furedea/dotfiles[#169](#169))
([dd5a05c](dd5a05c))
* **agents:** Codex implements, Claude reviews, and lanes clean up
opened workspaces
(furedea/dotfiles[#266](#266))
([c9a3fd9](c9a3fd9))
* **agents:** generate hook settings from nix
([b20d592](b20d592))
* **agents:** hand approved lanes to Herdr task worktree sessions
(furedea/dotfiles[#184](#184))
([58a591f](58a591f))
* **agents:** own personal agent source
(furedea/dotfiles[#52](#52))
([51060b1](51060b1))
* **agents:** permit commands by reversibility
(furedea/dotfiles[#124](#124))
([bb96256](bb96256))
* **agents:** run agent git inside the sandbox with unsigned commits
(furedea/dotfiles[#172](#172))
([1492f3e](1492f3e))
* **agents:** start Herdr Claude lanes on Sonnet at medium effort
(furedea/dotfiles[#257](#257))
([3caf8d5](3caf8d5))
* **agents:** write PR bodies inline and close lanes' parent workspaces
(furedea/dotfiles[#211](#211))
([8c6df4e](8c6df4e))
* **claude:** close the sandbox escape and reach the Nix daemon inside
(furedea/dotfiles[#191](#191))
([b61f2ac](b61f2ac))
* **claude:** let Go CLIs verify TLS inside the sandbox
(furedea/dotfiles[#167](#167))
([282b3d2](282b3d2))
* **claude:** let sandboxed commands listen on local ports
(furedea/dotfiles[#206](#206))
([36c09d2](36c09d2))
* **claude:** run the Codex plugin companion outside the sandbox
(furedea/dotfiles[#232](#232))
([0255159](0255159))
* **codex:** let Codex write, test, and deliver inside the sandbox
(furedea/dotfiles[#200](#200))
([33a0a82](33a0a82))
* compose Herdr and Moshi agent hooks
(furedea/dotfiles[#33](#33))
([4951ee8](4951ee8))
* **dsh:** add the dsh hook adapter
([#101](#101))
([db86f57](db86f57))
* **git-commit-split:** accept mode from slash-command argument
([10c3ef7](10c3ef7))
* **git-commit-split:** modularize commit splitting workflow with branch
([bab6f19](bab6f19))
* **github:** add repository creation script
([1a7910b](1a7910b))
* **hermes:** use Apple Mail for mail access
(furedea/dotfiles[#69](#69))
([94268fa](94268fa))
* **hooks:** add related test selection rules
([2aca101](2aca101))
* **hooks:** add shared audit and command guard hooks
([6ab33b5](6ab33b5))
* **hooks:** allow read-only local curl diagnostics and log syntax ask
kinds
(furedea/dotfiles[#287](#287))
([83cd643](83cd643))
* **hooks:** ask before an agent adds a lint suppression
(furedea/dotfiles[#214](#214))
([b767665](b767665))
* **hooks:** ask only for effects that escape the sandbox
(furedea/dotfiles[#163](#163))
([21409a5](21409a5))
* **hooks:** block destructive non-push git operations
([cc02cb4](cc02cb4))
* **hooks:** escalate unrecognized command forms to a prompt
(furedea/dotfiles[#159](#159))
([e30de17](e30de17))
* **hooks:** fast-forward main after cleaning up merged lanes
(furedea/dotfiles[#210](#210))
([f8a60af](f8a60af))
* **hooks:** honor project allow rules only from trusted owners
([#33](#33))
([305d391](305d391))
* **hooks:** improve lint-format feedback across providers
([8a512f6](8a512f6))
* **hooks:** judge heredocs, substitutions, loops, and redirections
structurally
(furedea/dotfiles[#175](#175))
([9276283](9276283))
* **hooks:** let sessions lock flake inputs and close their own lanes
(furedea/dotfiles[#208](#208))
([f109b49](f109b49))
* **hooks:** let the parent run cleanup_worktrees.py after merge
(furedea/dotfiles[#300](#300))
([fc44c74](fc44c74))
* **hooks:** remove merged task worktrees and branches at session start
(furedea/dotfiles[#185](#185))
([2701e0b](2701e0b))
* **hooks:** replay recent commands through the hooks
(furedea/dotfiles[#199](#199))
([2ed4984](2ed4984))
* **hooks:** report ast-grep rule findings after an edit
([#119](#119))
([ff91d8c](ff91d8c))
* **hooks:** review only commands that reach past the sandbox
(furedea/dotfiles[#178](#178))
([40c97da](40c97da))
* **hooks:** run zizmor offline after workflow edits
(furedea/dotfiles[#295](#295))
([79b66a6](79b66a6))
* **hooks:** scan with the shared ast-grep rules shipped beside the
hooks ([#121](#121))
([35a9270](35a9270))
* **hooks:** support Go projects in formatting, verification, and
permissions ([#57](#57))
([5506f3c](5506f3c))
* **hooks:** verification selection, unified patch input,
formatter/linter ordering
(furedea/dotfiles[#144](#144))
([99a825b](99a825b))
* **lint:** add the first ten ast-grep rules and drop the prose they
replace ([#117](#117))
([c235eb5](c235eb5))
* **nix:** expose the plain agents path as passthru.tree of agent-source
([#94](#94))
([63632e4](63632e4))
* **security:** add a program_path option that pins a rule's program to
one absolute path
([#61](#61))
([d629ca9](d629ca9))
* **security:** allow agent-browser and agent-desktop except named risky
forms ([#63](#63))
([8dc8da5](8dc8da5))
* **security:** allow cargo caches, crates.io, and OSV in the sandbox
([#60](#60))
([2f29423](2f29423))
* **security:** allow Go caches and module hosts in the sandbox
([#58](#58))
([4b3a35c](4b3a35c))
* **security:** ask for every docker form the allowlist does not list
([#54](#54))
([764374f](764374f))
* **security:** deny the 1Password CLI and keep the Codex login in the
keyring ([#52](#52))
([0580825](0580825))
* **skill-auditor:** support Codex audit workflow
([0d88c3f](0d88c3f))
* **skills:** add measurement-evidence and change-type evidence to tsdd
([#70](#70))
([85714b5](85714b5))
* **skills:** clarify names and add Herdr delegation
(furedea/dotfiles[#127](#127))
([e6576ba](e6576ba))
* **skill:** skill-auditor by nyosegawa/skills/skill-auditor
([f191132](f191132))
* **skills:** render provider-specific SKILL.md frontmatter
([44325e5](44325e5))
* **statusline:** render the status on one line
(furedea/dotfiles[#110](#110))
([03ad85e](03ad85e))
* update bash-style skill instructions
([9ab1d65](9ab1d65))
* update github-ci-init skill templates
([d238f51](d238f51))
* verify agent changes through native hooks
(furedea/dotfiles[#106](#106))
([923b0ae](923b0ae))


### Bug Fixes

* **agents:** accept generated command permissions
(furedea/dotfiles[#66](#66))
([0af9650](0af9650))
* **agents:** allow gh api reads that pass --allow-escape-sequences
(furedea/dotfiles[#265](#265))
([e732939](e732939))
* **agents:** apply harness review findings
(furedea/dotfiles[#149](#149))
([c8a51d7](c8a51d7))
* **agents:** cap Codex session-end timeout
([2f29a7e](2f29a7e))
* **agents:** deny codex-companion calls the sandbox exclusion cannot
match
(furedea/dotfiles[#269](#269))
([25518ab](25518ab))
* **agents:** harden hooks and separate workflow responsibilities
(furedea/dotfiles[#128](#128))
([7e508c4](7e508c4))
* **agents:** let pnpm fetch from the npm registry inside the sandbox
(furedea/dotfiles[#222](#222))
([ac114e8](ac114e8))
* **agents:** let the forbidden rule admit Sonnet lane arguments
(furedea/dotfiles[#259](#259))
([f1b29a9](f1b29a9))
* **agents:** make the bootstrap hint work for POSIX login shells
([c2667fa](c2667fa))
* **agents:** stop asking for commands the hooks can prove safe
(furedea/dotfiles[#242](#242))
([a93d241](a93d241))
* **agents:** wait for hook state locks instead of failing with EAGAIN
(furedea/dotfiles[#285](#285))
([673c108](673c108))
* allow secret scanner hook files
([bca4207](bca4207))
* **bootstrap:** give Codex the agent GitHub token settings and run the
bootstrap in CI
([#21](#21))
([25de080](25de080))
* **bootstrap:** keep Neovim's fallback nvim.log out of the working
directory ([#43](#43))
([3c9fc5c](3c9fc5c))
* **bootstrap:** make the server bootstrap behave like the Nix hosts
([#15](#15))
([4554dec](4554dec))
* **bootstrap:** print actionable profile and legacy-file messages only
when needed ([#49](#49))
([1918254](1918254))
* **bootstrap:** target the login profile bash actually reads
([#50](#50))
([0dae5bf](0dae5bf))
* **bootstrap:** verify downloaded tools against pinned checksums
([#111](#111))
([1744df3](1744df3))
* **ci:** install the locked agent-harness instead of reading it from
the flake
([bc2395b](bc2395b))
* **ci:** provide the shell format config and locked JavaScript tools
([dd59634](dd59634))
* **claude:** trust only the CA store bundled with Claude Code
(furedea/dotfiles[#284](#284))
([34be271](34be271))
* **codex:** fall back to auth.json when no keyring is available
([#62](#62))
([79b6ceb](79b6ceb))
* correct agent tooling and Hister activation
(furedea/dotfiles[#85](#85))
([4bab065](4bab065))
* honor pytest testpaths and bootstrap bats on servers
(furedea/dotfiles[#116](#116))
([b17b59e](b17b59e))
* **hooks:** allow double quoted commit messages
([fc4afd4](fc4afd4))
* **hooks:** bound curl -o, -d and -H in the localhost rule
(furedea/dotfiles[#291](#291))
([7c9db8a](7c9db8a))
* **hooks:** close shell-syntax bypasses of the guard hooks
([#11](#11))
([c6aacdf](c6aacdf))
* **hooks:** close the guard contract gaps from
[#11](#11) review
([#31](#31))
([db318db](db318db))
* **hooks:** deny codex-companion calls whose text holds a dollar sign
or backtick
(furedea/dotfiles[#290](#290))
([f37c317](f37c317))
* **hooks:** find GNU grep on PATH instead of the first grep
(furedea/dotfiles[#193](#193))
([99ba317](99ba317))
* **hooks:** format without dotfiles-installed dprint and prettier
configs ([#16](#16))
([db21f55](db21f55))
* **hooks:** ignore git-ignored sources when judging a project removed
([#22](#22))
([97c6b93](97c6b93))
* **hooks:** ignore prose arguments when matching forbidden patterns
(furedea/dotfiles[#189](#189))
([d2049d6](d2049d6))
* **hooks:** judge each command as one line with any grep
(furedea/dotfiles[#196](#196))
([202f937](202f937))
* **hooks:** keep merged worktrees holding non-regenerable ignored files
([#29](#29))
([ac03cfa](ac03cfa))
* **hooks:** keep the first grep when no GNU grep is on PATH
(furedea/dotfiles[#195](#195))
([a0e6a2f](a0e6a2f))
* **hooks:** keep the verification snapshot from locking out symlinked
or large worktrees
([#66](#66))
([7d13f0e](7d13f0e))
* **hooks:** let cleanup_worktrees remove Claude Code session files
([#36](#36))
([0a910bc](0a910bc))
* **hooks:** let cleanup_worktrees tests choose the untrusted locations
(furedea/dotfiles[#306](#306))
([e82980e](e82980e))
* **hooks:** let GitHub API reads take an unquoted jq filter
(furedea/dotfiles[#198](#198))
([5b6210a](5b6210a))
* **hooks:** make stop verification reliable
(furedea/dotfiles[#81](#81))
([04a33dd](04a33dd))
* **hooks:** preserve verification evidence
(furedea/dotfiles[#87](#87))
([4b5b9c2](4b5b9c2))
* **hooks:** redirect sandbox-failing Git forms and drop covered prompts
(furedea/dotfiles[#180](#180))
([34e39a7](34e39a7))
* **hooks:** resolve Rust integration test targets inside tests
subdirectories
(furedea/dotfiles[#304](#304))
([2ccf547](2ccf547))
* **hooks:** respect project formatters and bound diagnostics
(furedea/dotfiles[#131](#131))
([30e83cf](30e83cf))
* **hooks:** scope generic secret regex to quoted values
([fc09292](fc09292))
* **hooks:** silence successful hook execution
([795d8f0](795d8f0))
* **hooks:** skip JavaScript triggers in projects without JavaScript
tests
(furedea/dotfiles[#161](#161))
([dc80e28](dc80e28))
* **hooks:** skip verification for a language whose project was removed
([#6](#6))
([4a9f325](4a9f325))
* **hooks:** support relocated harness assets
(furedea/dotfiles[#82](#82))
([59057bc](59057bc))
* **hooks:** treat any gh api call without write flags as a read
(furedea/dotfiles[#201](#201))
([3ecb215](3ecb215))
* **hooks:** treat glob characters inside double quotes as literal for
literal_words rules
([#41](#41))
([174a7f9](174a7f9))
* **hooks:** use agent-neutral guidance
([37153ce](37153ce))
* improve agent notifications and session setup
(furedea/dotfiles[#92](#92))
([9bf2349](9bf2349))
* load secret patterns from hook directory
([ca465ef](ca465ef))
* migrate dotfiles path to ghq convention
([faff774](faff774))
* **nix:** build CPython 3.15.2 for the ssl eMudhra denylist
([#113](#113))
([faba045](faba045))
* **nix:** default editor to Neovim
(furedea/dotfiles[#105](#105))
([2a9a22a](2a9a22a))
* resolve hook directory from bash source
([c6ca454](c6ca454))
* restore SSH signing and reliable Bats verification
(furedea/dotfiles[#91](#91))
([891adce](891adce))
* **sandbox:** deny writes to every repository's git hooks and config
(furedea/dotfiles[#298](#298))
([1941513](1941513))
* **sandbox:** match the Codex plugin script under any numeric version
(furedea/dotfiles[#302](#302))
([a49ddc3](a49ddc3))
* **security:** allow the Go checksum tree head and vulnerability
database in the sandbox
([#59](#59))
([af6e158](af6e158))
* **security:** ask for every script a non-bash shell receives
([#99](#99))
([f88f8fd](f88f8fd))
* **security:** close quoted-argument and wrapper bypasses in the
command guard ([#76](#76))
([5f72757](5f72757))
* **security:** close the remaining command guard bypasses
([#83](#83))
([0387739](0387739))
* **security:** decide not-a-fork for project rules on hosts without gh
([#67](#67))
([acaa758](acaa758))
* **security:** keep agent-browser and agent-desktop calls inside the
sandbox ([#64](#64))
([3f2d578](3f2d578))
* **security:** read more of the scripts handed to fish and PowerShell
for deny rules
([#110](#110))
([2c652bb](2c652bb))
* **skills:** audit Codex skill observations
(furedea/dotfiles[#88](#88))
([f429967](f429967))
* **skills:** refine routing triggers from audit
([cef3b9c](cef3b9c))
* **tests:** make git test wrappers exec the real git binary
(furedea/dotfiles[#310](#310))
([893c405](893c405))
* **tests:** stop shifting past the codex wrapper arguments
([eb0f6d7](eb0f6d7))


### Performance Improvements

* **hooks:** evaluate policy regexes with one grep and run pytest in
parallel
(furedea/dotfiles[#125](#125))
([ce80ea3](ce80ea3))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
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.

feat: add the dsh hook adapter

1 participant