AI agents change data analytics in two ways. They answer most routine business questions, and they move analysts from running queries to owning definitions, evals and access rules. Analytics agents work when a company builds four things: a context layer, evals with fixed answers, access that runs as the asking user, and a record of every agent trace. The context layer comes first. Anthropic, OpenAI, Snowflake, Databricks, Hex, MotherDuck and Ramp each describe a piece of this pattern. This post merges those pieces into one build order for a VP of Data. It also maps three stages of autonomy: agents execute, agents decide, agents direct. Shreya Shankar of Carnegie Mellon's Full Stack Data Lab laid out those stages on November 30, 2026.

What changes when agents run the analysis

Anthropic reports that 95% of its business analytics queries now run through Claude, with about 95% accuracy in aggregate. The same article says the hard part is not SQL. The hard part is mapping a question to the right table, column and metric, and doing it with current definitions.

Anthropic names three failure modes:

  1. Concept to entity ambiguity. "Active users" can mean many things. Hundreds of fields look like candidates.
  2. Data staleness. Definitions and schemas change, and agent knowledge goes out of date.
  3. Retrieval failure. The right answer exists, and the agent does not find it.

OpenAI describes the same problem at larger scale. Its internal data platform serves more than 3.5k users across 600 petabytes and 70k datasets. One of its users says many tables look alike and differ in small ways, such as whether logged-out users are included.

Build the context layer first

A semantic layer maps a business metric to exact SQL. A context layer adds what analysts learn on the job: deprecated tables, past metric breaks, synonyms and diagnostic steps. Shankar gives a concrete case. Signups fall 18% in Q3. An agent with only a semantic layer blames ad spend. An agent with a context layer knows that Sales changed the lead score threshold on August 12, and checks for a measurement break first.

Here is what each source puts in its context layer, and what it does to keep that layer current.

Source What the context layer holds How it stays current
Anthropic Canonical datasets, semantic layer, lineage, curated reference docs, a company knowledge graph Skill files live in the same repo as the data models. About 90% of data-model pull requests now change a skill file in the same diff
OpenAI Schema and lineage, human annotations, code-derived table definitions, Slack, Docs and Notion content, saved corrections A daily offline pipeline rebuilds one normalized context from usage, annotations and code analysis
Snowflake Horizon Context Structural, operational, semantic and behavioral context in one catalog Connectors pull metadata from BI tools, query history and pipelines. Cortex drafts table and column descriptions
MotherDuck Guides Markdown files with metric definitions, join rules and caveats, stored in the warehouse and queryable in SQL Organization-level guides propagate to every user automatically
Hex Guides and semantic models, kept in version control A review agent flags missing context and groups the gaps into suggestions. Evals test each change before it ships

Anthropic reports three findings about building the layer.

Raw query history does not help. Anthropic gave its agent direct access to thousands of prior queries. Transcripts showed the agent read them. Accuracy moved by less than a point. What worked was distilling those queries into structured reference docs for each domain. Treat query history as raw material for curation.

A human owns each definition. Anthropic tried to generate its semantic layer from raw tables and query logs with an LLM. The result encoded the same ambiguities it was meant to remove, and it scored worse on evals than a smaller, human-curated layer. Anthropic's advice is to let Claude draft documentation and let a person own the definition.

Fewer canonical datasets beat more. Anthropic's fix for ambiguity is to curate a small set of single-source-of-truth datasets and to deprecate near-duplicates. If revenue resolves to one governed dataset instead of forty candidates, the search problem mostly disappears.

Anthropic watched offline accuracy drift from about 95% at launch to about 65% over a month, until it treated skill upkeep as an engineering task. MotherDuck reports a gain from context alone. On the DABStep agentic analytics benchmark, its Guides cut agent query errors from 302 to 1. They also lowered cost by about 55% against agents that find context on their own.

Ramp describes staff-owned context. co-CEO Eric Glyman writes that 323 employees made more than 6,500 edits to what its Glass workspace knows. In one example, Finance had taught Glass to exclude US companies with UK offices from a UK customer count, so the question needed no explanation.

Databricks tested the same idea on 125 insurance questions. Raw tables scored 64%. Governed context plus curated agents scored 93-95%. For ontologies and business definitions, see our guide to enterprise business context for AI agents.

