Files
myWiki/concepts/soft-supersession.md

1.3 KiB
Raw Blame History

title, created, updated, type, tags, sources
title created updated type tags sources
Soft-Supersession 2026-06-24 2026-06-24 concept
agent-memory
data-integrity
audit
contradiction-handling
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 版本历史(文件级)
  • 共同点:非破坏性,可追溯,只是审计路径不同

参考