The Architecture of Cooperation