AI agents are amnesiac by design, and the fix already exists in software engineering.
Every time a large language model processes a request, it starts from nothing. There is no record of the last task it attempted, no trace of where it went wrong, no log of what it cost. Each session is, architecturally speaking, the first session. For a user asking about history or grammar, this statelessness is a minor inconvenience. For an autonomous agent managing a production workflow, approving logistics decisions, or writing and executing code without a human in the loop, it is a structural failure.
The problem runs deeper than session memory. Even reinforcement learning agents, built explicitly to accumulate experience, discard most of what they encounter. The dominant data structure in deep RL is the experience replay buffer, a fixed-size queue that stores past interactions as tuples of state, action, reward, and next state. Once the buffer reaches capacity, the oldest entries are overwritten. The system does not ask which failures carried the most diagnostic signal or which near-misses would prevent future errors. It deletes the oldest memory to make room for the newest one.
What neither architecture produces is a durable, causally indexed record of what was decided, what followed, and why. The field has names for training corpora, retrieval databases, and conversation buffers. It does not yet have a standard term for the record of decisions and their consequences across an agent's operational lifetime. That record, persistent and append-only and linked by cause, is what this article calls an outcome ledger. The systems that come closest to building one are scattered across reinforcement learning, neurosymbolic AI, and database engineering that financial institutions solved two decades ago.
A November 2025 survey by MIT Sloan and Boston Consulting Group found that 35 percent of enterprises had already deployed AI agents in production, with another 44 percent planning to follow. Across that cohort, the recurring complaint was the same: when an agent misbehaved, teams could not reconstruct what led to the incident. Guardrails had prevented some errors but produced no historical record.
Three things are commonly confused with an outcome ledger. Fine-tuning rewrites model weights to accommodate new behavior, but it is irreversible and opaque. The weights are shared; changing them to learn something new risks overwriting what encoded something old. More fundamentally, fine-tuned knowledge cannot be inspected, queried, or retracted. There is no line in a weight matrix that says this decision was made here, for this reason, under these conditions.
Retrieval-augmented generation is closer but still wrong. RAG stores what is true in the world. An outcome ledger stores what the agent did in the world, and what followed. A legal database of precedents is not the same artifact as a log of every ruling a judge made, annotated with which arguments proved decisive and how appeals turned out. Conversational memory optimizes for session coherence rather than cross-session learning, and it almost always discards failure because those are the cases where no one agreed something good had happened. An outcome ledger treats failure as first-class data, because the most diagnostic signal in any decision system is not what succeeded under normal conditions but what broke, and under exactly which conditions it did.
Google's ReasoningBank makes this distinction concrete. The system uses a language model as a judge to evaluate completed trajectories, labeling each as a success or failure, and distills both winning strategies and failure modes into structured, retrievable memory items. On the WebArena benchmark, an agent equipped with ReasoningBank raised its task success rate by 8.3 percentage points over a memory-free baseline using identical model weights. The gains came primarily from the failure side of the ledger.
Financial systems cannot afford to lose a transaction or answer an auditor with "we are not sure what happened." To meet those constraints, engineers developed event sourcing: every state change is recorded as an immutable event appended to a durable log. State is never overwritten; it is reconstructed by replaying the event sequence. This gives the system a complete audit trail, the ability to query any past state, and the ability to retrofit new analytics by replaying history through a new lens. Command Query Responsibility Segregation, typically paired with event sourcing, separates the write path from the read path, allowing cheap continuous logging without interfering with retrieval at decision time.
Ledger databases added cryptographic integrity. Amazon's Quantum Ledger Database chained every block to the previous one using SHA-256, assembled into a continuously updated Merkle tree, so tamper-evidence was always mathematically provable. AWS discontinued QLDB in July 2025, migrating users to Aurora PostgreSQL, which is itself evidence that the pattern is robust enough to be commoditized and replatformed. The architecture matters more than any specific product.
The transposition to AI agents is already being attempted. A 2026 paper, ESAA (Event Sourcing for Autonomous Agents in LLM-Based Software Engineering), applies these patterns directly: the agent emits intentions and proposed changes, a deterministic orchestrator validates and appends the resulting events to an immutable log. The inherited engineering rule is the same one the outcome ledger requires: a correction is a new event. History is never overwritten. The Zep and Graphiti temporal knowledge graph engines apply a dual-timestamp model tracking both when an event occurred and when it was recorded. When information changes, old facts are invalidated rather than deleted, and the full lineage from a derived conclusion back to its source is preserved.
A log that records what happened in sequence is useful. A ledger that records which prior decisions caused which downstream outcomes is transformative. The gap between the two is the gap between a database and a reasoning system. Filling it requires causal structure: not just the timestamp of an action and its reward, but the directed graph of which stored memories contributed to which decisions and how credit propagates backward through that graph.
The Allen Institute's CLIN approximates this through causal abstraction. Rather than storing raw trajectories, CLIN maintains a persistent memory of structured conditionals, statements like "opening doors may be necessary for movement between rooms," updated after each trial without modifying the underlying model weights. On the ScienceWorld benchmark, CLIN outperformed the reflection-based agent Reflexion by 23 percentage points. On new tasks it had never encountered, it improved by up to 13 points over its prior-task performance, because the causal abstractions transferred across task categories.
The most technically rigorous implementation is MemQ, developed across teams at Shanghai Jiao Tong University, the National University of Singapore, and MemTensor. MemQ stores agent memory over a provenance directed acyclic graph: each entry records not only its content and a value estimate but which prior memories were retrieved when it was created. Credit assignment uses an adaptation of the TD(λ) algorithm, with graph depth replacing temporal step count as the propagation variable. Across six benchmarks, MemQ posted the highest success rate in five of six transfer settings, with the largest gains on multi-step tasks that produced the deepest provenance chains.
MemQ's own stated limitation is instructive: the provenance DAG incurs continuous storage overhead, and the system assumes monotonic memory growth with no mechanism for consolidation or selective forgetting. These are the same tradeoffs that appear in financial ledger systems. Completeness is expensive, and the audit trail grows without bound unless archiving and snapshotting are explicitly engineered. An outcome ledger is an infrastructure problem with infrastructure costs, not a free property that emerges from smarter prompting.
A hand-drawn diagram on a lab glass board captures the core argument: stateless AI on the left, the ledger stack in the center, the closed accountable loop on the right. The revisions and erasures are part of the thinking. Daice Labs.
For most of AI's deployment history, the absence of outcome memory was a performance problem. A system that forgot its failures was less efficient, but it could still complete tasks and satisfy the humans reviewing its work. That framing is changing for two reasons that operate independently of whether any researcher builds a better memory architecture.
The first is the deployment pattern itself. When an autonomous agent chains tool calls across applications, writes and executes code, and modifies external state faster than human review can follow, the question of what it did and why is not an optimization question. It is a forensic one. The architectural answer in distributed systems has always been the same: an append-only, tamper-evident log that captures every action, its inputs, its outputs, and the context in which it was taken. Without that log, incident reconstruction is inference, not evidence.
The second reason is regulatory. The EU AI Act's Article 12 mandates that high-risk AI systems must technically allow for the automatic recording of events over the system's lifetime, retained by deployers for a minimum of six months, with full application for high-risk systems beginning 2 August 2026. The regulation does not specify the architecture. It specifies what the record must make possible: reconstruction, traceability, and accountability. An outcome ledger built on append-only event storage, cryptographic chaining, and causal provenance is the architecture that satisfies those requirements structurally rather than through compliance theater.
Emerging engineering practice pairs this with cryptographic non-repudiation: signing each log entry with a digital signature so the record is independently verifiable, aligning with ISO/IEC 42001's demand for appropriate records. The implication is precise. Logging what happened is necessary but not sufficient. A correct audit trail is not a record of what a system claimed to do. It is a record of what the system actually did, preserved in a form that a third party can verify without asking the system to narrate its own behavior.
Key references: ReasoningBank, Google DeepMind, arXiv:2509.25140, ICLR 2026. CLIN, Allen Institute for Artificial Intelligence, 2024. MemQ, Shanghai Jiao Tong University / National University of Singapore / MemTensor, arXiv:2605.08374, 2026. ESAA (Event Sourcing for Autonomous Agents), arXiv:2602.23193, 2026. Graphiti / Zep temporal knowledge graph documentation, 2025. Amazon QLDB documentation, AWS, discontinued July 2025. EU AI Act, Regulation (EU) 2024/1689, Article 12, full application August 2026. MIT Sloan Management Review / Boston Consulting Group AI agent deployment survey, November 2025. ISO/IEC 42001:2023 AI management systems standard.
Daice Labs Inc.
Brookline, MA, USA
Roll the "daice"–exploration & programmable adaptation.