EP 45: Why AI Agents Break in Production: The Missing Harness in Your Data Stack

2026-07-15 · Show: Data Science With Sam · 1953s · Source

Agentic Data Engineering Harnesses with Pradmesh Patil

概览

This episode of DataSense with Sam centers on why AI agents fail in production data environments even when the underlying models are strong. The opening example is an independent evaluation of Snowflake Cortex Analyst where 6 in 10 AI-generated queries were wrong while still compiling and running without errors.

Pradmesh Patil argues that the problem is structural: agents need a domain-specific harness that supplies context, governance, tools, skills, validation, and infrastructure. A system prompt can tell the model what to do, but it cannot reliably provide ground truth, enforce permissions, control costs, or validate data outputs.

The discussion uses Altimate Code as the main example. Pradmesh describes its open-source adoption, benchmark performance on agentic data engineering tasks, and design choices such as deterministic validation, context compaction, and configurable governance guardrails.

The episode ends by looking forward: data engineers may write less SQL and fewer dbt models by hand, but their role shifts toward directing, validating, and scaling fleets of agents rather than disappearing entirely.

分段落总结

[00:05] Wrong Queries That Still Run

[事实] The host opens with an independent evaluation of Snowflake Cortex Analyst where 6 in 10 AI-generated queries were wrong, yet all compiled and ran without errors. [事实] The episode frames this as a harness problem rather than simply a model-quality problem. [事实] Pradmesh Patil is introduced as the co-founder and CEO of Ultimate/Altimate AI, focused on agentic AI for data engineering.

[01:45] Why AI Agents Fail in Data Environments

[事实] Pradmesh says he and his co-founder saw that AI would affect many industries, including data. [事实] He observed that models kept improving, but outcomes in data work varied widely between users. [事实] He attributes that gap to whether the right information, context, and supporting components are configured around the model. [推测] The key claim is that production performance depends less on raw model capability and more on the operational environment built around the model.

[04:10] What an Agentic Harness Includes

[事实] Pradmesh defines a harness as a set of components that help AI agents work correctly in a specific domain. [事实] For data work, he lists context such as table schemas, lineage, query results, query profiles, and query plans. [事实] He identifies governance as essential, including limits on sensitive-data access and prevention of expensive agent-run queries. [事实] He also includes MCP servers, tools, workflow-specific skills, shared skill repositories, and infrastructure such as agent sandboxes and validation environments. [推测] The harness is presented as a full operating layer for agents, not just a prompt template or coding assistant configuration.

[07:32] System Prompts Versus Ground Truth

[事实] The host summarizes the distinction by saying a system prompt tells the model what to do, while a harness tells it what is actually true. [事实] The host connects harnesses to shared knowledge, context, and grounding for data engineering, data science, and machine learning users. [推测] This segment reinforces the episode’s central argument that prompt engineering alone cannot replace structured access to reliable metadata and validation.

[08:28] Silent SQL Failures and Hallucinated Data

[事实] The host cites figures that 27 to 33% of AI-generated SQL references tables that do not exist, and that 78% of errors are silent wrong joins. [事实] Pradmesh describes hallucination as a classic agent problem where the agent assumes a table exists or uses only a subset of data while confidently presenting the answer as correct. [事实] He says this is not the LLM’s fault if humans fail to provide the correct table, relationship, and lineage context. [事实] He says a validation layer is needed to check whether the agent performed the task correctly. [推测] The most dangerous failures discussed are not syntax errors, but plausible-looking results that pass execution while misleading users.

[10:34] Altimate Code as an Open-Source Harness

[事实] Pradmesh says Altimate’s free open-source project has more than a million downloads and is used by thousands of people. [事实] He says Altimate Code can be found on GitHub and installed with an npm package. [事实] He describes the project as trying to solve context delivery and validation-layer problems for agents. [事实] The host says the GitHub repository is included in the show notes.

[11:19] Benchmark Performance and Adoption

[事实] The host says Altimate Code topped ADE Bench, an industry benchmark for agentic data engineering created by Ben Stansel and dbt Labs. [事实] Pradmesh says Altimate’s open-source products have been downloaded more than a million times and used in over 200 countries. [事实] He says ADE Bench compares harnesses and tools across a series of agentic data engineering tasks. [事实] He highlights that Altimate topped the benchmark using Sonnet while some other tools used Opus. [推测] Pradmesh uses this comparison to argue that a stronger harness can outperform reliance on a more advanced model alone.

[12:49] Data Agent Benchmark

[事实] Pradmesh mentions another benchmark, DAB, which he identifies as a data agent benchmark from people at the University of Berkeley. [事实] He says Altimate also topped that benchmark. [事实] He describes the benchmark format as connecting a harness and evaluating how agents behave across different tasks. [推测] The benchmark discussion is used to position harness quality as a measurable engineering advantage.

[14:06] LLM Reasoning Versus Deterministic Validation

[事实] The host asks where Altimate draws the line between what belongs in the LLM reasoning loop and what should be handled outside it. [事实] Pradmesh says many people treat LLMs like a big hammer, but validation often needs standard deterministic logic rather than probabilistic reasoning. [事实] He gives the example of checking whether a query produces the right data as a deterministic task. [事实] He says Altimate’s harness routes appropriate work to deterministic layers instead of blindly sending everything to the LLM. [推测] The design principle is to use LLMs for generation and reasoning, while using deterministic systems for correctness checks.

