Skip to content

Beyond the Chat Window

After several months of investigating a Big Ball of Mud and weighing ways to modernize it with AI, I wanted to see what I could put into practice. I was particularly taken with Self-Contained Systems. I knew the concept from reading about it and wanted to build one myself.

The lead developer and I looked for a new feature that would need as little data as possible from the existing system. It would give us a starting point for a proof of concept we could show our managers as one possible route to modernizing the application in stages.

I had a personal reason to try it, too. I’d spent years thinking about software architecture, but all my development experience was in frontend work. I’d never built a complete backend application. I wanted to see how far my architecture experience and the help of AI would get me in unfamiliar territory.

I already had a rough picture of the architecture. We wanted an application with a clear domain boundary and everything it needed to do its job, from data storage and business logic to the user interface. Each feature would run through those parts as a vertical slice.

I wanted to keep the list of things we had to learn at once reasonably short. Angular was the obvious choice for the frontend. For the backend I chose NestJS, a TypeScript framework whose architecture draws heavily on Angular. We already knew dependency injection, modules, and decorators.

The backend was new to me. Sticking with TypeScript and a familiar style of framework let me concentrate on what I needed to learn there. In a completely unfamiliar stack I’d have had little basis for judging the generated code. I didn’t trust the models of the time that far.

Choosing Self-Contained Systems and vertical slices still left me with the question of how to build the backend.

I’d spent years with Domain-Driven Design and had clear ideas about keeping domain and technical responsibilities apart. What I lacked was experience applying those principles to a backend and to the way independent systems work together.

With AI, we worked out a hexagonal architecture for our slices. I knew the idea: the domain logic should be independent of the technologies that receive, store, or pass on data. We had yet to work out how to maintain that separation in a NestJS application.

One domain slice spans the Angular UI, the NestJS backend, and its own data storage. In the backend, technical adapters surround the use cases and domain logic.
This sketch shows how we thought a vertical slice in a Self-Contained System might fit together. It illustrates the concept. The state of the repository and how much we finished are separate questions.

We talked through what each layer should own and how the parts should communicate. AI could show us possible implementations, and we could examine them together. Looking at actual code often raised questions that hadn’t occurred to us in the abstract.

I found that an interesting way to learn. Ordinarily I’d have studied backend development before attempting a system like this. Now I could work out the architecture, try parts of it, and learn the techniques I needed as I went.

My experience still helped. Even when I wasn’t sure how to implement something, I could often say quite precisely what I needed the design to do. I could bring that judgment to the conversation with AI. Moving into a new area hadn’t made everything I knew about software development obsolete.

The authentication integration showed me how much I could learn this way.

The company ran its own OpenID Connect solution. With a widely used identity provider such as Keycloak, existing libraries can make some standard integrations easier. We had to build substantial parts of ours ourselves. One of the first things I had to sort out was what each standard did. OAuth 2.0 governs how an application gets access to protected resources. OpenID Connect builds on it and lets the application verify the identity of the signed-in user.

We used a Backend for Frontend, or BFF. As I remember it, the browser application used a session cookie to communicate with the BFF. The BFF managed the access tokens on the server. We also had to integrate the token exchange with the company’s own identity solution.

That sounds manageable until you have to put it together yourself. Which token is for what? What needs to be checked? How are the tokens exchanged? Which responsibilities belong to the identity provider, the backend, and the frontend? How do we manage the session? What I knew about OAuth 2.0 and OpenID Connect wasn’t enough to answer all of that with confidence.

We used AI to work through the standards, the relevant RFCs, and the steps in the authentication process. When we couldn’t see how something fit, we could discuss it in the context of what we were building and then follow it through the implementation.

With something as security-sensitive as authentication, we wanted to understand what we were building. Handing the whole implementation to AI would have defeated that purpose. A user being able to sign in and open the application would have told us that the flow worked. It wouldn’t have established that the implementation was secure.

AI helped us get into the standards and apply them to our problem. The learning and checking were ours to do. The December 2025 Internet-Draft on OAuth for browser-based applications is a helpful reference in hindsight. RFC 10017, published in August 2026, describes the BFF pattern in section 6.1. I don’t remember which version we consulted at the time.

I ran into another gap between theory and practice when I looked at data in distributed architectures. I knew the concepts behind microservices, Self-Contained Systems, and event-driven architecture. Their practical consequences took me longer to understand.

Take a hypothetical example involving information several domain contexts need. With a central data model, you might store a user profile once and let different parts of the application read it.

Things look different when systems are responsible for distinct domains. A profile can mean one thing in an identity context and another in a task assignment system. The first manages information about who the user is. The second might need only a local representation of what matters for assigning work.

The two contexts can have models shaped by their own needs. One context remains responsible for the source information. Other systems can keep a projection of the parts they need, expressed in the terms of their own domain.

That raises a new set of questions. How do changes reach other systems? How stale can the information there be? Which decisions can a system make using its local data? What happens when an update fails?

