Files
16gagent/memory/registers/_index.md
T
2026-06-06 10:40:48 +08:00

34 lines
1.6 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.
# 记忆注册表 — 索引
> 三层记忆架构的「寄存器层」。
> daily/(原始日志) → registers/(持久化事实) → working memory(会话级上下文)。
>
> 灵感:total-recall 的 Write Gate + 分层结构
## 寄存器列表
| 寄存器 | 文件 | 用途 | 读写门控 |
|--------|------|------|----------|
| 开放回路 | `open-loops.md` | 待办、待回复、待处理项 | Write Gate: 仅影响后续行为时才写入 |
| 偏好 | `preferences.md` | 用户习惯、风格偏好、长期偏好 | Write Gate: 仅确认后的偏好 |
| 项目 | `projects/` | 各项目独立文件 | 项目完成/更新时写入 |
| 决策 | `vault.md` (#重要决策记录) | 架构决策、技术选型 | 决策影响后续时才记录 |
| 路由 | `memory-routing.md` | 六套记忆系统统一路由策略 | 🆕 2026-06-02 |
| 工具环境 | `tool-env.md` | 外部工具/服务接入配置和踩坑 | 🆕 2026-06-04,从 vault.md 拆分 |
| 伙伴 | `companions.md` | 伙伴系统构成和交互规则 | 🆕 2026-06-04,从 vault.md 拆分 |
| 人员 | `people.md` | 用户提到的其他人/角色 | 🆕 2026-06-04 |
## 写入规则(Write Gate
**只有满足以下任一条件的才写入 registers/:**
1. ✅ 会影响未来对话行为(偏好、决策、规则)
2. ✅ 用户明确要求记住
3. ✅ 某项决定有明确的"如果不记录就会重复犯错"风险
**以下情况不写入 registers/**
- ❌ 单一事实性信息(查到的日期、数据)
- ❌ 临时状态(当前在做什么)
- ❌ 用户随口说的但无长期影响
→ 所有不满足 gates 的先写入 `daily/YYYY-MM-DD.md`