Write evals with fixed answers

An eval is a fixed set of real business questions, each paired with a way to check the answer. Anthropic measured its agent with offline evals. Accuracy was no better than 21% without skills and above 95% with them, and about 99% in some domains.

Anthropic agent accuracy on offline evalsBeforeAfter0%25%50%75%100%Skills addedSkills added - Before: 21%Skills added - After: 95%21%95%One month idleOne month idle - Before: 95%One month idle - After: 65%95%65%Left: without skills (21% or lower) to with skills (over 95%).Right: about 95% at launch to about 65% a month later with noupkeep
CHARTAnthropic agent accuracy on offline evals. Source: Anthropic, How Anthropic enables self-service data analytics with Claude.

Four practices appear across the sources.

  1. Pin each answer to a snapshot. Anthropic anchors ground truth to a snapshot date or a stable fact table, or grades the agent's query instead of its number. Otherwise the answer goes stale when the data moves.
  2. Grade with checks that run in code. OpenAI pairs each question with a hand-written "golden" SQL query. It runs the agent's SQL, compares the result data and the SQL, and passes both signals to a grader. Hex lets a test state a numeric result with a tolerance, or a reference query. Shankar adds that good rubrics are often deterministic, such as automated checks on a table's schema and freshness, and that agents should not grade their own work.
  3. Grade how the agent got the answer. Hex's judge reads the whole conversation. It checks whether the agent used the right semantic model, flagged a known data discrepancy, or refused when context was missing.
  4. Gate launches and store results as data. Anthropic holds each domain back until its slice of the eval set clears a threshold, first about 90%. It stores every run in a warehouse table with the skill version, git SHA, model and token count, so "did that change help?" becomes a query. Hex runs each test up to three times because agents are not deterministic.

Anthropic also gives a sizing rule. Returns diminish past a few dozen evals per topic, and that ceiling drops with each new model generation. Anthropic expects offline accuracy near 100% and says that level does not prove the agent never answers wrong.

Anthropic measured the cost of extra checking too. An adversarial review step raised accuracy by 6% on its eval set. It also used 32% more tokens and added 72% more latency. Decide per domain whether that trade fits. For how to turn each live failure into a test, see every production failure should become an eval case.

Enforce access as the asking user

A shared admin account for an agent breaks the permission model a company already has. The sources agree on the fix: the agent acts as the person who asked.

  • OpenAI describes its agent's access as pass-through. Users can query only tables they can already access, and the agent says so when access is missing.
  • Snowflake applies the same role-based access, masking and row-access policies to queries from people, BI tools and AI agents.
  • Databricks documents user authorization, in which an agent uses the identity of the user making the request. The page says the older name is on-behalf-of authentication. Databricks recommends it when you need user-specific permissions, audit trails or fine-grained Unity Catalog control. At the time of writing the page lists it as Public Preview, and a workspace admin must enable it. An agent can combine it with app authorization in one app.

Shankar draws a practical conclusion. Companies whose data already sits in a warehouse with row and column permissions start Stage 1 ahead, because the rules already exist.

The three stages of autonomy

Shankar forecasts that analytics will shift in at least three steps. Each step moves humans one level up, from running analysis toward setting direction. The sources above describe Stage 1. Stages 2 and 3 are her forecast, with open problems and few shipped products.

Three stages of autonomy in analytics1. Agents executeHuman asks, reviews and correctsneeds task access, audit logs2. Agents decideHuman sets one target, reads a summaryneeds a written intent layer3. Agents directHuman sets goals and taste
DIAGRAMThree stages of autonomy in analytics. Source: Shreya Shankar, Full Stack Data Lab.
Stage What agents do What the human does What breaks and what to build
1. Agents execute Answer a question or build a report on request Asks, reviews and corrects the answer Wrong or stale definitions. Build context, evals and user-scoped access
2. Agents decide Form hypotheses, run parallel experiments, learn from results Sets one clear target, then reads a summary Trust in conclusions, consistent data across long runs, governance for a team that serves many people
3. Agents direct Choose which questions to pursue and propose new experiments Sets goals and taste, such as brand rules Unwritten intent, conflicts between teams' goals, convergence on the same average strategy

