Porphyrioon/ironlaw--packages-adapter-dsh1

@ironlaw/adapter-dsh

DeepSeek Harness 的 IronLaw 治理与存证插件:记录工具调用凭证,在强制模式下拦截破坏性操作,并对轮次完成进行凭证门控。

AI 分析

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

包名
@ironlaw/adapter-dsh
版本
0.1.0-alpha.1
许可证
MIT
最近更新
2026年8月13日

安装

$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.