Doenexecutor memory research

Product memoryAn experimentA living record

Keeping a product’s memory while agents build it

When a product team (the product owners, designers and engineers who decide what gets built) works with AI agents, the code gets written quickly. What tends to get lost are the decisions behind it: why something was left out, which trade-off the team prefers, where they always draw the line. Doen is an experiment in keeping those decisions and handing them to the next agent, so the team doesn’t have to explain itself twice. Here is what we tried, what worked, and what didn’t.

What could the next piece of work learn from every ticket a team has already finished?

Every finished ticket carries more than code. Along the way the team decided what mattered, what could wait and what they would never accept. Agents ask the team about some of these things while they work, and Doen writes the answers down.

The aim is easy to say and hard to do: the next agent should already know how this team thinks, so it asks fewer questions and gets more right the first time. We don’t mean facts about the code, which the code already holds, but the team’s habits of mind. We call those heuristics.

We borrowed the building blocks from Anthropic’s “The components of agent memory”: searching old conversations, writing notes, and dreaming, a quiet pass that tidies the notes up between sessions. We also borrowed its central idea: a memory is a bet on what will matter later.

Figure 1How it works. The agent asks, the team answers, and the answer is kept. Every so often a dream turns those answers into a short list of rules about how the team decides. Half of the new tickets get that list and half don’t, so we can see whether it makes a difference.
WorksLooking things upShowing the agent similar past decisions beats any summary it wrote itself.
MixedRules with their trapsThey read like insight, but predict no better, and each stays tied to the feature it came from.
CarefulOverconfident memoryOne strong rule can talk the agent out of the obvious answer.
Not yetLess reworkWith a simulated owner, memory didn’t measurably reduce rework. It holds about half of what the owner cares about.
Figure 2The short version.

Looking up old decisions beats summarising them

Our first test was a replay. We took the team’s past decisions, in the order they were made, and asked an agent to guess each one before showing it the real answer. In between, it could keep notes, in a few different ways.

Looking things up
+9.4 [+2.5, +17.0]
Rules with traps
+6.9 [0.0, +14.5]
Index, notes, lookup
+6.9 [−1.3, +15.7]
Wiki and lookup
+6.3 [−0.6, +13.8]
Free notes
+4.4 [−3.1, +12.6]
Free notes, dreamt
+3.8 [−3.8, +11.9]
Another project’s notes
+1.9 [−3.1, +6.9]
−20no memory+25 points
Figure 3How much each kind of memory improved the agent’s guesses compared with none, over 53 past decisions. The dot is the average gain; the line shows how sure we can be. Only a line that stays clear of the dashed zero is a real improvement.

Only looking things up clearly helped, and the Anthropic article saw the same. When the agent wrote its own notes, it mostly recorded what had been decided rather than why, and a list of old answers doesn’t help much with a new question.

Ask for rules, and you get rules

So we asked the agent to write its notes differently: a rule, the reason it believes the rule, and the trap to watch out for. That is the shape the article found in its best model, and the notes changed straight away.

Free noteRemembers what was decided“Content is stored as one free-form document.”Useful once. It says nothing about the next question.
Rule with its trapsRemembers how the team decidesRule. Prioritise work by how well it closes an end-to-end gap for users; small or bounded scope alone does not predict whether it ships.Known because. The work that shipped closed a gap; a neat, bounded fix that closed none was dropped.Trap. Do not read a small scope as a sign that work will be built.
Figure 4The same lesson, written two ways. The rule on the right could guide a decision the team has never faced. So far, though, it doesn’t predict the team any better than notes borrowed from another project.

Memory helped guess what gets built, but common sense did better

A few dozen decisions is not much to learn from, so we asked a question with more history behind it: will this ticket be built, or dropped?

