Slide 25
Slide 25 text
PICK ONE... THAT MAKES ALL EASY
If your service layer can import repositories directly, and
repositories can call external services, you have a dependency
soup. Agents will swim in it and bring back whatever they catch.
Hexagonal is not the only answer. Layered architectures can be perfectly agent-friendly—with discipline on two fronts:
A layered architecture that behaves well with agents tends to look more like "hexagonal in practice" anyway: domain rules isolated,
adapters thin, wiring at the edges. At that point, the debate becomes mostly about naming and packaging, not capability.
If domain behavior requires spinning up a database, your agent
loop will be expensive and noisy. You can still succeed, but you
will spend more time.
1 2
MAKE BOUNDARIES ENFORCEABLE MAKE YOUR DOMAIN TESTABLE WITHOUT INFRASTRUCTURE
VALIDATE 3