The application layer in Teable is responsible for orchestrating domain behavior and coordinating ports. It manages cross-aggregate workflows, transactions, and event publishing boundaries.
Crucial Rule: The application layer must not contain domain rules. All business logic and domain rules must be delegated to domain services, entities, or visitors. If you are implementing logic that determines how a specific entity behaves, it belongs in the domain layer; if you are implementing logic that coordinates multiple entities or handles a high-level workflow, it belongs in the application layer.