Conway's Law: Why Software Mirrors the Org Chart by kirupa (https://www.kirupa.com/me/index.htm) | filed under Teams & Leadership (https://www.kirupa.com/teams_and_leadership/index.htm) TL;DR: The systems we build end up copying how the people who build them talk. Teams that talk all day build parts that connect tightly, and teams that barely talk build parts that barely connect. Melvin Conway described this in 1968, and it's called Conway's law. We can also use it on purpose, by shaping teams around the design we want. - Crumb & Co.'s Biscuit sends pre-orders to Pinwheel in an overnight CSV file, because the two teams behind them talk about once a month. - Coding agents follow the same lines, since they work with the access and context of the person running them. - Shaping teams around the design you want, like putting Wes and Yara on one crew to build an order API, is called the inverse Conway maneuver. - Draw your teams over your systems, then circle boxes two teams share, links between teams that never talk, and boxes nobody owns. Every night, a CSV file carries the holiday pie pre-orders that Biscuit took that day over to Pinwheel, the 15-year-old ordering system Crumb & Co. inherited when it bought Rolling Pin Bakeries. Drawing from scratch on a whiteboard, nobody would connect two ordering systems in one company with a file that only moves in the middle of the night. As it turns out, that file is not really a technical choice. It is the shape of how two of our teams talk to each other, and that shape sneaks into software a lot more often than any of us would like. In this article, we'll look at why the things we build keep copying how our teams are organized, and how we can use that to get the system we actually want. Onwards! Two Teams, One Bakery Let's start with our people. After the acquisition, two teams at Crumb & Co. build software. Wren, Wes, and Petra are the Biscuit team, and they work on Biscuit, the help desk bot on our website. Yara and one other developer are the ordering team, and they keep Pinwheel running for Rolling Pin's 6 shops. Here are our two teams, along with how often they talk: [Image: Two teams. The Biscuit team is Wren, Wes, and Petra, and they talk all day in one chat. The ordering team is Yara and a teammate, and they keep Pinwheel running. Between the two teams is a dashed line labeled one call a month.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_teams.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_teams.png?v=750af5856dc4) The Biscuit team lives in one chat channel and talks all day. Wren and Yara talk about once a month, on a call, when something needs both teams. Next, let's look at the systems our two teams look after. There are three of them, and they are connected as follows: [Image: Three systems and the links between them. Biscuit, the website help desk, sends pre-orders to Pinwheel, the ordering system for the 6 Rolling Pin shops, as a CSV file overnight. Pinwheel's menu comes back to Biscuit every night. Pinwheel's orders are copied every 5 minutes into our orders, which serve Crumb & Co.'s shops on Elm Street and Main Street.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_two_systems.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_two_systems.png?v=b6de437b9670) Biscuit writes the day's pre-orders into a CSV file, and Pinwheel picks that file up in its 2am import (and, since October 27, in a second run at 4am). Pinwheel's menu comes back to Biscuit once a night. A sync job that Wren wrote also copies Pinwheel's orders into our own orders database every 5 minutes. Each of these connections made sense on the day someone built it. Back in October, Wren asked Yara's team for a better way to get pre-orders into Pinwheel. Yara said not this year, because Pinwheel is frozen from November 1 to January 5. So, Biscuit writes into the file that the 2am import already reads. Laying the Org Chart Over the Systems What happens if we draw our two teams right on top of the systems they look after? Let's give it a shot: [Image: The same three systems with the two teams drawn behind them. The Biscuit team's area holds Biscuit and our orders. The ordering team's area holds Pinwheel. Every link between Biscuit and Pinwheel crosses the gap between the two teams, and a note points at the CSV file: our monthly call.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_overlay.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_overlay.png?v=611a5b0cdc32) Every link between Biscuit and Pinwheel crosses the gap between our two teams. The two slow connections (pre-orders overnight and a menu once a night) sit exactly where the teams talk the least. The 5-minute sync is fast for a different reason: Wren wrote it alone, reading Pinwheel's orders without anyone on Yara's team involved. That works great right up until Yara's team changes something the sync depends on and nobody thinks to mention it. Nobody planned it this way. It is a lot like a sandwich cookie baked by two crews who never compared notes: [Image: A sandwich cookie made by two crews. The top cookie, from the morning crew, is small and round. The bottom cookie, from the night crew, is big and square. The filling squishes out of the gaps, and a note says: Nobody talked!] (https://www.kirupa.com/teams_and_leadership/images/conways_law_cookie.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_cookie.png?v=3221a43cac36) Each half is a perfectly good cookie on its own. The trouble only shows up where the two halves are supposed to meet. What Is Conway's Law? What we just saw is the shape of a system copying the shape of the conversations between the people who build it. Where people talk a lot, the parts they build connect tightly. Where people barely talk, the parts barely connect. This pattern has a name, and it is called Conway's law. It comes from How Do Committees Invent? (https://www.melconway.com/Home/Committees_Paper.html), a paper Melvin Conway published in Datamation magazine in April 1968. (The Harvard Business Review had turned it down (https://www.melconway.com/Home/Conways_Law.html) because he had not proved his thesis.) Here is the line everyone quotes: The basic thesis of this article is that organizations which design systems (in the broad sense used here) are constrained to produce designs which are copies of the communication structures of these organizations. Fred Brooks later called this idea Conway's law in The Mythical Man-Month, and the name stuck. Conway's own example involves eight people at a contract research company who were going to build two compilers (programs that turn code into something a computer can run): [Image: Conway's 1968 example. Eight people built two compilers. The 5 people on the COBOL job produced a COBOL compiler that ran in 5 phases. The 3 people on the ALGOL job produced an ALGOL compiler that ran in 3 phases.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_compilers.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_compilers.png?v=4aa869f41377) Five people got the COBOL job, and their compiler ran in five phases. Three people got the ALGOL job, and their compiler ran in three. Conway's other example is even more blunt. Two military services were told to build one weapon system together, and here is how he summed up the result: "After great effort they produced a copy of their organization chart." Why Does Software Copy the Org Chart? Conway's argument is pretty simple once we are looking for it. Two parts of a system can only work together if the people building them agree on how they connect. For Biscuit and Pinwheel, that agreement happened on one call in October: [Image: Wren asks Yara: What if Biscuit writes a CSV? Yara answers: Only if it matches our 2am import. Under them, Biscuit and Pinwheel are joined by one thing, pre_orders.csv, which is exactly what the two of them agreed on.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_handshake.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_handshake.png?v=8742af0d61ba) Everything our two systems share goes through that one agreement. If Wren and Yara had never talked, there would be no connection at all. Conway's law isn't an exact recipe, and two teams that talk all day can still pick a nightly file on purpose. At Crumb & Co., though, how often two teams talk lined up with what they built: [Image: Three rows. Teams that talk all day build parts that call each other live. Teams that talk once a month build parts that swap a file every night. Teams that never talk build parts that each keep their own copy of the data, with no connection at all.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_talk_to_links.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_talk_to_links.png?v=ef726b2b2d74) Teams that talk all day build parts that call each other live. Teams that talk once a month swap a file every night. Teams that never talk each keep their own copy of the data, and those copies slowly drift apart. What about coding agents? An agent writes code in minutes, but it works with the access and the context of the person running it. When Wes asks his agent to fix a pre-order bug, it can change Biscuit's code, while Pinwheel is off-limits and frozen: [Image: Wes and his coding agent sit inside the Biscuit team's area, with access to Biscuit's code. Pinwheel sits in the ordering team's area behind a lock, frozen from Nov 1 to Jan 5. The agent's change goes the only way it can: into the CSV file that Pinwheel imports at 2am.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_agent_door.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_agent_door.png?v=956c61417b63) So the agent's fix goes the only way it can, into the CSV file. Agents make each team faster, but they do not change who talks to whom. This happens well outside of bakeries, by the way. Researchers at Harvard Business School compared pairs of software products (https://www.sciencedirect.com/science/article/pii/S0048733312001205) that did the same job. One product in each pair came from a loosely connected group (like an open source project), and the other came from a tightly knit company team: [Image: Two products that do the same job, drawn as parts and the links between them. On the left, a product built by a loosely connected group: its parts sit in tidy clusters with only a few links between clusters. On the right, a product built by one tightly knit team: links run from almost every part to every other part.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_mirroring.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_mirroring.png?v=4e03a841ebd5) In every pair, the loosely connected group's product was more modular. The researchers measured how far a change could spread through each codebase. In the tightly knit team's product, a change in one part had up to eight times as much potential to ripple into the others. When Does the Mirror Hurt? Most of the time, nobody notices Conway's law. We notice it when a small change has to cross from one team to another. In mid-November, Petra asks for something that sounds tiny: [Image: Petra asks for a gluten-free tag on pies on November 14. The tag has to be added to Pinwheel's menu by the ordering team, which is frozen until Jan 5. Then both teams have to agree on a new column in the nightly menu export, and then the Biscuit team has to show it in Biscuit's answers. Customers see the tag on January 7, 54 days later.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_gluten_free.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_gluten_free.png?v=fd5bf034253a) A gluten-free tag needs a new field in Pinwheel's menu, a change to the nightly export, and a change to Biscuit's answers. Two of those changes belong to Yara's frozen system, so one little tag is going to take 54 days. The other way the mirror hurts is quieter. The space between two teams often belongs to nobody, so somebody ends up watching it by hand. In mid-October, Wes spent 2 days building a morning check for exactly that: [Image: Four steps from left to right. Overnight, Pinwheel's import skips 3 pre-orders from customers with apostrophes in their names. At 6am, someone counts the pre-orders in the CSV against the ones that reached Pinwheel, and the counts don't match. They text Yara and Wren. Before 7am, Yara types the 3 orders into Pinwheel by hand.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_six_am_check.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_six_am_check.png?v=2a9dcd8c8802) Twice in November, the import skipped orders from customers with apostrophes in their names (3 orders the first time and 2 the second). Both times, the 6am check caught it, and Yara typed the orders in before 7am. That is a good save, and it is also a person doing a job that no system owns. How Do We Use Conway's Law on Purpose? If systems copy teams, then we can run Conway's law in reverse. We pick the system we want first, and then we shape the teams so they will build it. In December, Wren wrote a one-page memo asking the owner to approve a small order API for Pinwheel once the freeze lifts. Here is the design it describes: [Image: The design Crumb & Co. wants. Biscuit sends each pre-order to a new order API the moment a customer places it, and the API puts it straight into Pinwheel. Under them, the old overnight CSV path is drawn dashed and labeled: backup until the API has a clean week.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_target.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_target.png?v=1b2fbd891619) Biscuit will send each pre-order into Pinwheel the moment a customer places it, and the old CSV import will stay around as a backup until the API has had a clean week. The owner approved it from her phone at 5:40 the next morning. If Wren's team built Biscuit's half of the API and Yara's team built Pinwheel's half, talking once a month, we would most likely get an API shaped a lot like a nightly file. So the memo puts one person from each team together first: [Image: Two rows. Before: the Biscuit team (Wren, Wes, and Petra) and the ordering team (Yara and a teammate) are joined by a dashed line labeled one call a month. From January 6 to February 1: Wes and Yara sit together as the order API crew between the two teams, connected to both, and they talk every day.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_inverse.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_inverse.png?v=7118aca53b68) From January 6, Wes (who came over from Rolling Pin and knows Pinwheel well) and Yara build the API as one small crew, and they talk every day. Wes still belongs to the Biscuit team, and Yara still leads the ordering team. For about four weeks, though, the seam between the two teams has its own crew, and Biscuit switches over to the API on February 1. Changing the teams so they will produce the design we want is known as the inverse Conway maneuver. Jonny LeRoy and Matt Simons of Thoughtworks named it in 2010. The Thoughtworks Technology Radar (https://www.thoughtworks.com/radar/techniques/inverse-conway-maneuver) describes it as "evolving your team and organizational structure to promote your desired architecture." The bigger version of this move is permanent, like a new orders team that owns every order from every channel. Crumb & Co. started with the smallest version that could work. Matthew Skelton and Manuel Pais built a whole book, Team Topologies (https://teamtopologies.com/key-concepts) (2019), around designing teams this way. We will lean on it in Platform Teams vs. Embedded Squads (https://www.kirupa.com/teams_and_leadership/platform_vs_embedded.htm). When Should We Leave the Mirror Alone? A seam between two teams is not automatically a mistake. A clean boundary lets each team change its side without asking the other, and that is usually a good thing. What hurts us is a connection that only moves overnight and that nobody owns. Right after the switch, Wren wanted to rewrite the rest of Pinwheel, and Yara wanted to keep wrapping it piece by piece. With an API as the one seam between the teams, Yara's way works fine. Each team can keep changing its own side while the API stays put. Reorganizing also has real costs. The code does not move when the boxes on the org chart move, and people lose teammates they trusted. Conway wrote that "flexibility of organization is important to effective design," while Team Topologies pushes toward keeping good teams together for years. Both are right, so a good rule of thumb is to reorganize rarely and on purpose, around a design you can actually draw. Try It This Week You can do this exercise in about an hour with a whiteboard (or a big sheet of paper and some markers): 1. Draw your system's main parts as boxes, with a line for every connection between them. 2. Draw each team as a tinted area around the boxes it changes. 3. Next to every line that crosses between two teams, write how often those teams actually talk. 4. Circle every place where the system and the teams disagree. There are three kinds of disagreement to look for, and here they are on a small sample sheet: [Image: A worksheet. Four systems are drawn as boxes, and two teams are drawn as tinted areas behind them. Marker 1 sits on a box that both teams change. Marker 2 sits on a connection between two teams that never talk. Marker 3 sits on a box that no team owns.] (https://www.kirupa.com/teams_and_leadership/images/conways_law_try_it.png) (https://www.kirupa.com/teams_and_leadership/images/conways_law_try_it.png?v=dd1b58f5ae96) Those three spots are where trouble tends to show up first. Pick one, and decide whether to change the code, change the teams, or change how often those teams talk. Frequently Asked Questions What Is Conway’s Law in Simple Terms? The way a system is built ends up copying the way the people who build it talk to each other. Parts built by people who talk all day connect tightly, and parts built by people who rarely talk connect loosely or not at all. Melvin Conway put it in writing in 1968. Who Came Up With Conway’s Law? Melvin Conway described it in a paper called How Do Committees Invent?, published in Datamation magazine in April 1968, after the Harvard Business Review turned it down. Fred Brooks later called the idea Conway’s law in The Mythical Man-Month, and the name stuck. What Is the Inverse Conway Maneuver? It means running Conway’s law in reverse. We decide on the system we want first, and then we shape our teams so their conversations match that design. Jonny LeRoy and Matt Simons of Thoughtworks named it in 2010, and the book Team Topologies builds on it. Does Conway’s Law Still Apply When AI Agents Write the Code? Yes. A coding agent works with the access and context of the person running it, so it can only change what that person’s team can change. Agents make each team faster, but the seams between teams stay where they are. Conclusion Ok! It is time to wrap things up. We started with a CSV file that moves between Biscuit and Pinwheel in the middle of the night, and it turned out to be a copy of a once-a-month call between two teams. That is Conway's law in action. The systems we build copy the way the people building them talk. Our agents follow the same lines, because they work with our access and our context. The mirror works in both directions too. If we want a real order API, we can put the people who will build both sides of it on one crew first and let the code follow. The honest catch is that the code follows slowly...a new crew takes a day to form, and the old seams can take a year to go away. If you want to keep going, Principal-Agent Problems (https://www.kirupa.com/teams_and_leadership/principal_agent_problems.htm) looks at what happens when the people (and agents) doing the work get rewarded for something other than what we want. And the next time you run into a nightly CSV import, go find out which two teams it connects. I bet they don't talk much! Before you go, here are a few things you can do: 1. Test your knowledge by taking the quiz below. 2. Read the next article in the series, Principal-Agent Problems (https://www.kirupa.com/teams_and_leadership/principal_agent_problems.htm), or check out some related content: - Platform Teams vs. Embedded Squads: When to Centralize (https://www.kirupa.com/teams_and_leadership/platform_vs_embedded.htm). When to build shared pieces once, and when to keep experts inside each team. - Product Builders, AI Agents, and the One-Pizza Team (https://www.kirupa.com/product_development/product_builders_one_pizza_team.htm). Why AI agents are shrinking product teams down to one pizza. - Multi-Agent Systems (https://www.kirupa.com/ai_fundamentals/multi_agent_systems.htm). How agents split up work, and why one agent is usually enough. 3. Stuck on something, or curious about a detail we skipped? Ask on the forums (https://forum.kirupa.com/), and we’ll help you out. [Mastery Quiz] Test your knowledge! Take the Conway's Law: Why Software Mirrors the Org Chart Quiz: https://www.kirupa.com/quizzes/conways_law.htm Practice with 5 multiple-choice questions and an explanation after every answer. [/Mastery Quiz]