CertSafari
    Databricks Certified Context Engineer Associate· Lessons

    Domain 7 · Lesson 44/45

    Agent boundary placement: diagnosing under-split and over-split designs

    Given a multi-agent system design where agent boundaries have been drawn and the resulting architecture is either exhibiting excessive handoff compression overhead or unmanageable context window growth within individual agents, diagnose which boundary placement failure is occurring.

    13 min read
    2.17% of exam
    4 sources
    Published 22 Oct 2026
    Docs as of 17 Oct 2026

    What you will be able to do

    • Explain what an agent boundary decides about context, and what a well-placed boundary looks like
    • Recognise an under-split boundary from unbounded context growth and wrong tool selection, and prescribe a split along domain lines
    • Recognise an over-split boundary from details lost across handoffs and from latency that grows with every hop, and prescribe merging the cohesive task back together
    • Tell the two failures apart from symptoms alone, and rule out distractors such as retrieval or prompt problems

    Key concept

    Context-independent seam — The right place for an agent boundary is a point where very little needs to cross it and everything on each side belongs together. Draw the boundary too coarse and one agent's window keeps growing. Draw it through a cohesive task and every handoff has to compress context the next agent still needs.

    1.What an agent boundary decides

    Drawing a boundary between two agents decides which context lives in which window. Inside one agent, everything is visible at once: the full conversation, every tool result and every intermediate number. Information crosses a boundary only if someone writes it into a handoff. In a multi-agent system each agent holds its own expertise, context and tool set. That separation is the whole benefit, and it is also the cost.

    A boundary can go wrong in two opposite directions. If it is drawn too coarse, one agent carries several unrelated domains and its window grows until it cannot cope. If it is drawn too fine, a task that belonged together is cut into hops, and each hop compresses what the next agent needs. These are the only two boundary placement failures. Every diagnosis comes down to deciding which side of the line the design fell on.

    The default is the simpler side. A single agent that handles varied queries within one cohesive domain is easier to debug than a set of agents, and Databricks advises starting simple and adding agentic complexity only when it is truly needed. A new boundary has to pay for itself: the context it keeps apart must be worth more than the compression it forces at the handoff.

    Checkpoint 1 of 7· Check yourself

    A team runs one agent that answers billing questions, triages infrastructure incidents and drafts marketing copy. Its context usage keeps climbing during each session until it starts picking the wrong tools. Which boundary placement failure is this?

    Checkpoint 2 of 7· Exam question

    A team building a customer-support multi-agent system splits the workflow into six narrow sub-agents: one to parse the ticket, one to classify sentiment, one to look up account details, one to check entitlement, one to draft a reply, and one to format the final message. Each sub-agent passes a summarized handoff to the next. During testing, the team notices that specific numeric details (such as exact renewal dates) captured early in the pipeline are frequently missing or altered by the time the final agent drafts a reply, and end-to-end latency has grown substantially due to the number of hops. Which boundary placement failure is occurring?

    Checkpoint 3 of 7· Exam question

    A single "operations agent" is responsible for handling finance approvals, DevOps incident triage, and marketing campaign requests, all within one agent that has access to over 60 tools and a conversation history that accumulates tool outputs from all three domains in every session. The team observes the agent's context usage climbing close to the model's context window limit within a handful of turns, and the agent increasingly selects the wrong tool for user requests. Which boundary placement failure is this?

    Sources1

    2.Under-split boundaries: one agent carrying several domains

    An under-split agent owns several unrelated domains at once. Take a single operations agent that handles finance approvals, DevOps incident triage and marketing campaign requests. It needs every tool for all three domains loaded on every turn, and its conversation history collects tool outputs from all three. None of that context is ever irrelevant enough to drop safely, because the next request might come from any domain. So the window does not level off. It grows with every turn until it nears the model's limit.

    Wrong tool selection is the second symptom, and it comes from the same cause. With dozens of tools from unrelated domains side by side, the agent has to pick from a crowded catalog while also reading a long, mixed history. The Databricks design guidance names this exact case: an application that spans radically different sub-domains such as finance, devops and marketing can leave a single agent unwieldy or overloaded.

    The fix is structural: split along domain lines. Give each domain its own sub-agent that owns a smaller set of tools and keeps its own history, and put an orchestrator or supervisor in front to route each request to the right sub-agent. A finance question then never loads DevOps tools or marketing history. Domain lines make good seams because requests from different domains rarely need each other's intermediate context, so very little has to cross the new boundary.

    Two tempting alternatives leave the boundary where it is. Merging even more domains into the agent so they can share context only makes the catalog and history larger. Wrapping every capability in one generic tool shrinks the tool list on paper, but the agent still has to reason over all three domains, and their outputs still pile up in the same history. Trimming or compacting the history treats the symptom and does not change the boundary.

    Checkpoint 4 of 7· Check yourself

    An internal assistant handles HR policy questions, legal contract review and sales forecasting. Each session its window grows toward the model's limit, and it often calls the wrong domain's tool. Which change fixes the boundary itself, not just the symptom?

    Checkpoint 5 of 7· Exam question

    An agent's token usage per turn keeps climbing because it must keep an ever-growing tool catalog and full conversation history in context to answer questions spanning three unrelated business domains. The team wants to fix the boundary placement rather than just trimming context. What is the most appropriate structural change?

    Sources123

    3.Over-split boundaries: a cohesive task cut into hops

    An over-split design draws boundaries through a task that belonged together. Parsing a ticket, looking up the account, checking entitlement and drafting the reply all work on the same facts: the same customer, the same renewal date, the same plan. Once those steps become separate agents, the shared facts have to be re-serialised at every hop, usually as a summary. Each summary is a lossy copy of the one before. Exact values such as dates, IDs, amounts and version numbers are the first to blur, round off or vanish, because a summariser keeps the gist and drops the specifics.

    This is handoff compression overhead, and it gets worse with the number of boundaries, not the amount of work. Every extra hop adds another lossy summary and another model call, so fidelity falls and end-to-end latency rises together. Databricks warns that more agentic designs bring extra complexity and potential latency. A chain of six narrow agents pays that cost six times for a task that one agent could have held in a single window.

    The fix is to merge the fragments back together. Put the cohesive stretch of the task, meaning the steps that keep reading and updating the same facts, inside one agent, and keep boundaries only where the work really changes domain. Adding more hops so that each one carries less detail is the wrong direction, because it multiplies the compression. Lost numbers here are also not a retrieval or system-prompt defect, because the value was retrieved correctly upstream and was then lost in transit. Making each handoff smaller or better structured is a separate design question, covered in sub-agent output design. The diagnosis here is that the boundary should not exist at all.

    Checkpoint 6 of 7· Check yourself

    Six narrow agents handle a support ticket in a chain: parse ticket, look up account, check plan, check entitlement, check renewal terms, draft reply. Every agent works on the same customer, plan and renewal date. Traces show that the account-lookup agent gets the renewal date right. Replies still often show the wrong date, and end-to-end latency keeps rising. Which change fixes the boundary itself?

    Sources1

    4.Telling the two failures apart

    The two failures leave different marks in a trace, so read where the problem shows up. A multi-agent trace shows which agent ran at each turn, the messages passed between agents, and each agent's LLM and tool calls. If one agent's input grows turn after turn while other agents stay small, the boundary is too coarse. If many agents each stay small but the messages between them lose values the user supplied, and total latency follows the hop count, the boundary is too fine.

    Symptoms, the boundary failure they point to, and the structural fix
    Observed symptomBoundary failureStructural fix
    One agent's context climbs toward the window limit within a few turnsUnder-split: boundary too coarse across domainsSplit into domain-specific sub-agents, each with its own tools
    Wrong tool chosen from a large catalog spanning unrelated domainsUnder-split: boundary too coarse across domainsSplit by domain so each agent sees only its own tools
    Exact values captured early are missing or altered at the final agentOver-split: boundary cuts through a cohesive taskMerge the cohesive steps into one agent
    End-to-end latency grows with the number of agent hopsOver-split: boundary cuts through a cohesive taskRemove boundaries that do not separate real domains

    A good correction ends up in the middle. Splitting an over-stuffed agent by domain is right, but splitting it again by step inside each domain repeats the opposite mistake. The test for any proposed boundary is the same: what has to cross it, and can a summary carry that without losing something the receiver needs? If the answer is "a routed request and a short result", keep the boundary. If it is "the same facts the next step is still working on", remove it.

    Checkpoint 7 of 7· Match them up

    Match each finding from a multi-agent trace review to the diagnosis it supports.

    Tap a term, then the definition that fits it.

    Sources41

    Sources

    (4)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “Each agent has its own domain or task expertise, context, and potentially distinct tool sets.”
      ↩︎ What an agent boundary decides
      “simpler to debug than multi-agent setups while still allowing dynamic logic and limited autonomy”
      ↩︎ What an agent boundary decides
      “When building any AI-powered application, start simple.”
      ↩︎ What an agent boundary decides
      “If your application spans radically different sub-domains (finance, devops, marketing, etc.), a single agent can become unwieldy or overloaded with functionality requirements.”
      ↩︎ Under-split boundaries: one agent carrying several domains
      “they come with the cost of extra complexity and potential latency”
      ↩︎ Over-split boundaries: a cohesive task cut into hops
      “You expect varied user queries but still within a cohesive domain or product area.”
      ↩︎ Over-split boundaries: a cohesive task cut into hops
      “Each agent has its own domain or task expertise, context, and potentially distinct tool sets.”
      ↩︎ Telling the two failures apart
      “Each agent has its own domain or task expertise, context, and potentially distinct tool sets.”
      ↩︎ Key concept
      “a single agent can become unwieldy or overloaded with functionality requirements”
      ↩︎ Exam trap 1
      “they come with the cost of extra complexity and potential latency”
      ↩︎ Exam trap 2
      “Each agent has its own domain or task expertise, context, and potentially distinct tool sets.”
      ↩︎ Exam trap 3
      “If your application spans radically different sub-domains (finance, devops, marketing, etc.), a single agent can become unwieldy or overloaded with functionality requirements.”
      ↩︎ Checkpoint
      “Each agent has its own domain or task expertise, context, and potentially distinct tool sets.”
      ↩︎ Prediction
      “More agentic approaches offer greater flexibility and potential, but they come with the cost of extra complexity and potential latency.”
      ↩︎ Checkpoint
      “If your application spans radically different sub-domains (finance, devops, marketing, etc.), a single agent can become unwieldy or overloaded with functionality requirements.”
      ↩︎ Checkpoint
    2. 2.
      “Instead of building one agent that does everything, a multi-agent orchestrator routes requests to specialized subagents from a single entry point.”
      ↩︎ Under-split boundaries: one agent carrying several domains
    3. 3.
      “an agent can have too many tools at its disposal and make poor decisions about which tool to call next”
      ↩︎ Under-split boundaries: one agent carrying several domains
    4. 4.
      “Messages passed between agents”
      ↩︎ Telling the two failures apart
      “LLM and tool calls made by each agent, organized per an agent and a turn”
      ↩︎ Telling the two failures apart

    Ready to test yourself?

    Practise Databricks Certified Context Engineer Associate in quiz mode.

    Spotted a mistake, or was something unclear? Tell us.