Repository & Team Structure

How a repository is laid out, monorepo against polyrepo, ownership without silos, and the design reviews and RFCs that stop decisions living in one head.

Repository Structure

A folder tree is a navigation aid and a change-locality claim. It should reflect how engineers actually move through the system, not a template someone copied.

Q · How should the top-level folders be laid out, and why is every answer someone gives me a template from a different project?
Monorepo vs Polyrepo

Atomic changes, tooling, ownership, build scale, access control and release independence — six axes that pull in different directions. There is no universal answer, and anyone who gives you one is describing their last job.

Q · One repository or many, and which of the arguments people make about this actually apply to us?
Code Ownership

Somebody has to be accountable for each part of the system, and the mechanism that achieves that is the same mechanism that creates silos. The tension is real; pretending it is not is how both failures happen.

Q · How do I get clear accountability for every part of the codebase without producing a team nobody else can change code around?
Bus Factor

Critical knowledge living in one head is a design risk, not an HR risk. It shows up in the estimate for every change to that area, long before anyone leaves.

Q · How many people would have to be unavailable before we could not safely change this part of the system, and what does the answer cost us today?
Knowledge Sharing

Code review, documentation, pairing, design review and postmortems each spread a different kind of knowledge at a different cost. Choosing between them starts with naming which kind is missing.

Q · Which knowledge is failing to spread here, and which mechanism actually spreads that kind?
Design Review
▶ lab

Before a high-impact change, discuss requirements, options, trade-offs, migration, failure modes, security and observability — because this is the last point at which a boundary can still be moved.

Q · When is the right moment to review a design, and what has to be on the table for the review to be worth an hour of several people?
RFCs

Problem, Goals, Non-Goals, Design, Alternatives, Risks, Rollout, Open Questions. A written proposal for decisions too large for a meeting — and a reliable source of theatre when applied to decisions that are not.

Q · When is a written proposal worth more than a conversation, and how do I tell whether our RFC process is producing decisions or documents?