22-ai-00/dsh-enhanced--plugins-preference-learning ↗★ 2
@dsh-enhanced/preference-learning
Bounded, typed preference learning for the DSH personal assistant.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:22-ai-00/dsh-enhanced#bb3fb924f1bdb946901614b8b848ac3a1d60c642&path:plugins/preference-learning说明文档
阅读完整 README ↗配置
| 配置 | 默认值 | 作用 |
|---|---|---|
enabled | true | false 时停止所有 producer 收集、激活和注入;Delivery 控制 registration 仍可返回 disabled 状态和执行 owner forget,Host 仍可审计、回滚和 forget |
databasePath | Patch 设置 | 私有 SQLite 文件的绝对路径 |
signalTtlMs | 90 天 | 信号衰减和保留窗口,硬上限 365 天 |
hypothesisTtlMs | 30 天 | 假设 TTL,硬上限 30 天且不得大于信号窗口 |
minSignalsForActivation | 2 | 激活所需最少支持信号 |
minBehavioralSignalsForActivation | 6 | completed owner turns 的连续同值强阈值(4–20) |
autonomousT1Enabled | true | 私有可信事件写入后自动 CAS 激活;启动与维护周期补偿已提交未激活项 |
minConfidenceBps | 7500 | 最低置信度(万分比) |
maxContradictionBps | 2500 | 最大矛盾比例(万分比) |
maxActiveOverlays | 6 | 单 scope 活跃 overlay 硬上限(最多 8) |
maxReviewHypotheses | 20 | 单次审计上限(最多 50) |
maxOverlayBytes | 2048 | 固定 renderer 输出硬上限 |
maintenanceIntervalMs | 1 小时 | 有界清理过期 signal 的周期(1 分钟至 24 小时) |
maintenanceBatchSize | 500 | 每轮物理清理的最大 signal 数(最多 5000) |
promotionReconcileLimit | 50 | 每轮提交、取消和终态回执投影的最大数量(最多 1000) |
置信度使用固定 actor/interpretation 权重、时间衰减、支持/矛盾质量和证据覆盖率计算;不调用模型打分。证据或状态更新与信号写入位于同一 BEGIN IMMEDIATE 事务中。