CCA 备考课 · 第 1.3 课CCA COURSE · LESSON 1.3

任务分解Task Decomposition: How Fine to Cut?

第一域 · 智能体架构与编排 · 编排层 · 第 3 关 · 编排 · 时长 11:08 · 英文授课Domain 1 · Agentic Architecture and Orchestration · Orchestration layer · Gate 3, Orchestration · 11:08 · Taught in English

上一课在系统里划线:哪些段落写死,哪些放权。这一课钻进放权的段落里面,定拆分的原则、粒度与契约。拓扑等 1.4,交接格式等 1.5:粒度与契约不定,再漂亮的拓扑也是空架子。Lesson 1.2 drew the line through a system, which segments stay fixed and which earn delegation; this lesson goes inside the delegated segments and fixes the principles, the granularity and the contract. Topologies wait for 1.4 and hand-off formats for 1.5, because if granularity and contracts are unsettled, the most elegant topology is an empty frame.

CCA 1.3 · Watch on YouTube

YouTube

CCA 1.3 · 小红书 RedNote

小红书

一个研究 Agent 只接到一件活:写一份行业竞争格局报告。带队的想做得细致,把工作切得很碎,一家公司一个子任务,再往下拆营收、产品、近期动作,层层往下几十个子任务。结果子任务们大部分时间在等消息、传消息,等报告终于拼起来,各部分还对不上:同一口径在不同章节里定义都不一样。(开场为教学示意场景。)

本课内容

  • 拆分不是可选项:上下文装不下、单条轨迹不可信、只有拆开才有失败隔离
  • 粒度的手感:一项子任务对应一份能独立验收的交付物,附一个判断切得太细的现场判据
  • 契约三件:输入、输出、失败怎么报,事先定死,执行者没有即兴空间
  • 倒推四步:先列最终交付物,倒推子任务,写契约,画依赖关系并查循环
  • 考试里两种坏拆法:循环依赖,与细到沟通吃掉工作

章节

  • 00:08 事故开场:拆碎了的报告
  • 03:11 粒度:切到多细算合适
  • 04:35 契约:每个子任务要带的三件
  • 07:22 坏拆法:考场上的两种坏切法
  • 09:32 生产清单:上线前逐项核对
  • 10:45 下一课:1.4 拓扑

核心图

1太粗整份活塞进一个上下文装不下,也错不起 2刚好一项子任务一份能独立验收的交付物 3太细几十个子任务层层套时间全耗在传话上 整份交付物 碎片与传话 粒度看交付物,不看步骤数
图:任务分解的粒度谱。太粗装不下,太细全是传话;刚好的切口落在交付物上。

五个坑

  1. 按工具拆:一件工具一个子任务,切口跟着实现走,不跟着交付物走。
  2. 只有目标没有契约:「去把这部分研究一下」,输入、输出、失败怎么处理,全留给执行者想象。
  3. 拆完没人管全局:每个子任务都交了自己的件,拼起来时定义打架、结论互斥,没有人对一致性负责。
  4. 拿超时盖住循环依赖:等到超时就随便填个数继续跑,把死锁打扮成慢。
  5. 越细越好的强迫症:以为切得越细越专业,从不算沟通这笔账。

生产清单

  1. 每个子任务只对应一份交付物,这份交付物能独立验收。
  2. 每个子任务都带书面契约:输入、输出、失败怎么报,事先定死。
  3. 依赖关系图已画出,无循环,没有哪块在等一个没人负责的件。
  4. 交接少于工作本身:预计时间若大半花在传消息、等待、对口径上,先合并再跑,不要等跑失败了再合。
  5. 每份交付先对契约验收再往下游走;哪块坏了只重跑哪块,不重跑整张图。
拆开靠粒度,合起来靠契约。

学完就用

这一课落在编排层 · 第 3 关 · 编排。把这一关放到你自己的系统上量一遍:免费 17 项快速自检,答完当场出报告,看你最弱的三关。

独立学习材料,与 Anthropic 无隶属关系。Claude 与 Claude Certified Architect 为 Anthropic 的商标;本课为独立备考课程,不授予、也不暗示任何认证。Independent study material, not affiliated with Anthropic. Claude and Claude Certified Architect are trademarks of Anthropic; this course is an independent preparation course and does not grant or imply certification.

A research agent was given one job: write a report on the competitive landscape of an industry. Wanting to be thorough, the lead split the work very fine, company by company, then revenue, products and recent moves as separate pieces, layer under layer until there were dozens of sub-tasks. The sub-tasks then spent their time waiting and passing messages, and when the report was finally assembled, the pieces did not agree with each other: the definitions differed from section to section. (Illustrative example.)

What this lesson covers

  • Why splitting is not optional: a context that cannot hold the work, a single trajectory that cannot be trusted, and the failure isolation only a split task gives you
  • Granularity, the core feel of the lesson: one sub-task, one deliverable that can be accepted on its own, and the field test that tells you the cut was too fine
  • The contract every sub-task carries: input, output, and how failure gets reported, settled in advance, never improvised
  • A working order in four steps: list the final deliverable, work backwards, write the contracts, draw the dependencies and check for cycles
  • The two exam shapes: the circular dependency, and granularity so fine that communication eats the work

Chapters

  • 00:08 Opening incident: the report that was split to pieces
  • 03:11 Granularity: how fine to cut
  • 04:35 The contract every sub-task carries
  • 07:22 What a bad split looks like on the exam
  • 09:32 The production checklist
  • 10:45 Next lesson: 1.4, topologies

Core diagram

1TOO COARSEThe whole job in one contextToo big to hold, too big to fail 2JUST RIGHTOne sub-taskOne deliverable, accepted on its own 3TOO FINEDozens of nested sub-tasksAll the time goes to passing messages Whole deliverables Fragments and messages Granularity follows deliverables, not step counts
The granularity spectrum for task decomposition. Too coarse cannot fit; too fine is all message passing; the right cut lands on a deliverable.

The five traps

  1. Splitting by tool: one sub-task per tool, so the split follows the implementation instead of the deliverable.
  2. A goal with no contract: "go and research this part", with the input, the output, and the failure handling all left to the executor's imagination.
  3. Nobody owns the whole after the split: each sub-task delivers its own piece, and at assembly time the definitions clash and the conclusions fight, with nobody responsible for consistency.
  4. Papering over a circular dependency with a timeout: when the wait times out, some number gets filled in and the run carries on, dressing a deadlock up as slowness.
  5. The finer-is-better compulsion: believing that a finer split is a more professional split, and never counting the communication bill.

The production checklist

  1. Every sub-task names exactly one deliverable, and that deliverable can be accepted on its own.
  2. Every sub-task carries a written contract, with its input, its output, and its failure handling settled.
  3. The dependency drawing has been made, it contains no cycle, and nothing waits on a piece that nobody owns.
  4. The handoffs are fewer than the work; if most of the expected time goes to passing messages, waiting, and aligning definitions, pieces get merged back before the run, not after the failure.
  5. Every delivery is checked against its contract before it flows downstream, and a failed piece is rerun alone, never the whole graph.
Taking a task apart cleanly takes granularity; putting it back together takes contracts.

Put it to work

This lesson sits in the Orchestration layer, at Gate 3, Orchestration. Run that gate against your own system with the free 17-point self-check: it reports on the spot and names your three weakest gates.