Built or dropped? · 107 tickets
Index, notes, lookup
63%
Wiki and lookup
62%
Looking things up
56%
Rules with traps
50%
Free notes, dreamt
50%
No memory
43%
Free notes
35%
Dashed line: always answering “built” (79%)
Which option did the team choose? · 23 decisions
Looking things up
68%
Free notes
62%
Free notes, dreamt
62%
Rules with traps
61%
Wiki and lookup
60%
Index, notes, lookup
57%
No memory
54%
Dashed line: a random guess (37%)
Figure 5How often each kind of memory guessed right, averaged over 3 runs. Grey is no memory, violet is memory tidied up by dreaming, amber is notes written on the fly, blue is looking things up. The dashed line is what you get by always giving the same answer.

Memory that was tidied up between sessions, combined with looking things up, guessed about 20 points better than no memory, and did so twice. But simply answering “built” every time did better still, because four out of five tickets do get built. The notes remembered the dramatic reasons a few tickets were dropped, and forgot how rare that is.

More to read made it worse

Teams don’t make that many decisions, so we tried giving the dream more to work with: what the team removed from plans, how they described the work, and which of the agent’s own choices they let stand.

More to read
−3.4 [−7.9, +1.7]
−20no memory+25 points
Figure 6Memory with the extra material, compared with the same memory without it. The difference is small and uncertain, but it points the wrong way. What the team actually decided seems to matter more than everything around it, so the team’s own choices now count double.

A confident memory can talk the agent out of the right answer

Once memory was running for real, it guessed the team’s decisions less well than no memory at all. When we looked closer, one confident rule explained most of it.

1The memory guessesA strong rule says routine calls can be automated: “let the agent decide”.
2The team answers“No, we want to decide this one ourselves.”
3The memory is rebuilt right afterIt copies the answer in, as a warning.
4The new memory looks smarterBut it was tested on the very question it had just seen.
Live decisions guessed correctly
No memory
86%
With memory
62%
Figure 7The memory didn’t learn; it peeked. In the article, dreaming fixed a wrong note by checking it against what really happened. Here the “fix” was simply the answer. Tested fairly, every version of the memory did no better than none. We also found the model had been answering without thinking things through, because of the way we asked for its output. With that fixed, memory stopped hurting, but it didn’t start helping either.

We were measuring the wrong thing

Guessing a single decision is a shaky test. Decisions are noisy, and an agent that reads the question carefully already gets most of them right. What a team really wants from memory is less back-and-forth: a plan that already covers what they care about.

BeforeDid the agent guess the decision?One decision at a time.Noisy, and a careful reader gets most of them right anyway.
NowDid the plan come out complete?We count the rework: decisions the team still had to make, and parts of the plan they had to add or rewrite.Less is better. Tickets with memory are compared with tickets without.
Figure 8The new yardstick. In live work we count the rework. For past work, an agent that can read the code writes each ticket’s plan again, with and without memory, and we check which of the team’s later decisions it saw coming.

Memory doesn’t yet help the agent see decisions coming

We rebuilt the memory as it would have been at the start of each past ticket, and let the agent plan every ticket twice.

No memoryWith memory0% → 100% of decisions raised
11 decisions
61% → 73%
5 decisions
53% → 80%
5 decisions
33% → 47%
3 decisions
89% → 100%
2 decisions
33% → 33%
2 decisions
50% → 50%
2 decisions
83% → 83%
2 decisions
67% → 67%
1 decision
0% → 67%
1 decision
0% → 0%
1 decision
0% → 0%
1 decision
100% → 100%
1 decision
0% → 0%
1 decision
0% → 0%
1 decision
100% → 100%
1 decision
33% → 33%
1 decision
100% → 100%
1 decision
67% → 0%
Figure 9For each of 18 finished tickets, how many of the team’s later decisions the agent’s plan raised: without memory (open dot) and with it (filled dot). Averaged over 3 plans each, and sorted by how many decisions the team had to make.
JudgeDifference95% rangeTicketsVerdict
Judge A+3.5 points−7.5 to +14.15 better, 1 worsenot distinguishable
Judge B−0.5 points−12.0 to +9.76 better, 4 worsenot distinguishable

