Phocinae/dsh-evidence ↗★ 0

dsh-preclaim

校验Git提交或README修改的确定性网关 适合需要在写入前严格核对会话执行记录与声明的用户。

包名
dsh-preclaim
兼容性
待验证
Cordis 依赖范围
^4.0.5-alpha.1
版本
0.1.3
许可证
Apache-2.0
最近更新
2026年10月20日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Phocinae/dsh-evidence

Configuration

- insert:
    - id: preclaim
      name: dsh-preclaim
      config:
        triggerTools: [pwsh, bash, write, edit, str_replace_editor]
        readmeGlobs: ['README*', 'CHANGELOG*', 'docs/**/*.md', '**/README.md']
        decision: review      # review | deny
        audit: true
        ledgerLimit: 500
        pushMessageLimit: 20

There is deliberately no configuration value that lets an unbacked claim through. decision chooses between asking and refusing, and nothing else — a gate with an off switch is a gate that gets switched off. resolveConfig throws on decision: allow.

pushMessageLimit caps how many commit messages a push is checked against, so the cost does not grow with repository age. The cap is reported when it bites, because a silently truncated check reads as a complete one.