Raw Event Logs vs Engineered Agent Memory: What the Bitter Lesson Essay Shows, and What a Log Alone Leaves Undone

Raw Event Logs vs Engineered Agent Memory: What the Bitter Lesson Essay Shows, and What a Log Alone Leaves Undone
On this page
  1. What the bitter lesson essay tested
  2. What it found, with the conditions attached
  3. The part we agree with
  4. When raw-log search is enough
  5. Where a log alone falls short in production
  6. Log or memory is the wrong choice to make
  7. How to decide on your own data
  8. Frequently asked questions

Published 4 December 2026 by Gaurav Dadhich. Every figure below was read on 4 December 2026 from Arjun Kumar's essay The bitter lesson for agent memory (Hatchery, 2 December 2026) and from the replies quoted, each dated where it appears. All of the essay's benchmark results are its own measurements.

Letting an agent run SQL and full-text search over its own immutable event log is a strong memory baseline, and on today's recall benchmarks it is often the best one. Arjun Kumar's essay, published by Hatchery on 2 December 2026, stored every turn verbatim in SQLite with no extraction and no consolidation, gave the agent read-only tools to search and query that log, and reports matching or beating specialised memory systems on five benchmarks. On DolphinBench (600 tasks over roughly 500K tokens of conversation, graded by GPT-5.6 Sol) the raw-log agent scored 87.2% on GPT-6 Luna and 93.8% on GPT-6.1 Sol, and a nightly "dreaming" wiki added nothing on the two strongest models it tried.

We agree with the base layer of that argument: keep the raw record, never delete the source to save space, and treat everything else as something derived from it. Where we disagree is the step from "the log wins recall benchmarks" to "the log is the memory". A single user's few hundred sessions in a benchmark do not measure how long each answer takes, what each query costs once millions of sessions sit in the index, which of two conflicting facts is current, how one person's data is erased from every place it was copied, or what work is better done before anyone asks. Raw-log search is enough for some agents. For the others, the answer is the essay's own closing design, a hierarchy of derived views over the log, built with the parts the benchmarks left out.

What the bitter lesson essay tested

The essay takes Richard Sutton's bitter lesson (general methods that use more computation beat systems built on human domain knowledge) and asks whether it holds for agent memory. Its test system has no encoding step and no consolidation step. Every turn is appended verbatim to a SQLite event log with an FTS5 full-text index, and retrieval is closed-loop: the agent decides what to search for, reads the results, and searches again until it has enough.

For benchmarks spread across sessions, the agent got four tools from Hatchery's Tardigrade library: sessions_list, sessions_search (FTS5 across all past sessions), sessions_read (a verbatim window of turns from one session) and sessions_query (read-only SQL over a global sessions index). For single-session benchmarks it got three: describe, search and query. A third arm added Anthropic-style "dreaming": after every task, a separate agent read the log and the task's feedback and wrote a linked wiki for the next task.

The essay ran five benchmarks across three OpenAI models (GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna) and, for one benchmark, three Anthropic models (Opus 5.5, Sonnet 5.5 and Haiku 5.5):

BenchmarkHistorySize as stated in the essayWhat it tests
DolphinBenchConversations600 tasks, about 500K tokensRecall and preference transfer
LongMemEval V1Multi-session conversationsS (about 115K tokens) and M (about 1.5M tokens), 500 questions eachEpisodic recall
LongMemEval V2Web and enterprise trajectoriesSmall split, 451 questions with screenshotsSemantic and procedural recall
BEAMLong conversation threads100K, 500K, 1M and 10M tokensLong-horizon recall
Continual Learning BenchStateful SQL trajectories40 episodes (database_exploration)Transfer across sessions

What it found, with the conditions attached

Four results carry the argument. All four are Hatchery's own measurements, and the essay publishes its code.

Recall at lower cost. On DolphinBench, with the leaderboard's GPT-5.6 Luna model at high effort and GPT-5.6 Sol as the judge, the raw-log agent scored 85.7% for a total run cost of $4.73, which the essay places ahead of every memory system on its DolphinBench chart. Nicolo Boschi, lead engineer of one of the systems on that chart, said on X on 3 December 2026 that the DolphinBench results were run with a wrong setup for his system and that his team will rerun them, so treat the cross-system ranking as disputed. It also reports leading LongMemEval V1 (94.6% on S and 92.2% on M, both with GPT-6.1 Sol) and all four BEAM sizes, and scoring 79.8% on LongMemEval V2, behind a system that also searches raw transcripts. The essay names the judge only for DolphinBench; for LongMemEval and BEAM it does not state the judge, and for LongMemEval V2 it does not state the answering model. The essay does not give BEAM's question count. It also says the prompts were tuned on 20 questions from BEAM-100K because BEAM's grading rubrics are not obvious from the questions.

