Skip to content

The LibraryField notes on AI agent memory

Evidence-first deep-dives on evaluation, context engineering, and the science of how AI agents remember.

Latest·Jul 13, 2026·8 min read

Shared Memory Poisoning: One Bad Write, Many Agents

Shared memory poisoning can expose many agents to one bad write. Use a three-trust matrix and consumer-side hygiene to limit the risk.

Read

Agent Memory

Jul 12, 2026·10 min read

The Missing Layer: No Protocol Says What Agents Know

Agent memory interoperability needs rules for identity, schema, provenance, consistency, and permissions. A2A and MCP do not define them.

Jul 11, 2026·11 min read

AI Introspection: Why a Voice Is Not an Audit

AI introspection is real but unreliable. Chain-of-thought and self-reports cannot replace durable audit records outside the model.

Jul 11, 2026·10 min read

Claude's Global Workspace: Why AI Memory Lives Outside

Anthropic's global workspace research reveals Claude's transient working memory, and why AI agent memory must persist outside the model.

Jul 7, 2026·13 min read

Knowledge-Graph Memory for AI Agents

Knowledge-graph memory reframes agent memory from transcript to navigable substrate — GraphRAG, temporal graphs, PPR, and why it shouldn't rewrite itself.

Jun 23, 2026·10 min read

AI Agent Memory: What It Is

AI agent memory explained: what it is, how it works, the approach families, how it is evaluated, and how to choose a real memory layer.

Jun 19, 2026·9 min read

The A2A Agent Card: How Agents Discover Each Other

What an A2A Agent Card is: the JSON at a well-known URL describing an agent's skills, endpoint, and auth — the primitive agents fetch to discover and call each other.

Jun 19, 2026·11 min read

A2A Integration How-To (Python)

A2A tutorial for Python: install the SDK, publish an Agent Card, run a server, delegate a task, stream artifacts, and add domain-scoped memory.

Jun 18, 2026·10 min read

A2A Protocol (Agent2Agent), Explained

A2A protocol explained: Agent2Agent primitives, transports, how it complements MCP, and why shared agent memory stays a separate layer.

Jun 18, 2026·7 min read

A2A vs MCP: How They Differ (and Compose)

A2A vs MCP compared: MCP connects agents to tools; A2A connects agents to agents. They compose as complementary layers, not rivals — and leave memory open.

Jun 18, 2026·7 min read

Hebbian memory for AI agents

Hebbian memory for AI agents: how learned associations, automatic query expansion, and outcome feedback differ from static vector database similarity retrieval.

Jun 18, 2026·7 min read

Is Mnemoverse a vector database?

Is Mnemoverse a vector database? No. A vector DB does static similarity retrieval; Mnemoverse adds learning, recency, and consolidation on top.

Jun 18, 2026·7 min read

Rescorla-Wagner for agent memory

Rescorla-Wagner for agent memory: how prediction-error outcome feedback updates valence and improves recall in Mnemoverse.

Jun 18, 2026·9 min read

Shared Memory for Multi-Agent Systems

Shared memory for AI agents needs explicit domains, isolation, and hierarchical reads. Protocols coordinate work; memory preserves context.

Secrets & Trust

Jul 13, 2026·8 min read

Shared Memory Poisoning: One Bad Write, Many Agents

Shared memory poisoning can expose many agents to one bad write. Use a three-trust matrix and consumer-side hygiene to limit the risk.

Jul 6, 2026·18 min read

How Do Two AI Agents Trust Each Other?

Agent-to-agent trust is a 4-layer stack borrowed from web auth (signed cards, OAuth/mTLS, token exchange) — and the injection gap none of it closes.

Jul 6, 2026·17 min read

Least Privilege for AI Agents

Least privilege bounds what a tricked AI agent can do — not whether it's tricked: authz policy, JIT tokens, and the confused-deputy ceiling it can't cross.

Jul 6, 2026·12 min read

Prompt Injection Is a Credential-Exfiltration Attack

Prompt injection is a 3-stage credential kill chain: injection lands, the agent reads a secret, it leaves via an allowed channel. Three defenses matter.

Jul 5, 2026·10 min read

The Trust-Model Spectrum for AI Agent Secrets

Six rungs of protecting an AI agent's secret, weakest to strongest—each defeats a different threat, but none stops a tricked agent misusing what it unlocks.

Jul 4, 2026·13 min read

Credential the LLM Never Sees for MCP Tools

Credential the LLM never sees: resolve secrets below the model, inject them on the wire, and account for MCP, logs, and confused deputies.

Jul 4, 2026·13 min read

Memory Poisoning: The Patient Path to Your API Keys

A poisoned AI agent memory can wait weeks, then leak an API key. Persistence and key-theft are each demonstrated; chaining them isn't—yet. Here's the fix.

Jun 29, 2026·11 min read

AI Agent Secrets: Why the Nagging Won't Save You

AI agents warn about API keys because the risk is real. But warning after a secret enters context is not protection.

Memory Science

Jul 11, 2026·10 min read

Why Agent Memory Needs Sleep

Agent memory consolidation turns raw writes into reusable structure between uses — what works, what ships, and what remains unproven.

Jun 16, 2026·12 min read

Multimodal Memory: Cross-Modal Binding in AI

Multimodal memory binds text, image, and audio into one representation; a sourced guide to the binding problem, TPR, VSA/HDC, SDM, and modern Hopfield networks.

Jun 16, 2026·13 min read

Self-Organizing Memory: ART, SOM & Growing Neural Gas

Self-organizing memory systems explained: Adaptive Resonance Theory, Self-Organizing Maps, and Growing Neural Gas, including GNG-U utility-based pruning.

