victorzhong0110/dsh-outcome-loop1

dsh-outcome-loop

本地优先的任务结果账本与验收插件:机械证据验收、零额外 Token 消耗

AI 分析

核心用途是通过机械证据(如命令退出码、测试计数、产物文件)验证任务完成情况。适合需要本地化、零额外模型成本进行任务契约验收的用户。

包名
dsh-outcome-loop
版本
0.1.0-beta.7
许可证
MIT
最近更新
2026年8月18日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:victorzhong0110/dsh-outcome-loop

使用(通过 /outcome 命令)

/outcome new 修复登录页按钮在移动端溢出问题        # 创建任务契约
/outcome criterion add 移动端 375px 宽度下无横向滚动  # 添加验收标准(manual)
/outcome criterion add-command "pnpm test"          # 添加命令验收(退出码 0)
/outcome criterion add-test                          # 添加测试验收
/outcome criterion add-file dist/bundle.js          # 添加产物文件验收
/outcome criterion add-test --min-passed 2 --max-failed 1
                                                     # 结构化测试计数(TAP 输出自动解析)
/outcome verify                                     # 运行验收(被动观察,不执行新命令)
/outcome status                                     # 查看机械验证 + 用户 disposition 双轴结果
/outcome accept | reject | revise | abandon         # 用户对结果的态度(与机械验证独立)
/outcome export []                             # 两阶段导出:预览 → digest
/outcome export  --approve  --out 
 [--overwrite]
                                                     # 批准并原子写入 JSONL 文件
/outcome exports []                        # 列出导出 manifest
/outcome import 
                              # 导入结构化 Task Contract 文件(outcome-loop.contract.v1)
/outcome export-contract  --out 
          # 导出契约文件
/outcome cost [] [--summary]              # token 用量(可选价格表 → 货币成本估计;--summary 聚合多契约)
/outcome calibration []                 # dsh-code-reference 决策校准(预测 × 实际)
/outcome skills [--out 
]                    # Skill 候选(只读聚合,人工评估,永不自动应用)
/outcome delete  --yes                 # 删除 sidecar 数据(会话日志永不触碰)