Platform · Open reference architecture

The agentic lakehouse

Omnigent and MLflow over sandboxed Spark Connect sessions, on Iceberg and Unity Catalog

Agents get a sandbox, a Spark session and a catalog identity. The platform decides the rest.

Laptop (Docker)KubernetesAWSUpdated 2026-11-21

In one paragraph

The agentic lakehouse architecture gives each AI agent a governed path to data. Omnigent runs the agent and evaluates policies on every tool call, model request and file operation, at session, agent and server level; MLflow traces and evaluates every step and fronts model providers. Each agent session runs in a sandbox, locally or on Kubernetes, with provider credentials kept outside it. Inside, the agent gets a Spark client over Spark Connect: a local Spark with Project Feather's shuffle-free execution for fast work on a subset of data, or a remote session pinned to its identity. Through Spark it can run batch, streaming, Real-Time Mode and declarative pipelines against Apache Iceberg tables in Unity Catalog, which authorizes each request and vends storage credentials scoped to what the agent may touch.

Platform

Omnigent and MLflow over sandboxed Spark Connect sessions, on Iceberg and Unity Catalog

Sources

Ingestion

Open lakehouse platform

AI and agents

Engine access

Execution

Data foundation

Governance

Operations

Serving

Teams

Lit boxes are part of this architecture, with the versions its reference repo pins. Switch to Full platform to see every capability. Select any box or team for details. marks a swappable choice.

When to use it

  • You want agents to build and operate pipelines, not only answer questions.
  • You need one governance story for people, services and agents.
  • You want agents to iterate fast on small data without touching production.

When to pick something else

  • A single question-answering assistant over a few tables: the semantic layer architecture is lighter.

Walkthrough

How data moves through it

  1. 1

    A session starts in a sandbox

    Omnigent starts the agent in a container or microVM, locally or on Kubernetes. The sandbox gets the agent's own identity; provider credentials stay outside.

  2. 2

    Policies wrap every call

    Each tool call, model request and file operation passes session, agent and server policies. Any DENY blocks it; any ASK waits for a person.

  3. 3

    The agent gets a Spark session

    Inside the sandbox it connects over Spark Connect to a local Spark with Project Feather enabled, working on a subset of the data registered in the same catalog.

  4. 4

    It writes declarative pipelines

    The agent writes Spark Declarative Pipelines into its own namespace and dry-runs them against the real catalog.

  5. 5

    Changes go through review

    Passing work becomes a pull request; CI dry-runs it again and a controller applies it after approval.

  6. 6

    Production runs under identity

    Approved pipelines run on the cluster in batch, streaming or Real-Time Mode, through an endpoint pinned to the agent's or tenant's identity; the catalog vends credentials only for its tables.

  7. 7

    Everything is traced

    MLflow records each agent step and evaluation; OpenLineage records every table read and written; Iceberg snapshots let you roll back.

Bill of materials

Components and versions

Versions are the ones pinned in the reference repositories below.
CapabilityComponentRole in this architectureVersionLicense
SourcesSource systemsOperational systems and event streamsThe data agents work on
IngestionEvent streamingApache KafkaEvents agents can build streaming pipelines overApache-2.0
AI and agentsAgent harness and policyOmnigentRuns agents; policies return ALLOW, DENY or ASK at session, agent and server level
AI and agentsAgent sandboxesOmnigent sandbox hostsor KubernetesA container or microVM per session; provider credentials never enter it
AI and agentsAgent sandboxesKubernetesCluster for sandboxes and Spark executorsApache-2.0
AI and agentsTools and skillsModel Context Protocolor lakehouse-agent-kitNamed lakehouse tools: read a table, dry-run a pipeline, run one SQL statementMIT
AI and agentsModels and gatewayMLflowor vLLM, OllamaAI Gateway in front of hosted providersApache-2.0
AI and agentsTracing and evaluationMLflowTraces every agent step; evaluates results against trusted tablesApache-2.0
Engine accessSpark Connect sessionsSpark ConnectOne client session per agent: local in the sandbox, or a remote endpoint pinned to its identityApache-2.0
ExecutionBatch and SQLApache SparkBatch and SQL on the cluster after reviewApache-2.0
ExecutionDeclarative pipelinesSpark Declarative PipelinesThe agent's output; a dry run must pass before it runsApache-2.0
ExecutionStructured StreamingApache SparkStructured Streaming jobs agents can authorApache-2.0
ExecutionReal-Time ModeSpark Real-Time ModeReal-Time Mode for millisecond pathsApache-2.0
ExecutionLocal mode (Project Feather)Spark local mode (Project Feather)Fast local Spark on a subset of data, same catalogSpark 4.3Apache-2.0
Data foundationCatalog and credentialsUnity Catalog OSSor Lakekeeper, Apache PolarisAuthorizes each request; vends credentials scoped to the agent's namespaceApache-2.0
Data foundationOpen table formatApache Icebergor Delta LakeSnapshots make every agent write inspectable and reversibleApache-2.0
Data foundationObject storageSeaweedFSor Amazon S3, RustFS, MinIOObject storageApache-2.0
GovernanceLineageOpenLineageWhich tables each agent job read and wroteApache-2.0
OperationsOrchestrationApache AirflowRuns approved pipelines; agents trigger runs through itApache-2.0
OperationsRuntime, CI/CD and IaCGitOps CI gateAgent changes arrive as pull requests; CI dry-runs them before anything is applied
OperationsIdentity and secretsSPIFFE / SPIREA workload identity per agent and tenantApache-2.0

