dsh-pr-gate: Deterministic Write Gatekeeping at Write Time

dsh-pr-gate is the admin-security plugin for DeepSeek Harness. It brings the scope policies and residue scanning used by agent-pr-gate in CI forward to every write/edit/str_replace_editor operation: it rejects out-of-bounds writes in the pre-execute phase, scans for injections and debug residue in the post-execute phase, and writes to a JSONL ledger for CI consumption. Trust paths do not invoke the LLM. Install it with `dsh plugin --profile default add dsh-pr-gate`; it supports inline configuration or sharing policies with agent-pr-gate.yaml. This is suitable for teams already gating on the PR side but seeking to intercept issues before persisting data within the session. Review the source code before installation and run with the permissions of the current dsh process.

Read More