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工具调用进行安全审计、拦截高危操作并验证执行凭证的用户。

패키지
@ironlaw/adapter-dsh
호환성
미검증
Cordis peer 범위
^4.0.0
버전
0.1.1
라이선스
MIT
최근 업데이트
2026. 9. 16.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Porphyrioon/ironlaw#f4a08c71a4d21c7db1021a916156101cdb41c12b&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 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.