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.

By Kazuki Nakayashiki

6 min read

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

Bars show how often the next session names the less reliable tool after the more reliable tool fails by chance. All sessions see the same log and previous result. The scale runs from zero to the failure lesson's rate; these are averages of endpoint rates.Source: Results, The confirmatory readings, worse-tool rates table.
Show the numbers
Memory itemLess reliable tool chosen
Lesson written from the failure11.6%
Unrelated note0.4%
Lesson written from a success0.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

Dots show the extra outcome-related shift toward the less reliable tool; lines show 95% intervals. This split is descriptive and compares different worlds, so it does not isolate the effect of adding a sentence. The table converts the paper's rate differences to percentage points and adds the result over all worlds.Source: Results, The independence statement; Appendix, Secondary quantities.
Show the numbers
What the log saysWorldsExtra shift, in percentage points95% interval, in percentage points
Does not state independence128+0.181 × 100 = +18.1[+0.160, +0.203] × 100 = +16.0 to +20.3
States failures are independent128+0.042 × 100 = +4.2[+0.031, +0.053] × 100 = +3.1 to +5.3
All worlds256+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

The estimate and its 95% interval describe the extra shift after the less reliable tool's lucky success. The registered upper bound concerns that extra shift only. The table shows the conversion from rate differences to percentage points.Source: Results, The confirmatory readings, panel contrasts table.
Show the numbers
QuantityPaper's scalePercentage 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 boundBelow 0.100.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

Choices after the more reliable tool fails by chance, on the same scale as the opening chart. These secondary comparisons change the writing instruction. The common instruction also adds a no-change option, so that comparison changes more than outcome routing.Source: Results, Remedies, and worse-tool rates table.
Show the numbers
Writing instructionLess reliable tool chosen
Original instruction11.6%
Added decision-quality instruction7.5%
Common instruction with a no-change option3.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

Cite
@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}
}

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.