CertSafari
    Databricks Certified Context Engineer Associate· Lessons

    Domain 7 · Lesson 44/45

    Agent Boundary Placement: Diagnosing Over-Split and Under-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.

    11 min read
    2.17% of exam
    6 sources
    Published 3 Oct 2026
    Docs as of 30 Sep 2026

    What you will be able to do

    • Tell the two boundary placement failures apart by their symptoms: handoff compression overhead, and context window growth inside one agent
    • Explain why boundaries drawn through a cohesive task cause handoff overhead, and why boundaries that hold several unrelated sub-domains together cause context growth
    • Use per-agent trace data to find which agent or handoff is the problem, then reason about which way the boundary should move

    Key concept

    Boundary placement trade-off — Each agent boundary is a place where context gets compressed into a handoff, and each merged responsibility is context one agent has to carry. Draw boundaries too finely and the system spends its effort on handoffs. Draw them too coarsely and a single agent's context window grows past what it can manage.

    1.Two symptoms, two opposite boundary errors

    In this objective, someone has already decided where the agent boundaries go, and the system is now misbehaving. You won't be asked to design the system from scratch. You'll be asked to read the symptom and name the placement error behind it. There are two symptoms to recognise, and they point in opposite directions. In the first, the system spends too much of its effort on handoffs: agents keep summarising work for each other, details get lost along the way, and the next agent has to ask again or redo the work. In the second, one agent's context window keeps growing until it is hard to manage, and that agent's decisions get worse as it grows.

    Databricks describes agent design as a continuum that runs from deterministic chains, through single-agent systems, to multi-agent architectures, and its advice is to start simple and add agentic complexity only when you truly need it. That advice is also the diagnostic tool. A boundary is worth its cost when the work on each side needs a genuinely different context. Where that isn't true, the boundary just adds a handoff. Where it is true and no boundary was drawn, one agent ends up holding everything. A coordinating layer such as Supervisor Agent manages delegation and then combines what comes back. That combining step is where handoffs are compressed, so every additional subagent adds another place where compression happens.

    Checkpoint 1 of 7· Check yourself

    According to the Databricks design-pattern guidance, when should you introduce more complex agentic behaviour such as additional agents?

    Sources12

    2.Under-split: one agent carrying several domains' context

    Start with context growth. If one agent owns a large or cross-functional scope, everything that scope needs lands in its context window: tool definitions for every domain, instructions for every domain, and every tool result from every domain. The Databricks design-patterns page names this limit of the single-agent pattern directly. When an application spans radically different sub-domains, such as finance, devops and marketing, a single agent can become unwieldy or overloaded with functionality requirements. The Databricks blog on supervisor architecture describes the same failure from experience in production. An agent with too many tools makes poor decisions about which one to call next, and its context grows too complex for a single agent to keep track of.

    So the diagnostic signature of an under-split boundary looks like this: one agent's prompt grows with unrelated tools and instructions; its transcript fills with results from domains that have nothing to do with each other; and its tool choices degrade as its scope widens. The other agents may be fine. The failure sits inside one boundary that encloses too much. The fix moves in one direction, toward a split along the line where the context changes, so that each resulting agent holds the context of one coherent area.

    Checkpoint 2 of 7· Check yourself

    A single 'operations assistant' agent handles finance reconciliation, devops incident triage and marketing analytics. Its context fills with unrelated tool output, and it increasingly calls the wrong tool. Which boundary failure is this?

    Checkpoint 3 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?

    Sources13

    3.Over-split: handoffs cut through a cohesive task

    Now the opposite failure. In the Databricks Apps orchestrator pattern, the orchestrator treats each subagent as a tool and routes requests to it. Whatever the subagent learned while working stays on its side of the boundary, and only its result comes back. That is exactly what you want when the subagent's working context is irrelevant to everyone else. It becomes a problem when the boundary falls between steps that depend on the same details. The downstream agent then gets a compressed summary of information it actually needed in full. It has to ask again, guess, or redo the work, and the system spends its token and latency budget writing and re-expanding handoffs.

    Two clues from the Databricks material help you spot this. First, the single-agent pattern is presented as the right fit when queries vary but stay within a cohesive domain or product area. Variety on its own does not justify a split. Second, the concepts page separates tools from agents. Tools perform one well-defined operation and are generally stateless, while agents keep state as they work through open-ended tasks. A 'subagent' that only ever does one well-defined operation is really a tool behind an agent boundary. It adds a reasoning loop and a handoff and gives nothing back for them.

    Checkpoint 4 of 7· Check yourself

    A team built separate subagents for 'look up order', 'check return window' and 'generate shipping label' in a single returns workflow. Each handoff re-summarises the order details, and latency is high. What does this indicate?

    Checkpoint 5 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?

    Sources451

    4.Finding the faulty boundary in a trace

    You don't have to diagnose from symptoms alone. MLflow Tracing on Databricks records multi-agent runs with per-agent detail. For frameworks such as AG2 it captures the messages passed between agents, along with each agent's LLM and tool calls, organised by agent and by turn. MLflow 3.2.0+ also records token usage per call on spans. Together these let you find where the tokens are going. Note that the trace only shows you where. It doesn't name the failure. Deciding which way the boundary should move is the reasoning you do after reading it.

    Iterating over a trace's spans to read per-call token usage (from the MLflow AG2 tracing docs)python
    for span in trace.data.spans:
        usage = span.get_attribute("mlflow.chat.tokenUsage")
        if usage:
            print(span.name, usage)

    Read the numbers in two directions. If one agent's input tokens climb turn after turn, and its tool calls cover unrelated domains, the boundary around it is too wide. If the agents stay small but much of the total goes into messages passed between them, with the same facts restated across several handoffs, the boundaries are too narrow.

    Telling the two boundary placement failures apart
    SymptomBoundary failureWhat the trace tends to showDirection of fix
    Excessive handoff compression overheadOver-split: boundaries cut through a cohesive domain, or wrap single well-defined operations as agentsSmall agents; many inter-agent messages restating the same details; latency from orchestrationMerge into fewer agents; turn single-operation subagents into tools
    Unmanageable context growth in one agentUnder-split: one boundary encloses radically different sub-domainsOne agent with growing input tokens and tool calls across unrelated domainsSplit along the line where the needed context changes

    Checkpoint 6 of 7· Check yourself

    You want to confirm which agent in a multi-agent run is carrying the growing context. Which trace information localises it most directly?

    Checkpoint 7 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?

    Sources6

    Exam traps

    Each one states something that sounds right. Open it to see what is actually true.

    1. 1.Adding more specialised agents always reduces context and handoff problems.Why is that wrong?

      Every added agent brings orchestration cost and another handoff. When handoff overhead is the symptom, more agents make it worse.

      Covered in Two symptoms, two opposite boundary errors

    2. 2.Every distinct operation in a workflow deserves its own subagent.Why is that wrong?

      Single well-defined operations are tools. Agents earn their boundary by handling open-ended, stateful work, and a single-operation subagent only adds a handoff.

      Covered in Over-split: handoffs cut through a cohesive task

    3. 3.A wide variety of user queries means the system needs many agents.Why is that wrong?

      Varied queries within one cohesive domain are the single-agent sweet spot. The case for splitting is radically different sub-domains, not variety.

      Covered in Over-split: handoffs cut through a cohesive task

    Sources

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

    1. 1.
      “When building any AI-powered application, start simple.”
      ↩︎ Two symptoms, two opposite boundary errors
      “a single agent can become unwieldy or overloaded with functionality requirements”
      ↩︎ Under-split: one agent carrying several domains' context
      “You expect varied user queries but still within a cohesive domain or product area.”
      ↩︎ Over-split: handoffs cut through a cohesive task
      “Introduce more complex agentic behaviors when you truly need them for better flexibility or model-driven decisions.”
      ↩︎ Key concept
      “More agentic approaches offer greater flexibility and potential, but they come with the cost of extra complexity and potential latency.”
      ↩︎ Exam trap 1
      “You expect varied user queries but still within a cohesive domain or product area.”
      ↩︎ Exam trap 3
      “More agentic approaches offer greater flexibility and potential, but they come with the cost of extra complexity and potential latency.”
      ↩︎ Prediction
      “Introduce more complex agentic behaviors when you truly need them for better flexibility or model-driven decisions.”
      ↩︎ Checkpoint
    2. 2.
      “Supervisor Agent uses advanced AI orchestration patterns to manage agent interactions, task delegation, and result synthesis to deliver comprehensive solutions.”
      ↩︎ Two symptoms, two opposite boundary errors
    3. 4.
      “The orchestrator treats each subagent as a tool and uses its instructions to route requests to the right one.”
      ↩︎ Over-split: handoffs cut through a cohesive task
    4. 5.
      “Tools are generally stateless and do not maintain ongoing context beyond each invocation. Agents maintain state as they iteratively solve tasks.”
      ↩︎ Over-split: handoffs cut through a cohesive task
      “Tools perform a single, well-defined operation. Agents can perform more open-ended tasks.”
      ↩︎ Exam trap 2
      “Tools perform a single, well-defined operation. Agents can perform more open-ended tasks.”
      ↩︎ Checkpoint
    5. 6.
      “Messages passed between agents”
      ↩︎ Finding the faulty boundary in a trace
      “LLM and tool calls made by each agent, organized per an agent and a turn”
      ↩︎ Finding the faulty boundary in a trace

    Ready to test yourself?

    Practise Databricks Certified Context Engineer Associate in quiz mode.

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