AI-generated code often struggles with complex distributed patterns like the Saga Pattern for consistent transactions and the Outbox Pattern for reliable event publishing, frequently defaulting to monolithic assumptions. It also tends to violate layered architectures by directly accessing data layers from presentation or business logic.