People and agents

Who works with it

Data engineers

Pipelines that are correct, idempotent and cheap to rerun.

Works with: Event streaming, Batch and SQL, Declarative pipelines, Structured Streaming, Real-Time Mode, Orchestration, Open table format

AI agents

Tools with clear arguments, a sandbox to write into, fast feedback from dry runs, and version-pinned context.

Works with: Tools and skills, Agent sandboxes, Spark Connect sessions, Local mode (Project Feather), Declarative pipelines

ML and AI engineers

Reproducible models, traced and evaluated agents, and a model gateway they control.

Works with: Models and gateway, Tracing and evaluation, Agent harness and policy, Tools and skills

Analysts and analytics engineers

One definition of each metric, fast SQL, and dashboards that match.

Works with: Batch and SQL

Platform engineers

A platform that is boring to run: deployable from code, observable, with identities for every person, service and agent.

Works with: Object storage, Catalog and credentials, Runtime, CI/CD and IaC, Identity and secrets, Agent sandboxes, Spark Connect sessions

Governance and security

Policies that hold in every engine and for every agent, lineage for audits, and least privilege by default.

Works with: Lineage, Catalog and credentials, Agent harness and policy, Identity and secrets

Run it

Reference code

open-lakehouse/lakehouse-masterclassApache-2.0Laptop (Docker)

The local version: an SDP agent on Omnigent with a local model, MCP tools and ALLOW, DENY and ASK policies, writing into a sandbox namespace on Iceberg and Unity Catalog (chapters 3 and 13).

The production version: PR-only agent output, CI dry runs, identity-pinned Spark Connect behind mTLS, Kubernetes executors and a governed Iceberg REST catalog with per-tenant credential vending.

lisancao/spark-demosLaptop (Docker)

Demo 07 measures the local-mode overheads Project Feather targets; demo 16 shows Spark 4.3's shuffle-free single-task execution.

Caveats from the reference repos

  • Project Feather's shuffle-free single-task execution ships off by default in Spark 4.3 and applies to in-memory relations at or below 1,000 rows by default.
  • Omnigent sandbox providers differ in network egress control; check the provider before relying on it for isolation.
  • This architecture combines the masterclass and the paper; no single repo deploys all of it yet.

Answers

Frequently asked questions

How do you give an AI agent access to Spark safely?
Give each agent its own Spark Connect session: a local Spark in its sandbox for fast work on a subset of data, and a remote endpoint pinned to its identity for production runs. The catalog authorizes every request and vends storage credentials scoped to the agent's namespace.
What do Omnigent and MLflow each do in an agentic lakehouse?
Omnigent runs the agent, keeps its session in a sandbox, and enforces policies on every tool call, model request and file operation. MLflow traces and evaluates what the agent did and can front model providers through its AI Gateway.
What is Project Feather and why does it matter for agents?
Project Feather (SPARK-56978) cuts Spark's local-mode latency. Spark 4.3 adds shuffle-free single-task execution for small queries, which suits agents that issue many small queries while they iterate.