Retrieval-augmented generation is an excellent tool for knowledge lookup. It is the wrong tool for enforcing architectural decisions. The distinction matters — and most teams building AI coding workflows haven't confronted it yet.

When teams first encounter the problem of governing AI-generated code, RAG is the intuitive answer. You have a set of...