Porphyrioon/ironlaw--packages-adapter-dsh1

@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 Analysis

核心用途是为智能体操作提供安全合规审计与行为拦截。适合需要严格限制智能体执行破坏性命令、并对执行结果进行验证的安全敏感型任务。

Package
@ironlaw/adapter-dsh
Version
0.1.0-alpha.1
License
MIT
Last updated
Aug 13, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Porphyrioon/ironlaw#4d011abd091fc475acbf43a5fbd017b5452fcc67&path:packages/adapter-dsh

Configuration

Configuration is read from the environment (the bundle patch stays minimal):

VariableDefaultMeaning
IRONLAW_MODEobserveobserve records only; enforcer also blocks destructive tools
IRONLAW_EVIDENCE_ROOT~/.ironlawDirectory for the events.ndjson evidence ledger
IRONLAW_DESTRUCTIVE_TOOLSbuilt-in listComma-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.