Skip to content

fix(checkpoint): recalibrate counters after cleanup#177

Open
RerankerGuo wants to merge 1 commit into
TencentCloud:mainfrom
RerankerGuo:fix/checkpoint-counter-recalibration
Open

fix(checkpoint): recalibrate counters after cleanup#177
RerankerGuo wants to merge 1 commit into
TencentCloud:mainfrom
RerankerGuo:fix/checkpoint-counter-recalibration

Conversation

@RerankerGuo

Copy link
Copy Markdown

Description | 描述

Recalibrate checkpoint aggregate counters from the actual memory store counts so cleanup or manual pruning does not leave
l0_conversations_count and total_memories_extracted permanently overstated. Also adjust memories_since_last_persona downward
when L1 records are removed, and run recalibration after cleanup and on scheduler startup.

Related Issue | 关联 Issue

Fix #157

Change Type | 修改类型

  • Bug fix | Bug 修复
  • New feature | 新功能
  • Documentation update | 文档更新
  • Code optimization | 代码优化

Self-test Checklist | 自测清单

  • Verified locally | 本地验证通过
  • No existing features affected | 无影响现有功能

Additional Notes | 其他说明

Verified with npm test and npm run build using Node v24.15.0.

Signed-off-by: Ziyang Guo <121015044+RerankerGuo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[good first issue]🎯 fix(data): checkpoint counters never decrease — drift from actual data after cleanup

1 participant