Overall, there is no difference. Most tickets involved a single decision, which a plan either raises or doesn’t. On the few tickets where the team had to make many decisions, memory did help. That is exactly where we would expect it to matter, and exactly where we have the least data.

A blind judge sees no difference, and mostly picks the longer draft

We then asked a judge directly. For every finished ticket with a description, the first draft was written twice, with and without the memory it would have had, and two judges compared the pair without knowing which was which.

Judge A
9613
+0.11 [−0.18, +0.39]
Judge B
11710
+0.14 [−0.14, +0.43]
Memory’s draftThe otherNeither
Figure 10For each of 28 finished tickets, which first draft a blind judge said leaves less for the team to settle: the one written with memory (violet), the one without (grey), or neither (light). A verdict that changed when the drafts swapped places counts as neither. The numbers on the right are the average score per ticket (+1, −1 or 0) and its 95% range.

Neither judge could tell the two apart. When a judge did choose, it nearly always chose the longer draft, and every verdict that changed with the order kept the same position. A judge asked “which is better” turns out to measure length and position more than memory.

With an owner whose preferences we know, memory didn’t measurably reduce rework

Real history has no answer key: we never know what the team would have decided otherwise. So we wrote one. A simulated owner decides by ten written preferences that no agent sees, such as “no settings, pick a default” and “no new outside services”. It answered the agents’ questions and reviewed their plans for 26 tickets on a small app for splitting shared costs, once with memory and once without, and the whole run was done twice.

Memory didn’t reduce rework. Tickets with memory had 0.36 items more on average, with a 95% range from 1.2 more to 0.5 fewer. The test would have caught a saving of one item per ticket, about a quarter of the rework, two times in three, so a modest saving can’t be ruled out.

Share of 30 memories that state each preference
Pick a default, add no setting
87%
Whole cents
87%
History is kept
57%
Ask before involving anyone
100%
A group sees only itself
57%
One flow, finished
90%
Plain words
0%
No new outside services
0%
Little typing
37%
Warn, don’t refuse
0%
Figure 11What memory holds of the owner’s ten preferences. Two of the three it never states rarely decide an answer, so there is little to learn from. “No new outside services” decides as many answers as any, but memory files it under one feature at a time (“an invitation is a link”, “receipts stay in the app”) and never states it on its own.

One problem was a bug. Rebuilding the memory dropped every rule whose evidence cited several decisions in one line, and about one memory in six came out empty. Since the fix none has. The changes after that left memory where it was.

Share of the ten preferences a memory states, before (grey) and after
A stronger model dreams
54%
56%
The dream is told what carries across features
51%
52%
The agent’s notes are written for other features
55%
54%
Figure 12Each change, measured as how many of the ten preferences a memory states. None moved it by more than two points. The same memory, judged five times, varies by about five.

What we take from this

Looking up past decisions helps. The memory we build on top of them hasn’t shown that it does, on real history or with a simulated owner: it holds about half of what a person cares about, and it holds it one feature at a time. Teams make relatively few decisions, so every result needs a second run before we believe it. Two of ours didn’t survive it.

Across featuresCan memory state a preference that comes up in different features?Today it files each one under the feature where it came up, so it can’t help with a feature it hasn’t seen.
More ticketsWould a longer run show a smaller saving?The test sees a saving of about one item per ticket. More tickets help more than repeating the same ones.
A second ownerDoes memory learn the person, or the codebase?An owner with opposite preferences on the same tickets would tell them apart.
Base ratesShould memory keep simple counts next to its rules?So it doesn’t forget that most tickets do get built.
Figure 13What we want to try next.

No agent can know what a team will decide next. What it can do is remember well enough that the team has a little less to explain each time. That is what we keep checking.

How it is measured

