Skip to content

Conversation

@CaralHsi
Copy link
Collaborator

@CaralHsi CaralHsi commented Jan 30, 2026

Description

Summary:
This PR improves the stability, contextual correctness, and abstraction discipline of the Skill Memory extraction pipeline.

As skill abstraction became more complex, several issues emerged in the previous implementation:
• Unclear and unsafe usage of chat_history during skill extraction
• Fragile task chunk splitting when message indices were malformed
• Incomplete parameter propagation across scheduler → reader → skill processor
• Rigid method signatures limiting extensibility
• Skill prompt lacking strict constraints on historical context usage

Key Changes
1. Controlled Introduction of chat_history into the Skill Pipeline
2. Stronger Skill Prompt Constraints
3. Fixes and Enhancements in Skill Extraction Logic
4. API & Scheduler Consistency Improvements
5. Concurrency & Robustness Improvements

Fix: #989

Docs Issue/PR: (docs-issue-or-pr-link)

Reviewer: @Wang-Daoji

Checklist:

  • I have performed a self-review of my own code | 我已自行检查了自己的代码
  • I have commented my code in hard-to-understand areas | 我已在难以理解的地方对代码进行了注释
  • I have added tests that prove my fix is effective or that my feature works | 我已添加测试以证明我的修复有效或功能正常
  • I have created related documentation issue/PR in MemOS-Docs (if applicable) | 我已在 MemOS-Docs 中创建了相关的文档 issue/PR(如果适用)
  • I have linked the issue to this PR (if applicable) | 我已将 issue 链接到此 PR(如果适用)
  • I have mentioned the person who will review this PR | 我已提及将审查此 PR 的人

CaralHsi and others added 2 commits January 29, 2026 20:32
* feat: skill with history

* feat: pass chat-history into skill

* feat: modify chat-history passing in skills

* feat: modify code

* fix: we don't need to pass history in part B

* fix: process skill memory

* feat: we do not return None with few history now

* feat: update skill

* feat: modify _split_task_chunk_by_llm

* feat: filter by embedding

* feat: modify skill

---------

Co-authored-by: yuan.wang <yuan.wang@yuanwangdebijibendiannao.local>
Co-authored-by: Wang Daoji <75928131+Wang-Daoji@users.noreply.github.com>
* feat: skill with history

* feat: pass chat-history into skill

* feat: modify chat-history passing in skills

* feat: modify code

* fix: we don't need to pass history in part B

* fix: process skill memory

* feat: we do not return None with few history now

* feat: update skill

* feat: modify _split_task_chunk_by_llm

* feat: filter by embedding

* feat: modify skill

* feat: reinforce update rule

---------

Co-authored-by: yuan.wang <yuan.wang@yuanwangdebijibendiannao.local>
Co-authored-by: Wang Daoji <75928131+Wang-Daoji@users.noreply.github.com>
@CaralHsi CaralHsi marked this pull request as ready for review January 30, 2026 02:36
@CaralHsi CaralHsi merged commit e8e5974 into dev-20260126-v2.0.4 Jan 30, 2026
16 checks passed
@CaralHsi CaralHsi deleted the skill branch January 30, 2026 02:40
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.

2 participants