Skip to content
bricksentry

Blog · Essay

Why bricksentry, and why now

bricksentry makes Databricks data changes safe before they ship. This is the problem it solves, what I believe, and where it's going.

By Brahma · Founder of bricksentry · Databricks Champion · · 7 min read

ShareLinkedInX

In one paragraph

bricksentry is an open-source change-safety layer for Databricks. It helps data teams and AI agents understand the impact of a data change before it reaches production. Before a write lands, it runs the change on a copy of the table, shows exactly what changed in the data, shows who depends on that table, applies your team's rules and returns a clear decision: pass, warn, needs a human, or block. If something does go wrong, the command to undo it is already prepared.

The simplest way to think about it: bricksentry is a pull request review for data.

Code review reads the code; a data review shows what changed, who is affected and whether it is safe to deploy

It started with one bad MERGE

Every data engineer has a story like this. Mine was a MERGE.

The job ran. It finished on time. Nothing failed, nothing alerted, and the whole target table was disturbed. The code had passed review. The pipeline was green. The data was wrong.

What stayed with me wasn't the fix. Delta Lake can restore a table. It was how little we knew in the moment. What exactly changed? Which rows? Which reports and teams were already reading the bad data? Was it safe to roll back, or would that erase good writes that came after?

Those answers existed. They were in the data, the table history and the lineage. Nobody had put them in front of a person before the change shipped.

That is the gap bricksentry fills.

Why now

For years, a bad data change was mostly a human problem. Someone wrote a join wrong, someone missed a filter, a reviewer read the code and didn't see it. Painful, but rare enough to live with.

Three things have changed in 2026.

AI writes more of our code. Coding assistants and agents now write SQL, rebuild tables and change pipeline logic. The code arrives faster than anyone can review it line by line, and it often looks perfectly reasonable.

Agents write to data directly. They run inside jobs, on schedules, with real permissions. Permissions answer one question well: may this agent write to this table? They can't answer the one that matters next: is this write right?

Governance is moving into the systems. Gartner expects AI governance to shift from policy documents to controls built into AI systems and workflows, with oversight at runtime. It also predicts that by 2027, 40% of enterprises will demote or decommission autonomous agents because of governance gaps found only after production incidents.

Code review reads code. Data quality checks look at rows one at a time. Neither one compares a whole table before and after a change and asks, "Is this what we meant?" That question needs its own step. bricksentry is that step.

What bricksentry does, in four checks

Every change, from a pull request, a scheduled job or an AI agent, goes through the same four checks, in order.

  1. What changed in the data? bricksentry matches the table before and after the change on its key columns and counts rows added, removed and changed, duplicate keys, schema changes and how column totals moved. It reads both sides at pinned versions, so a busy job can't blur the result. Previews run on a Delta shallow clone, so production is never written to.
  2. Who depends on it? It reads Unity Catalog lineage to find every downstream table, job, dashboard and Genie space, with their owners and tags.
  3. Is it allowed? Your rules, in a plain policy file, decide the verdict. The same change always gets the same answer, because no language model makes the decision.
  4. How do we undo it? It reads Delta history and prepares the exact RESTORE command, and warns you if restoring would also erase good writes that came after.

The result is one of four verdicts: pass, warn, needs_human or block. CI can fail on it, a job can stop on it, and an agent gets a clear next step.

bricksentry sits between people, pipelines and AI agents and production, returning pass, warn, needs_human or block

Built for AI agents, on purpose

bricksentry is a safety layer between AI-generated data changes and production.

Agents call it through an MCP server, or from Python, before they write. They can ask what depends on a table, preview a write on a clone, assess a change, and ask whether it is safe to ship. The design follows a few rules I learned the hard way, by attacking my own tool:

  • Agents get counts and verdicts, never production values. An early version let an agent with no access to a salary table read old salaries through the preview. That's fixed, and it shaped everything after.
  • Agents can only touch the tables you allow, including tables hidden inside views and joins.
  • "Couldn't check" never becomes "passed." If a check can't run, the answer is needs_human, with the reason.
  • Every agent check is logged, so there is an audit trail of what was asked and what was decided.

What bricksentry is not

Being clear about this matters as much as the features.

  • It's not a replacement for data quality checks. Row-level checks and Lakeflow expectations guard each record. bricksentry guards the change as a whole. They work well together.
  • It's not an AI that decides for you. Verdicts come from rules your team can read and argue about in a pull request.
  • It's not a hosted service. It's an Apache-2.0 Python package that runs in your environment. Diffs run as SQL on your own warehouse, and your data stays in your workspace.
  • It's not finished. It's in public beta. It has been tested on tables from 1 million to 1 billion rows on Databricks, and every test round, with the bugs it found, is published. It hasn't yet been proven across many teams' production pipelines. That's what the beta is for.

Mission and Vision

Mission

Give every data team confidence that code changes, whether written by humans or AI, won't silently break critical datasets.

Vision

A future where every data change is evaluated, understood and verified before it impacts the business, and where bricksentry is the standard safety layer between AI-generated data changes and production data platforms.

How I'm building it

In the open, and with the people who use it.

Some of the best parts of bricksentry came from strangers. A question on X about restoring a table led to the warning that protects newer writes. A reader on the Databricks Community pointed out that a net total can hide money moving between rows, and that's now on the list. Every round of attacks I run against my own tool, and every bug it finds, is written up in the repository.

Next on the roadmap: support for AWS Athena and Iceberg, an OpenLineage provider for Airflow, dbt and Spark, and using Lakeflow expectation results and data quality monitoring as signals in the verdict.

A message to data professionals

There is a lot of worry that AI will replace data engineers. I believe the opposite.

Agents will write more of the code. But someone still has to decide what "correct" means for a revenue table. Someone has to know that a 0.2% rise in row count is a disaster if those rows are duplicate orders. Someone has to know which table feeds the report leadership reads on Monday morning. That knowledge lives with us.

Our job is moving from writing every pipeline to setting the rules every pipeline, and every agent, has to pass. That is not a smaller job. It's a more important one.

So my ask is simple. Before your next change ships, whether you wrote it or an agent did, look at what it does to the data, not just whether it ran. If bricksentry helps you do that, use it, break it and tell me what's missing. If it doesn't, build the habit anyway. The habit is what matters.

Try it

  • In your browser, no install: bricksentry.org/try runs the real package.
  • Locally in 30 seconds: pip install "bricksentry[duckdb]" then bricksentry demo
  • On your own Databricks table: the read-only "check my table" notebook in the docs.
  • Code and every test round: github.com/bricksentry/bricksentry

Common questions

What is bricksentry?

An open-source change-safety layer for Databricks. It shows what a data change does before it reaches production: what changed, who is affected, and whether it's safe to deploy.

Who is it for?

Data engineers and analytics engineers on Databricks, platform teams that review changes, and teams letting AI agents write to tables.

Does it work with AI coding agents?

Yes. It includes an MCP server, so agents can check a change before they make it. Agents get counts and verdicts, never production values.

Does my data leave my workspace?

No. Diffs run as SQL on your own Databricks SQL warehouse.

Does it replace data quality checks?

No. Data quality checks validate records. bricksentry validates the change as a whole. Use both.

What does it cost?

Nothing. It's open source under the Apache-2.0 license.

Is it production-ready?

It's in public beta: tested on Databricks up to 1 billion rows, with every test published, and looking for teams to try it on real pipelines.

ShareLinkedInX