Shankar's go-to-market example makes the stages concrete. Before agents, a marketing lead waits two days for a funnel dashboard. In Stage 1 the lead gets it in 5 minutes. In Stage 2 the lead gives agents one target, "go recover the Q3 signups", and reads what they tried. In Stage 3 the lead sets growth goals and taste, and agents choose the questions.

Stage 2 changes the controls in four ways.

  • Evals move to the context layer. Agents run too many one-off experiments to test each one. A team instead tests that the curator agent updates a metric definition, such as "qualified lead", when Sales changes it.
  • Access moves from roles to tasks. One agent team now works for many people, so one person's permissions no longer fit. Shankar proposes short-lived permissions scoped to a single task.
  • Oversight follows risk. She suggests matching approval to how reversible an action is and how many users or dollars it can affect. A low-budget ad can ship after fast checks. A change to enterprise pricing needs a human.
  • Audit logs become required. Mistakes will pass read and write controls, so a team needs a log of every file an agent team read and every action it took.

Stage 3 adds an intent layer: a written, checkable statement of what the company wants. Shankar's example is a growth agent that offers six-month free trials because no rule forbade it. She also argues that differentiated ideas still come from people, because competitors with the same agents converge on the same average strategy.

Treat agent traces as business data

Shankar argues that once agents write the code and run the queries, their traces hold the reasoning behind business decisions. Traces record steps, tool calls, queries and human overrides. She calls querying them "trace analytics". Her use cases include reading the experiments agents already ran on similar users, explaining a revenue change for an investor update, and reviewing what worked with similar accounts before a pitch. Early systems exist, and she names Docent from Transluce and TracePress from the Laude Institute.

Trace analytics is a proposal, and no vendor source here reports results from it. The practice behind it exists today. Anthropic stores every eval run in a warehouse table, and Hex's review agent classifies what each answer used. OpenNash advises storing every agent run in a queryable table from Stage 1. That gives a team the data for Stage 2 audit logs and for later trace analysis.

What to build in 2027, in order

Anthropic advises a team starting from zero to build a handful of canonical datasets, a few dozen offline evals and a thin knowledge skill. The order below adds the other sources.

  1. Pick 3 to 5 canonical datasets and deprecate their duplicates. Name an owner for each. Anthropic names this the most common failure.
  2. Write the metric definitions and context in version control. Put them in the same repo as the data models. Add a review rule that flags a model change with no context change.
  3. Write a few dozen evals per topic from real stakeholder questions. Use fixed answers and snapshot dates. Add every user correction as a new test.
  4. Route every agent query through the asking user's identity. Use warehouse permissions, and log each query with the user, the context version and the model.
  5. Gate each domain launch on its eval score. Anthropic started at about 90%. Re-run the suite on a schedule to catch drift.
  6. Add a curator agent that drafts context changes for a human to approve. Do not let it publish definitions on its own.
  7. Store traces in a queryable table. Plan for task-scoped access, risk-based approvals and audit logs before agents run experiments on their own.
  8. Write down intent. List the goals, the limits and the rules no agent may break, and name who resolves conflicts between teams.

Decisions to make before you start

Each question below needs a named owner and a date.

  1. Who owns each canonical metric, and who approves a change to it?
  2. What share of questions must hit the semantic layer, and what happens to the rest?
  3. What eval score unlocks a domain, and who can override it?
  4. How often does the suite run, and who sees a regression first?
  5. Which identity does the agent use for each data source, and where is that logged?
  6. Which answers need a human sign-off, such as anything that goes to leadership? Anthropic requires it for those.
  7. Does an adversarial review step earn its 32% extra tokens and 72% added latency in each domain?
  8. How long do you keep traces, and who can query them?
  9. Which actions can agents take on their own once they move from answering to deciding, and which need approval?
  10. Who writes and updates the statement of company intent?

Work with OpenNash

OpenNash works with VPs and Directors of Data and Analytics to put analytics agents into production. Our forward-deployed engineers join your team. They prepare the data and context, build the evals first, set up user-scoped access and audit trails, and hand over a system you own. Book a call with an OpenNash forward-deployed engineer or email us at hello@opennash.com. In the first session, we review your top three analytics use cases and your data. We show which ones deliver the highest business value and the fastest ROI.

Sources