Every replay uses the same past decisions in the same order, with the answer options shuffled and the agent’s own suggestion hidden. We compare each kind of memory with no memory, decision by decision, and only call something an improvement when its whole uncertainty range stays above zero. The replays use the decisions of the team building Doen itself, so read their numbers as a first look.

  1. statelessbaseline

    A fresh session per question, no memory. The article's stateless baseline (CL-Bench 1.0).

  2. searchstep 1

    The five most similar earlier decisions, by embedding. Transcript search; the article's search arm (Fig. 10).

  3. memorybaseline

    One capped file, rewritten freely after each answer. Say what memory is for, not how (Fig. 5).

  4. structuredstep 2

    Notes as rules, each with how it is known and its traps. Opus 5 closing the loop on CL-Bench (Fig. 3).

  5. dreamstep 3

    The flat file, checked against the full decision record every five decisions. Dreaming corrects memory against the transcript (Fig. 6).

  6. promotedstep 4

    A 100-word index loaded every session, notes opened on demand, plus search; dreaming maintains both. Promoting notes up the memory hierarchy (Fig. 13).

  7. wikistep 5

    Linked pages built by dreaming, opened by title with one hop of links, plus search. Wikis as memory representations (Figs. 9-10).

  8. transferstep 1

    The other project's memory, frozen. Facts cannot carry over, so any gain is abstract. Separating remembered facts from heuristics.

These are the full instructions each step received. They tell the agent what memory is for, never how to use it.

dependency
You label a benchmark. Below is a product decision and every earlier decision in the same project.
Answer whether the person's choice follows from an earlier decision: an earlier choice settles it,
directly or by plain implication, so someone who only remembered the earlier answers would get it
right without any judgment about how the person decides.

Answer false when the earlier decisions are merely on a related topic, or when the choice reflects
a preference or way of reasoning rather than a fact already settled.
dream-tiered
You are an executor agent's offline maintenance pass ("dreaming"). The agent's memory has two
tiers: a short index loaded into every future session, and notes it can open by key when needed.
Future sessions use it to predict how the person who owns this project decides product questions.

You are given the current index, the current notes, an inbox of notes written in the moment, and
the full record of every decision so far (the ground truth). Check everything against the record,
correct and merge, and rebuild both tiers:
- index: at most {index_words} words. What matters most often, plus a line per note saying when to
  open it.
- notes: at most {max_notes} notes, {note_words} words in total. Short keys.
Keep the index small: move detail down into notes and leave a pointer behind.
dream-wiki
You are an executor agent's offline maintenance pass ("dreaming"). The agent's memory is a wiki: a
set of linked pages, each about one subject. Future sessions see only the page titles and links,
open the pages they think are relevant, and use them to predict how the person who owns this
project decides product questions.

You are given the current pages, an inbox of notes written in the moment, and the full record of
every decision so far (the ground truth). Check pages against the record, correct, merge
duplicates, split pages that cover two subjects, and link related pages. Return the whole wiki: at
most {max_pages} pages, {max_words} words in total. A wiki that only restates the decisions
abstracts nothing; capture what generalises.
dream
You are an executor agent's offline maintenance pass ("dreaming"). The agent keeps a memory file
that future sessions use to predict how the person who owns this project decides product
questions. The file was written in the moment and may be wrong, stale, duplicated or too narrow.

You are given the file and the full record of every decision so far: the question, the options,
what the person chose and their rationale. That record is the ground truth.

Check each note against the record. Correct what is wrong, merge duplicates, drop what nothing
supports, and add patterns that only show up across several decisions. Return the whole new file.
It must not exceed {max_words} words.
map-choice
You label a benchmark. A person answered a product question in their own words instead of picking
an option verbatim. Say which option their answer amounts to. Answer 0 when it matches none of
them, or combines several so that no single option is what they chose.
predict
You are an executor agent working on a software project. A product question has come up that the
spec does not answer, and you must predict which option the person who owns this project will
choose.

