Structure boundaries and dependencies
The arrangement of modules reflects real responsibilities: related things live together, variation and shared rules have one owner, and dependencies point the right way through narrow contracts.
Use the descriptions below to decide which individual quality references are relevant. Open only the references that can materially affect the current decision, code, or failure.
- Related things live together - Logic, data, and rules that belong together are not scattered across distant files or layers.
- Duplication is intentional or absent - Repeated logic is either eliminated or clearly justified, rather than copied accidentally across the codebase.
- Variation is localized - When behavior varies, the points of variation are narrow and explicit rather than smeared through conditionals everywhere.
- Dependencies and module interactions are explicit and well-shaped - Collaborators, dependency direction, coupling, cohesion, and interface shape work together so modules depend on the right things, for the right reasons, through narrow and comprehensible contracts.
- Shared rules have a single owner - Core rules are defined in one authoritative place rather than being re-stated in multiple modules and tests.
- Boundaries and layers reflect real responsibilities - Module boundaries, layering, boundary crossings, and separation of policy from mechanism are arranged so the structure of the system matches its real responsibilities instead of incidental technical detail.
- Framework does not own the design - The architecture is not merely a mirror of the chosen framework's defaults or constraints.
- Architectural integrity is preserved across domains and interfaces - The architecture keeps a clear organizing principle, respects domain boundaries, preserves intent across APIs and integrations, resists drift, enforces system-wide rules structurally, and remains organized around domain meaning rather than utility sprawl.