Skip to content

Support configurable memory extraction rules - #57

Merged
Bosheng0422 merged 1 commit into
developfrom
feat/memory-extraction-rules
Nov 26, 2026
Merged

Bosheng0422 merged 1 commit into
developfrom
feat/memory-extraction-rules

Conversation

@Bosheng0422

@Bosheng0422 Bosheng0422 commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

关联 TencentCloud/Octop#2963。

为长期记忆提取增加可选的保留和跳过规则。两类规则同时用于 Candidate 和 Episode 的提取;留空时,两个 prompt 与原模板逐字节一致。

⚠️ Recall/write path change。Candidate 模板版本更新至 v2.6,Episode 模板更新至 episode/v2。宿主可通过 MemoryService.supports_extraction_rules 判断本地记忆库是否支持规则。

依赖与发布顺序

审查和集成顺序为 octop-memory #57 → octop-harness #292 → Octop #3056。这是第一步,向 Harness 提供提取规则能力。对应包发版后再更新下游依赖下限和锁文件。

验证结果

  • make all 通过,含 Ruff、严格 mypy 和真实 PostgreSQL 用例。pytest 为 1663 passed,12 skipped。
  • 新增回归覆盖空规则与原 prompt 一致、单独或同时配置规则、花括号文本、提取器版本,以及两次提取调用实际收到规则。

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.

1 participant