Search the evidence, compile the decisions

The Serena TeamEngineering14 min read

By The Serena Team

A release changes owners in a Tuesday afternoon side thread. The issue tracker still lists Monday's owner. By Wednesday morning, a teammate who missed the thread pings the wrong person. An agent does the same thing faster: it reads the stale tracker entry, reassigns follow-up work to the wrong lead, and writes a crisp status summary that turns the old owner into one more confident copy of the truth.

Every organization already runs a memory system, spread across chat threads, documents, tickets, and the heads of the people who were in the room. Adding agents does not invent a new memory problem. It accelerates the split the team already has.

That leaves a practical question any team can use to judge a memory system: after someone corrects a decision, what happens the next time an agent finds the old evidence?

Compile for authority, search for coverage

The old tracker entry is not junk. It is the exact right evidence if someone asks who owned the release on Monday, and the wrong authority if an agent is deciding who should approve a deploy today. Search can surface that sentence in both cases. A useful memory system has to separate historical evidence from current authority.

This is where two common instincts in agent memory collide. One instinct says to pre-extract facts from every message and compile them into summaries or a knowledge graph. The other says to skip compilation and let a strong model search the raw history at query time.

Our work pushed us to a cleaner split: compilation is for authority, not recall.

Keep one governed current record for the things that carry authority: who owns the release, which date stands, which decision replaced which, and what has been ruled out. Keep the raw threads, notes, and event logs searchable underneath it for coverage: the relational hops, context, and edge details that summaries inevitably drop. What you cut is the lossy middle: background extraction pipelines and static graphs that silently drop nearly half the facts, tax every message written, and freeze side-thread chatter into unowned summaries.

Our earlier post, why agent memory returns stale facts, covered the write side of the governed record: how write-time supersession keeps an outdated decision out of active retrieval while preserving its audit history. Below is what happened when we tested the read side.

Conceptual diagram of shared team and agent memory. Chats, documents, and trackers pass through a permission filter before retrieval into a governed current record for authority and searchable raw evidence for coverage. People and agents read both, and people make one durable correction with audit history kept. Four failure points are marked: stale copies drift, revoked sources launder, dropped hops hide owners, and leaks past boundary.
People and agents share one governed record for authority and permission-filtered raw evidence for coverage. One human correction updates every reader.

Testing the lossy middle

To test how retrieval designs hold up when extraction is incomplete, we pre-registered a controlled multi-tenant benchmark (hashing the decision rule before the first paid API call) on a synthetic workspace mirroring Serena's data model: 252 records totaling about 5.9K tokens (224 authorized to the asking user, 28 forbidden across restricted workspaces and private notes) and 42 held-out questions across six classes, graded deterministically with no LLM judge. We ran four primary designs across two model tiers (336 live runs for $1.59 of spend), plus a two-cell follow-up ablation (84 runs for $0.73) that restricted the exact same agent loop strictly to the compiled briefs store.

To test the effect of extraction loss without hand-picking failures, we simulated extraction with a faithful random drop calibrated to an earlier measured extractor: it kept 114 of 208 gold facts correctly (54.8%) and invented none. This is a simulation of incomplete extraction, not a live extractor's full error profile (which also introduces unfaithful facts). The extracted entity briefs and a personalized PageRank (PPR) graph (seeded with four hybrid hits) were built only from the kept facts. Every design applied the exact same permission filter before anything was indexed or searched.

Grouped bar chart of strict deterministic accuracy across five retrieval designs on two model tiers (42 questions per bar, synthetic workspace, simulated faithful extraction keeping 114 of 208 gold facts, 54.8 percent). Agentic raw-evidence search scored 92.9 and 85.7 percent, hybrid raw chunks plus briefs 85.7 and 83.3, single-shot PPR graph 71.4 and 71.4, single-shot lexical baseline 69.0 and 69.0, and agentic briefs-only search 57.1 dereferenced (40.5 strict) and 52.4 percent against a 64.3 percent briefs-only ceiling.
Synthetic multi-tenant workspace, 42 questions per bar; simulated extraction kept 114 of 208 gold facts correctly (54.8%). *Sonnet briefs-only scored 40.5% strict, 57.1% with brief-ID dereferencing.
Retrieval designClaude Sonnet 5.5 accuracySonnet p95 latency (preflight / e2e)gpt-6.2-sol low accuracyGPT p95 latency (preflight / e2e)
Agentic raw-evidence search (up to 3 tool calls)92.9% (39/42)2.7 ms / 6.4 s85.7% (36/42)2.7 ms / 5.9 s
Single-shot hybrid raw chunks + briefs85.7% (36/42)339 ms / 3.5 s83.3% (35/42)298 ms / 2.7 s
Single-shot hybrid search with PPR graph71.4% (30/42)292 ms / 2.4 s71.4% (30/42)329 ms / 2.7 s
Single-shot lexical baseline over raw records69.0% (29/42)2.7 ms / 3.3 s69.0% (29/42)2.8 ms / 2.4 s
Agentic briefs-only search (ablation, up to 3 calls)40.5% strict (17/42) / 57.1% deref (24/42)0.8 ms / 6.6 s52.4% (22/42)1.1 ms / 6.5 s
Strict deterministic accuracy and end-to-end latency on 42 held-out questions per cell (synthetic multi-tenant workspace; simulated faithful extraction kept 114 of 208 gold facts correctly, 54.8%). In the original four arms, three of six classes (temporal, revocations, and permission-negative) scored 7 of 7 everywhere; restricting the agent strictly to briefs lowers the information-theoretic ceiling of the store to 27 of 42 (64.3%).

