Files
myWiki/concepts/soft-supersession.md

44 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Soft-Supersession"
created: 2026-06-24
updated: 2026-06-24
type: concept
tags: ["agent-memory", "data-integrity", "audit", "contradiction-handling"]
sources:
- "[[atlas-agent-memory-architecture-2026]]"
---
# Soft-Supersession非破坏矛盾处理
Soft-Supersession 是 Atlas 记忆系统中处理矛盾信息的非破坏性更新策略:不删除旧记录,而是创建新记录 + 标记旧记录为被取代 + 召回时默认过滤旧版。
## 机制
```
用户说"搬家了,现在在深圳"
→ 创建新 doc: "用户在深圳" (supersedes=old_id)
→ 更新旧 doc: superseded_by=new_id
→ 召回默认过滤: must_not exists superseded_by
→ 追溯: recall_memory(include_superseded=True) 返回全版本链
```
## 两种矛盾类型
- **natural**(自然变化):搬家/升级/偏好改变 → 新事实满置信度
- **harsh**(明确否认):用户说"我从未说过" → 新事实扣 0.1 置信度
## 链式追溯
支持任意长度追溯链abc → xyz → pqr → ...),旧记录永不删除——审计需要全版本历史。
## 对比
- AtlasSoft-Supersession 链ES 文档级)
- GBrainGit 版本历史(文件级)
- 共同点:非破坏性,可追溯,只是审计路径不同
## 参考
- [[atlas-agent-memory-architecture-2026]]
- [[memory-consolidation]]
- [[gbrain-memory]]