Why Good AI Systems Need Boundaries, Not Just Bigger Context
Hatched by tfc
Jul 15, 2026
6 min read
2 views
88%
The real problem is not storage, it is shape
What if the hardest part of building a useful AI system is not giving it more information, but deciding what it is allowed to treat as one thing?
That question sounds abstract until you hit the practical limits. A system can accept files, but only a finite number of them, only up to a certain size, and only within an overall storage budget. Meanwhile, a well designed domain model insists that a cluster of related objects should be treated as a unit for change, with a root that controls access to everything inside the boundary.
Those two ideas point to the same deep truth: intelligence, whether human or machine, does not scale by indiscriminately absorbing more context. It scales by creating the right boundaries around context. The hidden challenge is not accumulation. It is coherence.
The highest leverage design decision is often not what to include, but what to bind together.
Most people think of AI systems as memory problems. In practice, they are often boundary problems. If the system knows too little, it is blind. If it knows too much without structure, it becomes brittle, expensive, and hard to reason about. The art is to make the system understand what belongs together, what must change together, and what should remain outside the unit of action.
Why context without boundaries becomes chaos
There is a seductive assumption in software design that more access means more intelligence. Let the assistant see more files, ingest more documents, connect more objects, and it will become wiser. Yet raw access can quickly turn into confusion. A pile of documents is not a model. A mountain of retrieved context is not understanding.
This is where the idea of an Aggregate becomes so useful. An Aggregate is not just a grouping mechanism. It is a declaration of meaningful unity. Its boundary says, in effect: these things must be considered together when anything changes. Its root says: this is the only entry point that the outside world may touch.
That structure solves a problem that appears everywhere in real systems. Consider a checkout cart. You do not want external code changing line items, discounts, shipping rules, and totals independently without coordination. The cart needs a root, because the cart is only coherent if changes are mediated through one place. If you let every part be modified freely, you do not get flexibility. You get inconsistency.
The same principle applies to AI assistants that work with files. Uploading documents is easy. Making those documents useful together is harder. A handful of files about a customer contract, a product spec, and a support policy might all be relevant, but they do not automatically belong to one decision space. If you throw them all into the same context, the model may blend them in ways that are superficially plausible but structurally wrong.
This is the deeper tension: relevance is not the same as belonging. A file can be relevant to a task without being part of the same aggregate of action. That distinction matters because many failures in intelligent systems come from collapsing separate concerns into one accidental blob.
Think of a hospital chart. A nurse note, a lab result, and a medication order are related, but they are not interchangeable. Each lives in a different role in the decision process. If a system treats them as undifferentiated context, it may retrieve the right information and still make the wrong move. Boundaries are what convert information into responsible action.
The root is not control for control's sake
At first glance, the rule that only the root can be referenced from outside the boundary can seem restrictive. Why not let every object be accessible directly? Wouldn't that be more efficient?
In reality, the restriction is what preserves freedom inside the system. Once the outside world can mutate internal pieces directly, the internal logic stops being trustworthy. Every object becomes a potential backdoor. The boundary is not a prison. It is a way of protecting the aggregate's ability to evolve without breaking.
This insight maps surprisingly well onto AI assistants with attached files. Suppose an assistant has access to a large collection of internal documents. If every file is equally addressable and equally authoritative, then the system has no principled way to decide which document governs a decision and which merely informs it. The result is a kind of semantic democracy, where every source speaks at once and none is responsible.
A stronger design is more like a constitution than a library. The root establishes the rules of interpretation, while files act as supporting evidence. The assistant does not merely need more data. It needs a governing structure for deciding how data is used.
This yields an important mental model: the root is not the most important object because it is the biggest. It is the most important because it is the only object that can preserve meaning under change.
Imagine a mortgage application system. You might have income documents, credit reports, identity verification, and property details. If each document were editable independently by external actors, the application would become untrustworthy. The application root is what ensures that updates are validated in a single context. The boundary does not remove information, it prevents fragmentation.
AI systems face the same risk. When context is added without a governing structure, the model can produce answers that seem comprehensive but are actually stitched together from incompatible assumptions. The system appears smarter because it has more material, but in fact it has less integrity.
More context does not automatically create more truth. Sometimes it just creates more ways to be wrong.
The hidden symmetry between software boundaries and machine attention
The most interesting connection between these ideas is that both are really about attention economy. A domain model boundary tells the system where attention should concentrate during change. File limits and association management tell the AI system where attention should concentrate during reasoning.
Attention is finite. Even before you reach formal storage limits, you run into interpretive limits. A model can only weigh so many signals before distinctions blur. That is why the question is not merely how much you can attach, but how you partition what is attached.
A useful way to think about this is the difference between a warehouse and a workbench.
A warehouse can store a huge amount of material, but it is not where decisions are made. A workbench holds only what is needed for the current task, arranged so the maker can act precisely. Well designed aggregates are workbenches. They are not the whole enterprise, only the part where change is safely allowed to happen.
AI assistants often fail when we treat them like warehouses that should also behave like workbenches. We dump everything in, then hope the model will assemble a coherent response. But coherent responses usually emerge from a smaller, better structured decision space, not from a larger undifferentiated one.
This is why file association matters as much as file existence. A file that is merely present is like a tool lying in a drawer. A file associated with the correct assistant is more like a tool placed within reach of the person actually using it. Yet even that is not enough. The association must reflect a meaningful boundary. Otherwise the assistant reaches for tools that should belong to other tasks.
The deeper design principle is this: an intelligent system should not just know things, it should know what counts as together.
That phrase,
Sources
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 🐣