Problem
Databricks agents run for tens of minutes and write thousands of lines of code. An engineer ran the agent, read the output by hand and asked a coding assistant to fix each flaw. Verifying one change took about two weeks, and regressions slipped through. A normal test suite does not fit: outputs differ between runs, runs are slow, an early wrong step shows up as a failure much later, and quality has no ground truth.
Example from the article: a Data Analyst agent that writes feature engineering code, where "good" depends on domain expertise.
Solution in brief
coSTAR (coupled Scenario, Trace, Assess, Refine) treats the agent as code and LLM judges as its test suite. Two loops share scenarios and traces. The judge loop aligns judges with expert grades. The agent loop scores traces with those judges, and a coding assistant patches the agent until they pass. The same judges run in CI and on production traffic.
Questions this case answers
- How to verify changes to a non-deterministic, long-running multi-step system without a ground-truth answer and without a two-week manual review
- How to calibrate an automated quality judge against domain experts using a small labeled set
- How to test an LLM agent automatically when its output is non-deterministic and a single run takes tens of minutes?
- How to make LLM judges trustworthy enough to gate agent releases?
Tools and methods
- coSTAR — the Scenario, Trace, Assess, Refine loop, run for the agent and for the judges
- MLflow traces — stored record of every tool call and artifact, so judges can be re-run without re-running the agent
- MLflow agentic judges — judges that explore a trace with tools
- GEPA and MemAlign — MLflow techniques that align a judge to the golden set
- Coding assistant — reads judge failures, patches the agent, re-runs the suite
Google or a one-time email code. No password.