The Data Stack Is Getting a Reasoning Layer

By Tony Ojeda

The Data Stack Is Getting a Reasoning Layer

For most of the time I have worked in data, the stack has been getting better at executing work we already know how to specify. Load this source. Transform these fields. Join these tables. Run these tests. Refresh this dashboard. Alert someone if something stops moving.

That has taken us a long way. Modern data platforms can automate an enormous amount of ingestion, transformation, and serving. A large share of the work around those systems still depends on people to supply judgment, context, and coordination. That work has always been part of the data stack in practice, even when it lived outside the software.

Agents are starting to change that.

The Stack Has Always Needed a Human Reasoning Layer

When people talk about the modern data stack, they usually talk about the infrastructure: the warehouse, the transformation layer, and the tools that sit on top. Those systems sit inside the human work that makes them useful.

A new data source arrives and somebody has to understand what it contains. The fields rarely line up with the canonical model, and similar names do not always mean the same thing. Someone has to reconcile the business concepts, write the transformations, and update the tests and documentation.

Once the data is usable, another layer of work begins. Someone has to organize it into analytical structures that people can actually reason over. Metrics need definitions. Entities need relationships. Aggregations need to reflect how the business works rather than how the source system happens to store the facts.

Then the platform has to stay healthy. Feeds stall, schemas drift, and transformations break. Engineers have to trace the problem across the raw feed, the transformation, and the downstream model before they know what happened.

After that, someone still has to help people use the data. Business users ask questions in business language, not SQL. Analysts translate those questions into definitions, filters, and assumptions before an answer can be trusted.

We have automated many individual steps in this lifecycle. We have not historically automated much of the reasoning that connects them. That is the opportunity I see in agentic data systems.

Agents Can Participate Across the Data Lifecycle

Agents can now take on bounded parts of the reasoning required to build, operate, and use the platform. At the foundation layer, an agent can inspect a new source against the model the team already trusts, propose the mapping, and draft the staging logic. It can look at the raw source and the warehouse at the same time, which is the comparison a person used to do by hand.

At the analytical layer, an agent can draft the metric definitions and the relationships between entities that the source tables do not state. It has to read the definitions the team already trusts, or it will invent a second version of the same metric. The result is an analytical view someone can reuse, with the business meaning written into the definition.

At the operational layer, an agent can trace a failure across the pipeline and prepare a fix a person can review. I built that pattern into a monitoring system that checked more than 100 customer-specific feeds every few hours. Research and remediation agents followed an issue through the warehouse and the dbt models, prepared a code fix when the evidence supported one, and submitted it for human review.

At the consumption layer, an agent can sit on that foundation and take a question in business language. Routine questions can be answered without sending each one through an analyst. The answer still has to come from definitions the team already owns, which is what keeps a fluent reply from turning into an invented metric.

They share a pattern. The agent gets a narrow responsibility, enough context to perform it, and a bounded set of actions it is allowed to take. Deterministic systems still handle the work that can be specified exactly. Humans remain responsible for judgment, accountability, and the final check.

That is what I mean by a reasoning layer: a capability that works across the systems already there.

The Architecture Is More Important Than the Agent

The architecture I trust uses specialized agents with narrow jobs. One may inspect a source and propose a mapping. Another may investigate a failure and prepare a fix for review. Each one gets the minimum authority that job requires.

Tests and monitors should keep the work they already do well. If a test can prove that a transformation breaks a known rule, use the test. If monitoring can tell you a feed is stale, use monitoring. The agent belongs where the system has to read across context that those checks do not resolve.

In my own systems, the pattern is usually closer to this: inspect broadly, act narrowly, validate aggressively. Reasoning and execution move into the system, and the boundaries around controlled work stay hard. That is very different from giving an agent access to everything and hoping the prompt is good enough — the same containment discipline I describe in Guardrails Aren’t Containment.

Tools Become Participants

Traditional data tools are mostly passive in an important sense. They do the work they were configured to do, and they record what happened. A monitor can tell you a customer feed has gone stale and open the ticket. The person who picks it up still has to find the raw file, see where the downstream model stopped, and decide whether the fix belongs in the transformation or further upstream.

An agent can take that same signal and do the first stretch of the investigation. It can tell a broken transformation from a source that stopped sending, and leave a proposed fix or a routed escalation for review. The work between the alert and the decision moves into the system. People still own the architecture, the definitions, and the call that matters.

What Changes for the Data Team

Data engineers can put their time into how the platform should be organized as the business changes. That work gets crowded out today by small failures. Each one asks the engineer to reconstruct the context from scratch and, often, to rewrite a transformation the team has already written.

Analysts and data scientists can keep their time for model design, experiments, and decisions the current definitions do not settle. A routine question still reaches them because someone has to choose the metric, the filter, and the grain. Once those choices live in the platform, the question can be answered before it becomes a ticket in their queue.

Business users can ask that question in the language they already use and get the number the team has already defined. The reply should name the definition, so revenue or retention means the version the platform stands behind. The path through the warehouse can stay behind the answer.

The data team becomes the layer that owns architecture, judgment, and exceptions.

More of the Reasoning Moves Into the Platform

The warehouse, the transformation code, and the tests stay. What changes is how much of the reasoning around those systems can move into the platform itself.

Today, many teams will build this as a layer around the stack they already run. Over time, I expect more of that capability to become native to the platforms themselves. Product boundaries will change. The direction is clearer to me now than it was a year ago: a tool that already sees a stale feed or an unanswered question should be able to act on what it sees.

We spent years making data infrastructure programmable. Then we made it observable. Parts of it can now do some of the work that used to sit entirely with the team. A specialized system can read enough context to reason about what should happen next, do the bounded work, and hand the consequential decision back to a test or a person.

The modern data stack automated data processing. The next layer is beginning to automate more of the reasoning and work around the data itself.

#AI#Data Engineering#AI Agents#Data Quality#Autonomous Remediation

Subscribe to The Algorithm

Notes on building AI systems that actually work.