T02 · Agent Memory Poisoning
- Location
templates/agents-additions.md:18- Finding
Conversation-Derived Instructions Can Poison Persistent Agent Memory
- Content
View full analysis
.md` 5. 不要读不相关的 domain "以防万一" ### After Work - 纠正/强教训 → 立即写入对应的 self-improving 文件 - 模式使用 3 次/7天 → 提升到 HOT - 模式 30 天未用 → 降到 WARM - 模式 90 天未用 → 归档到 COLD - 不确认不删除 ### Writing Rules - 每条一个 bullet,简短具体 - 明确用户纠正 → 立即追加到 `~/self-improving/corrections.md` - 可复用全局规则 → 追加到 `~/self-improving/memory.md` - 领域特定教训 → 追加到 `~/self-improving/domains/.md` - 项目级覆盖 → 追加到 `~/self-improving/projects/.md` ``` The relevant learning-signal rules additionally identify user corrections, preferences, and repeated instructions as information to persist: ```markdown ### Signals to Log **纠正信号** → `~/self-improving/corrections.md`: - "不对..." / "错了..." / "实际上应该是..." - "我更喜欢 X,不是 Y" - "记得我总是..." - "别再做 X" - "为什么你一直..." **偏好信号** → `~/self-improving/memory.md`: - "我喜欢你..." - "总是给我做 X" - "永远不要做 Y" - "我的风格是..." **模式候选** → 跟踪,3 次后确认: - 同一指令重复 3+ 次 - 反复有效的工作流 - 用户表扬特定做法 ``` ### Technical Analysis The Skill instructs the Agent to convert conversation-derived content into persistent behavioral state. Explicit corrections are written immediately, reusable rules are placed in `~/self-improving/memory.md`, and repeated patterns can be promoted to the always-loaded HOT tier. The stored data is subsequently loaded before non-trivial work. This creates a durable instruction channel across sessions. The design does not: - Authenticate whether the person su ...[truncated 2590 chars]- Remediation
View remediation
