@pontusab And inside the core: the domain is pure (models, rules, errors, no I/O).
Services connect it to the real world: input comes in through use cases from HTTP or the worker, and goes out through repositories and the queue.
What about putting the application at the center?
application/ = the core: the domain + its adapters to the outside world
apps/ = hosts: where the core runs and gets exposed (HTTP, worker, web)
kernel/ = infra: config, clients, data
Apps stay thin, and everything else sits around the core. Everything else is around it