qlheric/dsh-cvm--packages-dsh-evidence ↗★ 0

@qlheric/dsh-evidence

DSH 认知运行时插件:验证债务——终局门禁,声称完成≠完成 适合需要对Agent的修改结果进行终局把关,确保其在声称修复后执行了验证。

Package
@qlheric/dsh-evidence
Compatibility
Unverified
Version
0.1.0
License
MIT
Last updated
Oct 3, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:qlheric/dsh-cvm#18606b7f57970b96e25559d5daf5b65df4da355c&path:packages/dsh-evidence

dsh-evidence · 验证债务(终局门禁)

检测「声称完成但改了文件却没跑验证」,即"声明 ≠ 证据"。

  • 订阅:session/event(tool/call 追踪写文件/验证;assistant/message 检测"声称完成")
  • 发信号:ctx.emit('cvm/signal', { kind: 'evidence', active })
  • 对抗:验证债务(说完成≠完成)

逻辑

wroteFile:调用 edit/write/str_replace_editor
verified:调用 bash/pwsh(命令含 python/pytest/run 等验证关键词)
claimedDone:assistant 最终回答(不含 tool-call)命中"完成/搞定/已修复"等
终局门禁 = claimedDone && wroteFile && !verified

时机:只在"最终回答(不含工具调用)"判定"声称完成",避免在实现阶段(edit 后还没验证)误触发——这是用教训换来的(见根文档"阶段语义")。

注意

此插件在 C1 场景的独立贡献未被充分验证(判据需 bash 命令内容,headless 评测慢)。核心验证靠 convergence。