Architecture and boundaries review
For engineers
Module boundaries, coupling and decision records that keep a codebase coherent when agents make most of the changes
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
An agent adds an import so that a route file can query the database directly. What is wrong with this change?
Check yourself · 2 of 5
An agent adds a new function formatMoney, but the repo already has one in lib/money.ts. What is the best review response?
Check yourself · 3 of 5
Which three parts make up the core of an architecture decision record?
Check yourself · 4 of 5
Why is a forbidden-import rule in CI better than a sentence in the README for guarding a boundary?
Check yourself · 5 of 5
What is architecture drift?
Topics
- Module boundaries and dependency direction4 min read · Layers, allowed imports and dependency cycles, and agents that reach across a boundary because it is the shortest path
- Coupling, cohesion and duplicated logic4 min read · Agents re-implementing helpers that already exist, shared mutable state and files that grow into everything-modules
- Decision records that agents can follow4 min read · Short ADRs with context, decision and consequences, linked from AGENTS.md or CLAUDE.md so agents and new teammates respect them
- Enforcing architecture with automated checks4 min read · Dependency rules, import linters and architecture tests in CI that fail when a change breaks a boundary
- Spotting architecture drift across many changes4 min read · How small agent changes add up to erosion, periodic architecture reviews and a refactoring budget
Start here
- Architectural Decision Records (adr.github.io) (opens in a new tab)DocsFree
Templates and examples for recording context, decision and consequences.
- Software Architecture Guide (martinfowler.com) (opens in a new tab)ArticleFree
Clear essays on layers, coupling and keeping a design healthy over time.
- Architectural fitness function (Thoughtworks Technology Radar) (opens in a new tab)ArticleFree
The idea behind automated checks that guard an architecture.
Helps to know first
110 questions · last verified 2026-12