Problem
Business users get a false sense of precision when an LLM agent queries the warehouse for them, because they cannot tell which table or definition it used. Analytics has no compiler and no unit tests, and often only one correct source and answer. Anthropic's data team found three failure modes behind most wrong answers. The agent cannot pick the right entity among hundreds of candidates. Definitions and schemas change under it. And it fails to find the right documented entity in a huge search space.
Example from the article: a question about "active users" has no single answer. Which actions count as active, are fraudulent users included, and what lookback window applies?
Solution in brief
Treat accuracy as a context and verification problem, not a code generation problem. Build four layers: governed data foundations, sources of truth led by a semantic layer, skills (markdown procedures and reference docs the agent loads on demand), and validation through offline evals, ablations and online checks. Keep skills in the same repo as the data models so they are updated in the same pull request.
Questions this case answers
- How to make an LLM agent map a business question to the single correct governed entity when many plausible candidates exist and there is no deterministic check of the answer
- How to keep agent knowledge about a fast-changing data model from going stale without a separate documentation effort
- How to let non-technical colleagues get correct answers to business questions from an LLM agent over the warehouse
- How to stop an analytics agent from picking the wrong table or metric when the data model has hundreds of candidates
Tools and methods
- Semantic layer — metric definitions the agent must try first.
- Agent skills — a router skill and a runbook skill with reference docs.
- Offline evals — question/answer pairs run in CI.
- Adversarial review sub-agent — challenges the draft answer.
- Correction harvesting — stakeholder corrections become doc fixes and evals.
Google or a one-time email code. No password.