Moving away from a common data model removes some dependencies and creates new demands on communication and consistency. We had to understand those trade-offs before we could tell whether the approach suited us. I already knew these questions in theory. Talking through concrete designs with AI showed me where I still had no answer I could rely on.

I also had to explain these ideas in an organization whose architecture had grown up around different principles. Trying to explain to an architect who’d spent much of his career avoiding data redundancy why we would deliberately keep certain information in several databases wasn’t the easiest part of my job.

One person I spoke with had a doctorate in computer science. I found him very bright and an unusually persuasive speaker. The way he put a case sometimes reminded me of a quality of language models I’d grown familiar with.

People can make a convincing argument without showing that it’s right, too.

As I remember it, the board was told about an architect with some 15 years of experience in microservices who had reportedly concluded that they didn’t work. I don’t know the full context. From where I stood, that more or less ended the discussion about those approaches.

I’d have liked to know what led him to that judgment and what we could learn from it. Given how little practical experience I had, that information would have been especially valuable to me. A blanket judgment about whether an architecture works gave me very little to go on.

As we worked through those architecture questions, the way I worked with AI was changing, too.

In my first experiments with ChatGPT, I copied code from the editor into a chat window and pasted the answer back into my application. With Windsurf, I was working in an editor where AI could see the project context and change files directly.

I could let it find the relevant pieces instead of collecting them all myself. It could follow connections across files, analyze an implementation, and prepare or carry out changes in the repository. Gradually it helped with larger configurations and blocks of related work, alongside individual functions.

I can’t recall a moment when I realized how much the change mattered. Working this way just became normal.

There was considerable pressure to deliver and growing tension between people on the project. In late summer 2025, my experienced lead developer left the company. The main phase of building the new system fell to me and two junior developers.

Under those conditions, I didn’t spend much time marveling at the technology. I had something at hand that helped me learn a topic, make sense of a configuration, or investigate a piece of code while I was working on it. I came to rely on that help for more of my day.

How much I trusted it depended on what we were doing. In frontend work, my own specialty, I kept seeing implementations I couldn’t accept. Angular Signals were an especially clear example. The AI could write code with Signals, but its solutions often missed the point of the reactive model. We continued to implement much of that code ourselves.

On August 29, 2025, the Angular team announced an experimental MCP server for development tools in its Summer Update. The Angular v20 documentation lists the get_best_practices tool, which retrieves the Angular best practices guide. In hindsight it’s an example of how an agent can get specific framework guidance. In day-to-day work at the time, I couldn’t assume the model would apply the current recommendations on its own.

We were also cautious about handing over more complex infrastructure tasks. I can’t say whether the models we had could already have handled some of those tasks reliably. Under the pressure we were working with, we had neither the time nor the appetite to find out systematically.

We drove the development and brought AI in as far as we thought each task warranted. I hadn’t delegated a whole development assignment to it to carry out on its own while I was at the company.

Four ways of working: implement as a team, get occasional help, design together, or learn and verify.
How we used AI depended on the task and what we knew about it. The four panels describe how we worked.

After the lead developer left, I saw something that mattered to how I would work with AI later.

The two junior developers made a real effort to learn unfamiliar topics with AI and use what they learned to build features. They helped each other and used AI in their code reviews as well. It seemed reasonable. They had a tool that could help them learn, write code, and find errors.

I wondered what would happen when two developers reviewed each other’s code without either having the experience to judge the design.

They asked me for a review of an Angular implementation. We already used NgRx SignalStore to manage application state. Inside one component I was surprised to find another state management mechanism they’d built with AI’s help. In effect there was a second store alongside the one we already had.

Under the division of responsibilities we’d agreed on, the component was supposed to use the state the store provided. By managing that same part of the application’s state itself, the component took on a job that already belonged to the store.

Mistakes like that are part of learning. What stayed with me was that the code had already been reviewed by another developer with AI’s help.

When I asked my own agent to review their implementations, it routinely turned up a very different picture. It had a different project context and I asked it different questions. Some of the results made for sobering reading. I remember reviews where one finding followed another and work that had looked finished suddenly came with a long list of revisions.

I imagine it was frustrating for both developers. They were just starting out, plainly trying to meet our expectations, and reporting in the daily meeting that features were done and reviewed. Then their architect and his AI told them that substantial parts had to be redone.

They’d built the feature with AI’s help, reviewed it with AI’s help, and now had a third AI telling them that the code fell short. What exactly was I supposed to hold against them?

I don’t know what prompts they actually used in those reviews. I suspect the assignments were much less specific than mine.

A hypothetical request like this sounds reasonable enough.

Please review this multiple-choice test implementation.

What would tell the AI whether the implementation was any good? It might look for bugs, check that the feature meets its requirements, and suggest ways to make the code easier to read. It might conclude that the work is broadly sound.

A particular software architecture brings further requirements. We already had a documented layered architecture with defined responsibilities. Which parts of the application own its state was a decision we’d made. It wasn’t something we wanted each implementation to decide afresh.

