Agent memory
Type: kb/types/tag-readme.md
Agent memory notes treat memory as part of agent architecture, not just storage. Use this curated head for claims about what memory must do for agents, how it interacts with context engineering, and where memory-system comparisons reveal broader KB design constraints. It is selective by design; use a scoped tag search for full membership.
Core Frame
- Designing a Memory System for LLM-Based Agents — starting point: derives the memory-system requirements from bounded context, consumer needs, artifact governance, and retrieval's limits
- Agent memory needs discoverable, composable, trusted knowledge under bounded context — minimal artifact-quality frame for remembered knowledge that must improve future action
- Agent memory is a crosscutting concern, not a separable niche — decomposes memory into storage, retrieval/activation, and learning rather than treating it as one pluggable subsystem
- Raw accumulation does not create usable memory — separates preserving material from making it searchable, scoped, trustworthy, and lifecycle-managed
- Memory design adds operational axes to artifact analysis — extends artifact analysis with capture, derivation, activation, authority assignment, lifecycle, and evaluation policies
Requirements Map
- Agent Memory Requirements — navigation hub for concrete requirements extracted from the memory-system design synthesis
- Activate Behavior-Changing Memory Before The Mistake — memory must reach the operative context before the relevant action, not only after explicit search
- Make Authority Explicit — governance rule for who can read, write, promote, activate, enforce, revise, and retire memory
- Keep Lineage And Compiled Views From Drifting — generated cues, prompt files, indexes, and assistant-specific views need provenance and staleness checks
- Evaluate Memory By Effects, Not By Existence — memory succeeds when downstream tasks, behavior, context efficiency, or lineage improve
- Retire, Redact, Supersede, And Relax Memory — lifecycle operations for changing, invalid, sensitive, or over-constrained memory
Boundaries And Failure Modes
- Active work state is not retrospective memory or chat history — separates live task state from retained retrospective memory
- Preserve Evidence Without Making History The Next Context — keeps trace evidence available for audit and extraction without loading raw history by default
- Flat memory predicts specific cross-contamination failures that are empirically testable — predicts search pollution, identity scatter, and insight trapping when memory roles collapse
- Trace-extracted memory earns authority per operation, not at capture — trace-extracted records become knowledge only after operations such as verification, abstraction, and consultation
- Bottom-up structure inference needs capture at the decision surface, not the state — relation inference works only when capture preserves the decision-shaped "why"
External Checks
- The adaptation survey corroborates memory requirements but misses artifact governance — compares external agentic-adaptation taxonomy against the memory requirements map
- Memory management policy is learnable but oracle-dependent — AgeMem shows memory policy can be learned when task-completion oracles exist
- Three-space agent memory echoes Tulving's taxonomy but the analogy may be decorative — tests whether knowledge, self, and operational memory earn separate lifecycle treatment
Related Tags
- Learning theory — memory only matters when retained artifacts change future behavior
- Context engineering — memory becomes useful only through selection and activation into bounded context
- Computational model — agent memory is loaded through bounded calls and scheduling decisions
- Related systems — external implementations and comparisons that expose memory-system design tradeoffs
Other tagged notes
- Adaptation signals choose pressure; artifact analysis chooses the retained surface - Maps agentic-adaptation signals onto artifact-analysis axes so KB learning records which retained surface changes, what authority it gains, and how to review it
- An accepted edit verifies the change, not the rule - Human acceptance of an edit is a strong oracle for 'this change was wanted here' but a weak oracle for 'this generalizes' — mining rules from accepted edits inherits instance-level verification while the generalization step stays oracle-poor
- An outcome check licenses replay; a rule needs the process verified - Outcome and process verification are two verify-rung oracles — an outcome check licenses replaying an instance, not abstracting a rule, since only a process check inspects the generalizing mechanism
- Create Memory Directly - Direct memory creation preserves live understanding by writing useful artifacts before later trace extraction loses structure
- Import External Knowledge Into Internal Form - Agent memory systems need import paths when authoritative project knowledge already exists outside the memory substrate
- Only explicit retention is currently durable, writable, and addressable at once - Every tacit retention form — in-context conditioning, weights under selection or fine-tuning, human expertise — fails addressability, so governed retention currently runs through explicit artifacts
- Open-domain memory retention needs a declared output spec - Explains why an input stream alone can't answer 'what to store' in open-domain memory design; a declared output spec supplies the missing inclusion criterion.
- Promote Only When Future Value Exceeds Maintenance Cost - Candidate memory should become durable only when future retrieval or activation value exceeds review and maintenance cost
- Retaining the episode keeps a distilled rule re-derivable - The episode a lesson was learned in and the rule distilled from it are complementary retention layers: with the episode retained and lineage recorded the rule stays evidence-backed and re-derivable; without it the rule hardens into a bare commitment
- Serve Multiple Consumers, Not One Retrieval Interface - Memory systems need multiple surfaces because acting, scheduling, review, learning, governance, and active work consume memory differently
- Symbolic context engineering is bounded by symbol availability - Symbolic context selection — matching on type, path, tag, tool, or event — can act only on an already-observable symbol; an operation's identifying symbol arrives by declaration, by the operation naming it, or by carryover from a prior one, so apparent anticipation is reaction to an earlier symbol. Producing context with no symbol available requires semantic inference.
- Use Trace Extraction As Meta-Learning - Trace extraction is an after-the-fact learning path that must respect signal quality, review, and readable-artifact versus distributed-parametric learning boundaries