Context engineering has become one of the most talked-about concepts in legal technology.
Within that broader discussion sits a narrower, more technical idea: the context window, essentially the short-term memory of a large language model (LLM).
The idea of a context window seems straightforward. As LLMs are built with larger context windows, they’ll be able to take in more information at once – and more information, in theory, should produce better outcomes.
Unfortunately, things are not so straightforward. It is increasingly clear that a bigger context window does not automatically mean better reasoning or better results. That’s because of what might be called “the context wall”: the point past which adding more content stops helping and can start hurting – either because there is simply too much material for even a very large window to hold, or because not everything inside the window is weighted evenly by the model.
Because that wall exists, something always has to decide what actually reaches the model – which documents, which excerpts, in what order. Left ungoverned, that decision defaults to whatever retrieval logic a vendor happens to have built in, rather than to what the matter actually requires, and firms end up with answers generated by reasoning over a fraction of the available knowledge base. To successfully surmount this context wall, firms must take an approach based on governed content delivery if they want optimal results from their AI.
When a window becomes a wall
The context window comes into play for a variety of tasks – for instance, when a fee earner asks an AI assistant to review a contract, summarise a matter, or identify relevant precedent. The model must then hold all of the relevant information in working memory at the same time.
That working memory is measured in tokens. Current frontier models advertise context windows ranging from 128,000 to one million tokens, numbers large enough to have persuaded many organisations that context constraints are effectively solved.
They are not. A standard active matter at a mid-sized firm, including correspondence, drafts, filed documents, research notes, and related emails, can easily represent several hundred thousand tokens of content. A single large transaction can easily run into the millions. No context window can hold that many tokens of information – at a certain point, it hits the wall.
Glossing over the middle bits
The specific way that information is contained and processed within the context window adds an additional challenge that needs to be reckoned with. Research into how LLMs actually use long contexts has found that not all information within a context window is treated equally. Much like the human mind, models tend to give more weight to information presented near the beginning and the end of what they are shown, while content placed in the middle is more likely to be overlooked or underweighted.
This matters enormously for document-heavy legal workflows. If a matter's documents are loaded in no particular order, the specific clause, admission, or piece of evidence a lawyer actually needs is just as likely to land in that attentional “dead zone” in the middle as at either end of the window.
The model is not purposely being careless. But the practical consequence is real: as context windows expand, the “missing middle” expands with them, and so does the risk of weak reasoning, missed evidence, inaccuracies, and outright hallucination.
Why connecting more data sources is not the answer
The instinctive response to this problem has been to connect AI tools to more sources of information, often via the Model Context Protocol (MCP), now a widely adopted standard for linking AI models to external data and tools.
But MCP governs how tools connect, not what those tools return, how much they return, or whether what they return is actually relevant to the task at hand.
A generic MCP connection to an unstructured repository simply gives an AI assistant the ability to reach further – it does not give it the judgement to reach more intelligently. If the underlying repository lacks structure and the retrieval logic is undiscriminating, the context window fills just as quickly with loosely relevant material, and the wall does not disappear. The context window simply fills differently, and often no more effectively.
There is also a hidden overhead cost. Every tool schema exposed through MCP – its name, description, and parameters – is injected into the context window before a single document has been retrieved or a question asked. In a legal deployment spanning document management, email, calendar, and conflicts checking, that overhead alone can consume a meaningful share of the available window before the model has seen any part of the matter it is meant to reason over.
Governed context delivery, not a bigger window
If a larger context window is not the answer, and connecting more tools is not the answer either, what should firms actually be prioritising?
The answer lies in governed context delivery: the discipline of controlling what enters an AI model's context window, when, in what form, and in what order.
Governed context delivery is not a single product or feature that can be purchased and switched on. It is a set of design disciplines applied at the retrieval layer, and it only works when it sits on top of an information architecture that has already been structured and governed over time. In part, this means consistent matter taxonomy, document type classification, client and counterparty metadata, version governance, access control, and relationship graphs that connect documents to the matters and the people they belong to.
Where that structure exists, retrieval can be a precise activity rather than a blunt keyword sweep. Retrieval results can be tailored to the task, with structured excerpts and metadata returned instead of reams of full-document text. This preserves headroom in the window for actual reasoning rather than consuming it with retrieval noise.
Critically, access controls that already govern who can see which documents can be enforced at the point of retrieval, so the model cannot surface material a user is not entitled to see. And because the underlying structure connects documents to matters, retrieval can be ranked according to factors such as practice area, counterparty, document stage and recency, rather than by text similarity alone.
The difference this makes is stark. Unmanaged context delivery produces unpredictable AI behaviour and unpredictable token consumption, turning every query into something of a lottery as to whether the relevant material happens to fall within the window. Governed context delivery, by contrast, makes AI inputs controlled, costs more predictable, and outputs reproducible, allowing a firm to run AI across multiple matters with genuine confidence.
There is a professional responsibility dimension to this as well. An AI assistant that has been shown the wrong documents or material it should never have had access to, or that has been given an incomplete picture of a matter, represents a professional risk that is easy to miss, because the resulting output can look entirely authoritative while the gap in the underlying knowledge remains invisible.
Where governed context delivery is in place, a firm can reconstruct exactly what a model was shown before it produced any given output. That is not simply a technical safeguard – it goes to the heart of being able to account for the basis of any advice that AI has helped to produce.
The wall can no longer be overlooked
While the context wall might not be the subject of much talk at the moment, it will be. That’s because the context wall is not a future risk to be planned around “eventually” – it is a present limitation already shaping the quality of AI-assisted legal work today.
The organisations that recognise this and invest in the information architecture and retrieval discipline that governed context delivery requires will be the ones whose AI tools reason over the full picture of a matter rather than a fraction of it – and whose lawyers can have confidence that AI is producing results that they can stand behind.