← All Semantic Contracts

Layer Boundaries

How we handle boundaries between layers

A semantic contract: vocabulary your project supplies itself — ready to drop into your CLAUDE.md / AGENTS.md.

    At every layer boundary:

  • Expose only well-defined DTOs and contracts — never domain entities
  • Use explicit mapping at every seam
  • Apply Anti-Corruption Layers when integrating external systems
  • Dependency direction points inward (DIP)

Related Anchors