AI agent audits · Snowflake Cortex and Claude

Your AI agent is almost right. That's the problem.

Luu Research is an independent practice that tests and fixes enterprise AI agents, built on Snowflake Cortex or on Anthropic's Claude, so business users get the answer finance would give, not one that is a fraction of a percent off and quietly built on the wrong definition.

Senior and hands-onThe person who scopes it does the work
Fixed-fee auditClear scope, clear deliverables
ConfidentialNo client names or data shared
Two platforms, one methodSnowflake Cortex and Claude agents
The risk

Almost right is the expensive kind of wrong.

Wrong answers that look wrong get caught. The ones that cost money look fine: plausible, consistent, and built on a definition your finance team doesn't use.

In a controlled test, every failure came from the same root. The agent had to guess what a business word meant, and it guessed reasonably but differently from the house definition.

  • "Revenue" dated by order date instead of ship date
  • Net and gross revenue offered side by side, with no default
  • Three different answers to "how many active customers?"
Question: What was revenue in 1995?Snowflake Cortex agent
Before
$33.22B
Order-date revenue. Close enough to pass a casual check in a meeting.
After
$33.26B
Net revenue by ship date, the definition written down where the agent reads it.
A 0.13% gap. Small enough to miss, and still the wrong definition.
Platforms

Where your agent runs

Two common ways enterprises put agents in front of business users. Same question sets, same strict scoring, fixes placed in each platform's own layers.

Snowflake Cortex agents

Cortex Agents · Cortex Analyst · semantic views

Agents that answer questions straight from your warehouse. The usual failure is a business term the agent has to guess.

  • Semantic view metrics, default meanings and scope rules
  • Join paths that double-count or mix up entities
  • Agent instructions and tool descriptions
  • Behaviour after schema changes and data loads
See the Cortex case study →

Claude agents

Claude API · Claude Agent SDK · MCP tools

Agents your team built on Anthropic's Claude, calling your own tools and data. The usual failure is a tool or context the model reads differently from how you meant it.

  • System prompts, context and where business rules live
  • Tool definitions, descriptions and MCP servers
  • When the agent should stop, ask or refuse
  • Evaluation suites that survive model upgrades
Claude API case study coming soon
Approach

Measure first. Fix in the right layer. Keep testing.

Most teams fix wrong answers by adding more text to the prompt. That puts the rule in a layer that doesn't make the decision, so the fix is fragile. The method is the same whichever platform your agent runs on.

1

Baseline

Build a question set with your business users and score the current agent against strict rules agreed before the run.

2

Diagnose

Trace each failure to its root: an undefined term, a join trap, a missing scope rule, a vague tool description, or missing context.

3

Fix

Place each fix in the layer that owns it: business meaning in the data layer, capabilities in tool definitions, behaviour in the instructions.

4

Re-test

Score again on a held-back set the fixes never saw, and keep the suite for every schema change and model upgrade.

Services

Start with an audit. Keep the suite running.

Retainer

Re-testing

Stale definitions are caught before a business user finds them.

  • The audit suite run on a schedule
  • Extra runs after schema changes and data loads
  • Checks when the underlying model changes
  • Short report of anything that moved
PricingFixed monthly fee
Delivery

Fix sprints

Hands-on work when the audit finds more than your team wants to take on.

  • Business definitions, semantic views and metrics
  • System prompts, tool definitions and context
  • Scored before and after every change
  • Handover your team can maintain
PricingScoped per engagement
Case study · Snowflake Cortex

One agent, 27 questions, two setups.

A Cortex agent on Snowflake's public TPC-H sample data, tested before and after the business definitions were written down, then tested again after three breaking changes to the tables.

Read the full write-up →

Next: the same questions and definitions run on an agent built directly on the Claude API. Write-up coming soon.

20 → 27Questions answered correctly, out of 27
14 → 21Automatically scored questions passed, out of 21
0Questions that passed before and broke after the fixes
1 of 3Data changes that still slipped through. Why re-testing matters.
Principles

How the work is done

Meaning lives in one governed place

Business definitions belong in the layer every query and agent reads, such as a semantic view, not in ever-longer prompts.

Scoring is decided before the run

Strict written rules. A held-back question set the fixes never see decides the final score.

Every fix is tested on its own

So you know which change earned which point, and nothing that worked quietly breaks.

Built to be re-run

Agent behaviour shifts with model versions and data loads. The suite is a regression test, not a one-off report.

Confidential by default

No client names, data or results are shared without written permission.

Honest about limits

An agent that says "the data can't answer that" is doing its job. The audit rewards it.

FAQ

Common questions

Which platforms do you cover?

Agents built on Snowflake Cortex (Cortex Agents, Cortex Analyst and semantic views) and agents built on Anthropic's Claude (the Claude API, the Claude Agent SDK and MCP tools). The test method and scoring are the same on both.

Our agent runs on another platform. Can you help?

Possibly. The method carries over to most agents that answer business questions from data. Send a short note about your setup and you'll get an honest answer about fit.

How long does an audit take?

Typically two to three weeks for one business domain, from building the question set to the second scored run.

Do you need access to our production data?

No. The work runs inside your own environment through read-only, least-privilege access, and no results are shared without written permission.

What if our agent is already doing well?

Then you get a scored baseline that proves it, and a regression suite that keeps it that way through the next schema change or model upgrade.

Contact

Find out how often your agent is right.

If you have an AI agent in front of business users, on Snowflake Cortex or Claude, send a short note about your setup. You'll get a reply with whether an audit makes sense and what it would cover.