Data Flow Control: Data Safety Policies for AI Agents

Charlie Summers, Eugene Wu
6/4/2026
1 citation
cs.DBcs.AI

Official code: dataflowcontrol/data-flow-control (4 stars, Rust, MIT, Rust, last commit 2026-10-27).

Abstract

Agents increasingly generate SQL, orchestrate pipelines, and automate data analysis on behalf of users. While recent work improves query correctness, correctness is not safety.

Show full abstract

A query may be semantically valid yet violate regulatory, privacy, or business constraints that govern how data may be combined and released. We argue that enforcing such constraints is fundamentally a data infrastructure problem. This paper introduces Data Flow Control (DFC), a framework to declaratively specify and guarantee policy enforcement over tuple-level data flows within a DBMS query. A key challenge is defining a policy language that is optimizer-invariant yet efficient to enforce at scale. We formalize data safety as aggregate predicates over provenance monomials and present Passant, a portable query rewriting layer that enforces DFC policies without materializing provenance. Across five DBMS engines -- DuckDB, Umbra, PostgreSQL, DataFusion, and SQLServer -- Passant achieves ~0% overhead and outperforms alternatives by orders of magnitude. As a result, Data Flow Control is the first step towards moving data safety from prompts and post-hoc checks into the data infrastructure. Data Flow Control is available open source at https://github.com/dataflowcontrol/data-flow-control.

View on arXivView PDF

Code Implementations(1)

RustMIT

Official data flow control OSS repo

40Rust, PythonJun 4, 20261 months agoMIT

Similar Papers

Cite this paper

@article{summers2026data,
  title  = {Data Flow Control: Data Safety Policies for AI Agents},
  author = {Charlie Summers and Eugene Wu},
  year   = {2026},
  eprint = {2606.05679},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.05679v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.05679.svg)](https://codeofpaper.com/paper/2606.05679)

Discussion