The Real Bottleneck Is Not Context Size, It Is Context Selection

Nan Wang

Hatched by Nan Wang

Aug 01, 2026

9 min read

87%

0

The Hidden Problem Behind Smarter Systems

What if the next breakthrough in AI, coding, and decision making is not about remembering more, but about remembering better?

That question sounds small until you notice how many modern systems fail for the same reason. A developer asks a model to review code without giving the architectural history. A team revisits a decision without remembering why it was made. A neural network sees more tokens, but still misses the few relationships that actually matter. In each case, the failure is not lack of information. It is context blindness.

We usually talk about context as if it were a storage problem. More docs, bigger window, longer history, larger cache. But the deeper issue is selection. The hard part is not holding everything. The hard part is knowing what deserves to survive.

That is the strange connection between documentation practices and memory architectures: both are trying to solve the same human problem, which is how to compress reality without destroying meaning.

The best systems do not preserve everything. They preserve the parts that make everything else understandable.


Why Documentation Is Really a Memory System

In software teams, documentation is often treated like an archive. But good documentation is not an archive. It is a filter for attention.

The most useful forms of documentation are the thinnest ones: the minimum layer that preserves shared understanding between people who see the world differently. Developers think in implementation details. Domain experts think in business reality. Without a shared language, every conversation becomes a translation problem.

That is why the concept of ubiquitous language matters so much. It is not just a naming convention. It is a compression scheme for organizational memory. When a team shares terms like “checkout flow,” “refund policy,” or “retry budget,” they are not merely labeling things. They are deciding which distinctions matter enough to survive repeated use.

This is also why Architectural Decision Records are so powerful. An ADR is not just a note. It is a memory capsule for decisions that are hard to reverse, surprising without context, or carried trade offs with long term consequences. Those are exactly the moments where intuition alone is not enough. Future readers need more than the conclusion. They need the reasoning path.

A useful mental model here is this:

Documentation is not about remembering what happened. It is about preserving the structure of surprise.

If a choice would make no sense six months later without background, then the job of documentation is to keep that background alive. Not every detail. Just the causal skeleton.

Consider a simple example. Suppose a team chooses to use a slower database query because it drastically reduces operational risk in a peak traffic path. Later, someone optimizing performance sees the “waste” and wants to change it. Without context, the decision looks irrational. With context, it becomes clear that the team was not optimizing latency alone. They were balancing latency against failure modes, support burden, and business continuity.

That is what good documentation preserves: not a transcript, but the reason the choice was intelligent at the time.


Memory Is Not the Same as Relevance

The most interesting idea from modern memory architectures is that memory should not merely store history. It should learn to identify what is structurally important across that history.

A system that compresses past information into weights instead of endlessly extending a cache is doing something very human. It is asking: what patterns repeat, what relations recur, what concepts connect distant pieces of input? In other words, it is learning a theory of relevance.

The striking phrase here is the surprise indicator. That points to a deep truth: the most valuable information is often not the most frequent, but the most revealing. The thing worth preserving is the token, fact, or decision that changes your interpretation of many other things.

Human teams do this too, when they are at their best. They do not retain every meeting note equally. They remember the one constraint that explains ten choices. They do not preserve every bug report with equal urgency. They remember the failure mode that reveals a systemic weakness. They do not keep every explanation. They keep the explanation that alters the mental model.

This is why context size alone does not solve intelligence. A larger window can still be dumb if it cannot distinguish signal from clutter. A smaller but well selected memory can outperform a huge but undifferentiated one.

Think of a chef with a pantry full of ingredients versus a chef who knows exactly which five ingredients define the dish. The second chef is not less informed. The second chef has better relevance compression.

The same applies to code, product decisions, and model behavior. If a system can preserve the key trade offs, it can act intelligently even when the raw history is incomplete.


The Shared Problem: How to Keep the Right Past Alive

The deeper connection between documentation and AI memory is this: both are solving the problem of bounded context under change.

Every system changes faster than its memory can naturally keep up with. Code evolves. Teams rotate. Domain rules shift. Inputs pile up. Without some form of selection, the past becomes either too large to use or too thin to trust.

This creates a tension:

  • If you keep too much, you drown in detail.
  • If you keep too little, you lose the reasons.
  • If you keep the wrong thing, you gain confidence without understanding.

That is why the most valuable context is not simply the latest context. It is the context that still explains the present.

Here is a useful framework:

1. Surface context

This is the immediate local information. The code in front of you. The current prompt. The latest meeting note. It is necessary, but never sufficient.

2. Decision context

This explains why a system looks the way it does. ADRs, product trade offs, architecture constraints, and domain rules live here. Decision context prevents false optimization.

