Coordinated autonomy / 5 of 8
Agent orchestration
What you’ll learn
- Explain the main idea of “Agent orchestration” in your own words.
- Trace a concrete example and identify the assumptions behind it.
- Apply the principle in a practice problem and recognize a common failure.
The idea, intuitively
Orchestration coordinates steps, state, dependencies, and recovery. It should make what happened inspectable. A sequence of model calls needs the same discipline as other distributed work: explicit inputs, outputs, and failure semantics.
An agent can only act through the capabilities an application exposes. Model-generated plans and tool calls are proposals that require validation. Keep the user’s actual goal and authorization visible throughout the loop. More autonomy increases the importance of explicit boundaries, inspectable state, and meaningful stopping conditions.
Under the hood
Use sequential execution for dependencies and parallel execution only for independent work. Persist checkpoints where restarting would otherwise repeat costly or consequential actions. Bound retries per step.
Parallelism adds coordination costs and can amplify duplicate work.
A worked example
Two independent source searches can run together; drafting a synthesis must wait until evidence has arrived.
How to use this way of thinking
Write the goal, allowed data, permitted actions, and maximum budget before designing the loop. Make each action auditable and distinguish failed, completed, and unknown outcomes. When approval is needed, show the concrete action and its consequences rather than asking for blanket permission.
Try it yourself
Where would you checkpoint a workflow that generates and then sends a report?
Key takeaways
- Independent reads with no shared mutations
- Parallelism adds coordination costs and can amplify duplicate work.
- Check the assumptions with a small example before applying this idea to a larger system.
Check your understanding
Use feedback to learn. Quiz scores and lesson completion are tracked separately.
Go to lesson completionFurther reading
Original papers and reference material for this school. External resources may be in English and require internet access.
MCP architecture overview (opens a new tab)OWASP: LLM prompt injection prevention (opens a new tab)Finish this lesson
Mark this lesson complete when you’re ready to continue.