Porphyrioon/ironlaw--packages-adapter-dsh ↗★ 2
@ironlaw/adapter-dsh
IronLaw governance and evidence plugin for DeepSeek Harness (DSH): records tool-call evidence, blocks destructive actions in enforcer mode, and gates turn completion on verifiable evidence. 适合需要对Agent工具调用进行安全审计、拦截高危操作并验证执行凭证的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Porphyrioon/ironlaw#f4a08c71a4d21c7db1021a916156101cdb41c12b&path:packages/adapter-dshConfiguration
Configuration is read from the environment (the bundle patch stays minimal):
| Variable | Default | Meaning |
|---|---|---|
IRONLAW_MODE | observe | observe records only; enforcer also blocks destructive tools |
IRONLAW_EVIDENCE_ROOT | ~/.ironlaw | Directory for the events.ndjson evidence ledger |
IRONLAW_DESTRUCTIVE_TOOLS | built-in list | Comma-separated extra regex fragments to treat as destructive |
The completion gate is on by default. It requires each applicable acceptance item
to carry still-valid host-observed evidence before the turn may close; otherwise
the agent is steered a repair prompt instead of finishing, up to a bounded number
of repairs. In observe mode (the default) it only steers; destructive tool calls
are additionally blocked in enforcer mode.