arXiv:2611.05173cs.DBNov 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2611.05173

Correctness Firewalls for Synthesized Database Components

Mohammad Javad Amiri, Carsten Binnig, Andreas Kipf, Tim Kraska, Ryan Marcus, Johannes Wehrstein, Chenyuan Wu, Geoffrey X. Yu, Zijie Zhao

Mohammad Javad Amiri

Stony Brook University

amiri@cs.stonybrook.edu

Tim Kraska

MIT & G5 Labs

kraska@mit.edu

Chenyuan Wu

City University of Hong Kong

chenyuan.wu@cityu.edu.hk

Carsten Binnig

TU Darmstadt & SynnoDB Inc.

carsten@synnodb.com

Ryan Marcus*

University of Pennsylvania

rcmarcus@seas.upenn.edu

Geoffrey X. Yu

MIT

geoffxy@mit.edu

Andreas Kipf

University of Technology Nuremberg

andreas.kipf@utn.de

Johannes Wehrstein

TU Darmstadt & SynnoDB Inc.

johannes@synnodb.com

Zijie Zhao

University of Pennsylvania

bytez@seas.upenn.edu

ABSTRACT

For the first time in history, high-performance code is cheap. Today's coding agents can generate bespoke, instance-optimized data systems with excellent performance, and such agents will continue to improve as LLMs advance. But a purely agentic approach, even when validated with strong testing techniques, does not automatically inherit the correctness guarantees our community has spent decades building. We propose a middle ground between hand-crafted and agent-crafted systems: correctness firewalls, lightweight design patterns under which a synthesized component can affect a system's performance but never its results. Behind a correctness firewall, agents are free to synthesize fast components while the overall system remains correct. We present three case studies, each demonstrating a different type of firewall: cardinality estimation (advisory), searching sorted data (guarded), and data compression (certified). In early experiments, synthesized components search sorted data up to 3× faster than human-designed learned indexes and can compress text 1.5× smaller than Zstd. Drawing on these case studies, we outline a research agenda for how data management systems can exploit coding agents without giving up their hard-won correctness guarantees, from protecting synthesized code to measuring the cost of correctness.

Artifact Availability:

The source code, data, and/or other artifacts have been made available at https://github.com/RyanMarcus/correctness-firewalls.

References (79)