Look carefully at what those five rows separate.

First, agency cannot recover facts that extraction already dropped. In our original four-arm matrix, the single-shot briefs arm scored 85.7% (36/42) on Sonnet because it was not briefs-only: it injected six hybrid-retrieved raw chunks alongside three compiled briefs. When we removed those raw chunks and gave the exact same agent (identical prompt, lexical tools, permission filter, and three-call cap) strictly the compiled briefs store, accuracy collapsed: 40.5% (17/42) under strict scoring on Sonnet, or 57.1% (24/42) when we forgave 12 cases where Sonnet cited a wrapper brief ID instead of the inline source ID, and 52.4% (22/42) on gpt-6.2-sol low (where strict and dereferenced scores were identical). The briefs-only store simply did not contain enough evidence to answer more than 27 of 42 questions (a 64.3% information-theoretic ceiling, and just 1 of 7 relational open-loop questions). The agent worked nearly twice as hard on briefs as on raw evidence (1.90 vs 0.98 mean tool calls on Sonnet, spending $0.0132 vs $0.0107 per query) and recovered 88.9% (24/27 dereferenced) and 81.5% (22/27) of every question theoretically answerable from the briefs, yet still trailed raw-evidence search by 35.7 points on Sonnet (citation-forgiving, p = 0.00027; 52.4 points strict) and by 33.3 points on gpt-6.2-sol low (p = 0.00052).

Second, once raw records are in the store, both lossless representation and iterative search do real work. Against the PPR graph (71.4%, 30/42), agentic raw-evidence search (92.9%, 39/42) won by 21.4 points (paired 95% confidence interval +7.1 to +35.7 points; 10 wins to 1 loss). Against single-shot hybrid raw chunks plus briefs (85.7%, 36/42), the 7.1-point edge is a point-estimate win only: its confidence interval (-7.1 to +21.4 points) crosses zero, so it did not meet the stricter lower-bound version of our pre-registered gate. On the cheaper tier, the gap over hybrid raw chunks plus briefs was one question (36/42 vs 35/42, 4 wins to 3 losses), in part because gpt-6.2-sol low invoked search tools on only 12 of 42 cases. And iterative search pays an end-to-end latency trade-off: 6.4 s vs 3.5 s p95 on Sonnet, even though preflight retrieval itself took 2.7 ms.

Third, the failure mechanism is what matters for real teams. On relational open-loop questions, where a blocker lives in one ticket and its owner sits in an assignment event or chat message, the single-shot hybrid-brief and graph arms repeatedly named the blocker and then stated candidly that "the evidence does not identify an owner." Restricted to briefs alone, both agentic tiers scored 0 of 7 on relational open loops. In an organization, a dropped edge is an unowned blocker. Searching raw evidence let the agent run a targeted follow-up on the blocker identifier and recover the owner on 7 of 7 frontier questions and 6 of 7 cheap questions, against 3 of 7 for hybrid raw chunks plus briefs and 2 of 7 for the graph.

Fourth, the economics cut cleanly along write volume versus read volume. Per query, frontier agentic search cost roughly twice as much as briefs ($0.0107 vs $0.0052) because it averaged 1.9 turns. Because it needs zero background extraction, in our modelled cost assumptions it stayed cheaper per correct answer up to about 2.3 queries per stored chunk per month on the frontier tier (roughly 520 queries across 228 chunks) and about 13 queries per chunk on the cheap tier. Workplace communication is write-heavy and high-churn: eager extraction taxes every message written and revised, while lazy search taxes only the questions people and agents actually ask. For agent-heavy workspaces that query the same facts constantly, that break-even matters and has to be measured on live traffic.

A public sanity check on LongMemEval

A synthetic 5.9K-token workspace is useful for controlled isolation tests, not for claiming general long-history performance. As a public sanity check, we ran the same unmodified L0+L2 raw-evidence search over all 500 questions in LongMemEval V1-S (long multi-session chat histories, roughly 115K tokens per item, using SQLite FTS5 BM25, 4-line chunks, a 3-tool cap, and zero benchmark-specific prompt tuning).