Jun 10, 2026·8 min read

Episodic vs Semantic Memory: Tulving for AI Agents

Tulving's episodic vs semantic split is a design decision for AI agents: an event log beside a fact store, plus a step deciding when episodes become facts.

Jun 8, 2026·11 min read

Types of Memory: Why So Many Names?

Memory has dozens of named kinds because no one has drawn its boundary. A guided tour of the list, the reasons it grew, and why the seams never close.

Jun 8, 2026·13 min read

Schema Formation: How Memory Builds Reusable Structure

Schema theory explains how memory turns episodes into reusable structure. For AI agent memory, it clarifies why episodes and consolidation should stay separate.

Jun 8, 2026·15 min read

Working Memory: Capacity, Models, and AI Context

Working memory is the bounded active workspace of cognition; its capacity debate (Miller's 7 vs Cowan's 4) and models map onto AI context-window design.

Jun 7, 2026·6 min read

Bernard Widrow: From the LMS Rule to Cognitive Memory

Bernard Widrow's 1960 LMS delta rule taught machines to learn and still runs in adaptive filtering; late in life he turned to content-addressable memory.

Jun 7, 2026·6 min read

Geoffrey Hinton: The Boltzmann Machine and Generative Memory

Geoffrey Hinton's 1985 Boltzmann machine made memory generative: a stochastic, energy-based network with hidden units that learns a distribution and samples it.

Jun 7, 2026·6 min read

Jeff Hawkins: Memory Exists to Predict

Jeff Hawkins argues the brain is a memory system for prediction; Hierarchical Temporal Memory uses sparse representations, sequences, and continual learning.

Jun 6, 2026·8 min read

Hopfield Networks: The Memory Model That Became Attention

John Hopfield's 1982 associative memory — basis of his 2024 Nobel — stores patterns in an energy landscape; Transformer attention is one read from it.

Benchmark Wars

Jul 12, 2026·10 min read

Can You Trust an LLM Judge? A Field Manual

LLM-as-judge reliability explained: assess position bias, verbosity, self-preference, rubrics, retrieval recall, and benchmark comparability.

Jun 23, 2026·16 min read

AI Memory Benchmarks: A Field Guide

A map of how AI-agent memory is actually measured — LoCoMo, LongMemEval, BEAM and the long-context tests — what each one checks, what it misses, and which to trust.

Jun 23, 2026·12 min read

LLM-as-Judge Variance in AI Memory Benchmarks

Swap only the grading prompt on the same fixed answers and an AI-memory benchmark score moves ~40 points. Why you can't trust a memory leaderboard without the judge's recipe.

Jun 7, 2026·9 min read

DeepEval: Pytest for LLM Evaluation

DeepEval is a pytest-style LLM evaluation framework that turns evals into CI tests; most metrics are LLM-as-a-judge, so G-Eval has variance and DAG adds rigor.

Jun 7, 2026·5 min read

Hugging Face Evaluate Library: Metrics & compute() Guide

Hugging Face evaluate library: evaluate.load and compute(predictions, references), the list-of-lists shape people get wrong for BLEU, and where it fits in 2026.

Jun 6, 2026·14 min read

How to Evaluate AI Agent Memory

How to evaluate AI agent memory: the framework, the dimensions, a benchmark map (LoCoMo, LongMemEval, BEAM), and why latency and cost are co-equal axes.

Jun 5, 2026·13 min read

LLM-as-a-Judge: Bias, Leniency & the LoCoMo Number

LLM-as-a-judge leniency and bias explained: how a "be generous" grader, MT-Bench failures, and the LoCoMo judge shape the memory-benchmark numbers vendors cite

Jun 4, 2026·8 min read

LangChain & LangSmith Evaluation: The Memory Blind Spot

LangChain/LangSmith evaluation explained: datasets, LLM-as-judge biases, the eval tool landscape, and the blind spot none cover — whether your agent remembers.

Context Builder & Orchestration

Jun 19, 2026·11 min read

Context Budgeting: Zones, Allocation & Eviction

Context budgeting allocates finite agent tokens across system, tools, retrieval, history, outputs, and response buffer.

Jun 19, 2026·12 min read

Context Optimizer: Cache, Budget & Placement

Context optimization for AI agents unifies KV-cache hit rate, prefix stability, token budget, latency, cost, and placement into one runtime decision.

Jun 18, 2026·8 min read

Context Compiler vs Orchestration

Where flow control ends and window assembly begins: the boundary between orchestrator and context compiler in LLM agent systems.

Jun 18, 2026·11 min read

Deterministic vs LLM Context Assembly

Deterministic context assembly improves cacheability and auditability; LLM-directed assembly adds adaptivity. Most agent systems need both.

Jun 16, 2026·15 min read

Context Engineering Needs a Compiler

Context engineering is the discipline. The context compiler is the per-turn runtime layer that ranks, budgets, secures, and assembles each model call.

Jun 15, 2026·10 min read

Memory MCP: How to Give AI Agents Persistent Memory

Memory MCP servers explained: what they are, how to choose one by where data lives and what it does, and how to install so an agent remembers across sessions.

Jun 10, 2026·9 min read

MCP Federation in 2026

MCP federation in 2026: what gateways and the June 2025 spec solved for running multiple MCP servers, and which problems, like auth propagation, remain open.

Jun 6, 2026·16 min read

KV-Cache Hit Rate: The #1 Agent Metric

KV-cache hit rate is the top AI-agent metric: every major provider discounts a cache read 50–90% off fresh input, so context engineering is memory engineering.

World Representation

Light Reading

Prefer a feed? Subscribe via RSS.