Skip to content

v0.5.4 — Pure-Lazy MCP Tax Calibration, Distant DB Lookup & Short-Window Cache Evictions

Choose a tag to compare

@daoif daoif released this 25 Nov 02:49
· 1 commit to main since this release

What's New in v0.5.4

  • Pure-Lazy MCP Tax Calibration & Unused-Only Waste Isolation (tokless audit): Leverages <mcp_servers> Eager / Lazy declarations 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 flat 1,200 tok/step. Isolates unusedEstTokensPerStep / unusedEstSessionTaxTokens strictly to 0-call servers (charging shared bridge overhead only when all mounted MCPs have 0 calls), and aligns audit project static upper-bound wording.
  • Robust Distant <mcp_servers> Lookup Across Multi-Chunk Session DBs: Scans all Conversation ID: markers (±64KB windows) with global fallback matching and bitwise cross-chunk bridge declaration accumulation, recovering MCP directories in large long-lived .db files 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% 的缓存断层独立归因,避免将思考停顿或多智能体协调节点唤醒撞上云端隐式缓存回收误判为“动态篡改规则”,并校准高低水位续跑与里程碑交接建议。

感谢社区贡献者 @Jefferyu 提交 PR #4!