QuestionQ40

VerifiedMulti-Agent and Long-Horizon Task Design

A context engineer is assessing a Databricks agent that coordinates a multi-week pharmaceutical supply chain compliance workflow across dozens of distribution centers. The agent uses a flat task decomposition strategy, dividing the entire workflow into a single-level list of atomic tasks that are dispatched and tracked independently. The workflow contains clusters of tightly coupled sub-tasks, such as per-facility inspection records that must all complete before a regional compliance certificate can be issued, and the agent repeatedly fails to coordinate these cluster-level completions correctly. Logs show that the agent loses track of intermediate group states, issues compliance certificates prematurely on incomplete facility data, and cannot recover gracefully when individual facility inspection tasks fail.

Which two changes should the context engineer make to resolve the observed failure?

Choose two
Explanation

Hierarchical decomposition groups related facility inspections under a parent, allowing their collective progress and failures to be tracked. An explicit dependency gate prevents a regional certificate from being issued until every required inspection has succeeded. This structure also supports targeted recovery rather than restarting the entire workflow; Databricks supports task dependencies and repair of unsuccessful tasks. (docs.databricks.com)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!