dsh-trust-suitev0.4.0

zhengqiuyang/dsh-trust-suite

安全管理 MIT 最近更新 2026-11-05
0Stars
0Forks
0待解决 Issue
安装命令 dsh plugin --profile web add github:zhengqiuyang/dsh-trust-suite#c43258fe0a66e651e2cbd4f5b960a5c1a8842624

介绍

The deterministic trust chain for DeepSeek Harness — nine plugins covering read/write/do/call/leave-behind/egress/told/running/remembered. Zero LLM in the trust path

标签

ai-agents awesome-list deepseek-harness dsh-plugin security

概述

dsh-trust-suite

The deterministic trust layer for DeepSeek Harness — nine guards, one dashboard, one command.

为 DeepSeek Harness 打造的确定性信任层:九个守卫 + 一块人话面板,一条命令全装上。

dsh plugin --profile web add dsh-trust-suite

Install · The nine guards · Honest scope · FAQ

Nine deterministic guards watch what a DSH agent reads, writes, executes, spends, and remembers — plus a plain-language dashboard and a guardian pet that makes the state visible at a glance. Every decision is made by pure rule engines: zero LLM calls in the trust path, ~140 unit tests, verified against real DSH sessions.

The nine guards

GuardWatchesActs atMode
dsh-read-guardwhat the agent readstools/post-executewrap (default) · observe · block
dsh-pr-gatewhat the agent writestools/pre-executedeny before write
dsh-egress-gatewhere data goestools/pre-executeweb: deny · shell: observe
dsh-attest-chainwhat happened (evidence)tools/resultsign + hash chain
dsh-mcp-testwhich tools existtools/changebaseline diff
dsh-prompt-driftthe system promptsystem-prompt/assemblebaseline diff
dsh-freezethe plugin compositionstartupfingerprint pin
dsh-compaction-guardwhat compaction forgotsession/eventreport + ledger
dsh-janitorleftovers on diskon-demand toolscan only

Plus two consumers of the same event stream:

  • dsh-trust-panel — a sidebar dashboard that translates the nine channels into plain language, bilingual (zh/en), with a status light and acknowledge flow.
  • dsh-guardian-pet — the same state as a creature: it dozes while all is clear, bristles when something is caught, and writes you a weekly battle report.
flowchart LR
    A["tool call"] --> B{"pre-execute<br/>pr-gate · egress-gate"}
    B -- deny --> X["blocked"]
    B -- allow --> C["execute"]
    C --> D{"post-execute<br/>read-guard"}
    D -- wrap/block --> E["into context"]
    D -- pass --> E
    E --> F["attest-chain<br/>signed ledger"]

Install

dsh plugin --profile web add dsh-trust-suite

That single bundle installs all nine guards plus the dashboard. Prefer git checkouts? ./install.sh web from this repo does the same from GitHub sources (everything ships prebuilt lib/, no allowBuilds approval needed). Individual guards are also installable on their own.

Honest scope

[!WARNING] This is a policy-check and audit toolset, not a sandbox. The guards make deterministic decisions at DSH's plugin hook points; they are not OS-level network controls, filesystem permissions, or a semantic guarantee that "the model was never influenced". Hard boundaries belong to the host sandbox, system permissions, or a proxy — layer this suite on top of those, not instead of them.

What each guard actually does, stated plainly:

  • Detect (report + ledger): mcp-test, prompt-drift, freeze, compaction-guard, janitor flag drift and leftovers — they do not block anything.
  • Enforce before the fact: pr-gate denies out-of-scope file writes; egress-gate denies non-allowlisted web destinations (shell fetches are observe-only by default).
  • Mutate results: read-guard wraps flagged content in a quarantine envelope (default) or blocks it — in wrap mode the original text is still in context, explicitly marked untrusted.
  • Record: attest-chain appends a signed, hash-chained evidence record per tool result.

Known boundaries are documented per guard in each repo's README — coverage limits, default-off modes, and trust-on-first-use for baselines.

FAQ

Does this call any LLM? No. Every decision is a pure rule engine — same input, same verdict, auditable.

Can I install just one guard? Yes. Every guard is an independent npm package; the suite is only a convenience bundle. dsh-trust-panel even works standalone — its read/egress engines ship inside the panel package.

Does read-guard delete or rewrite the original file? Never. It only changes what reaches the model's context, and only for high-severity findings in wrap/block mode.

Windows? Yes — CI runs Windows + Linux on Node 20/22/24 for every guard.

Exact supported set (as verified): Node ≥ 20 · npm ≥ 11.15 (staged publishing route) · DSH 0.2.x source snapshot 0.2.1-alpha.2 with host packages on the 0.1.2-rc.1 line · dsh plugin add installs via the official profile flow (pnpm). Plain-npm installs of the suite depend on the registry peer graph resolving cleanly — dsh-prompt-drift ≥ 0.1.1 carries the peer fix that makes that resolve.

License

MIT

星级评价

0.0 按 GitHub Stars 换算的社区热度,非用户打分
Stars0
Forks0
待解决 Issue0
最近更新2026-11-05

基本信息

作者zhengqiuyang
版本0.4.0
开源许可MIT
默认分支main
入库时间2026-11-05

插件信息来自公开 GitHub 仓库与 SkillHub,版权归原作者所有;安装前请自行审查仓库代码。