3. Compression context

This is the distilled pattern that survives repetition. Shared vocabulary, naming conventions, design heuristics, and learned representations all belong here. Compression context is what lets a system scale without re-litigating the same issues.

What makes a mature team, a good documentation practice, or a smart memory architecture effective is not that it maximizes all three. It knows how to route information into the right layer.

For humans, that means asking: what should be explicit, what should be summarized, and what should be internalized?

For AI, it means asking: what should remain in the prompt, what should be compressed into weights or summaries, and what should be discarded altogether?

Relevance is a design choice, not a natural property of information.


The Unexpected Role of Surprise

The most powerful bridge between these ideas is surprise.

A decision deserves documentation when it would surprise a future reader. A memory mechanism deserves to preserve information when it carries unusual connective power. Surprise is a signal that the information is not merely local. It is doing integrative work.

This helps explain why some notes become invaluable while others vanish into oblivion. The note that says “we chose Postgres” is not interesting. The note that says “we chose Postgres because the team needed transactional guarantees across a reconciliation flow, and the operational risk outweighed the performance hit” is interesting, because it changes how you interpret many downstream design choices.

Surprise does not mean novelty for its own sake. It means hidden dependency. The most important facts are often the ones that link separate parts of the system.

An AI memory system that tracks surprising relations is doing something similar. It is not merely remembering the average. It is learning the exceptions that reveal the governing structure. A model that notices a rare but consequential pattern may generalize better than one that blindly stores more recent text.

This is a profound lesson for human work. We often overvalue frequency and underestimate explanatory power. The repeated thing feels important because it is familiar. The surprising thing feels important because it is disruptive. But what we really need are the facts that organize the rest.

A good litmus test is simple: if this detail disappeared, would understanding collapse? If yes, it deserves durable memory. If no, it may only deserve transient attention.


Building Systems That Remember Well

If the real bottleneck is context selection, then the practical question becomes: how do you build better selectors?

Start with three habits.

First, write for future surprise. When recording a decision, do not just note the outcome. Note the trade off, the rejected alternatives, and the constraint that made the decision non obvious. Imagine the future reader has inherited only the artifact, not the meeting.

Second, use a shared language ruthlessly. A team that keeps inventing new words for the same concept is leaking memory. Shared language is not bureaucratic overhead. It is the shortest path to precise retrieval.

Third, treat recurring context as a candidate for compression. If the same explanation keeps reappearing in different conversations, it should probably move from ephemeral chat into a stable artifact, whether that is a doc, an ADR, a pattern library, or a summary memory layer in a system.

A practical rule of thumb:

  • If it is important but obvious right now, it may not need durable storage.
  • If it is important and non obvious later, it probably does.
  • If it explains many other things, it deserves to be compressed into the core memory of the team or system.

This is equally true for people and machines. Good judgment is not the ability to hold everything in mind. It is the ability to distinguish between what should be remembered verbatim and what should be converted into structure.

One more analogy helps. Think of a city map. A map is not the city. It omits almost everything. But it preserves the relationships that make navigation possible. Documentation, decision records, and learned memory should work the same way. They should be maps, not museums.


Key Takeaways

  1. Stop asking for more context before asking for better context. More information can make understanding worse if it is not selected for relevance.

  2. Document surprises, not everything. Preserve the choices that would be hard to reconstruct later, especially when they involve real trade offs.

  3. Treat shared vocabulary as memory compression. Ubiquitous language is not style, it is infrastructure for thought.

  4. Look for patterns that explain many decisions at once. The best memory is connective memory, the kind that turns scattered facts into a coherent model.

  5. Use surprise as a signal for durability. If a detail changes how you interpret multiple future situations, it deserves a lasting place in your system.


Conclusion: Intelligence Is Selective Memory

We tend to imagine intelligence as accumulation. More data, more notes, more tokens, more recall. But the deeper truth is less glamorous and more useful: intelligence is selective memory under constraint.

The best documentation does not capture everything. It captures the reasons that matter. The best memory systems do not keep all history equally. They preserve the patterns that organize the future. The best teams do not speak in endless detail. They develop a language that carries complex reality in compact form.

So the next time you reach for a bigger context window, a longer doc, or a more exhaustive record, ask a different question first: what is the smallest amount of context that still makes the decision intelligible?

That is where real leverage lives. Not in remembering more of the past, but in retaining the past that still knows how to explain the present.

Sources

← Back to Library

Hatch New Ideas with Glasp AI 🐣

Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)

Start Hatching 🐣
The Real Bottleneck Is Not Context Size, It Is Context Selection | Glasp