Search⌘ K
AI Features

Context Rot, Distractors, and the Position Bias Debate

Explore how context rot reduces AI agent accuracy when correct information is surrounded by growing context. Compare position bias with competing content, create neutral and rival distractors, build a four-run test harness, audit retrieved neighbors, and evaluate results with controlled trials.

We'll cover the following...

In Chapter 1, we built the first pieces of the on-call assistant and learned four moves for routing context: Write, Select, Compress, and Isolate.

Now let’s picture the assistant a few months later. The team has added many more documents: older runbook drafts, copies kept by other teams, and pages of general team notices. During a long incident, the assistant retrieves 20 notes instead of 5. note-1, the current May 2026 runbook, is one of them. Even so, the answer comes back wrong. Sometimes it tells us to restart the Redis cache first, and sometimes it says the notes don’t support an answer.

In this lesson, we’ll give this problem a name, look at two explanations that researchers currently disagree about, and write a small test harness that checks which explanation fits our own assistant.

The right note is present

Let’s first check whether any Chapter 1 move explains the wrong answer.

Select removes notes that are stale or duplicated, but note-1 is correct and present, so there’s nothing wrong with it to remove. Compress shrinks notes that are too long, and none of these notes are long. Write and Isolate decide where information lives and which call sees it. They don’t change how the model reads a note that’s already in front of it.

So we need to look past single notes, at what a large pile of other content does to the way the model handles the one note that matters.

What is context rot?

Researchers at Chroma, led by Jeff Huber, call this context rot: the drop in a model’s accuracy as the amount of context around the correct answer grows, even when that answer is present and correct.

Chroma’s study tested 18 models on questions from the LongMemEval benchmark. Each question was asked twice: once with about 300 tokens of input, and once with about 113,000 tokens. Accuracy was clearly lower in the long version, even though the answer was in both. Practitioner write-ups loosely report accuracy drops of 20 to 50 percent somewhere between 10,000 and 100,000+ tokens of context.

Two fixes are tempting, and neither one helps. A bigger context window gives us room for even more ...