intro
Introduce the core topics this blog is about
The Concept Tree: Giving Architecture a Place to Live
If architecture is supposed to guide coding agents, where does it live, what does it contain, and who is allowed to change it?
In the previous post, I argued that reading code does not recover its intended architecture. If a specification is to constrain the implementation, it has to exist independently of it. What must such a specification look like for coding agents to work against it?
In AIND, the answer is the Concept Tree. The tree, however, is only one view of the system, not the whole architecture.
None of the building blocks below is new. Hierarchical decomposition, component models like C4, architecture decision records, design by contract and requirements traceability have existed for decades. They were made for human architects and developers, who read them, interpret them and fill gaps with judgment. They were never meant for coding agents. I have taken their core and shaped it so that agents can build software against it directly: each statement has a fixed place, an agent retrieves only the part it needs, and the agent that writes the code cannot change it. What is new is applying these ideas to agentic coding.
A tree for responsibilities, a graph for dependencies
The Concept Tree decomposes a system hierarchically into Components. A Component is a conceptual responsibility, not necessarily a source-code module or deployable unit. The hierarchy gives requirements a place to belong: each need, constraint, and design statement can be assigned to a bounded part of the system rather than floating in an ever-growing document.
In the previous post I called the units of code Modules. A Component states what a part of the system is responsible for; Modules are where that responsibility is realized in code. The mapping need not be one to one: in Service Interfaces, four Components are packages of a single Maven module. How code is checked against its Component is the subject of the next post.
A coding agent should be able to work on one Component without reading the entire design. The tree gives it a navigable scope and lets it retrieve the relevant specification selectively.
But Components do not interact primarily as a tree. They form a directed dependency graph: a Component may depend on another Component in a different branch of the hierarchy. These dependencies show which contracts it relies on, and so which Components a contract change may affect.
The graph should be acyclic. A cycle is not automatically a defect, but it often signals awkwardly sliced responsibilities or a boundary that needs another look. Without cycles, build order is easier to determine, changes are easier to reason about, and the consequences of a decision stay local. Acyclicity is a goal, though; a Concept Tree does not guarantee it.
The two structures answer different questions:
The tree asks: Where does a responsibility or requirement belong?
The graph asks: Which Components depend on which others?
AIND’s Service Interfaces, the part that turns declared services into operations callable over MCP and REST, show the difference. Routing, Transport Bindings, Transport Hosting, and Service Compiler are separate Components with their own responsibilities and contracts. Yet Routing supplies types and behavior on which the others rely. That dependency sets the implementation order: Routing must provide its contracts before the dependent Components can be integrated. Their position in the tree does not imply that order.
What belongs to a Component?
A Component holds statements that guide future work and stay relevant after today’s development session has ended.
Requirements state what must be achieved. In AIND, each requirement comes with criteria for testing whether it is actually met.
Decisions record chosen boundaries, rules, and reasons. A decision constrains future implementations and the Components that depend on it.
Interface definitions describe what a Component provides and which guarantees bind its behavior. Verification cases make those guarantees testable.
These pieces are linked. A requirement motivates a contract; a decision may narrow its permissible design; a guarantee defines behavior that must hold; a verification case provides evidence for or against it. The links matter most when a change affects more than one Component.
An example from Routing: what should happen if two factories, each contributing routing entries, define the same structure name differently? A developer could keep the first definition, overwrite it, or fail the operation. All three are implementable. Only a binding architectural statement can say which behavior belongs in the system.
When the Routing developer agent met this case, the interface definition said nothing about it. The agent chose to fail and reported that choice as a gap instead of leaving it buried in the code. After I confirmed it, the analyst agent wrote it into Routing’s interface as a new guarantee: a structure name that two factories define differently fails the table build; identical definitions merge. In a second run, the developer checked the unchanged code against the amended interface, and all twenty guarantees held. The answer itself was unremarkable. What counted was that it now had a binding place, and a test that checks it.
The model is not the history of building it
AIND also separates the Concept Tree from the Process Homes.
The Concept Tree holds the currently accepted model of the system and is meant to stay useful for the system’s lifetime. It tells an agent what is true now, not every step by which a decision was reached. Version control keeps the history.
Process Homes hold working material. An exploration, analysis, or development run needs investigation notes, candidate decisions, open questions, workplans, task results, and records of what happened. AIND stores these in separate homes such as explorations/, analysis/, and designs/.
If every provisional thought entered the Concept Tree, the binding model would become an archive of uncertainties. If durable decisions stayed buried in a run’s notes, a later agent would have to rediscover them, or would never see them.
What must remain true and relevant for maintaining the system belongs in the Concept Tree; what describes a bounded piece of work belongs in its Process Home. Moving information from a Process Home into the Concept Tree is a deliberate step, never a side effect of finishing a coding task.
Who can change the architecture?
A specification only constrains implementation if the implementation process cannot silently rewrite it.
In AIND, a skill is a defined working procedure for an agent: it specifies the task, the steps to follow, the artifacts to use, and the boundaries of its authority. Two skills are central here: aind-specify and aind-develop. The first works on the binding Concept Tree; the second reads that model and produces implementation and verification artifacts. When development uncovers an ambiguity, contradiction, or missing decision, it reports a gap or finding for reconcile: specification work takes the report back, decides it, with my confirmation where needed, and writes the result into the Concept Tree.
The AIND phase model. aind-specify maintains the Concept Tree; aind-develop implements and verifies against it. Gaps and findings travel back through reconcile, rather than becoming unapproved design decisions in code.
Not every action needs human approval. What the first mission, as AIND calls a development effort by a team of specialized agents, taught me about that is a topic for a later post. What needs a controlled route into the model are decisions about the intended system. Decisions about how to carry out an authorized implementation can often be delegated within explicit boundaries.
A passing test suite is therefore not the final authority on architectural correctness. Tests can provide evidence for specified guarantees; they cannot make up for a guarantee that was never formulated. AIND’s verification starts from the contracts in the Concept Tree and checks the code against them, instead of taking whatever tests exist as proof.
A practical test, not a finished theory
This makes the quality of the model decisive. Wrong Component boundaries, missing dependencies, or poorly chosen guarantees can lead to a faithfully implemented but badly designed system. The Concept Tree is not an architectural oracle. It is a place where decisions become explicit, contestable, and enforceable.
AIND itself is the next test. Its current implementation grew incrementally through agent-generated code and task-specific explorations, without a consistently maintained, system-wide Component architecture. The structural problems are severe enough that I have chosen a fresh implementation based on the new Component structure instead of refactoring the existing system.
I will first build a set of foundational Components to test the improved mission mechanics, then a complete technical vertical slice from the user interface to persistence. After that, the same structure has to carry subsequent changes, not just a clean first implementation.
A working first version is the easier claim to test. The harder questions are whether changes find their intended place, whether dependency effects stay visible, and whether the specification stays aligned with the software without becoming an administrative burden.
The Service Interfaces pilot, which I’ll describe in a later post, suggests that agents can build several Components from an agreed model while reporting gaps back to it. It does not prove long-term maintainability. The AIND rebuild should give better evidence.
Next: from binding statements to working code
A Concept Tree is only useful if its statements shape what gets built. In the next post, I’ll follow one development cycle: an interface definition, its guarantees, the implementation, the verification, and the point where a gap had to go back to specification.
The question is how an agent can produce code without quietly becoming the architect.