refactor(memory): 统一 V3 提取并提升会话提交与评测稳定性 - #3346
Merged
Merged
Conversation
chenjw
force-pushed
the
fix/issue-3292-disable-tool-skill-memory
branch
2 times, most recently
from
July 18, 2026 17:07
d68b4e4 to
0f3e750
Compare
chenjw
marked this pull request as ready for review
August 10, 2026 02:24
chenjw
force-pushed
the
fix/issue-3292-disable-tool-skill-memory
branch
2 times, most recently
from
August 10, 2026 12:34
57c86e0 to
4bb1764
Compare
chenjw
force-pushed
the
fix/issue-3292-disable-tool-skill-memory
branch
from
August 12, 2026 15:18
74413d9 to
3633c7d
Compare
qin-ctx
approved these changes
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
本 PR 最初用于处理 #3292:当前普通 Tool/Skill 记忆提取能力尚未完整支持,因此先关闭对应 schema,并统一使用
SessionCompressorV3作为会话记忆提取实现。在后续 LoCoMo 导入和评测过程中,又暴露出 SessionCommit 并发、Eval Cron 文件竞争、记忆链接写入锁范围不足,以及 patch 修复错误定位不准确等稳定性问题。本 PR 一并纳入这些修复。当前分支相对最新
main共包含 22 个提交、64 个文件变更。Fixes #3292
主要改动
1. 关闭普通 Tool/Skill 记忆提取
tools.yaml和skills.yaml的普通记忆 schema 设为enabled: false。2. 统一到 SessionCompressorV3
SessionCompressorV2及其专属配置、实现和测试。SessionCompressorV3.extract_long_term_memories()。3. 稳定记忆更新和链接写入的锁范围
.overview.md。4. 改进 patch 修复失败诊断
plain_content()校验 patch,避免 frontmatter 等序列化内容干扰匹配。block_index、reason、match_count和found_in_other_uris。not_found、non_unique、apply_error和not_applied,帮助模型定向修复。5. 调整 SessionCommit 默认并发
examples/ov.conf.example中的session_commit.max_concurrent从 4 调整为 8。ov.conf显式覆盖该值的能力。6. Eval 模式禁用 Cron
vikingbot chat --eval不再初始化或启动CronService。jobs.json时产生空文件和JSONDecodeError。7. 防止 Service 包导入环回归
openviking.service包导入测试。评测结果
LoCoMo Judge 评测结果正常(排除
category=5):变更类型
测试与验证
本次更新 PR 说明时未在最新 rebase 后重新执行全量测试;各功能改动均包含对应的定向测试,合入前仍需以 CI 结果为准。
Human Involvement
检查项