Extreme AI Programming · Chapter 11

Standards That Talk Back

Every team has standards, written down or not. For an AI-first team, the question isn't whether to have standards, but what form they take, because an agent will only follow the standards it can find, and only as they were when it found them.

Three kinds of standards

Standards come in roughly three kinds.

The first are the established principles of good software, the ones the profession has argued over for decades and largely settled. DRY: do not repeat yourself. SOLID: the five principles of object-oriented design. KISS and YAGNI: keep it simple, and don't build what you don't yet need. Separation of concerns. Composition over inheritance. The Law of Demeter. The twelve-factor methodology for cloud-native services. A team does not need to rewrite any of these. It needs to decide which apply and switch them on. They are close to a checklist and should be treated as one.

The second is security baselines. The OWASP Top Ten and its more detailed cousin, the Application Security Verification Standard. Least privilege. Secure defaults. Secrets kept out of code and out of logs. Input validated at every boundary. Dependencies scanned for known vulnerabilities. Again: decide, tick, enforce. A team that writes its own security guidance from scratch is usually writing a worse version of something that already exists.

The third kind is where the real work lies: the team's own architectural decisions, and the ones it inherited from the platforms it chose. Pick a database, and you inherit its conventions; pick a framework, and you inherit dozens more. Add the team's own strongly held views on how services talk to each other, where state lives and how errors surface, and you have the standards that make your codebase yours. You can't tick these from a list. You have to write them, own them, and keep them current.

From passive to active

The failure at Level 2 is that all three kinds end up as passive text: a folder of Markdown files that may or may not be read and that go out of date the moment someone changes the code. The fix is not better documents. It is a different relationship between the standards and the agents meant to follow them.

Adopting the Model Context Protocol (MCP) pattern turns this concept into a workable practice. Rather than leaving it to chance that an agent stumbles upon the right document, the agent queries a service to retrieve the exact rules needed for a specific modification in that part of the codebase. With both standards and direct visibility into the repository, the agent evaluates the code's current state, or the changes it generated, against the prescribed guidelines. If the target pattern conflicts with the implementation, the agent doesn't choose arbitrarily; instead, it logs the discrepancy (drift) directly with the central service.

Drift is a job for a human

Resolving registered drift demands human intervention. It can be handled in only two ways. If the drift stems from an intentional choice, a conscious shift made by the team, the team must update the standard and formally document the decision. The team must update the standard and formally document the decision. If it was unintentional, the team must schedule work to bring the codebase back in line with the standard. What is completely unacceptable is the default habit of Level 2 teams: letting the standard and the code stay out of sync, forcing subsequent agents to guess which source of truth to follow.

Here, the facet framework introduced in the roles chapter demonstrates its true value. When architectural or implementation drift surfaces in authentication, it automatically routes to the security owner; when variance appears in the component library, it routes directly to the design lead. Consequently, standards move beyond static, historical documentation and become an active, continuous dialogue between the evolving codebase and the team.