Scores rise with the model. Holding everything else fixed on DolphinBench (600 tasks, high effort, GPT-5.6 Sol judge), moving from GPT-6 Luna to GPT-6.1 Terra to GPT-6.1 Sol took the raw-log agent from 87.2% ($2.47) to 90.5% ($20.32) to 93.8% ($36.38). Putting the whole 500K-token history in context instead scored 74.0% ($23.66), 82.8% ($152.22) and 91.7% ($309.15) on the same three models.

The gain from a stronger model grows with history size. From GPT-6 Luna to GPT-6.1 Sol, BEAM-100K rose 6.4 points (67.8 to 74.2) and BEAM-10M rose 13.8 points (53.2 to 67.0); LongMemEval V1-S rose 8.8 points and V1-M 10.8 points. The essay's explanation is that stronger models write better SQL.

Dreaming stops paying on the strongest models. On Continual Learning Bench's database_exploration suite (40 stateful SQL episodes with a schema migration halfway through, medium effort, means over five runs and three for Sonnet 5.5 with raw logs), the raw log alone lifted mean reward from 0.422 to 0.768 on Opus 5.5 and from 0.282 to 0.727 on GPT-6.1 Terra against a stateless agent. Adding the dreaming wiki helped weaker models (+0.227 on Sonnet 5.5, +0.134 on Haiku 5.5, +0.118 on GPT-6 Luna), was within run-to-run spread on GPT-6.1 Sol (+0.039), and slightly hurt the two strongest (-0.004 on GPT-6.1 Terra, -0.011 on Opus 5.5). The essay does not define how the reward is computed.

Two things are missing from the write-up, and both matter for production. There is no latency figure anywhere in it: no time per answer, no count of search rounds per question. And every benchmark scores questions over one user's or one thread's history, so nothing measures what happens when one index holds many people's histories.

The part we agree with

Compression at write time guesses which future questions will matter, and a wrong guess cannot be undone if the original was thrown away. The essay's best example is a store-inventory task after a schema migration that left three price columns (prc, prc_usd and prc_v2): Sonnet 5.5 with logs and a wiki spent four queries and guessed wrong because its notes had not recorded which column to use, while Opus 5.5 found the migration events in the raw log and answered in one query.

That lesson holds well beyond benchmarks. Keep an immutable record of what happened, and make every derived thing (facts, summaries, embeddings, wiki pages) point back to the events it came from, so that a bad derivation can be thrown away and rebuilt instead of silently becoming the truth. We wrote the same rule into agent memory versioning, where every change is an immutable revision, and it is why agent traces are not agent memory but are the record memory should be rebuilt from.

It is also not a new finding, and we have already said so. In agent memory vs RAG we reported that plain retrieval over raw chat history matched or beat purpose-built memory systems in six of seven benchmark settings in an October 2026 paper, and that retrieving the raw history alongside memory cut the losses memory adds. Letta reported in August 2025 that an agent on GPT-4o mini scored 74.0% on LoCoMo by searching conversation history stored in plain files (its own measurement; the post does not state the question count or name the judge). Sarah Wooders of Letta said on X on 2 December 2026 that "recall has been largely solved for a while". On recall, a capable model with a good search tool over the raw record is the bar every memory system now has to clear.

When raw-log search is enough

Raw-log search on its own is a sound choice when most of these are true:

ConditionWhy it favours the log alone
Few users, or one long thread per userA per-user SQLite file with FTS5 stays small and fast to search
The agent runs on a frontier modelThe essay's gains come from the model writing better queries; weaker models benefited from the wiki
The user can wait several secondsEach search round is another model call
Questions are hard to predict in advancePrecomputed memory helps most when the question is predictable, which the essay cites from Letta's sleep-time compute paper
The facts rarely changeFew contradictions to resolve
No one will ask you to delete their data from derived copiesThere are no derived copies