A model can know about several approaches and still have no idea which one the project requires. Even if it picks up an existing implementation as a reference, that implementation could already be breaking our rules.

Today I’d give it a more specific review assignment. Along with checking that the feature works, I’d ask it to look at the agreed responsibilities of each layer, check whether another store had been introduced, and find any work the component was doing that belonged elsewhere. Each finding would need a specific location in the code and the project rule it violated.

The model could be exactly the same. I’d have given it different work to do.

General code reviewProject architecture review
Does the implementation work?Does it follow the agreed responsibilities?
Are there bugs?Does it respect the architecture boundaries?
Is the code clear?Is it clear who owns the domain and technical responsibilities?
Where could we improve it?Did it reimplement a responsibility already assigned elsewhere?
What tests are missing?Which relevant architecture rules still need checking?

I need both perspectives. A feature can do its job and still violate responsibilities we’ve agreed on for the project. An argument sounding convincing doesn’t make it checkable. I wrote about why that’s easy to miss with language models outside your own area of expertise in When AI Is Convincingly Wrong.

A general review can pass while a project-specific architecture review finds a violation in the same code.
A hypothetical comparison drawn from the episode. I don’t know what the developers’ actual review prompts were.

In Windsurf, I mostly used its built-in Memories to keep information and recurring instructions handy. In tests, for example, there were instructions about comments above it() blocks and, later, about using just one expect() per it(). I don’t remember exactly how I saved those instructions. I hadn’t yet worked out a system that would give every developer and their agent access to a shared, versioned record of the architecture.

It was a new version of a familiar software engineering problem. What we needed to know to work on the application lived partly in the documentation, partly in our heads, and partly in the individual contexts of our agents. We were working on the same application without necessarily starting from the same knowledge.

Working out what to do about that would occupy me for months.

It would be easy to conclude that the two developers had used AI badly. That would let me off rather easily as their architect.

I’d spent years learning software architecture and months working out how to use AI. I knew what questions to ask when reviewing an implementation and what I wanted from the design. Even then, as I’d seen in my own discussions of Self-Contained Systems, I couldn’t always see all the consequences of my decisions.

Expecting two people just starting their careers to develop that kind of judgment in a few weeks with the same technology didn’t seem realistic. Often they lacked exactly the knowledge they would have needed to ask the right questions. I could have told them to write better prompts. That would have been about as useful as telling them to write the software correctly.

Learning to question an implementation was precisely what they needed practice in. AI could have helped them with that. It had helped me get into new technical areas. We would have needed time to work through examples together, look at what made a solution suitable, and work out how to check such judgments.

Instead, we were expected to deliver as quickly as possible. We had little time for developing those skills. I increasingly felt that the developers were struggling under those conditions. AI could help them with their assignments. It couldn’t give them the experience or the guidance they needed.

I was having trouble, too. I was trying to design an architecture, learn new technical areas myself, review the implementations, and give both developers the training they deserved. AI made many of those tasks easier. The gap between what the project was expected to deliver and the resources we had was still there.

Putting the modernization strategy into practice would have taken experienced developers and people with other skills, including DevOps and test engineering. We were trying to establish a different way to develop and run software alongside building an application.

The resources we asked for weren’t approved. We knew the problems in the existing system and had outlined a possible way forward. I couldn’t get enough support to put the prerequisites in place.

AI let us learn technologies faster, examine architecture approaches, write implementations, and try solutions. It didn’t follow that it could take the place of the people and skills we needed for the change.

I don’t know what became of our proof of concept. I can’t say how much of that architecture was developed further or put to use.

I handed in my resignation. When I left the company, the experiment ended for me.

Looking back at 2025 and 2026, what strikes me is how quickly the work I could do with AI changed.

At the start of 2025 I was still asking for individual functions. Over the year I used AI for wider investigations, to learn unfamiliar topics, and to help with implementations. By the end of the year, we could build whole components and smaller systems with its help.

A few months later I began handing off well-defined submodules for an AI agent to implement on its own. Now, at the end of 2026, I can work with AI to build complete systems for a domain, from the database to the user interface.

The models got better over those two years. I also had to change how I worked. While I was getting individual functions from the model, I could judge their quality easily enough by myself. As the assignments got larger, I had to work out a more systematic way to check the results. The process had to grow along with what the AI could do.

The reviews with the two junior developers had shown me why. A working implementation with a positive review could still break our architecture rules.

From functions to delegated submodules and complete systems. Simple instructions become systematic guardrails.
As the assignments grew, the way I worked changed too. Later chapters pick up how those individual instructions became systematic rules.

How do I make sure the tenth system follows the same architecture principles as the first? At the end of 2026 I still don’t have an answer I’m entirely satisfied with.

I took some of those questions with me. In early 2026 I started building a platform of my own. I wanted to design the architecture myself and hand the implementation over to AI agents on my own terms.