# Controllers Business logic and orchestration layer ## Purpose - Handle all business logic and state mutations - Coordinate between services and stores - Centralize complex operations ## Layout ``` controllers/ ├── context.md # This file └── chat-controller.ts # Chat operations and state management ``` ## Scope - In-scope: Business logic, state orchestration - Out-of-scope: UI rendering, direct store access from components ## Entrypoints - `chatController` - All chat operations ## Dependencies - Stores for state updates - Services for external operations