Deep-work agents such as coding agents fit this well. Elvis (@omarsar0) said on X on 3 December 2026 that he lets his agents search the SQL-backed message logs of related agent sessions for agent-to-agent communication and finds it "extremely useful", while compressed layers worked better for research, wikis, graphs and structured data.

Where a log alone falls short in production

Every answer pays for the search, every time

With no work done at write time, all of the work happens when someone asks. Dividing the essay's own DolphinBench run totals by its 600 tasks gives about $0.004 per task on GPT-6 Luna and about $0.061 per task on GPT-6.1 Sol, against about $0.039 and $0.515 for putting the full history in context. That is a clear win over stuffing the window. It is also a cost that recurs on every question for the life of the agent, and it grows with the model you need to write good queries; Boschi said on X on 3 December 2026 that with raw logs "you pay nothing at write time but pay on every query".

Latency is the larger gap. Evis Drenova said on X on 3 December 2026 that every trip back to the model costs "1-2s latency hit and a $ cost", and a closed-loop search can take several trips. For a coding agent that is fine. For a support agent or a voice agent, where a pause is audible, it is not, and the essay concedes the point itself: "For user-facing applications where latency matters, we often want less inference compute within turns." Memory systems that do the work ahead of time exist largely to keep that within-turn compute small.

Which of two facts is current

Suppose the log holds a March turn in which a user says they live in Berlin and a June turn in which they say they finally moved into a flat in Lisbon. Searching it returns both, and the model has to notice the conflict, decide which is newer, and decide whether the newer one actually replaces the older, on every query that touches the user's location. A strong model will usually get it right. Usually is a weak guarantee for a medication dose or a billing address.

The essay's own design acknowledges this. Its proposed cache layer stores a value such as the user's location with references to the events it came from, and "when a new event contradicts something stored in cache (e.g., user moves to new location), it could be invalidated and linked to the new event". That is supersession, done once at write time and recorded with its evidence, instead of rediscovered at read time. Drenova made the same point from practice on 3 December 2026: the distilled layers "have to constantly be pruned, reconciled, updated, superseeded" because context changes over time. The essay leaves its implementation for a future post, and the implementation is most of the work.

Deletion has to reach every derived view

"Immutable" and "erase this person" pull against each other. Under GDPR, a user can ask you to erase their personal data, and agent memory is personal data. With a log alone, erasure means removing or rewriting that person's events, which an append-only design has to plan for (one log per user, or per-user encryption keys you can destroy). Once you add the cache and index layers the essay proposes, erasure also has to reach every cached value, summary, embedding and index entry derived from those events, and any backup. Provenance pointers from each derived item back to its source events are what make that possible: delete the events, follow the pointers, delete or rebuild everything that cited them. We covered the full set of obligations in GDPR-compliant agent memory.

Many users, messy text, one index

The essay's benchmarks are each one user's history. Drenova said on X on 3 December 2026 that at "100s of thousands to millions of sessions" lexical indexes "start to struggle with matching and ranking accurately", that searching across many threads is a different problem from searching one long thread, and that typos and messy phrasing hurt FTS5 and BM25 more than semantic search. Drenova also warned that indexing a whole JSONB transcript column is a mistake, and that keys such as prompt, response and tool calls should be weighted separately. Add multiple tenants and a second requirement appears that a benchmark never tests: a search must never return another customer's events, which means scoping has to be enforced below the agent, not left to the SQL it writes.

Recall is not the only job

Boschi's argument on X on 3 December 2026 was that memory can either answer ("what did Alice do on September 18th?") or advise, steering an agent toward better results on work nobody asked a memory question about, and that LongMemEval, BEAM, DolphinBench and LoCoMo all test answering. Wooders made the same distinction: "the current frontier for memory is really about learning from experience (what dreaming is for), not just recalling it." Continual Learning Bench is the essay's one transfer test, and its dreaming result is real evidence that strong models can reconstruct what they need from the log. It is 40 episodes on one task family, and no memory system was run on it for comparison.

Log or memory is the wrong choice to make

The useful question is which work belongs at write time and which at read time. The essay answers it with a memory hierarchy: L0 a hot cache of materialised values (zero hops), L1 an index of high-scent pointers into the log (one hop), and L2 the event log itself, lossless and unlimited. We would build the same shape and add four rules to it.

  1. The log is the source of truth and is never edited to save space. Derived layers can always be rebuilt from it, which is what makes them safe to get wrong.
  2. Every derived item carries provenance. Which events it came from, what it replaced, and when. That is how supersession is audited and how deletion reaches derived copies.
  3. Supersession happens at write time, with history. When a new event contradicts a cached value, the old value is marked replaced and kept, not overwritten, and the read path sees the current one without having to argue about it.
  4. Background consolidation is tested, not assumed. The essay shows a dreaming wiki can add nothing for a strong model. Run consolidation on a copy, check it against known answers, and keep it only where it moves your own metrics; agent memory consolidation shows how.

