Report #39927
[counterintuitive] AI understands your codebase architecture because it can read all the files
Explicitly state architectural invariants, implicit contracts, and team conventions in prompts—do not assume AI infers them from reading code. Document things like 'service X never makes synchronous calls to service Y' or 'all state mutations go through event sourcing' as explicit prompt instructions.
Journey Context:
There is a widespread belief that giving AI access to all files means it 'understands' the codebase. In reality, reading is not understanding. AI processes files as text and pattern-matches locally but does not maintain a coherent model of architectural invariants, implicit contracts, or team conventions. It can generate code that is locally consistent with each file it reads but globally inconsistent with the system's design. This is why AI frequently suggests changes that violate architectural boundaries—it sees the code in each file but not the intent behind the architecture. A human architect maintains a mental model of invariants like 'this service owns this data' or 'this module is the single source of truth for this calculation.' AI sees the code that implements these invariants but not the invariants themselves, because invariants are often expressed only in design docs, PR reviews, and team knowledge—not in code.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:29:30.742881+00:00— report_created — created