Part I: Rethinking the Work and Planning the Foundations
Chapter 1: Reassessing Assets and Roles
Imagine a team demo. You ask an assistant to turn a registration page into a complete business module, and forms, lists, and statistics soon appear on the screen. The presenter walks through the buttons, and everyone feels the work is going well; but when someone asks how deleting a record would affect the statistics, or whether the old data can be migrated, no shared agreement can be found on the spot. This is a teaching scenario: the code is already on the screen; what is missing is the basis that explains how this code is supposed to work together. Adding more pages at this moment will not answer the question by itself. You need to take stock again of which things have merely been generated and which can support the next modification.
For the past few decades, the basic unit of software engineering has been code. Programmers typed out logic line by line, and large, properly running codebases were regarded as the core assets of individuals and companies. The arrival of AI has directly triggered a violent "code inflation."
When tens of thousands of lines of runnable code can be generated in a few minutes, the cost of generating code has already plummeted. In this era, verbose code that has neither been rigorously planned architecturally nor well organized is no longer an asset at all; it has instead become an extremely heavy maintenance burden.
The most valuable assets have changed. A clean context, clear and unambiguous business-logic contracts (such as API definitions and data-model mappings), and an "engineering blueprint" that records the dependencies of the entire system are now the core assets. The blueprint and the context can provide a basis for rebuilding, but they cannot guarantee that the rebuilt result is correct; the rebuilt implementation must still be accepted against fixed criteria. Conversely, if the blueprint is chaotic, or the context retains conflicting constraints, the fact that the current code runs is not enough to show that the work meets the goal.
To become the architect who directs the AI, you must first, with great care and objectivity, recognize the fatal weaknesses of this "AI implementation crew." Do not be fooled by its fluent natural language or its seemingly sophisticated code fragments; large models have two structural weaknesses:
The first is the "self-consistency trap" — in other words, using apparently coherent logic to conceal a flaw. A large model is in essence a probability-prediction machine, and its output often follows the assumptions of the current conversation and remains attached to earlier choices. If it laid a crooked brick in an earlier step — say it wrote a piece of foundational data-flow logic wrong — then when you ask it to fix a bug caused by that mistake, it usually will not volunteer, "the underlying design is wrong; we need to restructure." Instead, to make that crooked brick look reasonable, it will force the implementation to appear coherent through convoluted patches, or even a wall that is more crooked still. It will mend, with nested if-else statements or clever tricks, a problem that should never have existed at the architectural design level in the first place. The logic of the code rapidly descends into growing disorder, until the code no longer follows the blueprint.
The second is "context collapse." The "mental capacity" (context window) of the AI implementation crew is limited, and its attention mechanism degrades severely as the conversation grows longer. In the same long conversation, as the number of modifications you ask for increases, it gradually forgets the architectural constraints, the data model, and even the core business goals defined at the start. Later on, it can only pile up code instinctively from local, short-term memory, leaving earlier and later logic in serious conflict. This is an important reason why long conversations can easily turn code into spaghetti and let a project slip out of control.
Given code inflation and these specific weaknesses of the AI implementation crew, we must fundamentally change how we work as developers. You are no longer the mason who mixes the mortar and lays the bricks yourself; you need to hand over the work of writing code, and put all your energy into the architect's work along the following four dimensions:
- Project decomposition: firmly resist the urge to throw a vague, grand requirement straight at the AI. You need to break the system's goals down systematically into engineering modules fine-grained enough for the AI to understand, make explicit what comes first and what comes later, and construct a rigorous dependency tree.
- Setting the standards: before letting the AI write any substantive code, set the "implementation acceptance criteria" first. Tell it explicitly what the input parameters are, where the expected output boundaries lie, which design patterns it must follow, and which core data structures it must on no account touch or modify. Use rules to pin its generation boundaries firmly in place.
- Engineering oversight: stay alert and review every segment of code the AI generates. The standard for review is not "does it run" but "does it match the blueprint laid down at the start." Watch for whether it has introduced unnecessary complexity or broken the decoupling of the underlying modules.
- Calling a decisive stop: this is the architect's most central discipline. When you find the AI caught in the "self-consistency trap," slapping random patches around a bug, you must overcome the programmer's instinctive urge to "just fix it by hand." Do not keep wrestling inside the contaminated context. Pause the implementation outright, discard this poor-quality "construction material," return decisively to the last baseline supported by acceptance material, and reassemble the logic within the verified scope.
The role shift of this chapter comes down to four tasks: planning the blueprint, setting standards, overseeing implementation, and knowing when to stop. Code can be regenerated; the basis for deciding how it is generated and how it is accepted must nonetheless be maintained by someone. Next, this responsibility is carried into project decomposition and milestone setting.