Then let the agent fall through to the raw log whenever the upper layers do not answer the question. That is closed-loop search where it earns its cost, and precomputed answers where latency, consistency or erasure demand them.

Maximem Synap's upper layers follow the same rules. Synap keeps provenance on every memory: where it came from, what it replaced, why it changed and what it used to say, so that "a change is recorded, not overwritten". Consolidation runs in the background at three cadences so the heavy work happens when traffic does not need the capacity, and conscious forgetting means "your agent stops repeating what stopped being true, without losing what was". Retrieval has a Fast mode for agents talking to someone right now and an Accurate mode for questions that need breaking apart. Whatever memory layer you use, keep your own raw log beside it, because a derived layer you cannot rebuild is one you cannot correct.

How to decide on your own data

Every reply quoted here ends in the same place, and Elvis (@omarsar0) put it plainly on X on 3 December 2026: "to test the real feasibility of a memory system, you need to run your own evals with your own data." A practical version:

  1. Log first. Store every turn and tool call verbatim, per user, with timestamps, before deciding anything else. You cannot evaluate a derived layer without the source.
  2. Build the raw-log baseline. Give your agent read-only search and SQL over that log, the way the essay did, and measure accuracy, cost per answer and time per answer (p50 and p95) on questions taken from real traffic.
  3. Write the questions benchmarks skip. Include questions whose answer changed over time, questions that need a fact the user never restated, and a deletion test that checks the erased person's data is gone from every layer.
  4. Add one derived layer at a time. A cache for the handful of facts asked about constantly, then an index, then consolidation, and keep each one only if it moves accuracy, latency or cost on your set.
  5. Rerun when the model changes. The essay's central finding is that the right amount of engineering shrinks as models improve, so the answer you get today has a shelf life.

Frequently asked questions

What is the bitter lesson for agent memory?

It is the title of an essay by Arjun Kumar published by Hatchery on 2 December 2026, arguing that general search over an agent's own raw event log beats hand-built memory systems, in the spirit of Richard Sutton's bitter lesson. In its own tests, an agent running SQL and FTS5 search over a verbatim SQLite log matched or beat specialised memory systems on DolphinBench, LongMemEval V1 and V2, BEAM and Continual Learning Bench, and its scores rose with model capability.

Can an AI agent use its raw event log as memory?

Yes, and for recall it works well with a capable model: the agent searches and queries the log until it finds what it needs. It works best for a small number of users, latency-tolerant agents and facts that rarely change. It does not, on its own, decide which of two conflicting facts is current, keep answers fast, or erase one person's data from copies derived from the log.

Does dreaming or sleep-time consolidation still help agent memory?

On the essay's Continual Learning Bench test, a dreaming wiki added 0.118 to 0.227 mean reward for GPT-6 Luna, Haiku 5.5 and Sonnet 5.5, and nothing measurable for GPT-6.1 Terra and Opus 5.5. Consolidation that only rewrites notes for the model to read matters less as models get stronger. Consolidation that resolves which facts are current and expires stale ones does a different job, and should be tested on your own data.

Is searching a raw event log cheaper than a memory system?

It is cheaper to write and often cheaper than putting the whole history in context: about $0.004 to $0.061 per DolphinBench task in the essay's runs, depending on the model. Every query pays for the search again, and each extra model call adds latency, so the comparison depends on how many queries you serve and how fast each must be.

How do you delete a user's data from an immutable event log?

Plan for it at design time: keep one log per user, or encrypt each user's events with a key you can destroy. Then make every derived item (cached facts, summaries, embeddings, index entries) point back to its source events so that deleting the events lets you find and remove everything derived from them, backups included.

From the team at Maximem

Stop rebuilding agent memory from scratch

Maximem Synap is the context management layer we built after hitting every problem in this post ourselves. Persistent recall across sessions, entity resolution and conscious forgetting, in Python, TypeScript and REST.

Looking for more to read? See our directory of the best engineering blogs to follow.