Your multi-agent system passes its demos but fails intermittently in production — sometimes a worker returns garbage the orchestrator trusts, sometimes the whole thing stalls. How do you make a system like this observable enough to actually diagnose and fix?

technical-conceptual · Senior level · data-ml

What the interviewer is really asking

Probes whether the candidate can instrument and reason about distributed-agent failures — attributing a failure to a specific agent/tool hop rather than treating the system as an opaque blob.

What to say

What to avoid

Example answers

Strong: I'd instrument every request as a single trace tree where each agent's reasoning, tool calls, arguments, results, tokens, and latency are spans. Then I evaluate two layers: trace-level, did each step and tool call do the right thing, and session-level, did we hit the user's goal — because all-correct steps can still miss the goal. For the stalls, trajectory mapping shows the recursive loop and which tool the agent keeps returning to; for the garbage-trust case, I add a validation/judge step on worker outputs before the orchestrator consumes them, and I gate releases on at least ~50 eval cases per failure mode so a fix is proven, not anecdotal.

Weak: I'd add a lot more logging and turn up the log level so we can see what's happening. Then when it fails I'd read through the logs and the full conversation transcript to spot where it went wrong, and tweak the orchestrator's system prompt to tell it to be more careful about trusting bad outputs and to stop looping.

Want questions matched to your role? Paste a job title, job description, or CV and get a personalized set, or go Pro to unlock the full bank.