AI lessons can carry bad luck into the next tool choice
After an unlucky failure of the more reliable tool, an AI-written lesson led the next session to choose the less reliable tool 11.6% of the time, against 0.4% with an unrelated note. Most of the measured effect appeared where the log did not say failures were independent.
In short
- A lesson can carry bad luck forward. After a chance failure of the more reliable tool, later sessions chose the less reliable tool in 11.6% of decisions with the failure lesson, against 0.4% with an unrelated note.
- What the log says matters to the reading. Most of the effect appeared where the log left failures open to explanation. With an explicit statement that failures were independent, the effect was much smaller.
- These are controlled choices. We tested 11 language-model endpoints (model and provider configurations) in 256 synthetic worlds, not agents in production use. After a lucky success of the less reliable tool, the test put a ceiling on the extra shift, which is not evidence of no harm.
An AI assistant that takes actions and uses tools is often called an agent. Some agents save written lessons from earlier attempts, then read those lessons before trying again. But an invoice tool can fail today even when its record makes it the better choice.
The next session had the evidence as well as the lesson
We built 256 synthetic worlds around recurring tasks such as sending invoices or rebuilding a search index. Each offered two interchangeable tools at the same cost, with a log showing that one succeeded more often. The log still pointed to the more reliable tool after another failure. Every number on this page is an aggregate.
We scripted a previous run, holding its tool choice fixed while assigning success or a transient failure. A language model wrote a lesson using adapted instructions from ReasoningBank, a system for saving lessons from past runs. Its released writing instructions differ after success and failure. A fresh session of the same model then read the task, the authoritative log, the previous result and a memory item, and named the tool it would use first. It did not execute the tool.
The failure lesson shifts choices toward the less reliable tool
After the more reliable tool's chance failure, sessions chose the less reliable tool in 11.6% of decisions with the lesson written from that failure. With an unrelated note, the rate was 0.4%; with the lesson written from a success, it was also 0.4% (Figure 1). Within that comparison, sessions saw the same log and reported failure; only the memory item changed.
Figure 1
The failure lesson raises choices of the less reliable tool
- AI-written lesson
- Unrelated note
Show the numbers
| Memory item | Less reliable tool chosen |
|---|---|
| Lesson written from the failure | 11.6% |
| Unrelated note | 0.4% |
| Lesson written from a success | 0.4% |
The lesson worked together with the reported failure. We also paired each lesson with the opposite reported result: when the failure lesson was read after a reported success of the more reliable tool, the less reliable tool was chosen in just 0.2% of decisions.
Most of the effect appears where the log leaves room for doubt
Across all 256 worlds, the extra shift toward the less reliable tool was 11.2 percentage points, and the registered test found that the lesson carried chance into later choices. In half the worlds, the log explicitly said there had been no outages and failures were independent, isolated events. In the other half it gave the tools' track records without that statement. The extra shift was 18.1 percentage points without the statement and 4.2 with it (Figure 2).
Figure 2
The extra shift is much smaller where failures are stated to be independent
- 95% interval
Show the numbers
| What the log says | Worlds | Extra shift, in percentage points | 95% interval, in percentage points |
|---|---|---|---|
| Does not state independence | 128 | +0.181 × 100 = +18.1 | [+0.160, +0.203] × 100 = +16.0 to +20.3 |
| States failures are independent | 128 | +0.042 × 100 = +4.2 | [+0.031, +0.053] × 100 = +3.1 to +5.3 |
| All worlds | 256 | +0.112 × 100 = +11.2 | [+0.097, +0.126] × 100 = +9.7 to +12.6 |
Where failures are explicitly independent, switching is a clear error under the stated model. Without that statement, a recent failure might suggest a current fault, so switching departs from the choice the log's record points to. The lesson adds no observation beyond the evidence already supplied, but the next session was told only that its memory came from earlier runs and could take it to contain additional experience.
A lucky success left about zero extra shift, which does not rule out harm
We also tested the mirror case: the less reliable tool had succeeded by luck. The estimated extra shift was about zero. That is not evidence of no harm: the measure covers how a lesson's effect changes with the result, and leaves out effects a lesson has after both results. The registered result bounded the extra shift below 10 percentage points (Figure 3).
Figure 3
The lucky-success result bounds the extra shift, not all memory harm
Show the numbers
| Quantity | Paper's scale | Percentage points |
|---|---|---|
| Extra shift estimate | +0.002 | +0.002 × 100 = +0.2 |
| 95% interval | −0.001 to +0.005 | [−0.001, +0.005] × 100 = −0.1 to +0.5 |
| Registered upper bound | Below 0.10 | 0.10 × 100 = 10 |
Changing the writing instruction lowers the average across endpoints
We tried adding a line to the writing instructions, asking the writer to judge the original decision using only what was known before its outcome. After the more reliable tool's chance failure, this lowered the less reliable tool's rate to 7.5%. Using the same instruction after success and failure, with an explicit option to recommend no change, lowered it to 3.1% (Figure 4).
Figure 4
Revised writing instructions lower the less reliable tool's rate
Show the numbers
| Writing instruction | Less reliable tool chosen |
|---|---|
| Original instruction | 11.6% |
| Added decision-quality instruction | 7.5% |
| Common instruction with a no-change option | 3.1% |
These were secondary comparisons. Across the tested model and provider configurations, both writing changes reduced the extra shift and the lesson's increase in choices of the less reliable tool after a chance failure. The uncertainty intervals put both measures below their original levels, meeting the checks we set in advance. The extra shift still had an uncertainty interval above zero under either change. In the exploratory results for individual configurations, neither change passed both reduction checks everywhere the original lesson had a detected effect.
With the log in view, a lesson could still shift the next choice
Our source-checking study asks which evidence an assistant requests; here, the assistant already has the log when it reads the lesson. We varied the memory item while holding that evidence fixed. A written lesson from a chance failure could still shift its next tool choice. In our study of memory summaries, putting the log beside a summary brought the fallback share, averaged across the tested models, close to the share with the log alone; here the log was in view from the start, and the failure lesson still shifted some choices, in a different task with a different kind of memory.
What this study does not show
- This tests a choice, not a working memory system. One stored lesson is read once after a scripted run. No tool is executed, and there is no retrieval, accumulating memory or measured production failure rate.
- The strongest effect leaves room for another explanation. Most of the shift comes from worlds that do not state independence, where switching departs from the choice the log's record points to. The split compares different worlds and does not measure the causal effect of adding the statement.
- The lesson and the reported failure act together. We did not test a lesson without the previous-result line, or a note that merely repeated the failure. The design cannot separate advice from repetition, or the writer's advice from how the next session applies it.
- The endpoints and remedies have a limited reach. Endpoints are model and provider configurations, and their individual results are exploratory. The same endpoint writes and reads its lessons. The remedies were tested only on outcomes that gave no evidence of changed reliability; they might also discourage learning when a tool really has changed.
The paper
Lessons from Luck: Do LLM-Written Lessons Carry Chance into an Agent's Next Decision?
Kazuki Nakayashiki · October 2026 · arXiv:2610.33029
@misc{nakayashiki2026luck,
title = {Lessons from Luck: Do LLM-Written Lessons Carry Chance into an Agent's Next Decision?},
author = {Nakayashiki, Kazuki},
year = {2026},
eprint = {2610.33029},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2610.33029}
}Related research
- More AI sessions chose a fallback after a replayed summary than after a logGiven a replayed memory summary instead of the run log, more sessions chose a temporary fallback after its check had ended.
- A source link in an AI assistant's memory can stay unreadKeeping a provenance link does not ensure an agent reads the source.
- We know how AI memories can fail, less about how oftenWhen agents act on notes, plans and memories written earlier, the evidence pins down the shape of the problem better than its size.
This is a plain-language summary of the paper above. More studies are on the Glasp Research page. Glasp is a social web highlighter: see how it works.