dsh-pr-gate:在寫入時刻做確定性寫入門控
dsh-pr-gate 是 DeepSeek Harness 的 admin-security 插件,將 agent-pr-gate 在 CI 中使用的 scope 策略與殘留掃描前移到每次 write/edit/str_replace_editor:pre-execute 拒絕越界寫入,post-execute 掃描注入與調試殘留,並寫入 JSONL 賬本供 CI 消費,信任路徑不調用 LLM。安裝命令爲 dsh plugin --profile default add dsh-pr-gate,可 inline 配置或與 agent-pr-gate.yaml 共用策略。適用於已在 PR 側做門控、希望在會話內落盤前攔截的團隊;安裝前需審閱源碼並以當前 dsh 進程權限運行。
閱讀全文