Porphyrioon/ironlaw--packages-adapter-dsh ↗★ 1
@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.
AI 分析
核心用途是为智能体操作提供安全合规审计与行为拦截。适合需要严格限制智能体执行破坏性命令、并对执行结果进行验证的安全敏感型任务。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Porphyrioon/ironlaw#4d011abd091fc475acbf43a5fbd017b5452fcc67&path:packages/adapter-dshドキュメント
README 全文を読む ↗Configuration
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 a turn to produce at least one successful tool result with no tool errors before it may close; otherwise the agent is steered a repair prompt instead of finishing.