← all posts

· 4 min read

Letting AI agents into the lakehouse without losing control

Databricks shipped three quiet updates this week — file-reading Genie Agents, AI Functions under Unity Gateway budgets, and audit logs for skills. Together they sketch what practical agent governance looks like: identity, spend and evidence.

Every data team I talk to has the same two reactions to AI agents. The business side wants them yesterday. The platform side wants to know who is paying for them, what they can see, and how anyone will reconstruct what they did after something goes wrong.

This week Databricks shipped three small updates that don't make headlines on their own. Read together, though, they answer most of those platform questions — and they're a useful checklist even if you run a different stack.

What changed this week

Each one maps to a question you'll get asked in any agent review: what can it see, what does it cost, and what did it do.

1. Identity: the agent is the user

The most important line in the new Genie volumes docs is easy to miss: the agent always runs with the permissions of the person asking the question. Every user needs at least READ VOLUME on each attached volume, or they get an error instead of an answer.

That's the right default. The failure mode with agents is rarely a model "going rogue" — it's an agent quietly running under a service principal with broad access, so a junior analyst can ask it about documents they could never open directly. Passing the user's identity through means the access model you already audit for tables also covers what the agent reads.

A few practical consequences:

2. Spend: budgets that cover the hidden callers

Chat interfaces are the visible part of AI spend. The bigger bills usually come from somewhere duller: an ai_query() call inside a pipeline that runs over a few million rows every night.

Before this change, that SQL-side spend didn't count toward Unity Gateway budgets. Now pay-per-token usage, Genie and AI Functions all roll into the same budget, which can be shared across a group or set per user, and can either alert or block when a threshold is crossed.

Two caveats worth knowing before you rely on it:

So the real control is architectural: route everything through the gateway, and make direct endpoint access the exception you have to justify.

3. Evidence: if you can't replay it, you can't trust it

Skills are the reusable actions an agent can take — query this, call that, write there. Logging their use in audit logs and the usage dashboard sounds minor, but it closes a gap that matters in any incident review: you can see which agent invoked which capability, for whom, and when.

Combined with inference tables (request/response logging to Delta) you get two layers: what was asked and answered, and what the agent actually did in between. That's the minimum I'd want before letting an agent anywhere near a write path.

A checklist you can use on Monday

Whatever platform you're on, these are the questions I'd want answered before an agent goes to production:

Question What "good" looks like
Whose permissions does the agent use? The calling user's, not a broad service principal
What data can it reach? Explicitly attached sources, split by sensitivity
Can every AI call be metered? All traffic routed through one gateway; no direct endpoints
What happens at the budget limit? Alert for most users, block for automated jobs
Can you trace an answer to its source? Citations for documents, lineage for tables
Can you replay what it did? Request/response logs plus action (skill/tool) audit logs
Who owns it? A named owner per agent, reviewed like any other job

What's still missing

This is a good direction, but it's early. File analysis is in preview with real limits (10,000 files per volume, nothing over 100 MB or 500 pages), external volumes aren't supported, and budgets are estimates rather than guarantees. Skills tracking is Beta.

None of that is a reason to wait. It's a reason to set the patterns now — user-scoped access, one metered gateway, logs you'd be comfortable handing to an auditor — while your agents are still small enough that changing course is cheap.


Sources: Analyze files in volumes with a Genie Agent · Manage budgets for Unity Gateway · AI governance with Unity Gateway · Databricks release notes