Files
myWiki/concepts/memory-tripartite-partition.md

53 lines
2.0 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: "记忆三分区Memory Tripartite Partition"
created: 2026-07-03
updated: 2026-07-03
type: concept
tags: ["agent", "memory", "partition", "governance"]
sources: ["https://mp.weixin.qq.com/s/iiTmgbtrYHMMjQ7dn7CDrg"]
---
# 记忆三分区
> 记忆要有归属,不能混成一个篮子——至少按「人、事、经验」分区。
## 核心定义
**记忆三分区** 是 [[zleap-workspace-harness-2026|Zleap-Agent]] 记忆层的核心设计:将 Agent 记忆按归属拆分为三条线,避免不同类型记忆互相污染。
## 三条线
| 分区 | 内容 | 归属 | 读写特点 |
|------|------|------|---------|
| **人People Notes / A 线)** | 用户偏好、稳定画像、Agent 自身认知 | 绑定用户 | 快速预取 |
| **事Core Records / B 线)** | 工作事件、项目事实、任务记录 | 绑定工作区和客户 | 抽取 → 向量化 → 实体关联 → 召回 → 精排 |
| **经验Experience** | 可复用流程、失败模式、验证习惯、恢复策略 | 脱敏后共享 | 准入规则严格,不入业务隐私 |
## 经验记忆的准入规则
经验记忆更像「方法库」。以下内容**不应**进入经验记忆:
- 公司名、客户名、项目名
- 财务事实、私有路径
- 一次性任务结果
以下内容**可以**进入:
- 可复用的工作流程
- 常见失败模式
- 验证习惯和检查清单
- 恢复策略
## Reconcile 机制
新记忆入库时与旧记忆比对,判断四种处理:跳过、并存、替换旧记忆、保留旧记忆。这确保记忆库不会无限膨胀。
## 设计动机
引用 [[channel-fracture|Hermes Agent Channel Fracture]] 案例——记忆写入需验证完整通道。写错、取错、串到别的任务里都会影响后续行为。分区是降低跨用户、跨任务、跨工作区污染风险的基础治理手段。
## 参考
- [[zleap-workspace-harness-2026|Zleap-Agent Harness 设计]]
- [[memory-dream|Memory Dream]]
- [[memory-recall-fast-slow|快慢召回]]
- [[channel-fracture|Channel Fracture]]