Section 4 of 25

Where SLAT comes from

Contents

SLAT is not new in its parts. It combines five well-known ideas and fixes the choices each of them leaves open.

Idea What SLAT takes from it What SLAT decides on top
Layered / Clean Architecture Dependencies point toward the domain; I/O sits at the edge. The layers are crates, so the compiler checks the direction. Exactly five kinds.
Vertical Slice Architecture Code is grouped by feature, not by technical role. Every slice has the same file names with the same roles.
The Elm Architecture, NgRx, Redux State changes through messages and a pure update function. Only for state that passes the three-question test (section 9.1). Effects return as messages.
Functional core, imperative shell Decisions are pure; side effects are executed separately. logic.rs and update.rs are pure by rule, and a script checks it.
Ports and adapters (hexagonal) The outside world is reached through an interface. No trait until there are two implementations. The drivers tier and platform contracts play the role of ports.

The difference from each of them alone is that SLAT is complete and mechanical. Every kind of code has exactly one place, and the important rules are enforced by Cargo.toml or by a check that runs in CI.