Drasko Profirovic presents Medic, an AI-assisted system for investigating failed Apache Spark jobsRoot cause analysis investigates the underlying conditions that produce a recurring problem, aiming to distinguish its causes from its visible symptoms. at Pinterest. An initial design exposed diagnostic tools through MCP to a single ReAct agent, but large logs, long prompts and accumulating instructions made the investigation noisy and difficult to maintain.
Drasko Profirovic describes tracingAn execution trace records the sequence of operations and results produced while a system carries out a task. with OpenTelemetry and Langfuse, replayable fixtures and offline evaluationsEvaluation is the systematic assessment of a system's behaviour or results against explicit criteria. as ways to understand and compare agent behaviour. Log clustering and fingerprints help surface relevant evidence; targeted retrievalRetrieval is the process of selecting relevant stored information and returning it to an AI system for the current task. reduces red herrings, while specialist analysis can examine time-series charts within a bounded context.
Drasko Profirovic then outlines a LangGraph-based arrangement with triage, research, supervisory and healing responsibilitiesA multi-agent system contains multiple AI agents that interact, coordinate, divide work, or influence one another while pursuing tasks., informed by runbooks and previous fixes. The talk describes design choices and observed implementation problems, not a quantified guarantee that autonomous fixes will always be correct. Extending the approach to other query engines remains future work.
Watch on YouTube




