Why Codebases Die — And How to Engineer One That Lasts
Software doesn't rust physically. It dies when every small change triggers a chain reaction. Hit Play below to watch two identical teams ship features for 36 sprints — one without guardrails, one using MIT Axiomatic Design & CI ratchets.
The Lower-Triangular Matrix Is Only 1 Leg of a 4-Legged Chair
Click each leg below to see what happens when only that leg is missing:
The Lower-Triangular Matrix & Animated Blast Waves
List your modules in order from bottom foundation (1) to top shell (5).
Green cells below the diagonal flow cleanly downward. Red ! cells above the diagonal create feedback loops where changes bounce around forever.
Why a 0-Cycle Triangle Can Still Cause Shotgun Surgery
Two architectures below both have 0 cycles. Yet when real business requirements change, one forces you to tear open every folder while the other absorbs the change inside a single sealed vault. Turn on Secret X-Ray Mode to see why!
Time-Lapse Hotspots & Invisible Temporal Coupling
Static analysis is a photograph; Git history is a movie.
Scrub the 6-month timeline below to watch real acme-workspace files drift into the red Hotspot fire zone — while big "Sleeping Dragons" sit motionless on the left.
Connascence Bug Injector & The MIT Information Axiom
Two green downward arrows in a matrix can behave completely differently at 2 AM. Try clicking "Inject Realistic Developer Bug" on each level of the Connascence ladder — then run the MIT Axiom 2 Live PR Target Simulator to physically see what Information Content ($I = -\log_2 P$) means!
Live Surgery on Your Real Codebase (pkg/web & pkg/daemon)
Switch between pkg/web and pkg/daemon, check off the real surgical cuts from our audit, inspect the exact before/after TypeScript pattern, and watch both the DSM and Propagation Cost transform in real time.
Quick Diagnosis Challenge — Which Leg Is Broken?
Three realistic production headaches. Pick the broken leg to test your architectural radar:
Your Monday-Morning Operating Loop
Follow the Churn
Rank files by Churn × Complexity. Ignore sleeping dragons; pick the top 1–2 painful Hotspots.
DSM + Co-Change
Run a module-level DSM to spot above-diagonal cycles, plus Git co-change to find hidden FR × DP leaks.
Push Below Diagonal
Use Dependency Inversion (callbacks/ports), Shared Core extraction, Vertical Slicing, or Public Facades.
Lock It in CI
Baseline existing violations in a shrinking allowlist (like boundaries.allow.json); fail CI on violation #N+1.
Essential Papers
- David Parnas (1972) — On the Criteria to Be Used in Decomposing Systems into Modules (6 pages, life-changing)
- MacCormack, Rusnak, Baldwin (2006) — Exploring the Structure of Complex Software Designs (MIT Propagation Cost: Linux vs. Mozilla)
- Sangal et al. (2005, MIT CSAIL) — Using Dependency Models to Manage Complex Software Architecture
- Mo, Cai, Kazman, Xiao (2016) — Decoupling Level & Architecture Hotspot Patterns
Best Books (Practical → Deep)
- Vlad Khononov (2024) — Balancing Coupling in Software Design (Best modern unified guide)
- Adam Tornhill (2024) — Your Code as a Crime Scene (2nd ed.) (Hotspots & Git forensics)
- Ford & Parsons — Building Evolutionary Architectures (CI Fitness Functions)
- Eppinger & Browning (MIT Press) — Design Structure Matrix Methods and Applications
- Nam P. Suh (MIT) — Axiomatic Design: Advances and Applications