Chapter 00 · The Eye-Opener

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.

Simulation 0 — Watch 36 Sprints (3 Years) of Codebase Evolution
Watch how a few innocent "just import it directly" shortcuts bend delivery velocity into a brick wall.
Sprint 0 / 36
Team A: "Ship Fast, No Guardrails" Vel: 100%
Team B: "Lower-Triangular + CI Ratchet" Vel: 100%
Cumulative Features Shipped Over 36 Sprints (Notice where Team B overtakes Team A!)
Click ▶ Play 36 Sprints! Watch the first 6 sprints carefully: Team A actually looks faster at the start — until hidden cycles fuse their graph into a red lump.

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:

Chapter 01 · Leg 1: Structure

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.

Interactive Lab 1 — Toggle Edges, Scramble/Sort, & Fire Change Ripples
Watch the animated packets: smooth green flow downward vs. trapped red signals spinning inside a cycle!
Design Structure Matrix (Click any cell to toggle an import)
⚡ Fire an Animated Change Ripple from a module:
Live Signal-Flow Graph (Particles move along dependencies)
Chapter 02 · Leg 2: Seams & Boundaries

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!

Interactive Lab 2 — Incoming Change Simulator + Secret X-Ray
Fire a product change and watch the impact beams + FR×DP matrix light up side by side.
Architecture A: Sliced by Steps 0 Cycles 3 boxes opened
FR × DP Matrix (Coupled!)
Architecture B: Sliced by Secrets (Parnas) 0 Cycles 1 box opened
FR × DP Matrix (Diagonal!)
Chapter 03 · Leg 3: Time & Git Forensics

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.

Interactive Lab 3A — 6-Month Hotspot Time-Lapse (Real-World Monorepo Data)
Hit Play or drag the month slider. Click any dot to inspect why you should fix or ignore it.
Month 6 / 6
Month 1Month 2Month 3Month 4Month 5Month 6 (Today)
Interactive Lab 3B — Live Commit Pulse: Static Imports vs. Hidden Coupling
Switch to Git Overlay to watch animated commit arcs firing between packages that never import each other.
Chapter 04 · Leg 4: Connection Strength & MIT Axiom 2

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!

Interactive Lab 4A — Connascence Ladder + Live Bug Injector
Pick a coupling level, slide the Distance, then click "Inject Bug" to see whether the compiler catches it or prod crashes!
Same Function (Close)Cross-PackageCross-Service / Team (Far)
Interactive Lab 4B — MIT Axiom 2 Live PR Stream (Margin for Error)
Incoming PRs fly toward your system's "Safe Tolerance Window". Toggle safeguards on to widen the green zone and slash Information Content (bits)!
Live PR Landing Zone (Green Band = Safe System Tolerance)
Chapter 05 · Applied Case Study: TS Monorepo

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.

Interactive Lab 5 — Real Refactoring Simulator
Notice how Propagation Cost stays stubbornly high until the LAST cycle-closing edge is cut — then collapses!
Live DSM
Chapter 06 · Test Your Instincts

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

1. TRIAGE

Follow the Churn

Rank files by Churn × Complexity. Ignore sleeping dragons; pick the top 1–2 painful Hotspots.

2. DIAGNOSE

DSM + Co-Change

Run a module-level DSM to spot above-diagonal cycles, plus Git co-change to find hidden FR × DP leaks.

3. SURGERY

Push Below Diagonal

Use Dependency Inversion (callbacks/ports), Shared Core extraction, Vertical Slicing, or Public Facades.

4. RATCHET

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