Repository navigation
v0.5.4 — Pure-Lazy MCP Tax Calibration, Distant DB Lookup & Short-Window Cache Evictions
What's New in v0.5.4
- Pure-Lazy MCP Tax Calibration & Unused-Only Waste Isolation (
tokless audit): Leverages<mcp_servers>Eager/Lazydeclarations from Session DBs to calibrate Pure-Lazy (0 Eager / N Lazy) and Empty MCP mounts by their actual prompt index footprint plus one-time shared bridge infrastructure (~336 tok/step), instead of a flat1,200 tok/step. IsolatesunusedEstTokensPerStep/unusedEstSessionTaxTokensstrictly to0-call servers (charging shared bridge overhead only when all mounted MCPs have0calls), and alignsaudit projectstatic upper-bound wording. - Robust Distant
<mcp_servers>Lookup Across Multi-Chunk Session DBs: Scans allConversation ID:markers (±64KBwindows) with global fallback matching and bitwise cross-chunk bridge declaration accumulation, recovering MCP directories in large long-lived.dbfiles without extra disk passes. - 5–50m Short-Window Cache Eviction Attribution (
short_idle_cache_evicted): Separates cloud implicit cache TTL expirations ([300s, 3000s)with<= 15%prefix retention) from mid-session prefix mutations (prefix_mutated_or_evicted), preventing false "dynamic rule mutation" alarms on paused sessions or multi-agent coordinator workers, with calibrated actionable guidance.
Thanks to @Jefferyu for PR #4!
v0.5.4 更新亮点
- Pure-Lazy MCP 底座税精准校准与 0 调用空载独立剥离(
tokless audit):基于会话库<mcp_servers>块区分Lazy / Eager / Mixed / Empty加载模式,对纯懒加载 MCP 改按实际工具名目录 + 一次性共享桥接底座(~336 Token/步)精算(告别旧版一刀切1,200 Token/步虚高);修复空载税混算已调用服务的问题,仅在全部挂载 MCP 均 0 调用时计入共享底座,并同步对齐audit project静态 Eager 上界说明。 - 修复大体积长会话
.db漏检外部 MCP 与跨分块桥接计数:遍历全部Conversation ID:锚点(±64KB窗口)配合同遍全局兜底与跨 2MB 分块位掩码累加,零额外磁盘开销稳健找回远距<mcp_servers>目录。 - 新增 5~50 分钟短窗口云端缓存过期归因(
short_idle_cache_evicted):将间隔5~50 分钟且历史前缀复用率<= 15%的缓存断层独立归因,避免将思考停顿或多智能体协调节点唤醒撞上云端隐式缓存回收误判为“动态篡改规则”,并校准高低水位续跑与里程碑交接建议。