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.
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
The agents, the control plane that decides what they may do, and the models behind them.
Engine access
How agents, apps and people reach compute: a client session per identity.
Execution
Spark's execution modes, plus engines that read the same tables.
Data foundation
Open tables in a governed catalog, on storage you own.
Governance
Operations
Serving
Teams
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
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
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
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
It writes declarative pipelines
The agent writes Spark Declarative Pipelines into its own namespace and dry-runs them against the real catalog.
- 5
Changes go through review
Passing work becomes a pull request; CI dry-runs it again and a controller applies it after approval.
- 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
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
| Capability | Component | Role in this architecture | Version | License |
|---|---|---|---|---|
| SourcesSource systems | Operational systems and event streams | The data agents work on | ||
| IngestionEvent streaming | Apache Kafka | Events agents can build streaming pipelines over | Apache-2.0 | |
| AI and agentsAgent harness and policy | Omnigent | Runs agents; policies return ALLOW, DENY or ASK at session, agent and server level | ||
| AI and agentsAgent sandboxes | Omnigent sandbox hostsor Kubernetes | A container or microVM per session; provider credentials never enter it | ||
| AI and agentsAgent sandboxes | Kubernetes | Cluster for sandboxes and Spark executors | Apache-2.0 | |
| AI and agentsTools and skills | Model Context Protocolor lakehouse-agent-kit | Named lakehouse tools: read a table, dry-run a pipeline, run one SQL statement | MIT | |
| AI and agentsModels and gateway | MLflowor vLLM, Ollama | AI Gateway in front of hosted providers | Apache-2.0 | |
| AI and agentsTracing and evaluation | MLflow | Traces every agent step; evaluates results against trusted tables | Apache-2.0 | |
| Engine accessSpark Connect sessions | Spark Connect | One client session per agent: local in the sandbox, or a remote endpoint pinned to its identity | Apache-2.0 | |
| ExecutionBatch and SQL | Apache Spark | Batch and SQL on the cluster after review | Apache-2.0 | |
| ExecutionDeclarative pipelines | Spark Declarative Pipelines | The agent's output; a dry run must pass before it runs | Apache-2.0 | |
| ExecutionStructured Streaming | Apache Spark | Structured Streaming jobs agents can author | Apache-2.0 | |
| ExecutionReal-Time Mode | Spark Real-Time Mode | Real-Time Mode for millisecond paths | Apache-2.0 | |
| ExecutionLocal mode (Project Feather) | Spark local mode (Project Feather) | Fast local Spark on a subset of data, same catalog | Spark 4.3 | Apache-2.0 |
| Data foundationCatalog and credentials | Unity Catalog OSSor Lakekeeper, Apache Polaris | Authorizes each request; vends credentials scoped to the agent's namespace | Apache-2.0 | |
| Data foundationOpen table format | Apache Icebergor Delta Lake | Snapshots make every agent write inspectable and reversible | Apache-2.0 | |
| Data foundationObject storage | SeaweedFSor Amazon S3, RustFS, MinIO | Object storage | Apache-2.0 | |
| GovernanceLineage | OpenLineage | Which tables each agent job read and wrote | Apache-2.0 | |
| OperationsOrchestration | Apache Airflow | Runs approved pipelines; agents trigger runs through it | Apache-2.0 | |
| OperationsRuntime, CI/CD and IaC | GitOps CI gate | Agent changes arrive as pull requests; CI dry-runs them before anything is applied | ||
| OperationsIdentity and secrets | SPIFFE / SPIRE | A workload identity per agent and tenant | Apache-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
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.
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.
Related architectures
All architecturesPlatform
The open lakehouse on a laptop
Spark 4.3, Apache Iceberg, Unity Catalog, Kafka, Airflow, MLflow and an agent, in Docker
Platform
Governed AI agents for data engineering
Spark Declarative Pipelines, Spark Connect, Kubernetes and a governed Iceberg REST catalog
Streaming
Streaming medallion
Kafka, Spark Structured Streaming and Apache Iceberg in Unity Catalog
