让智能体自动记忆关键信息,无需主动操作即可触发。
Delivery, Not Storage: Cue-Anchored Working Memory as a Harness Property for Coding Agents
- 设计双层记忆架构,用触发条件自动激活记忆。
- 实测显示人工记忆操作几乎为零,系统可精准注入信息。
- 适合长期运行的智能体,提升任务连续性与可靠性。
编码智能体通常依赖文档式记忆:指令文件、计划文件和自动生成的内存目录需主动编写与调用。但人类专家依赖的另一类记忆——情境关联的操作事实(如陷阱、位置、本地惯例)——是工作过程中的副产品,会在情境触发时无意识被召回。我们主张这类记忆才是长时运行智能体的核心支撑,必须作为系统固有属性而非代理选择。本文贡献包括:(1) 基于记忆外化、偶然编码与事件前瞻性记忆的认知理论,构建双层设计框架,对应具体架构需求;(2) 提出一种线索锚定记忆模型,记忆项携带可组合的触发条件(路径、符号、语义、事件、时间),由统一调度器确定性评估,现有学术或商用系统均未实现此能力;(3) 在真实编码任务中验证:即使预置记忆,人工记忆操作仍接近零(114轮中0次);确定性注入在每次实验中成功触发且无误报;39%的会话内重读内容在压缩边界前已付费购买;(4) 重复压缩衰减测试显示:仅存在于对话中的10个事实,在首次摘要后即消失,后续106/108次压缩中均缺失;而从调度器自有存储注入的事实则完整保留至全部138次压缩-恢复,最终摘要不包含这些信息。可靠记忆的关键不是存储,而是交付:智能体无需思考的稳定记忆通道。
原文摘要 · Abstract (English)
Coding agents ship with one kind of memory: documents. Instruction files, plan artifacts, and auto-written memory directories are deliberately authored and deliberately retrieved: the agent must choose to write them and choose to read them back. Human expertise runs on a second tier that never gets written down: situationally-bound operational facts (gotchas, locations, local conventions) encoded as a side effect of the work and retrieved involuntarily when the situation cues them. We argue this second tier is the load-bearing one for long-running agents and must be a harness property, not an agent choice. We contribute: (1) a two-tier design theory grounded in the cognitive literature on memory offloading, incidental encoding, and event-based prospective memory, each mapped to an architectural requirement; (2) a cue-anchored memory model where memories carry first-class trigger conditions over a composable vocabulary (path, symbol, semantic, event, temporal), evaluated deterministically by the harness, a composition no surveyed academic or shipped system provides; (3) a controlled evaluation on a real coding task showing that voluntary memory use is near zero even with a pre-seeded store (0 memory operations in 114 turns), that deterministic injection delivered in every seeded run with zero false alarms, and that 39% of intra-session re-reads re-buy content paid for before a compaction boundary; (4) a repeated-compaction decay probe: ten facts held only in conversation vanish at the first summary and stay absent from 106 of 108 compactions, and the deprived agent greps the harness's own session files to rebuild them, while the same facts injected from a harness-owned store arrive intact through all 138 compact-resumes as the final summary carries none. Delivery, not storage, is the product: the reliable memory channel for agents is the one the agent never has to think about.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。