Pick exactly one option, copying its text verbatim. Say briefly why.
select
You are an executor agent about to answer a product question. Below is a list of memory entries
you can open. Choose the ones worth reading for this question, at most {max_keys}. Choose none if
none apply.
write-structured
You are an executor agent working on a software project. You keep a memory: a single notes file
that persists between sessions. Each new session starts fresh, with that file as the only thing it
remembers. Future sessions will use it to predict how the person who owns this project decides
product questions.

You have just predicted a decision and been shown what the person actually chose, and why.
Rewrite the memory file. Write it as rules about how this person decides, not as a record of what
was decided. Each rule states:
- the rule, general enough to apply to a question you have not seen yet;
- how you know it is true: which choices support it, and whether any contradict it;
- traps: where the rule misled you, or a tempting rule that turned out wrong.
Merge, sharpen or drop rules as the evidence changes. It must not exceed {max_words} words.
write
You are an executor agent working on a software project. You keep a memory: a single notes file
that persists between sessions. Each new session starts fresh, with that file as the only thing it
remembers. Future sessions will use it to predict how the person who owns this project decides
product questions.

You have just predicted a decision and been shown what the person actually chose, and why.
Rewrite the memory file. What you keep, drop, merge or restructure is your judgment. Keep it short
enough to stay useful: it must not exceed {max_words} words.

Runs

RunWhat was replayedRepeats
Run 9First drafts, judged blind1
Run 8Drafts against the decisions that followed3
Run 7Drafts against the decisions that followed3
Run 6Escalations3
Run 5Escalations3
Run 4Escalations and built-or-dropped3
Run 3Escalations and built-or-dropped3
Run 2Escalations3
Run 1Escalations3

Log

The story behind every result, step by step. Read the full log.

Executor Memory Research · 44 entriesProduct Development, Precedent, and Groundedness · 21 entriesShifting to Oversight · 66 entriesEnterprise Readiness & Governance · 5 entriesThe Governed Agent · 3 entriesCore Principles · 0 entries

Threads

The full working sessions behind this page: every prompt, answer and tool call, with credentials removed.

Data

Prediction replays: share predicted, mean over repeats. Floor is chance for escalations and always answering “built” for initiatives.

RunCallsnFloorNoneSearchMemoryStructuredDreamPromotedWiki
Run 1Escalations5434%62%69%62%64%62%67%65%
Run 2Escalations5434%59%—65%————
Run 3Escalations2337%58%59%62%64%59%61%58%
Run 3Built or dropped10779%41%50%45%48%53%64%65%
Run 4Escalations2337%54%68%62%61%62%57%60%
Run 4Built or dropped10779%43%56%35%50%50%63%62%
Run 5Escalations5335%59%68%63%65%62%65%65%
Run 6Escalations5936%61%————69%—

Draft replays: per judge, the gap in share of decisions raised (memory minus none, points per initiative) with its 95% interval, initiatives better and worse, and the gap in leaning the team’s way.

RunJudgenCoverageGap95% intervalBetter / worseLeaning gap
Run 7Judge A334% → 40%+6.10.0 to +18.21 / 0−8.1
Run 7Judge B3+2.00.0 to +6.11 / 00.0
Run 8Judge A1848% → 52%+3.5−7.5 to +14.15 / 1+1.3
Run 8Judge B18−0.5−12.0 to +9.76 / 4−0.8

Judged first drafts: per judge, the tickets where memory’s first draft left less to settle, the other did, or neither (a verdict that changed with the order of the drafts counts as neither); the mean score per ticket (+1, −1 or 0) with its 95% range; and how many verdicts changed with the order.

RunJudgenMemory / other / neitherScore95% rangeOrder changed
Run 9Judge A289 / 6 / 13+0.11−0.18 to +0.3913
Run 9Judge B2811 / 7 / 10+0.14−0.14 to +0.4310
Every decision is recorded with what was ruled out and why. That record is the evidence.