Trustworthy AI in the Agentic Lakehouse: from Concurrency to Governance

Jacopo Tagliabue, Federico Bianchi, Ciro GrecoarXiv 2025 · DOI

Abstract

The rapid advancement of Large Language Models (LLMs) has enabled the creation of autonomous agents capable of complex data engineering tasks. However, a significant "trust gap" prevents enterprises from deploying these agents on production data due to risks of data corruption and lack of governance. This paper introduces Bauplan, an agent-first lakehouse architecture that addresses these challenges by adapting database concurrency principles—specifically Multi-Version Concurrency Control (MVCC)—to distributed data environments. By enforcing strict isolation through a "branch-then-merge" model, Bauplan ensures that agentic workflows remain sandboxed until their outputs are verified, transforming governance from an administrative burden into a technical side effect of the infrastructure.

Introduction: The Trust Gap in Data Engineering

While LLMs excel at generating code and utilizing tools, their deployment in production data environments remains limited. Traditional Data Lakehouses, designed for human engineers, lack the necessary safeguards for "swarms" of autonomous agents. The primary risks include accidental data deletion, pollution of high-quality datasets, and the inability to manage massive concurrency. Current infrastructures struggle with three core issues: managing simultaneous agentic reads/writes, ensuring experimental code does not impact production pipelines, and providing granular governance without creating operational bottlenecks.

The Bauplan Architecture

Bauplan reimagines the lakehouse from first principles to support an "agentic" world. It draws an operational analogy to Multi-Version Concurrency Control (MVCC), the technology enabling modern databases to handle concurrent users. However, Bauplan adapts this for the decoupled, multi-language environment of a distributed lakehouse.

The Bauplan architecture integrates an agent reasoning loop with a robust verification cycle to ensure data integrity.

The system operates through a unified API that mediates all data and compute interactions. This "agentic loop" allows agents to reason about tasks, access tools via an MCP (Model Context Protocol) server, and perform data operations within a controlled environment.

Key Architectural Pillars

  1. Git-like Data Isolation: Bauplan employs a "branch-then-merge" model. Every agentic workflow operates on a temporary, isolated branch of the entire lakehouse. This ensures that even if an agent generates faulty code, the "main" production branch remains untouched.
  2. Sandboxed Compute: Using Function-as-a-Service (FaaS), compute is fully isolated. The platform manages runtimes and network access, often blocking external internet connectivity to prevent data exfiltration.
  3. Declarative Abstractions: Through Python decorators, I/O becomes platform-mediated. Agents request "tables" rather than reading raw files, allowing the system to track data lineage and enforce access controls automatically.
  4. Atomic Multi-table Merges: Changes across multiple tables are merged into the production branch atomically upon success. If a pipeline fails, the entire branch is discarded.
Branching allows for isolated execution (bottom) where failures do not affect the main state, unlike traditional linear execution (top).

Results: The Self-Healing Pipeline

The efficacy of the Bauplan architecture is demonstrated through a "self-healing" data pipeline using public taxi trip data. When a production failure occurs, the system triggers a "ReAct" reasoning loop where an agent diagnoses the error, writes a fix, and executes it on an isolated branch. A "verifier"—a set of computational acceptance criteria—must pass before the fix is proposed for a human-in-the-loop "merge request." This workflow proves that high-stakes data engineering can be safely automated when infrastructure enforces strict isolation and verification.

Discussion and Future Work

Bauplan suggests that governance is a natural "side effect" of technical isolation. By providing agents with the "illusion of solitude"—the feeling of having a private copy of the data—the system simplifies access control. However, challenges remain. The performance overhead of managing thousands of concurrent branches needs further benchmarking, and the reliability of the system still depends on the quality of human-written verification criteria. Future research will explore using AI to assist in generating these critical verification tests, further closing the trust gap.

Summary updated

BibTeX
@misc{tagliabue2025trustworthy,
  author = {Jacopo Tagliabue and Federico Bianchi and Ciro Greco},
  title = {{Trustworthy AI in the Agentic Lakehouse: from Concurrency to Governance}},
  year = {2025},
  eprint = {2511.16402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.16402},
}
Figure