团队协作
前提(Premise)。一个软件团队是一个协调工程能力(engineering capability)的系统。
英文原文
Premise. A software team is a system for coordinating engineering capability.
软件工程需要的远不只是把有能力的个人集合起来。随着项目变大,工程师必须分工、维持共享语境(shared context)、做出彼此兼容的决策、集成变更,并察觉各自的理解何时已经分歧。这就产生了一个表面上的难题:工程师之间的互动既然代价高昂,为什么还要使用团队?
英文原文
Software engineering requires more than assembling capable individuals. As projects grow, engineers must divide work, maintain shared context, make compatible decisions, integrate changes, and detect when their understanding has diverged. This creates an apparent puzzle: if interaction among engineers is costly, why use teams at all?
答案是能力(capability)。一位工程师的时间、知识与注意力都有限。不同的工程师贡献不同的专长;工作可以并行推进;人们可以相互检查推理;系统也可以比最初建造它的个人存活得更久。大型系统还超出了一个人能够理解与维护的范围。因此,团队购买的是能力,而协调是其中一部分代价。
英文原文
The answer is capability. One engineer has limited time, knowledge, and attention. Different engineers contribute different expertise; work can proceed in parallel; people can check one another's reasoning; and systems can outlive the individuals who originally built them. Large systems also exceed what one person can understand and maintain. Teams therefore buy capability, and coordination is part of the price.
协调成本(coordination cost)是指团队成员为保持各自贡献彼此兼容而承担的沟通、依赖、交接与集成工作。增加工程师会增加能力,但也会增加协调成本——这就是工程组织仅仅通过增加人数并不能线性扩展的原因。
英文原文
Coordination cost is the communication, dependency, handoff, and integration work that team members incur to keep their contributions compatible. Adding engineers adds capability, but it also adds coordination cost — which is why engineering organizations do not scale linearly simply by adding people.
团队在工作的过程中也会变化。工程师发展专长,知识变得集中或分散,人们加入又离开,而管理决策决定了哪些能力得到关注、哪些能力面向未来得到发展。因此,我们不仅要考虑工程能力如何被协调,还要考虑一个组织如何随着时间分配、维持和发展这种能力。
英文原文
Teams also change as they work. Engineers develop expertise, knowledge becomes concentrated or distributed, people join and leave, and management decisions determine which capabilities receive attention and which are developed for the future. We will therefore consider not only how engineering capability is coordinated, but how an organization allocates, sustains, and develops that capability over time.
个人能力不只是实现
有效的工程师做的远不止实现软件。Li、Ko 与 Zhu 对经验丰富的软件工程师的研究发现,实现能力固然重要,但不足以解释特别有效的工程师(Li et al. 2015)。以下四种能力在这里尤其有用。
英文原文
Effective engineers do more than implement software. Li, Ko, and Zhu's study of experienced software engineers found that implementation competence was important but insufficient to explain unusually effective engineers (Li et al. 2015). Four capabilities are particularly useful here.
- 学习与适应。有效的工程师学习不熟悉的领域,并在条件变化时修正自己的理解。
- 行使判断。他们在信息不完整的情况下做出可辩护的决策,包括识别哪些决策可以安全地保持可逆。
- 理解系统。他们推理的是代码周围的产品、组织、客户、工具与后果,而不仅仅是眼前的实现。
- 赋能他人。他们创造共享语境,根据他人的已知情况进行沟通,提供可信的信息,并帮助其他工程师取得成功。
英文原文(列表)
- Learn and adapt. Effective engineers learn unfamiliar domains and revise their understanding when conditions change.
- Exercise judgment. They make defensible decisions under incomplete information, including recognizing which decisions can safely remain reversible.
- Understand the system. They reason about the product, organization, customers, tools, and consequences surrounding the code rather than only the implementation immediately before them.
- Enable others. They create shared context, communicate according to what others know, provide credible information, and help other engineers succeed.
最后一种能力改变了分析的单位。一位好工程师不仅仅是个人产出更多,而是一位好工程师提高了周围系统的有效性。
英文原文
The last capability changes the unit of analysis. A good engineer does not merely produce more personally. A good engineer increases the effectiveness of the system around them.
团队能力是一种涌现性质
一群有效的工程师集合起来,并不自动形成一个有效的团队。有些有用的性质属于团队,而不属于任何一位个人成员。
英文原文
A collection of effective engineers does not automatically form an effective team. Some useful properties belong to the team rather than to any individual member.
- 共享语境(Shared context)。团队成员需要对目标、优先级、系统状态、归属、过去的决策与当前的变更有足够兼容的理解。共享语境并不意味着完全相同的知识——在一个大型系统上那是不可能的,它意味着有足够兼容的知识,使人们能够正确地协调。
- 信任(Trust)。团队内部交换的信息必须是可用的。工程师需要可信地报告状态、不确定性、风险与错误,而其他工程师必须能够据此采取行动。一个没有信任的团队可能产生大量沟通,却传递极少可靠信息。
- 协调(Coordination)。工作需要归属,依赖必须得到管理,并行工作需要划分,独立产出的部分需要集成。沟通有帮助,但沟通本身并不能决定谁做决策、谁承担责任。
英文原文(列表)
- Shared context. Team members need sufficiently compatible understandings of goals, priorities, system state, ownership, past decisions, and current changes. Shared context does not mean identical knowledge. On a large system that would be impossible. It means enough compatible knowledge for people to coordinate correctly.
- Trust. Information exchanged within the team must be usable. Engineers need to report status, uncertainty, risk, and mistakes credibly, and other engineers must be able to act on those reports. A team without trust may produce abundant communication while transmitting little reliable information.
- Coordination. Work needs ownership, dependencies must be managed, parallel work divided, and independently produced pieces integrated. Communication helps, but communication alone does not determine who decides or who is responsible.
英文原文(图注)
Figure 1. Individual capability becomes team capability only through interactions that build shared context, trust, and coordination. These team-level properties are what a team's engineering output actually flows through.
正如图 1 所提示的,这些性质由互动产生,又被工程工作所消耗。一个忽视它们的团队并不会一下子失去能力;它会在稍后才发现这种损失——表现为集成失败、重复工作,以及彼此悄悄矛盾的决策。
英文原文
As Figure 1 suggests, these properties are produced by interaction and consumed by engineering work. A team that neglects them does not lose capability all at once; it discovers the loss later, as integration failures, duplicated work, and decisions that quietly contradict one another.
为什么团队不能线性扩展
增加一位工程师会增加能力,但也会创造潜在的互动。五位工程师有十种可能的配对;十五位工程师则有 105 种。这并不意味着每位工程师都与其他每位工程师同等程度地沟通——在一个设计良好的组织中,他们本不应当如此。这种组合增长说明的是:不受约束的互动会付出怎样的代价(Brooks 1995)。
英文原文
Adding an engineer adds capability, but it also creates potential interactions. Five engineers have ten possible pairs; fifteen have 105. This does not mean that every engineer communicates equally with every other engineer. In a well-designed organization they should not. The combinatorial growth instead illustrates what unconstrained interaction would cost (Brooks 1995).
沟通只是协调成本的一个来源。更多的工程师还会带来更多的依赖、新人入职、各自独立变化的工作、集成,以及需要维护的共享语境。
英文原文
Communication is only one source of coordination cost. More engineers also create more dependencies, onboarding, independently changing work, integration, and shared context to maintain.
随着工程组织的发展,有用的能力应当随之增长。协调成本也会增长,但如果协调的增长速度与所增加的能力一样快、甚至更快,组织就无法扩展。因此,工程目标不是消除协调,而是让协调的增长速度比能力更慢。
英文原文
As an engineering organization grows, useful capacity should grow with it. Coordination cost will also grow, but an organization cannot scale if coordination grows as quickly as, or faster than, the capability being added. The engineering objective is therefore not to eliminate coordination. It is to make coordination scale more slowly than capability.
协调可以被工程化
协调成本不是一笔固定的税。与上一章的过程维度一样,它是工程师可以有意移动的一种性质。反复出现的策略有四个家族。
英文原文
Coordination cost is not a fixed tax. Like the process dimensions of the previous chapter, it is a property engineers can deliberately move. Four families of strategy recur.
| 策略 | 举例 |
|---|---|
| 减少依赖 | 归属权、稳定的接口、模块化 |
| 使知识可复用 | 文档、约定、可发现的专家 |
| 自动化协调 | 版本控制、自动化测试、持续集成(CI)、工具 |
| 扩展决策结构 | 评审规则、归属规则、团队边界 |
表 1 协调工程的策略。
英文原文(表 1)
Table 1: Strategies for engineering coordination.
| Strategy | Examples |
|---|---|
| Reduce dependencies | ownership, stable interfaces, modularity |
| Make knowledge reusable | documentation, conventions, discoverable expertise |
| Automate coordination | version control, automated tests, CI, tooling |
| Scale decision structures | review rules, ownership rules, team boundaries |
表 1 中的策略共享一点:杠杆作用——一个决策应当服务于许多未来的互动。
英文原文
What the strategies in Table 1 share is leverage: one decision should serve many future interactions.
架构可以改变谁需要与谁协调。稳定的接口允许一个群体工作,而无需不断重建另一个群体的内部决策。因此,一条软件边界也可以成为一条组织边界:知识与协调可以在各自的一边保持有界。
英文原文
Architecture can change who needs to coordinate with whom. Stable interfaces allow one group to work without continuously reconstructing the internal decisions of another. A software boundary can therefore also become an organizational boundary: knowledge and coordination can remain bounded on each side.
这并不是在论证组织边界与软件边界必须始终重合,而是在论证架构影响协调的拓扑(topology)。一条隐藏了有用实现细节的边界,既可以减少技术耦合,也可以减少做出一次变更所需的人际互动数量。架构将在后文发展这一思想的技术一面;在这里,只需注意到:一个架构决策同时也是一个关于谁必须与谁交谈的决策,就足够了。
英文原文
This is not an argument that organizational and software boundaries must always coincide. It is an argument that architecture affects the topology of coordination. A boundary that hides useful implementation details can reduce both technical coupling and the number of human interactions required to make a change. Architecture develops the technical side of this idea; here it is enough to notice that an architectural decision is also a decision about who must talk to whom.
协调的四个维度
协调机制至少可以沿四个维度进行比较。
英文原文
Coordination mechanisms can be compared along at least four dimensions.
- 拓扑(Topology):谁必须与谁协调?
- 频率(Frequency):协调必须多频繁地发生?
- 成本(Cost):每一次互动有多昂贵?
- 可靠性(Reliability):必要的协调是否确实正确地发生了?
英文原文(列表)
- Topology: Who must coordinate with whom?
- Frequency: How often must coordination occur?
- Cost: How expensive is each interaction?
- Reliability: Does the necessary coordination actually occur correctly?
这些维度把熟悉的实践变成了工程选择。一个稳定的接口可能降低频率;一条团队边界可能改变拓扑;一条异步消息可能比一次会议降低成本;一次自动化检查可能通过确保一项重复的义务每次都被评估,从而提高可靠性。
英文原文
These dimensions turn familiar practices into engineering choices. A stable interface may reduce frequency. A team boundary may change topology. An asynchronous message may reduce cost relative to a meeting. An automated check may improve reliability by ensuring that a repeated obligation is evaluated every time.
对于一个拟议的协调机制,问:(1) 谁必须互动?(2) 多频繁?(3) 以什么成本?(4) 互动必须多可靠地发生?然后选择满足这些需要的最简单的机制。
英文原文
For a proposed coordination mechanism, ask: (1) Who must interact? (2) How often? (3) At what cost? (4) How reliably must the interaction occur? Then choose the simplest mechanism that satisfies those needs.
协调机制
工程团队熟悉的工具是这一模型的实例,而不是彼此分离的话题。
英文原文
The familiar tools of engineering teams are instances of this model, not separate topics.
沟通。先从必须分享什么、与谁分享、多快分享、以及它是否必须持久开始。然后选择同步或异步、短暂或持久的沟通方式。
英文原文
Communication. Start with what must be shared, with whom, how quickly, and whether it must persist. Then choose synchronous or asynchronous, and ephemeral or durable, communication.
会议。一次会议用同时投入的注意力换取快速的语境共享与互动式决策。它的成本随出席人数而增长。只有当同步的价值值得这一成本时,才使用会议。
英文原文
Meetings. A meeting exchanges simultaneous attention for rapid context-sharing and interactive decisions. Its cost scales with attendance. Use one when synchronization is worth that cost.
持久的决策。一个只存在于记忆中的决策,最终必须被重建或丢失。把它记录下来,就把一次协调行为变成了许多未来的工程师可以复用的东西。
英文原文
Durable decisions. A decision that exists only in memory must eventually be reconstructed or lost. Recording it turns one act of coordination into something many future engineers can reuse.
可见的工作状态。项目管理从根本上说不是工单跟踪器的官僚作风;它把什么存在、谁拥有它、它处于什么状态、有什么阻碍、以及接下来发生什么外显出来。
英文原文
Visible work state. Project management is not fundamentally ticket-tracker bureaucracy; it externalizes what exists, who owns it, its state, blockers, and what happens next.
版本控制与自动化。Git 是一种并发变更的协议。分支隔离工作;提交记录变更;拉取请求(pull request)暴露拟议的集成;评审创造一个决策点;合并建立共享状态。自动化检查把一些重复的协调从人类记忆与判断转移到机器中。
英文原文
Version control and automation. Git is a protocol for concurrent change. Branch isolates work; commit records change; a pull request exposes proposed integration; review creates a decision point; merge establishes shared state. Automated checks move some repeated coordination from human memory and judgment into machinery.
工程协调告诉我们多个贡献如何保持兼容,但它并不决定应当追求哪些贡献、或由谁来做出它们。团队仍然必须决定稀缺的能力应当投向何处。由于这些决策也会改变相关人员的能力,协调自然地引向第二个问题:工程管理。
英文原文
Engineering coordination tells us how multiple contributions can remain compatible, but it does not determine which contributions should be pursued or who should make them. A team still has to decide where scarce capability should go. Because those decisions also change the capabilities of the people involved, coordination leads naturally to a second problem: engineering management.
工程管理分配并发展能力
一个软件团队很少拥有足够的能力,可以同时追求每一个有用的目标。工作必须排定优先级,责任必须分配,稀缺的专长必须导向特定的问题,计划必须随着新信息的到来而修正。这些决策属于工程管理的一部分。
英文原文
A software team rarely has enough capability to pursue every useful objective at once. Work must be prioritized, responsibilities assigned, scarce expertise directed toward particular problems, and plans revised as new information arrives. These decisions are part of engineering management.
工程管理做的远不止分配固定数量的劳动。执行工程工作的人会从中学习:他们获得专长、系统知识、人际关系、自信与判断,而重复的分配也可能缩小他们的经验、使他们超负荷,或使特定的能力依赖于特定的人。工程师最终会转换角色或离开。因此,一项分配决策必须对照组织的至少两种状态来评估:这项工作现在需要什么能力,以及这一分配将留下什么能力?
英文原文
Engineering management does more than allocate a fixed supply of labor. The people who perform engineering work learn from it: they acquire expertise, system knowledge, relationships, confidence, and judgment, while repeated assignments can also narrow their experience, overload them, or make particular capabilities dependent on particular people. Engineers eventually change roles or leave. An allocation decision must therefore be evaluated against at least two states of the organization: what capability does this work require now, and what capability will this allocation leave behind?
工程管理(engineering management)是指随着时间分配、维持和发展工程能力。它是一类工程判断(engineering judgment),而不仅仅是一个职位名称。
技术负责人(technical lead)在决定稀缺的专长应当直接解决问题、还是帮助他人学会解决问题时行使它;资深工程师在选择委托什么时行使它;项目负责人在决定额外的并行是否值得其协调成本时行使它。在每一种情形中,工程问题都是:在兼顾直接义务与对未来工作的影响的前提下,能力应当如何被使用。
英文原文
Engineering management allocates, sustains, and develops engineering capability over time. It is a class of engineering judgment, not merely a job title.
Technical leads exercise it when deciding whether scarce expertise should solve a problem directly or help someone else learn to solve it; senior engineers exercise it when choosing what to delegate; project leaders exercise it when deciding whether additional parallelism is worth its coordination cost. In each case, the engineering question is how capability should be used given both immediate obligations and consequences for future work.
人不是可替代的
把一个团队描述为若干名工程师或一定数量的工程产能,在规划时很方便。这种抽象有时有用,但它掩盖了真实团队的一个重要性质:人不是可替代的。
英文原文
It is convenient for planning to describe a team as a number of engineers or a quantity of engineering capacity. That abstraction is sometimes useful, but it hides an important property of real teams: people are not substitutable.
两位头衔相同的工程师可能拥有非常不同的能力。一位可能理解一个子系统的历史,另一位可能理解一位客户的工作流,还有一位可能理解某一技术的失效模式。工程师在技术专长、判断、人际关系、兴趣与经验上各不相同。仅仅因为两人都占据组织结构图上的同一位置,就用一位工程师替换另一位,并不能保留所有这些性质。
英文原文
Two engineers with the same title may have very different capabilities. One may understand a subsystem's history, another a customer's workflow, and another the failure modes of a particular technology. Engineers differ in technical expertise, judgment, relationships, interests, and experience. Replacing one engineer with another does not preserve all of these properties simply because both occupy the same position in an organizational chart.
这一点在分配工作时很重要。假设一位工程师比其他任何人都更了解一个关键的数据库子系统。把每一个数据库问题都分配给这位工程师,可能会使每一项任务所需的时间最小化。但久而久之,组织会越来越依赖一个人,其他工程师失去了发展这方面专长的机会,专家难以转去做其他工作,也可能厌倦被永久分配同一类问题。因此,一连串局部高效的分配,最终可能使组织的能力下降。
英文原文
This matters when allocating work. Suppose one engineer understands a critical database subsystem much better than anyone else. Assigning every database problem to that engineer may minimize the time required for each individual task. Over time, however, the organization becomes increasingly dependent on one person. Other engineers lose opportunities to develop the expertise. The expert becomes difficult to move to other work and may tire of being permanently assigned the same class of problems. A sequence of locally efficient assignments can therefore leave the organization less capable.
正因为人不是可替代的,获得额外的能力往往需要协调。第二位工程师可以学习这个数据库子系统,但这需要与专家共处时间、共同工作、评审、讲解,或许还需要暂时放慢执行速度。组织通过支付本章前面描述的部分协调成本,获得了一种不那么集中的能力分布。协调常常是获得不可替代的能力所付出的代价。
英文原文
Because people are not substitutable, acquiring additional capability often requires coordination. A second engineer can learn the database subsystem, but doing so requires time with the expert, shared work, review, explanation, and perhaps temporarily slower execution. The organization gains a less concentrated distribution of capability by paying some of the coordination cost described earlier in this chapter. Coordination is often the price of acquiring non-substitutable capability.
因此,“谁能最高效地执行这项任务?”这个问题是不完整的。当存在可行的替代分配时,比较它们的后果:每种分配现在产出什么?它发展了什么能力?它消耗了什么稀缺能力?它创造或强化了什么依赖?如果接受这项工作的人后来无法到岗,会发生什么?最快的分配仍可能是正确的,尤其当后果紧急时。关键在于,速度是这一决策的一个后果,而不是决策规则本身。
英文原文
The question Who can perform this task most efficiently? is consequently incomplete. When alternative assignments are plausible, compare their consequences: What does each assignment produce now? What capability does it develop? What scarce capability does it consume? What dependency does it create or reinforce? What happens if the person receiving the work later becomes unavailable? The fastest assignment may still be correct, especially when consequences are urgent. The point is that speed is one consequence of the decision rather than the decision rule itself.
分配工作会改变能力
一项工程分配可以产生两种结果:对产品的结果和对组织的结果。考虑把一项困难但不紧急的变更分配给一位经验丰富的工程师,或分配给一位与该工程师一起工作的经验较少的工程师。经验丰富的工程师独自完成变更可能更快。一起工作今天会消耗额外的能力,但经验较少的工程师可能学会这个子系统、练习做出相关决策,并在以后能够独立处理类似的工作。第二种分配既产生了软件变更,也产生了额外的工程能力。
英文原文
An engineering assignment can produce two kinds of outcome: an outcome for the product and an outcome for the organization. Consider assigning a difficult but nonurgent change to an experienced engineer or to a less experienced engineer working with that person. The experienced engineer may complete the change faster alone. Working together consumes additional capability today, but the less experienced engineer may learn the subsystem, practice making the relevant decisions, and become able to handle similar work independently later. The second allocation has produced both the software change and additional engineering capability.
这使得导师制(mentorship)、挑战性任务(stretch assignment)、轮岗与专业化成为改变能力未来分布的替代机制,而不是本身就是好的实践。一项挑战性任务可能发展所需的专长,但在失败代价高昂时可能是不负责任的;轮岗可以传播系统知识,但也可能牺牲有价值的专业化;结对可以转移专长,但会消耗双方的注意力。反过来,在紧急情况下,反复把工作交给当前的专家可能恰恰是正确的,即使它强化了长期依赖。因此,管理决策不是“我们应当指导吗?”或“我们应当轮岗吗?”,而是“我们需要什么样的能力分布,以及哪种对真实工作的分配能够以可接受的成本与风险使我们朝它靠近?”
英文原文
This makes mentorship, stretch assignments, rotation, and specialization alternative mechanisms for changing the future distribution of capability, not practices that are good in themselves. A stretch assignment may develop needed expertise, but it may be irresponsible when the cost of failure is high. Rotation can spread system knowledge, but it can also sacrifice valuable specialization. Pairing engineers can transfer expertise, but it consumes the attention of both. Conversely, repeatedly routing work to the current expert may be exactly right during an emergency even though it reinforces a long-term dependency. The management decision is therefore not Should we mentor? or Should we rotate? It is What distribution of capability do we need, and which allocation of real work can move us toward it at acceptable cost and risk?
工程能力是一种具有不寻常性质的资源。使用它会消耗时间与注意力,但做工作也可以创造更多的它。因此,一项分配的成本不应总是仅以生产其直接制品所需的努力来评估。
英文原文
Engineering capability is a resource with unusual properties. Using it consumes time and attention, yet doing work can also create more of it. The cost of an assignment should not always be evaluated solely by the effort required to produce its immediate artifact.
一项分配同时改变产品与组织。当选择具有重大后果时,问:这项工作需要什么能力?这种能力现在存在于何处?直接后果有多紧急?哪种分配能发展有用的未来能力?哪种分配会集中或减少一种依赖?把这项工作用作学习机会的成本与风险是什么?我们预期组织未来要执行什么工作?
最好的分配不必使今天的吞吐量最大化,它应当产生可接受的产品结果与可接受的工程能力未来状态。
英文原文
An assignment changes both the product and the organization. When the choice is consequential, ask: What capability does the work require? Where does that capability exist now? How urgent are the immediate consequences? Which assignment develops useful future capability? Which assignment concentrates or reduces a dependency? What is the cost and risk of using the work as a learning opportunity? What future work do we expect the organization to perform?
The best assignment need not maximize today's throughput. It should produce an acceptable product outcome and an acceptable future state of engineering capability.
能力必须被维持
能力还必须从可持续性的角度来评估。一个组织之所以拥有一种能力,仅仅因为某一位特定的工程师仍然愿意并能够提供它,那么它就对这个人产生了依赖。这种依赖可能是完全合理的:不寻常的专长之所以有价值,正是因为它不寻常。但工程师的兴趣与境况会变化;他们寻求不同的工作与更大的责任、变得超负荷、转换角色、离开组织,最终退休。因此,一项重大的分配决策不仅要考虑所需的能力是否存在,还要考虑组织能否合理地预期在能力仍然重要的期间内持续获得它。
英文原文
Capability must also be evaluated for sustainability. An organization that possesses a capability only because one particular engineer remains willing and able to provide it has a dependency on that person. That dependency may be perfectly reasonable: unusual expertise is valuable precisely because it is unusual. But engineers' interests and circumstances change; they seek different work and greater responsibility, become overloaded, change roles, leave organizations, and eventually retire. A consequential allocation decision should therefore consider not merely whether the required capability exists, but whether the organization can reasonably expect to retain access to it for as long as the capability will matter.
工程师的兴趣是分配决策中的相关证据。如果重复的分配与一位工程师想要发展的方向相冲突,组织就不应当假设当前的分配可以无限期地继续。它也不应当把不满仅仅当作与工程无关的人事问题:如果这种分配既造成了留任风险,又造成了单人技术依赖,那么这两个问题有着同一个原因。相关的判断是:继续这一分配的短期价值,是否值得它正在积累的能力风险。
英文原文
An engineer's interests are relevant evidence in an allocation decision. If repeated assignments conflict with the work an engineer wants to develop toward, the organization should not assume that the present allocation can continue indefinitely. Nor should it treat dissatisfaction merely as a personnel issue separate from engineering: if the allocation is creating both a retention risk and a single-person technical dependency, the two problems have the same cause. The relevant judgment is whether the short-term value of continuing the allocation justifies the capability risk it is accumulating.
例如,一位管理者决定由谁来执行反复出现的遗留系统工作时,可能发现一个危险的循环:专家得到这项工作,是因为专家最快;没有其他人发展这方面的专长,是因为专家得到了这项工作;专家无法转向他们更想做的工作,是因为没有其他人拥有这方面的专长。如果专家最终离开,组织既失去了这个人,也失去了一种它反复选择不在别处发展的能力。管理者不仅要问“谁应当做这项工作?”,还要问“反复把这项工作分配给这个人,会对这个人和组织造成什么?”
英文原文
A manager deciding who should perform recurring legacy-system work, for example, might discover a dangerous cycle. The expert receives the work because the expert is fastest. Nobody else develops the expertise because the expert receives the work. The expert cannot move toward work they would rather do because nobody else has the expertise. If the expert eventually leaves, the organization loses both the person and a capability it repeatedly chose not to develop elsewhere. Management must ask not only Who should do this work? but What will repeatedly assigning this work to this person do to the person and to the organization?
组织必须为能力的离开做计划
人员流动、晋升、调动与退休是工程组织的正常状态。因此,管理者应当了解:如果特定的人无法到岗,哪些重要的能力会消失。
英文原文
Turnover, promotion, reassignment, and retirement are normal conditions of an engineering organization. Management should therefore understand which important capabilities would disappear if particular people became unavailable.
发现一种集中的能力又会产生另一个决策:组织应当保留它、分散它、把能外化的部分外化、在需要时重新获得它,还是有意接受它的丧失?答案取决于失去这种能力的后果、未来需求的可能性与紧迫性、重新创造它的成本,以及保存它的成本。导师制、重叠的归属、招聘、培训与显式表示,都是对这一决策的可能回应,而不是其本身就是目的。一些深层的默会专长可能需要人与人之间大量的重叠才能转移;另一些能力可能在以后重新获得更便宜;过时的能力则完全不值得投资。
英文原文
Discovering a concentrated capability creates another decision: should the organization preserve it, distribute it, externalize what can be externalized, reacquire it when needed, or deliberately accept its loss? The answer depends on the consequence of losing the capability, the likelihood and urgency of future need, the cost of recreating it, and the cost of preserving it. Mentorship, overlapping ownership, hiring, training, and explicit representations are possible responses to that decision, not ends in themselves. Some deep tacit expertise may require substantial overlap between people to transfer; other capability may be cheaper to reacquire later; obsolete capability may deserve no investment at all.
目标不是让每个人都可替代——那会与经验丰富的工程师之所以有价值的原因相矛盾。相反,管理者必须了解:组织在哪些地方有意接受了对不寻常个人能力的依赖,在哪些地方只是偶然积累了这种依赖。
英文原文
The objective is not to make every person replaceable. That would contradict the very reason experienced engineers are valuable. Instead, managers must understand where the organization has deliberately accepted dependence on unusual individual capability and where it has merely accumulated that dependence accidentally.
这也揭示了仅通过人员配置进行管理的局限。让知识在人与人之间流动可以使能力更具韧性,但有重大后果的知识不必依赖于一个人记住它:文档、模型、测试与工具可以把工程知识带到最初持有它的人之外(《工程知识》一章将讨论重大的发现如何成为工程知识)。
英文原文
This also reveals a limit of management through staffing alone. Moving knowledge among people can make capability more resilient, but consequential knowledge need not remain dependent on a person remembering it: documents, models, tests, and tools can carry engineering knowledge beyond the person who first held it (Engineering Knowledge takes up how consequential discoveries become engineering knowledge).
生成式 AI 引入了可替代的能力
本章一直主张人不是可替代的,这一立场仍然成立:工程师在专长、判断、人际关系、兴趣与经验上各不相同,分配给他们的工作会改变他们发展的能力。但生成式人工智能(generative AI)的可替代方式与人不同。模型能力可以越来越多地按需购买、在许多任务中复制,并被另一个足够有能力的模型取代。组织不必为每一份新的模型智能去招聘、指导、留任与培养。
英文原文
This chapter has argued that people are not substitutable, and that position stands: engineers differ in expertise, judgment, relationships, interests, and experience, and the work assigned to them changes the capabilities they develop. But generative AI is substitutable in a way that people are not. Model capability can increasingly be purchased on demand, replicated across many tasks, and replaced by another sufficiently capable model. An organization does not need to recruit, mentor, retain, and develop each new instance of model intelligence.
因此,生成式 AI 向工程组织引入了一种不寻常的东西:一种相对商品化(commodity)的智能形式,与仍然是个体的、积累的、难以替代的人类能力并存。
英文原文
Generative AI therefore introduces something unusual into engineering organizations: a comparatively commodity form of intelligence alongside human capability that remains individual, accumulated, and difficult to replace.
这种差异改变了分配模型。管理传统上分配的是获取成本高昂、异质的、且会被所分配的工作改变的能力。商品化的智能往往可以在需要时获得,并并行复制。随着这种能力变得廉价而丰富,它的互补品可能成为稀缺资源:决定应当建造什么、提供组织与领域语境、识别有重大后果的权衡、评估证据、行使权力与承担责任。因此,管理问题从单纯的“我们应当把可用的智能分配到哪里?”转变为“我们应当购买哪种智能、必须发展哪种能力,以及哪种稀缺的互补品制约着两者能够完成的事情?”
英文原文
This difference changes the allocation model. Management traditionally allocates capability that is expensive to acquire, heterogeneous, and changed by the work assigned to it. Commodity intelligence can often be acquired when needed and replicated in parallel. As that capability becomes inexpensive and abundant, its complements can become the scarce resources: determining what should be built, supplying organizational and domain context, recognizing consequential tradeoffs, evaluating evidence, exercising authority, and accepting responsibility. The management question therefore changes from simply Where should we allocate our available intelligence? toward Which intelligence should we buy, which capability must we develop, and which scarce complements constrain what either can accomplish?
“商品化”并不意味着完全相同。模型之间差异很大,智能体也可以积累任务状态,并在丰富的工程环境中运行。重要的区别在于获取与替代。一个组织无法通过请求另一个实例来获得一位拥有二十年积累经验的工程师;但它可以通过购买更多推理算力或采用更好的模型,获得大幅增加的机器能力。工程管理必须同时推理可以获得与替代的能力,以及必须培养与保留的能力。
英文原文
"Commodity" does not mean identical. Models differ substantially, and agents can accumulate task state and operate within rich engineering environments. The important distinction concerns acquisition and substitution. An organization cannot obtain another engineer with twenty years of accumulated experience by requesting another instance; it may obtain substantially more machine capability simply by purchasing more inference or adopting a better model. Engineering management must reason simultaneously about capability that can be acquired and substituted and capability that must be cultivated and retained.
入门级台阶问题
当组织培养初级工程师时,这种对比变得尤为重要。通向工程专长的传统路径大多要经过实现工作。初级工程师实现变更、接触不熟悉的系统、犯错误、接受评审、调试失败,并逐渐获得承担更大责任所需的语境与判断。
英文原文
The contrast becomes particularly important when organizations develop junior engineers. Much of the traditional path toward engineering expertise has run through implementation work. Junior engineers implement changes, encounter unfamiliar systems, make mistakes, receive review, debug failures, and gradually acquire the context and judgment required for greater responsibility.
生成式 AI 可以完成历史上占据这一进程起点的一部分工作。这就产生了一个入门级台阶问题(entry-rung problem):如果组织把初级工程师曾经借以成为经验丰富的工程师的工作自动化了,他们将如何培养出以后需要的资深工程师?
英文原文
Generative AI can perform some of the work that historically occupied the beginning of that progression. This creates an entry-rung problem: if organizations automate work through which inexperienced engineers previously became experienced, how will they produce the senior engineers they will later need?
入门级台阶问题表现为一个具体的分配决策。假设一个智能体完成一项任务的金钱与时间成本低于一位初级工程师。仅用智能体可能使即时效率最大化;仅用初级工程师可能更慢地生产出制品,同时发展经验;初级工程师与智能体一起工作可能同时加速生产与学习,也可能只是把推理过程对工程师隐藏起来。这些替代方案不能仅凭制品的成本来比较,因为它们使组织处于不同的状态。管理者必须决定学习机会值多少钱、这项任务是否提供了恰当的学习、以及其风险是否允许以这种方式使用它。
英文原文
The entry-rung problem appears as a concrete allocation decision. Suppose an agent can perform a task for less money and time than a junior engineer. Agent alone may maximize immediate efficiency. Junior engineer alone may produce the artifact more slowly while developing experience. Junior engineer with an agent may accelerate both production and learning, or may merely hide the reasoning from the engineer. These alternatives cannot be compared solely by the cost of the artifact because they leave the organization in different states. The manager must decide how much the learning opportunity is worth, whether this task provides the right kind of learning, and whether its risk permits using it that way.
委托会产生非常不同的学习循环。一位工程师委托一项任务、接受所得制品、却置身于推理之外,可能从这项工作中获得的能力很少。而一位工程师如果形成假设、利用智能体实现或检验它、检查所得证据、诊断失败并修正方法,可能会经历比以往实现工作所允许的快得多的工程学习循环。委托可以把工程师移出学习循环,也可以加速这一循环。
英文原文
Delegation produces very different learning loops. An engineer who delegates a task, accepts the resulting artifact, and remains outside the reasoning may gain little capability from the work. An engineer who forms a hypothesis, uses an agent to realize or test it, examines the resulting evidence, diagnoses failures, and revises the approach may experience a much faster cycle of engineering learning than implementation previously allowed. Delegation can remove engineers from the learning loop, or it can accelerate the loop.
因此,管理者评估自动化时,不仅要看它替代了哪些劳动,还要考虑它的使用创造了什么人类能力、或阻止组织创造什么人类能力。一项使今天成本最小化的分配,如果移除了明天稀缺能力得以发展的机制,就可能是糟糕的管理。
英文原文
Management should consequently evaluate automation not only by the labor it replaces. It should also consider what human capability its use creates or prevents the organization from creating. An allocation that minimizes today's cost may be poor management if it removes the mechanism through which tomorrow's scarce capability would have developed.
管理需要什么人类能力?
商品化智能的论证也适用于管理本身。与其假设管理是一种不可分割的人类能力,不如分解这项工作,并问我们在别处问过的同样问题:这里实际需要什么样的判断?收集状态、汇总信息、跟踪依赖、维护进度表与传达例行决策,随着智能体的改进,可能需要较少稀缺的人类能力。
英文原文
The commodity-intelligence argument also applies to management itself. Rather than assume that management is an indivisible human capability, decompose the work and ask the same question we have asked elsewhere: what judgment is actually required here? Collecting status, summarizing information, tracking dependencies, maintaining schedules, and propagating routine decisions may require less scarce human capability as agents improve.
关于承担更大责任的准备情况、相互冲突的正当利益、可接受的工程风险、未来的专长,或对人们职业生涯的后果的决策,可能需要不同的信息、判断、权力与问责。相关的边界不是工程工作与管理工作之分,甚至不是机器工作与人类工作之分,而是哪些决策可以在什么条件下被委托,以及每项决策需要哪些能力与权力。
英文原文
Decisions about readiness for greater responsibility, conflicting legitimate interests, acceptable engineering risk, future expertise, or consequences for people's careers may require different information, judgment, authority, and accountability. The relevant boundary is not engineering work versus management work, or even machine work versus human work. It is which decisions can be delegated under what conditions, and which capabilities and authority each decision requires.
把这些活动宣布为本质上属于人类是很诱人的,但我们并不知道这一点。人工智能的改进可能改变哪些形式的判断可以被委托,正如它正在改变实现工作一样。因此,持久的管理问题不是“哪些管理岗位会存活下来?”,而是“什么样有重大后果的智能仍然稀缺、谁或什么能够提供它,以及谁应当拥有据此行动的权力?”
英文原文
It would be tempting to declare these activities inherently human. We do not know that. Improvements in artificial intelligence may change which forms of judgment can be delegated, just as they are changing implementation work. The durable management question is therefore not Which management jobs will survive? It is What consequential intelligence remains scarce, who or what can supply it, and who should have authority to act on it?
即使机器能力最终跨越了某一判断边界,委托也不会自动随之而来,因为能力与权力是这一决策中两个不同的维度。一个智能体可能有能力提出一份出色的人员配置建议,而组织却未必决定它应当拥有做出人员配置决策的权力。这一决策可能对员工产生不同的影响、偏袒某些目标而非其他目标,或要求有人继续为其后果负责。对于有重大后果的管理决策,要同时问:这位行动者能否很好地做出这一决策?以及:应当允许这位行动者做出这一决策吗?
英文原文
Even if machine capability eventually crosses a particular judgment boundary, delegation does not follow automatically, because capability and authority are separate dimensions of the decision. An agent might become capable of producing an excellent staffing recommendation without an organization deciding that it should have authority to make the staffing decision. The decision may affect employees differently, privilege some objectives over others, or require someone to remain answerable for its consequences. For consequential management decisions, ask both Can this actor make the decision well? and Should this actor be permitted to make it?
因此,生成式 AI 施加压力的不仅是管理者的数量,更是管理本身的目的。组织必须区分:哪些管理活动之所以存在,是因为信息处理与协调成本高昂;哪些管理活动行使稀缺的判断、培养人、分配权力、调和相互竞争的利益,或确立责任。随着机器能力的变化,这一边界本身也会变化。
英文原文
Generative AI therefore puts pressure not simply on the number of managers, but on what management is for. Organizations must distinguish managerial activities that exist because information processing and coordination are expensive from those that exercise scarce judgment, develop people, allocate authority, reconcile competing interests, or establish responsibility. That boundary will itself change as machine capability changes.
为未来的能力进行管理
工程管理对照两方面评估一项分配:它完成的工作,以及它留下的组织状态。最快的分配可能集中专长、消除一次宝贵的学习机会、耗尽一位工程师,或造成不可持续的依赖;而完全为未来发展优化的分配可能无法履行今天的紧急义务。“吞吐量最大化”与“培养人”都不是充分的规则。决策在于:在组织当前的义务与可预见的未来工作面前,直接结果与由此形成的能力分布是否可接受。
英文原文
Engineering management evaluates an allocation against both the work it accomplishes and the organizational state it leaves behind. The fastest assignment may concentrate expertise, eliminate a valuable learning opportunity, exhaust an engineer, or create an unsustainable dependency; an assignment optimized entirely for future development may fail an urgent obligation today. Neither maximize throughput nor develop people is a sufficient rule. The decision is whether the immediate outcome and the resulting distribution of capability are acceptable given the organization's present obligations and plausible future work.
生成式 AI 使这一判断更加困难,因为各种能力的相对稀缺性正在迅速变化。组织可能发现,它们曾经花费大量成本发展的能力,如今可以越来越多地作为商品购买;而它们曾经视为理所当然的能力,却成为瓶颈。因此,它们必须在不确切知道未来工程需要哪些人类或机器能力的情况下,做出分配与发展决策。没有任何固定的编制公式能够消除这种不确定性;只有一项反复出现的工程任务:识别组织需要什么能力、比较获得或发展它的方式、评估这些选择的后果,并随着证据的变化修正分配。
英文原文
Generative AI makes this judgment harder because the relative scarcity of capabilities is changing quickly. Organizations may discover that capabilities they once spent heavily to develop can increasingly be purchased as commodities, while capabilities they previously took for granted become bottlenecks. They must therefore make allocation and development decisions without knowing precisely which human or machine capabilities future engineering will require. There is no fixed staffing formula that resolves that uncertainty; there is only the recurring engineering task of identifying what capability the organization needs, comparing ways to obtain or develop it, evaluating the consequences of those choices, and revising the allocation as evidence changes.
工程管理不仅要对组织生产什么负责,还要对组织成为什么样的工程能力负责。
英文原文
Engineering management is responsible not only for what the organization produces, but for the engineering capability the organization becomes.
生成式 AI 改变了等式的两边
生成式 AI 可以扩大一位工程师能够有意义地拥有的范围。更快的理解、实现、测试与探索,可能使曾经跨越数人的工作留在一个人手中。在这种情况下,某些协调不仅仅是变得更便宜,而是消失了。
英文原文
GenAI can increase the surface that one engineer can meaningfully own. Faster comprehension, implementation, testing, and exploration may allow work that previously crossed several people to remain with one engineer. In that case some coordination does not merely become cheaper. It disappears.
但更高的个人产出也可能提高团队必须吸收变更、评审决策、维持共享语境与集成工作的速度。如果周围的协调系统没有改进,被放大的个人能力只会把瓶颈向外移动。放大器会放大一个设计良好的协调系统——或者压垮一个糟糕的系统。
英文原文
But higher individual throughput can also increase the rate at which the team must absorb changes, review decisions, maintain shared context, and integrate work. If the surrounding coordination system does not improve, amplified individual capability can simply move the bottleneck outward. An amplifier amplifies a well-designed coordination system — or overwhelms a bad one.
团队也是学习系统与社会系统。人际互动传递默会知识、支持导师制、发展共同理解,并建立起关系,使未来的协调变得更容易。因此,目标不是人际互动最少化,而是消除那些目的仅仅是重建工作状态的互动,同时保留那些创造工程或组织价值的互动。
英文原文
Teams are also learning and social systems. Human interaction transfers tacit knowledge, supports mentorship, develops shared understanding, and creates relationships through which future coordination becomes easier. The objective is therefore not minimum human interaction. It is to eliminate interaction whose purpose is merely reconstructing work state while preserving interaction that creates engineering or organizational value.
为决策而度量
团队结构是一个工程假设,关于个人能力与协调机制将如何结合成集体能力。观察可以帮助工程师判断这一假设是否成立。
英文原文
A team structure is an engineering hypothesis about how individual capabilities and coordination mechanisms will combine into collective capability. Observation can help engineers determine whether that hypothesis is working.
协调会在工程师工作的系统中留下证据。电子邮件、Teams 或 Slack 等聊天系统、问题跟踪器、代码评审与版本控制历史记录了请求、回应、交接、依赖与决策。工程师可以利用这些记录来考察:有重大后果的问题多久得不到回答、工作因他人或团队而被阻塞多久、工作跨越组织边界的频率、评审反复等待少数几个人、集成多频繁地暴露不兼容的假设,以及系统的哪些部分产生异常广泛的协调。
英文原文
Coordination leaves evidence in the systems through which engineers work. Email, chat systems such as Teams or Slack, issue trackers, code review, and version-control history record requests, responses, handoffs, dependencies, and decisions. Engineers can use those records to examine how long consequential questions remain unanswered, how long work sits blocked on another person or team, how frequently work crosses an organizational boundary, where reviews repeatedly wait on the same few people, how often integration exposes incompatible assumptions, and which parts of the system generate unusually broad coordination.
大规模提取这些关系曾经需要大量人工分析或专门的工具,这就是为什么大多数组织转而根据组织结构图来推理协调。语言模型使另一种方法变得可行:它们可以对沟通记录、问题、评审与变更进行分类与连接,重建协调模式供工程师检查。结果仍然是一个模型。语言模型可能误分类一次互动,而记录下来的沟通也遗漏了走廊与私下谈话中发生的非正式协调。但它使工作实际要求的协调以组织结构图无法做到的方式变得可见,因为结构图记录的是预期的结构,而记录显示的是工程师不得不做的事情。
英文原文
Extracting those relationships at scale once required substantial manual analysis or specialized tooling, which is why most organizations reasoned about coordination from the organization chart instead. Language models make another approach practical: they can classify and connect communication records, issues, reviews, and changes to reconstruct patterns of coordination for engineers to inspect. The result is still a model. A language model can misclassify an interaction, and recorded communication omits the informal coordination that happens in hallways and side conversations. But it makes the coordination the work actually demanded visible in a way an organization chart cannot, because the chart records intended structure while the records show what engineers had to do.
当度量涉及人时,尤其需要谨慎。提交次数、代码行数、关闭的工单数、发送的消息数以及类似的活动度量,都是工程能力或贡献的糟糕替代品。一旦被当作目标,它们就会扭曲它们声称要度量的行为。人们关心的性质通常不是个人的活动,而是团队是否拥有并协调了做出与实现可靠工程决策所需的能力。
英文原文
Care is especially important when measurements concern people. Commit counts, lines of code, tickets closed, messages sent, and similar activity measures are poor substitutes for engineering capability or contribution. Once treated as targets, they distort the behavior they purport to measure. The property of interest is usually not individual activity, but whether the team possesses and coordinates the capabilities required to make and realize sound engineering decisions.
因此,应当度量协调系统,而不是把其中的人简化为分数。目的是发现团队关于责任、依赖与沟通的模型,与工作实际要求的不同之处。
英文原文
Measure the coordination system, therefore, rather than reducing the people within it to scores. The purpose is to discover where the team's model of responsibilities, dependencies, and communication differs from what the work actually requires.
因此,实际的工程问题不仅仅是“我们如何让每位工程师更有效率?”,还包括:工作与沟通应当如何组织,使个人能力成为可靠的团队能力?而且,由于每一次分配都会改变未来的能力:稀缺的能力应当投向何处,它应当使组织能够做什么?
英文原文
The practical engineering question is therefore not simply how do we make each engineer more productive? It is also: how should work and communication be structured so that individual capability becomes reliable team capability? And, because every allocation changes future capability: where should scarce capability go, and what should it leave the organization able to do?
小结
一个软件团队远不只是其各位工程师之和。团队能力源于人们如何结合专长、分享语境、分担责任并协调相互依赖的工作。协调机制可以降低这些互动的成本,但并不能消除决定能力应当用在何处的需要。
英文原文
A software team is more than the sum of its individual engineers. Team capability emerges from how people combine expertise, share context, divide responsibility, and coordinate dependent work. Coordination mechanisms can reduce the cost of those interactions, but they do not eliminate the need to decide where capability should be used.
工程管理为这一问题增加了一个时间维度。分配工作不仅影响今天的产品,也影响组织明天将拥有的专长、积极性、依赖与能力。生成式 AI 使某些形式的智能相对可替代且丰富,这就更需要理解哪些互补能力仍然稀缺、以及组织仍然需要发展哪些人类能力。
英文原文
Engineering management adds a temporal dimension to that problem. Assigning work affects not only today's product but the expertise, motivation, dependencies, and capabilities the organization will possess tomorrow. Generative AI makes some forms of intelligence comparatively substitutable and abundant, increasing the importance of understanding which complementary capabilities remain scarce and which human capabilities the organization still needs to develop.
结果是一种更广阔的团队观:工程师贡献能力;协调结合能力;管理分配、维持与发展能力。
英文原文
The result is a broader view of teamwork: engineers contribute capability; coordination combines it; management allocates, sustains, and develops it.
其中一些能力依赖于目前存在于特定个人身上的知识。团队可以通过协调与导师制传播知识,但有重大后果的工程知识不必在这些人无法到岗时消失。下一章将直接讨论这一问题:一个工程组织学到的东西应当如何持久保存、以何种形式、以及具有多大的权威?
英文原文
Some of that capability depends on knowledge that currently resides in particular people. Teams can spread knowledge through coordination and mentorship, but consequential engineering knowledge need not disappear when those people become unavailable. The next chapter takes up that problem directly: how should what an engineering organization learns persist, in what form, and with how much authority?
延伸阅读
- Li, Paul Luo, Amy J. Ko, and Jiamin Zhu. “What Makes a Great Software Engineer?” Proceedings of the 37th IEEE/ACM International Conference on Software Engineering (ICSE), 2015, 700–710. https://doi.org/10.1109/ICSE.2015.335 —— 一项访谈研究,说明经验丰富的工程师为何把判断、系统理解与赋能同事与实现技能并列看重。
- Brooks, Frederick P. The Mythical Man-Month: Essays on Software Engineering. Anniversary ed. Addison-Wesley, 1995. —— 其标题文章提出了经典论点:增加人员既增加产能,也增加协调工作。
- Davis, James C. Model-Based Agentic Engineering. 1st ed. 2026. https://davisjam.github.io/model-based-agentic-software-engineering/book/mage-book/index.html, Part 7, “The Profession,” §§7.1 and 7.4. —— 考察当实现变得丰富时稀缺的工程努力流向何处,以及初级工程师仍将如何发展判断。
- DORA. “DORA's Software Delivery Performance Metrics.” DORA. Accessed November 20, 2026. https://dora.dev/guides/dora-metrics/ —— 一个行业度量项目,其四项指标——部署频率、变更前置时间、变更失败率与恢复时间——刻画的是团队交付的表现,而非任何个人的产量。
本译本为非官方译本,仅供个人学习使用。原文版权归 James C. Davis 所有。