reactive-resume
reactive-resume
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:TMrazbw/dsh-failure-ledger
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DSH Harness 的 profile 级 Host + Client 插件:压缩大型工具错误、维护对话异常统计、 在每回合结束显示失败/异常提醒,并统计整个 DSH 的 token 节省与估算金额。
PROJECT.mdPROGRESS.md0.1.2;live 复核通过(2026-11-03 第 4 次)fc3deb8)→ V2.5(155 tests、commit f9aa8f2)→ V2.6(175 tests、commit 8456810)→ UI/分类(176 tests、commit c060e5f)→ V2.7(188 tests、commit d348154)→ V2.8(194 tests、commit d81c818)INBOX.md、index.jsonl、reports/<fingerprint>.md、failure_inbox 工具。conversation.chat.turnTail,零 token;点击打开面板。block 原样保留;
同一 callId 不重复注入。failureLedger 投影提供(n1/n2/saved/usage),摘要的
Tokens: 标记让重放也能恢复节省数;子代理按 sessionId 去重聚合。来源:DeepSeek 模型 & 价格,抓取于 2026-10-22。
| 模型 | 输入·缓存命中(空闲/高峰) | 输入·缓存未命中(空闲/高峰) | 输出(空闲/高峰) |
|---|---|---|---|
deepseek-flash |
0.02 / 0.04 元 | 1.00 / 2.00 元 | 4.00 / 8.00 元 |
deepseek-v4-pro |
0.15 / 0.30 元 | 4.50 / 9.00 元 | 13.50 / 27.00 元 |
单位为人民币/百万 tokens。峰值时段:北京时间周一至周五 09:00–12:00、14:00–18:00 (法定节假日除外);空闲价为高峰价的一半。
金额只是本地估算,不是账单。
dsh-failure-ledger\
package.json Host + Client 清单(dsh.bundle.patch + dsh.client)
cordis.patch.yml 插入 failure-ledger 行
index.js Host 入口(post-execute / failureLedger / failure_inbox)
client.js Client 入口(turnTail 提醒 + main 面板 + 侧栏图标)
lib\ 核心模块
classify.js 错误分类 + hint
fingerprint.js 规范化 + 指纹
redact.js 脱敏
render.js 摘要/报告/INBOX 模板
rules.js 九条 token 异常规则
savings.js token 估算与金额
store.js 原子存储/JSONL/聚合/轮转/totals
digest.js post-execute 摘要处理器
anomaly.js 会话事件折叠 + 九条规则视图
projection.js failureLedger 会话投影单元
inbox.js INBOX 渲染 + failure_inbox 工具
snapshot.js 面板认证快照 + GET 路由
config-schema.js 默认配置 + .volatile() Config schema
test\ Node 内置测试(194 项)
vendor\ 从本机 DSH 只读复制的 schemastery 依赖(MIT)
locale\en.json 显示元数据
locale\zh.json 显示元数据(中文)
icon.svg 插件图标
README.md 本文件
PROJECT.md 总方针
PROGRESS.md 进度日志
node --test --test-isolation=none
本机沙箱禁止管道 stdio,默认 node --test 会因 spawn EPERM 失败,所以用同进程模式;
当前 194 项测试全部通过。
打开方式:
/dfl-ui:Client commandUi 在命令列表显示左侧 PanelIcon、
label DFL-UI、右侧中文“打开对话异常统计面板”并直接打开(同 DAM-UI 方案;
Host 不再注册同名命令)。输入名仍是平台要求的小写 dfl-ui。open_failure_ledger 工具。面板内容:概览卡片(含“未解决”数量)、错误源、异常、最近失败、
按模型节省与只读估算金额;最近失败表只列 10 条。
规则/参数表单可保存到 profile 配置(configForms + .volatile())。Config schema
使用 vendor/node_modules 中从本机 DSH 只读复制的 schemastery(MIT;含 cosmokit/
standard-schema)。面板数据来自认证路由 api/failure-ledger.snapshot,
打开时/点刷新/保存后拉取,无定时轮询。面板根容器可滚动
(height:100%; overflow-y:auto),内容超出时显示滚动条。
命令/工具本身不产生模型请求;自然语言工具调用会留下一次很小的工具调用记录。
打开动作通过 failureLedger 投影的 panelOpenSeq 交给常驻 Client bridge 执行。
guard-hits.jsonl、累加 guards.json 命中数。agent/pre-step 注入一行防复发提示(≤320 字符),
同一 turn 最多一次、60s TTL;不阻断、不创建额外模型请求。failure_inbox action="unresolved" 读取未解决分组,
用 action="playbook" 读取已解决修复;后台读取不依赖 UI。turnN1/turnSavedTokens);本回合无失败/节省时不显示,
不再显示整个对话的累计 n1/n2。workspaceRegistry.list() 的 workspace sessionIds,并用
workspaceController.follow 的 archivedSessionIds 过滤归档会话;
再按 readTitleSnapshots 只保留有标题的非空会话(空会话侧栏也不显示),
与台账统计合并;无失败会话显示 0;标题与侧栏同源。—。conversation.composer.dock 增加会话累计徽标,注册 order 为 -1000000,
排到 dock 最左侧;文本为 失败 n · 异常 m · 节省 x(不带“本对话”前缀);
无数据时不显示。无法越过原生 44% 上下文圆环,因为圆环在该 slot 之外。POST api/failure-ledger.admin + Host settings,
不再依赖未挂载的 configForms;resolve 自动生成/更新 learned-<fingerprint> Guard,hint 使用本次 fix;regressions/<fingerprint>.md 回归草案;tool + arguments 在 120s 内重复成功调用;guards.tokenWaste 默认 true。[未解决失败] tool/category/code: hint;不阻断。selfHeal.enabled=true,窗口 180s。unstick:claimWithoutEvidence(观察版):failure_inbox action=handoff;handoffs/<sessionId>.md。contextJump(默认 8000 tokens + 10% 窗口,最多 3 条);lib/cost.js 按 usage 与官方价格估算;budget.enabled 默认关闭;可设本会话/今日 CNY 与预警比例;formatCNY 与 snapshot estimatedCNY 都只保留 2 位小数(分)。hits > 0),最多 20 条;D:\deepseek插件\dsh-failure-ledger\failure-reports)index.jsonl / savings.jsonl / anomalies.jsonl / totals.json / playbook.jsonl /
reports\ / raw\ / handoffs\ / INBOX.md / _plugin.log。
totals.json 是单调累计,清理明细不会让它回退。空间策略只有两条:
每 200 次写入检查一次 + 明细总上限 100 MB。启动/检查时按 mtime 清理最旧的
reports/raw/handoffs 明细;不做按天保留。已 resolve 的失败会删除对应
report/raw 文件,totals/index 统计不变。旧根目录会在启动时迁移到插件目录。
Step 10 V1 技术验收通过(Config/四 Client 注册/真实压缩/命令/提醒已确认)。 按反馈完成改名、命令列表图标/中文、滚动、目录迁移、100 MB/200 次写入策略和 已解决记录删除;需最后一次重启加载。
本地 desktop profile 已通过 plugin_manager install_bundle 安装
(application: applied)。其他电脑可安装同一 GitHub 仓库:
plugin_manager install_bundle
target: https://github.com/TMrazbw/dsh-failure-ledger
修改 Host 代码后,DSH 的 ESM 模块缓存要求重启应用;Client 代码变化要求刷新 Web 页面。
.volatile() 字段,并落 profile 配置。PROGRESS.md。ctx.get() 探测,缺失时降级。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: observability。