Skip to content
mentoor

Architecture and boundaries review

For engineers

Module boundaries, coupling and decision records that keep a codebase coherent when agents make most of the changes

See where you stand

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?

Choose one answer

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?

Choose one answer

Check yourself · 3 of 5

Which three parts make up the core of an architecture decision record?

Choose one answer

Check yourself · 4 of 5

Why is a forbidden-import rule in CI better than a sentence in the README for guarding a boundary?

Choose one answer

Check yourself · 5 of 5

What is architecture drift?

Choose one answer

Topics

  1. 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
  2. Coupling, cohesion and duplicated logic4 min read · Agents re-implementing helpers that already exist, shared mutable state and files that grow into everything-modules
  3. 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
  4. Enforcing architecture with automated checks4 min read · Dependency rules, import linters and architecture tests in CI that fail when a change breaks a boundary
  5. 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

110 questions · last verified 2026-12