Repository navigation
Support configurable memory extraction rules - #57
Merged
Merged
Conversation
This was referenced Nov 19, 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.
Summary
关联 TencentCloud/Octop#2963。
为长期记忆提取增加可选的保留和跳过规则。两类规则同时用于 Candidate 和 Episode 的提取;留空时,两个 prompt 与原模板逐字节一致。
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。