Orchestrators, Agent Boundaries, Long-Horizon Tasks
Databricks Context Engineer Associate · Lesson 18 of 18 · 2:13:17
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Databricks Certified Context Engineer Associate exam. In this lesson: reducing orchestrator context load with condensed sub-agent outputs, where to draw agent boundaries, long-horizon strategies (compaction, structured note-taking, multi-agent), and spotting a strategy mismatch. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
A saturated orchestrator
Thistledown's orchestrator agent runs a market study with six sub-agents. Each one returns its full findings, raw tables included, and after the third report, the orchestrator's context is saturated, and it loses sight of the question it was asked. This lesson covers orchestrator load, where to draw agent boundaries, and choosing a long horizon strategy.
Lightening the orchestrator
An orchestrator reads every sub-agent's output, so long outputs saturate its context first. Let each sub-agent explore as much as it needs in its own clean context, then return a condensed, distilled summary, often one or two thousand tokens, rather than everything it went through. Ask for a structured output: the findings, the evidence that supports them, the open questions, and references to details stored elsewhere, like a table or a file. The orchestrator stays coherent, since it reasons over summaries, and can fetch a detail when it really needs it.
Where to draw boundaries
Agent boundaries decide what each agent holds, and what crosses a handoff. Draw too many boundaries, and work that belongs together is split, so every handoff compresses context, and the overhead of summaries and lost details grows. Draw too few, and one agent does too much, so its context window grows until it saturates. Good boundaries follow the seams of the task: parts that need little shared context, and that return small, well defined results.
Long-horizon strategies
Long horizon tasks outlast a single context window, and three strategies help. Compaction suits long, continuous exchanges, where the conversation itself carries the work. Structured note-taking suits iterative work with clear milestones: the agent writes progress, decisions, and next steps to a file or table outside its context, and reads them back after a restart. Multi-agent architectures suit parallel exploration, where the parts are independent, and can be studied at the same time. Choose from the dependency structure of the steps: tightly sequential steps need one continuous thread, while independent steps can be split.
Spotting a strategy mismatch
When a long task fails, look for the characteristic that the current strategy cannot handle. Repeated compaction on a project with milestones loses exact progress, so structured notes fit better. Splitting tightly sequential steps across parallel agents breaks their dependencies, so one agent with compaction or notes fits better. And a single agent doing broad, independent research saturates its window, so parallel sub-agents fit better.
Recap
Let's recap. Sub-agents should return condensed, structured summaries, so the orchestrator reasons over findings, not raw content. Too many boundaries create handoff compression overhead, and too few let one window grow without limit. Compaction suits long, continuous exchanges, and structured note-taking suits milestones. Multi-agent architectures suit parallel, independent exploration. And choose the strategy from the dependency structure of the steps.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
A market study’s orchestrator saturates after three reports, each holding raw query results and every page read. Which output change most reduces its load, without harming coherence?
- Fewer sub-agents, each one reading more
- Condensed, structured summaries, with references
- Raw outputs, cut to a fixed length
- A larger context window for the orchestrator
Show the answer
Condensed, structured summaries, with references
Condensed, structured summaries carry the findings, and references let the orchestrator fetch details only when needed. “Fewer sub-agents, each one reading more” is wrong, since fewer sub-agents would each return even more. “Raw outputs, cut to a fixed length” is wrong, since truncating raw outputs cuts findings at random, and harms coherence. And “A larger context window for the orchestrator” is wrong, since a larger window delays saturation, but keeps paying for raw content.
A lease renewal is split across seven agents: read the lease, check payments, draft the letter, review its tone… Each handoff summarizes, and details keep getting lost. Which boundary failure is this?
- Too few agents: one window keeps growing
- Missing tools in each of the agents
- A model too small for the task
- Too many boundaries: handoff compression overhead
Show the answer
Too many boundaries: handoff compression overhead
Tightly coupled work was split into too many agents, so every handoff compresses context, and details get lost. “Too few agents: one window keeps growing” is wrong, since no single agent's window is growing here. “Missing tools in each of the agents” is wrong, since the details are lost between agents, not for lack of tools. And “A model too small for the task” is wrong, since a larger model would still receive lossy handoffs.
A compliance agent works three days through milestones that build on each other. It relies only on compaction, and loses track of which milestones are done. Which strategy fits better?
- Structured notes: milestones need exact progress
- Parallel sub-agents, one per milestone
- More frequent compaction
- Trimming the oldest messages
Show the answer
Structured notes: milestones need exact progress
Work with clear milestones needs exact progress, and notes outside the context keep it across restarts. “Parallel sub-agents, one per milestone” is wrong, since milestones that build on each other cannot run in parallel. “More frequent compaction” is wrong, since compacting more often loses even more progress. And “Trimming the oldest messages” is wrong, since trimming drops the oldest milestones by position.