Chapter 18: Supervisor and Workers
Lecture
Chapter principle
Key takeaways
- Supervision combines decomposition, assignment, scheduling, monitoring, integration and recovery.
- Worker competence cannot compensate for every supervisor error.
- Shared task state should preserve continuity without broadcasting unnecessary context.
- Hierarchy reduces coordination span by introducing abstraction boundaries, and those boundaries can lose critical information.
- Budgets, permissions, delegation depth and traces must stay enforceable across the hierarchy.
Experiments
Every experiment in the book is small, runnable and printed with its real output. In the Lab you can replay a recorded real run of each one, with no programming, and watch what the model and the agent do.
Experiment 32: Supervisor and workers
What goes wrong when a team runs its workers in the wrong order?
A supervisor coordinates three workers to compare products A and B: a researcher gathers the evidence, an analyst compares it, and a writer writes one sentence. A real model plays the supervisor and plans the order; it also does the analyst's and the writer's work. Then a bad plan, written by hand, puts the writer first. It runs once with a naive supervisor, and once with a supervisor that checks each worker has its inputs before starting it. This is a recorded run. The model's wording will differ in a new run.
Experiment 33: Hierarchy
What gets lost when reports pass through a manager?
Four workers report to a root decision-maker. One report carries a caveat: “Option A is cheaper. Caveat: source confidence is low.” In the flat layout the root reads all four reports. In the hierarchy, two team leads each summarise their workers' reports within a word limit: once with 10 words, then three times with 6. A real model plays each lead. Last, a structured lead also passes caveats in a separate field that code fills in. This is a recorded run. Whether a 6-word lead keeps the caveat varies from run to run.
All the code for this chapter: github.com/agentic-engineering-book/code
Download the bookBrowse all chapters