Design software like a submarine
Why explicit interfaces, data ownership, and boundary checks help contain the impact of AI-assisted changes.

Design software like a submarine. If one compartment floods, watertight bulkheads keep the damage contained. It’s a useful way to think about changes in a codebase, especially when AI agents are making them.
Generating a new feature is getting easier, but understanding everything it touches doesn’t automatically get easier with it. A seemingly local task can still spread through shared data, hidden assumptions, and dependencies nobody remembered to mention in the prompt. That’s why I keep coming back to the idea of strong boundaries.
A well-defined component gives an agent room to work. Its implementation can change substantially while the rest of the system continues to rely on the same contract. You also have a manageable scope for reviewing and verifying the result.
Folders alone don’t provide that containment, neither do separate services. The bulkheads are explicit interfaces, clear data ownership, controlled dependencies, and checks at the boundaries.
Working inside a compartment and moving a bulkhead deserve different levels of attention. Replacing an implementation within an agreed contract can be routine. Changing that contract requires understanding what depends on both sides of it.
Those boundaries will evolve. The important thing is recognizing when a local task has become an architectural change and acting accordingly.
Before handing the next task to an agent, it’s worth asking: if this compartment leaks, how far can the water go, and what will stop it?