โ† The field guide

SPECIMEN No. 002 ยท Repository doctrine

Monorepo

The belief that proximity of code can create proximity of teams, builds and arguments.

๐Ÿ“ˆ Expanding
๐Ÿ  Habitat
Organizations that share code
๐Ÿฆˆ Natural predator
Team autonomy
๐Ÿค’ Common symptom
One pull request changes everything

โœ… GOOD FIT

  • Code that always ships together, edited by one team
  • Shared types consumed by both frontend and backend
  • Agents need the whole product in one context

๐Ÿšฉ TOO FAR

  • A one-line README fix waits 45 minutes for CI
  • Only one person on earth can fix the build
  • Every team's rollback drags three other teams along

๐ŸŽฏ SWEET SPOT

Super Reasonable

Keep code that ships together in one repo, with a build that only tests what changed. When a team needs its own release cadence and rollback, give it a separate repo and a versioned contract instead of a shared queue.

IN THE WILD ยท 1 STORY

Observed Monorepo