Answers were graded with a strict binary LLM judge (gpt-6.2-sol at low reasoning effort) following LongMemEval's binary evaluation protocol. Using gpt-6.2-sol low as the judge means the scores are not directly comparable to papers graded with a different judge, and it introduces self-judging sensitivity on the gpt-6.2-sol run. We did not run a full-context baseline. On the Sonnet run, literal deterministic matching scored 58.6% (293 of 500), because preference rubrics and paraphrased answers do not match substrings cleanly.

With Claude Sonnet 5.5, the unmodified design answered 385 of 500 questions (77.0%, 95% Wilson interval 73.1% to 80.5%) for $9.34 total, with 9.4 s p95 end-to-end latency (0.69 ms p95 preflight). With gpt-6.2-sol low, it answered 341 of 500 (68.2%, interval 64.0% to 72.1%) for $2.58 total. On the 30 unanswerable abstention items, Sonnet abstained correctly on 28 of 30 (93.3%).

Question categoryCountJudge accuracyShare of all 115 errors
Single-session assistant5698.2% (55/56)0.9% (1)
Knowledge update7893.6% (73/78)4.3% (5)
Single-session user7090.0% (63/70)6.1% (7)
Multi-session aggregation13375.9% (101/133)27.8% (32)
Temporal reasoning13357.9% (77/133)48.7% (56)
Single-session preference3053.3% (16/30)12.2% (14)
Total50077.0% (385/500)100% (115)
Full 500-item LongMemEval V1-S breakdown for Claude Sonnet 5.5 (unmodified L0+L2 raw-evidence search, binary LLM judge). All six benchmark categories are shown.

Looking at every category surfaces two distinct weak spots rather than one. By accuracy rate, single-session-preference was the lowest slice at 53.3% (16 of 30), where nuanced user preferences are easy to miss in short excerpts. By error volume, temporal-reasoning caused nearly half of all misses: 56 of 115 errors (48.7%) at 57.9% accuracy.

The failure breakdown also disproved an easy assumption. Even though a gold session surfaced in 475 of 500 Sonnet items, windowing and tool-budget limits still drove retrieval failures: 45 of the 115 errors (39.1%) were false abstentions where a 4-line BM25 snippet matched the right session without containing the exact answer line, and the model either stopped early or exhausted its 3-tool cap before expanding the window. Another 45 errors (39.1%) were wrong or incomplete answers after retrieving a gold session (multi-session counts, date arithmetic, or omitted preference detail), 23 errors (20.0%) were true retrieval misses concentrated in relative-time questions even though a date-window search tool was available, and 2 errors (1.7%) were false answers on abstention items.

Permissions, revocation, and derived memory

Single-user chat benchmarks like LongMemEval cannot test the hardest requirement of organizational memory: multi-tenant access boundaries.

In our controlled 2x2 runs (336 jobs) and in a separate offline local SQLite scaling check we built to stress-test lexical indexing from 100K to 2M tokens (11,280 records in a 24.8 MB local database: 6.17 ms p95 preflight, 20 of 20 entity-bearing lexical needles ranked in the top five), every query ran through a permission pre-filter before any record was indexed or searched. Across all 336 controlled runs and 320 needle and adversarial decoy queries in the local scaling check (where forbidden decoys were engineered to outrank real records on keyword density), observed leaks were zero. That local test verifies the pre-filter invariant and local SQLite indexing speed only; it does not measure production Postgres network round trips or multi-turn LLM reasoning at 2M tokens.

Pre-filtering raw records holds by construction for raw search. Derived memory creates a much subtler failure mode: when a background pipeline compiles a summary from mixed-audience sources and someone's access to one source is later revoked, the summary can quietly retain facts the reader is no longer allowed to see. That is another reason to keep compiled state tight, explicit, and audience-scoped, and leave broad recall on permission-filtered raw evidence.

What this means for how a team runs

Back to Tuesday's release handoff. Suppose the release lead updates ownership in one governed decision record, while the workspace administrator controls who can read the release channel and production runbook. When an agent is asked on Wednesday who should approve the deploy, the governed record supplies current authority (the new release lead, with the prior owner preserved in audit history), raw-evidence search fills in surrounding context without dropping blocker hops, and if two accessible sources still disagree, the agent surfaces the conflict to the release lead rather than guessing.

