There’s a particular kind of whiteboarding session I find fascinating. Everyone in the room is smart, everyone has a reasonable understanding of the problem, and everyone is genuinely trying to help. Yet somehow, an hour later, the whiteboard is a remarkably accurate representation of the expertise in the room and a rather less accurate representation of the system we’re proposing to build.
If you’ve spent any reasonable amount of time developing software, you’ve probably attended this meeting. You may even have organised it. I certainly have.
I’ve been thinking about why these conversations go sideways, and I don’t think it’s generally a problem of personalities, technical ability or even disagreement. I think it’s a problem of altitude: the level of abstraction at which each person is reasoning about the system, and their individual outlooks on the system.
There’s a rather nice solution to this problem hiding in the middle of a fairly well-established architecture modelling technique, the C4 model. Specifically, Level 2, the container diagram. And, somewhat unexpectedly, it turns out to be useful for working with AI agents too.
The Trouble With Knowing Things
One of the peculiarities of being a software engineer is that your mental model of a system bears an uncanny resemblance to a video game map that you haven’t finished exploring. There are areas rendered in exquisite detail, areas where you have a general sense of the geography, and large unexplored regions that you sincerely hope contain nothing important.
For the parts of the system we work on regularly, we know the classes, the interfaces, the state machines, and exactly which bit of code we’d rewrite if we ever got the time. For the parts we don’t work on, our understanding tends to be something along the lines of “we send it to the payments service.”
What does the payments service do? Well, payments, presumably.
This is an entirely reasonable way for a human brain to manage the complexity of a large software system. The trouble starts when we get several of these brains together in front of a whiteboard.
The authentication specialist is talking about refresh token rotation. The frontend engineer has drawn a rectangle representing an entire backend platform. Somebody else is describing an event-driven architecture without having drawn anything that actually consumes an event. Each person is operating at an altitude that reflects their own familiarity with that particular part of the system.
What’s particularly insidious about this is that the conversation can feel quite productive. The bits people understand sound rigorous, and the bits they don’t understand sound reassuringly simple.
The problem isn’t necessarily that people disagree. It’s that they haven’t got specific enough to disagree about the same thing.
The Least Abstract Abstraction
If you’re unfamiliar with C4, it’s a way of describing software architecture at four progressively more detailed levels: context, containers, components and code. It’s a refreshingly sensible model, particularly by the standards of an industry that once thought UML needed fourteen different types of diagram.
Level 1, the context diagram, describes your system in relation to its users and other systems. Level 3 describes the components within an application, and Level 4 gets into the code itself.
It’s Level 2 that I find particularly interesting.
A container, in C4 terminology, is a running application or a data store. A web application, an API, a background worker, a database, a mobile app, a message broker. The word container predates its widespread association with Docker, which has made explaining this slightly more tedious than it used to be.
The arrows between these containers represent actual communication: HTTP requests, gRPC calls, messages published to a broker, database connections and so forth.
What I like about this level of abstraction is that it’s grounded in something other than our collective imagination. Process boundaries are real. Network boundaries are real. The operating system has opinions about the former, and the network has a rather well-established reputation for expressing its opinions about the latter.
At Level 1, you can draw a box around an enormous amount of complexity and give it a reassuring name. At Level 3, you’re getting into implementation decisions that may not be particularly relevant to the architecture you’re discussing.
Level 2 is somewhere in between. It’s the lowest rung on the abstraction ladder where you’re still drawing boxes and arrows rather than designing code.
I think of it as the least abstract abstraction.
It’s detailed enough to expose the things that tend to make distributed software difficult: latency, partial failure, ordering, backpressure, data ownership, deployment boundaries and the various reasons somebody might have to get out of bed at 3am. Yet it’s abstract enough that you can reason about all of these things without knowing whether a particular service is written in Java or TypeScript.
More importantly, if everyone agrees to work at this altitude, it becomes considerably harder to gloss over the parts of the system they don’t understand.
Everything Looks Lovely From 30,000 Feet
Event-driven architecture is a particularly entertaining example of what happens when you change altitude.
At a sufficiently high level, an event-driven architecture is an extraordinarily attractive proposition. An order is placed, an event is published, billing happens, inventory gets updated, and a customer receives an email. Nobody needs to know much about anybody else. The boxes are small, the arrows are few, and everyone gets to use the phrase “loosely coupled” in the architecture review.
Now draw the container diagram.
We have a message broker, several consumers, topics, subscriptions, consumer groups, schemas, retry mechanisms and a dead-letter queue. We need to establish delivery guarantees, work out what happens when events arrive out of order, and figure out whether we can safely replay them. Somebody asks what happens if the billing worker successfully charges the customer but crashes before acknowledging the message, and suddenly it’s a much less relaxing meeting.
The dead-letter queue, incidentally, is one of my favourite architectural inventions. It’s remarkably easy to get agreement on introducing one, and remarkably difficult to get agreement on who’s supposed to look at it.
None of this is an argument against event-driven architecture. It’s an argument against evaluating event-driven architecture from an altitude at which most of its interesting properties are invisible.
A Few Rules for the Whiteboard
I’ve found that you can make architecture discussions considerably more productive by establishing a simple social contract at the beginning: we’re going to work at C4 Level 2, and we’re going to help each other stay there.
There are really only three rules.
1. Name the running things.
“The notification system” might be a perfectly reasonable label on a context diagram, but at Level 2 we’d like to know whether it’s an API, a database, a background worker, a third-party service or some combination of the above.
Ideally, we get to something like “the notification-dispatcher worker, running on ECS, consuming messages from the notifications topic.” Now we have something concrete enough to discuss.
If nobody in the room knows the answer, that’s useful information in itself. You’ve identified a gap in your understanding of the system, which is a much better outcome than having inadvertently concealed it behind a rectangle.
2. Name the communication.
An arrow between two boxes is doing an extraordinary amount of heavy lifting on most architecture diagrams. It could mean an HTTP request, a database query, an asynchronous message, a file transfer, or occasionally just that the person drawing the diagram feels the two things ought to be related somehow.
Label the arrow. What protocol is being used? Which direction does the communication go? What data is being exchanged? How is it authenticated and authorised?
The answers to these questions tell you quite a lot about how your system will behave when things go wrong, which is arguably when the architecture matters most.
3. Resist the temptation to design the internals.
This is probably the hardest rule for engineers, because the moment the conversation touches something we’re particularly knowledgeable about, we have a natural tendency to dive into it. There’s a certain comfort in discussing a problem we know how to solve, especially when the alternative is discussing one we don’t.
When the conversation starts drifting into classes, modules or internal design patterns, acknowledge that it’s a useful discussion and park it. You can always come back to it once you’ve established the broader architecture.
The objective isn’t to enforce some sort of architectural purity. It’s to keep everyone reasoning about the same kind of thing for long enough to make progress.
It Turns Out Agents Do This Too
One of the more interesting aspects of working with LLM-based coding agents is discovering how many of their shortcomings are things we’ve been doing ourselves for years.
Ask an agent to summarise the architecture of a reasonably complex system and you’ll typically get a perfectly plausible description. It’ll identify the frontend, the API, the database, the authentication mechanism and perhaps a few interesting implementation details it stumbled across while exploring the repository.
The problem is that you have very little idea about what it hasn’t told you. It might have given you a beautifully detailed explanation of the authentication middleware while completely overlooking a background process responsible for half the system’s business logic.
In other words, it’s produced something remarkably similar to what you’d get if you asked an engineer who’d been on the team for three weeks.
Try giving it a more constrained task:
Map this system as a C4 Level 2 container diagram. For each container, identify its name, runtime and responsibility. For each connection, specify the direction, protocol, authentication mechanism where applicable, and the data being exchanged. Do not describe internal components, classes or modules. Explicitly identify assumptions and unknowns.
What’s interesting about the result isn’t necessarily that it’s more accurate (the model is still quite capable of making things up). It’s that the output is structured around specific claims about the system that you can investigate.
Is that actually a separate process? Does the notification worker really read directly from the user database? Where does that event originate? Is that connection authenticated?
These are useful questions, and they’re questions you might never have thought to ask based on a more general architecture summary.
The Level 2 constraint works for agents for much the same reason it works for humans. It establishes a consistent altitude and reduces the opportunity to substitute a comfortable abstraction for an uncomfortable gap in understanding.
What Are We Actually Getting Paid For?
There’s a broader point here about engineering in an increasingly agentic development environment, and it’s something I’ve been thinking about quite a bit.
As agents get better at writing code, generating tests, refactoring implementations and generally doing the things we’ve historically spent much of our working day doing, the relative value of different engineering competencies is going to shift.
One competency I suspect is going to become considerably more valuable is having a fluent working knowledge of the architecture of the systems we’re responsible for.
Perhaps the agent has introduced a dependency from service A to service B, without appreciating that service B already depends on service A. Neither implementation is particularly objectionable, but the two services are now considerably less independent than their names suggest.
That’s a decision about architecture, not code quality. You can review every line of that pull request and still miss it if you don’t have a working mental model of the system.
This is why I’m increasingly of the opinion that fluency at Level 2 should be a baseline competency for an engineering team, not a specialist skill reserved for the most senior technical contributors in the team.
We’re going to spend more of our time exercising judgement about software and proportionally less time typing it out. That’s a rather nice development for those of us who enjoy thinking about systems, but it does depend on us building a broader competency understanding the systems we’re thinking about.
To sum it up: the agent can write the code, the tests and a remarkably convincing explanation of why the change is a good idea. Unfortunately, determining whether it actually is a good idea remains our problem.
The Diagram Isn’t Really the Point
Given that agents are quite good at generating architecture diagrams, there’s an obvious temptation to delegate the whole exercise to them. Point an agent at the repository, ask it to produce a C4 diagram, put the result in Confluence, and congratulate ourselves on having finally addressed that documentation task that’s been in the backlog since 2022.
By all means, use agents to do the legwork. They’re excellent at tracing dependencies, examining deployment configurations, identifying processes and uncovering relationships that might otherwise take hours to investigate.
But there’s an important distinction between delegating the production of a diagram and delegating the understanding of the architecture.
Much of the value of an architecture diagram comes from the process of creating it. It’s the discussion about whether a boundary is in the right place, the discovery that two services share a database, the realisation that nobody quite knows what happens when a particular worker fails. It’s the gradual construction of a shared mental model among the people responsible for the system.
An agent can produce the artefact without any of that happening.
It’s a little like buying exercise equipment. The acquisition of the equipment is, unfortunately, not the part of the process that makes you fit.
So I’d encourage teams to make the Level 2 diagram something they collectively own, even if an agent does most of the actual drawing.
Making It Stick
The practical suggestion I’d make is to treat the Level 2 diagram as an artefact of record for non-trivial architecture decisions. If we’re introducing a new container, changing a communication mechanism or establishing a new dependency, the diagram should reflect that decision.
No diagram, no decision.
That sounds a little bureaucratic, but consider what we’re actually asking for. We’re not asking for a forty-page solution design document, a formal architecture review board or a comprehensive description of every implementation detail. We’re asking for a picture of the system we’re proposing to build.
If we’ve been reasoning about the architecture at Level 2 throughout the discussion, producing that picture should be a fairly natural by-product of the conversation. And maintaining it incrementally is considerably less work than the traditional engineering practice of periodically rediscovering how our own software works.
Over time, the diagram becomes the starting point for subsequent architecture discussions, a useful onboarding tool for new engineers, and a particularly handy piece of context to give an agent before asking it to make substantial changes.
But the real payoff is a team that can reason about its own system at a consistent level of abstraction.
Coming Back Down to Earth
I’m not suggesting that C4 Level 2 is the answer to every architectural question. There are plenty of important properties of a software system that a container diagram won’t tell you, and there are perfectly good reasons to move up and down the abstraction ladder as a conversation progresses.
What I am suggesting is that there’s something particularly useful about having a default altitude at which we reason about architecture, and Level 2 is a very good candidate. It’s grounded in the operational reality of software, it’s accessible to engineers across different specialisations, and it provides a surprisingly effective common language for working with agents.
So the next time an architecture discussion starts going around in circles, try establishing a few things before continuing:
- What actually runs?
- Where does it run?
- What does it communicate with?
- How does it communicate?
If the room can’t answer those questions, you’ve probably discovered the conversation you should be having.
If nothing else, you’ll find out what the frontend engineer meant by “the backend”.