[16:28] Context Compaction for Long Data Tasks

[事实] Pradmesh says Altimate has done innovation around context compaction for long-running tasks. [事实] He says generic context compaction can damage data tasks if it removes schema or lineage information. [事实] He calls compacting schema information a recipe for disaster because later task steps may fail when required schema details are incomplete. [事实] He says Altimate avoids compacting information that may be important for later data-engineering steps. [推测] This makes context management part of correctness, not only a token-efficiency concern.

[19:04] Governance, Cost Controls, and Permissions

[事实] The host asks about a reported $5,000 bill from a single Cortex AI query and broader concerns around cost controls and permission enforcement. [事实] Pradmesh says governance includes both cost and permission angles, including sensitive-data access. [事实] He says humans have long struggled with separate RBAC and access-policy models across tools, and agents make that problem larger. [事实] He argues agents must be explicitly told not to run expensive or long-running queries. [事实] He says Altimate’s harness includes configurable rules, permissions, and guardrails around cost, governance, and PII access.

[21:03] Cross-Tool Governance Layer

[事实] Pradmesh says agents sit outside individual tools, which allows a layer to work above existing governance frameworks. [事实] He says this layer can interface with pipeline tools, warehousing tools, and BI tools. [事实] He describes Altimate Code’s open-source harness as extendable so enterprises can add their own rules, permissions, and guardrails. [推测] The governance model is positioned as a unifying layer across fragmented enterprise data platforms.

[22:46] The Future Role of Data Engineers

[事实] The host asks whether data engineers will stop writing SQL and dbt models, or whether their role will shift. [事实] Pradmesh says he believes the days of writing code by hand are ending quickly, not only for data engineers but also for software engineers. [事实] He says data work has unique requirements because data engineers and data scientists must worry more about the data itself. [事实] He says harness components are needed so data engineers and data scientists can use an army of agents at high speed. [推测] The role described is less about manual coding and more about instructing, supervising, and validating agent-produced work.

[25:03] Shrinking Backlogs and Faster Delivery

[事实] Pradmesh says companies are producing technology functionality much faster than before. [事实] He says some companies have produced in half a year what previously took a full year. [事实] He says data teams historically had long backlogs for models or dashboards, sometimes three to six months. [事实] He says those backlogs are shrinking rapidly as AI-assisted work accelerates. [推测] The episode presents agentic data engineering as a way to increase throughput rather than merely automate isolated tasks.

[26:44] Industrial Revolution Analogy

[事实] Pradmesh compares the current transition to the Industrial Revolution, when machines began doing work previously done by hand. [事实] He says agents may increase role throughput by 10x, 20x, or 100x. [事实] He says some roles will be eliminated, but new roles will also be created. [推测] He does not claim to know the exact outcome, but expects workers to reposition around the new agent-driven workflow.

[27:49] AI as Acceleration for Proofs of Concept

[事实] The host agrees that AI is augmenting human intelligence and says he has not seen people work less after adopting AI. [事实] The host says tasks that once took weeks or months to build as proofs of concept can now be done within days using AI. [事实] He says organizations can bring ideas to executives or stakeholders much faster, then think about production and optimization later. [推测] The host frames AI as increasing both productivity and pace, rather than reducing the amount of work people take on.

[29:35] Advice for Builders and Entrepreneurs

[事实] Pradmesh advises builders to think about how innovation works across different components and tools in the data space. [事实] He says AI layers should work with data pipelines, data warehouses, and BI layers rather than being siloed inside one tool or vendor. [事实] He encourages people to build in an open and public way where possible. [事实] He recommends relying on open source, building community, and open-sourcing useful work if the company allows it. [推测] His advice favors ecosystem-level products over narrow single-vendor AI features.

[31:25] How Listeners Can Engage

[事实] Pradmesh says the team is active on the GitHub repository and has a Slack community linked from the repo. [事实] He invites listeners to try the project, create issues, join Slack, share feedback, and DM him directly there. [事实] The host closes by asking listeners to subscribe on YouTube, Podbean, Spotify, Apple Podcasts, and iHeartRadio. [推测] The closing reinforces that the product’s open-source community is a central part of Altimate’s adoption strategy.

播客点评/总结

[推测] The episode is most valuable for data engineers, analytics engineers, data scientists, and platform leaders who are evaluating AI agents for real production workflows. Its strongest contribution is the distinction between model capability and harness quality.

[推测] The discussion is clear on failure modes that matter in data work: hallucinated tables, silent wrong joins, incomplete context, excessive query costs, and missing validation. It also makes a practical case for combining LLM reasoning with deterministic checks.

[推测] The main limitation is that the conversation stays mostly conceptual and product-oriented. It mentions GitHub, benchmarks, governance, and context compaction, but does not walk through a concrete implementation or show sample code.

[推测] This is a useful episode for listeners who already understand SQL, data pipelines, dbt, Snowflake, or data governance and want a framework for thinking about agentic data engineering beyond prompt engineering.