Five design rules follow for any team building memory that people and agents share:

  • Separate current authority from historical evidence. Use a governed current record for decisions, owners, dates, and policies so one human correction sticks for every person and agent downstream. Keep raw history searchable underneath it so nothing extraction missed is lost permanently.
  • Filter permissions before retrieval, and watch derived state. Enforce workspace, private-owner, and revocation boundaries before indexing or searching raw records, and never let restricted sources launder into persistent summaries that outlive their permissions. We describe how we draw these boundaries on our security page.
  • Name human owners for authority, access, and irreversible actions. Agents can gather evidence, detect conflicts, and surface unowned blockers, while named people own confirming decision handoffs, managing workspace access, and approving authentication, billing, and production changes.
  • Test simple raw-evidence search before building extraction pipelines. Eager extraction taxes every write and caps recall on what survives extraction. Measure whether bounded iterative search (with semantic fallback for paraphrases) already beats a complex graph on your actual failure modes.
  • Measure what breaks, not one headline score. Report knowledge updates, abstention, preferences, temporal reasoning, end-to-end latency, permission invariants, and cost per verified answer side by side.

Notice what none of our four evaluations tested yet: following a single human correction all the way through a live team handoff and measuring whether the next autonomous action respects it without human rescue. Closing that loop on real team workflows is the next benchmark that actually matters.

Methods and scope

All measurements in this post come from internal Serena AI R&D architecture evaluations guiding an L2 raw-evidence memory layer that is still in active implementation behind default-off flags, not from a generally available customer feature. The controlled 2x2 used a synthetic 5.9K-token workspace, simulated faithful random-drop extraction, single unrepeated runs (so narrow margins can shift by a case or two), and modelled ingestion costs; its pre-registration hash (4759c9f0) was recorded before the first paid API call. LongMemEval used a binary gpt-6.2-sol low judge without a full-context baseline. The 2M-token scaling test measured local SQLite FTS5 indexing and pre-filter invariants offline, not production Postgres latency.

Key takeaways

  • Compilation is for authority (decisions, owners, durable human corrections), while raw-evidence search is for coverage. Cutting the lossy extraction middle avoids dropped relational hops and write-heavy extraction taxes.
  • In a pre-registered synthetic multi-tenant benchmark (simulated extraction keeping 114 of 208 gold facts correctly, 54.8%), iterative raw-evidence search reached 92.9% (39/42) on Claude Sonnet 5.5 against 85.7% (36/42) for single-shot hybrid raw chunks plus briefs, 71.4% (30/42) for a PPR graph, and 57.1% dereferenced (24/42; 40.5% strict) for the exact same agent restricted to compiled briefs alone (64.3% oracle ceiling, +35.7 points pure representation lift). It lost to dense-embedded raw chunks plus briefs on pure paraphrase (4/7 vs 6/7) and traded extra turn latency (6.4 s vs 3.5 s p95).
  • On all 500 LongMemEval V1-S questions with no tuning, the same unmodified design scored 77.0% (385/500) on Sonnet 5.5 at $9.34 total, with single-session-preference lowest by rate (53.3%) and temporal-reasoning largest by error volume (48.7% of all 115 errors), and 39.1% of failures caused by 4-line chunk windowing rather than missing sessions.
  • Pre-filtering raw records before indexing held at zero observed leaks across 336 controlled runs and 320 adversarial decoy queries, while highlighting why derived summaries require strict audience and revocation controls.
  • None of these benchmarks yet measures a human correction propagating through a live team handoff; that end-to-end organizational loop is the real bar.

Frequently asked questions

What is the difference between organizational memory and agent memory?

Very little in structure. Both need one authoritative record of what is currently true, an auditable history of how it changed, searchable raw evidence underneath, and strict permission boundaries. Agents read and act faster than people, so a split record or dropped owner hop causes damage sooner.

Does this prove knowledge graphs never work for agent memory?

No. Our controlled benchmark simulated 54.8% faithful random-drop extraction (114 of 208 gold facts kept correctly) on a synthetic 5.9K-token workspace. What the full five-design test shows is that once lossy extraction drops facts, even an identical multi-step agent loop restricted to compiled briefs hits a hard ceiling (57.1% dereferenced / 40.5% strict on Sonnet, vs 92.9% on lossless raw evidence). Teams should test simple raw-evidence search before funding write-heavy extraction pipelines.

Why not just rely on single-shot summaries or dense retrieval?

Single-shot dense briefs beat our keyword-only raw search on pure paraphrase (6/7 vs 4/7 on Sonnet) and ran faster end-to-end (3.5 s vs 6.4 s p95). They lost on relational open-loop questions (3/7 vs 7/7) whenever extraction dropped the owner hop, and derived summaries also carry permission-revocation risk if restricted sources were folded into them earlier.

How should a team evaluate a memory architecture?

Break results down across knowledge updates, abstention, preference recall, multi-session aggregation, and temporal reasoning. Report end-to-end latency and cost per verified answer next to accuracy, verify permission pre-filters with adversarial decoys, and test what happens after a human corrects a decision or revokes access.

Sources

Put this into practice

Serena keeps tasks, notes, projects, and your calendar in one workspace, so the plan you make in the morning is still readable when the day changes.
Start free