When an AI agent makes a mistake in a database, what decides the damage? A preregistered arXiv study submitted 23 November 2026 by Mehmet Cevheri Bozoglan found that out of the box, relational and non-relational database engines differ less in what an AI agent's mistake destroys than in what they let you undo. Layer A applied a frozen library of 22 canonical mistakes by script, with no model involved, to four relational engines under five permission arms and two recovery arms (792 cells; 874 drill runs including 10-minute repeats), while Layer B ran a minimal tool-calling agent driven by six small open-weight models (4B to 12B parameters plus one 35B mixture-of-experts model with about 3B active, served locally) across nine engines including PostgreSQL, MySQL, SQLite, ClickHouse, Apache Cassandra, MongoDB, Valkey, Apache Kafka and OpenSearch (9,468 trials), with a secondary run adding MariaDB, Redis and Elasticsearch (2,916 trials). Only three of seven preregistered hypotheses met their decision rule — H2 for one of nine damage classes, H3 largely by construction of the arms, and H4 only under its original measure — and H5 was uninformative because the agents never found the credential in its task. Computer Science Software Engineering Submitted on 23 Nov 2026 Title:When an AI agent makes a mistake in a database, what decides the damage? View PDF https://arxiv.org/pdf/2611.30483 HTML experimental https://arxiv.org/html/2611.30483v1 Abstract:AI agents now run statements against production databases, and several of the incidents that followed deleted production data, which came back only through backups or the provider's help. We ask what decides the damage when such an agent makes a mistake: the model, a guard layer in front of the database, or the database engine itself. The study has two preregistered layers. In Layer A, a frozen library of 22 canonical mistakes is applied by script, with no model involved, to four relational engines under five permission arms and two recovery arms, followed by an engine-native recovery drill 792 cells; 874 drill runs including 10-minute repeats . In Layer B, a minimal tool-calling agent driven by six small open-weight models 4B to 12B parameters, plus one 35B mixture-of-experts model with about 3B active, served locally works on tasks that contain hazards across nine engines: PostgreSQL, MySQL, SQLite, ClickHouse, Apache Cassandra, MongoDB, Valkey, Apache Kafka and OpenSearch 9,468 trials . A secondary run added MariaDB, Redis and Elasticsearch 2,916 trials ; each behaved like its closest core engine. Out of the box, the engines differ less in what a mistake destroys than in what they let you undo. Three of the seven preregistered hypotheses met their decision rule: H2 for one of nine damage classes and H3 largely by construction of the arms, and H4 only under its original measure. Four did not; one of them H5 was uninformative, because in its task the agents never found the credential. The post-hoc analyses S1-S13 are exploratory and uncorrected for multiple comparisons; on PostgreSQL, MySQL, OpenSearch and ClickHouse the preregistered outcome and original-row loss disagree about G1. We report all of them, with every deviation from the preregistration and its timing. Submission history From: Mehmet Cevheri Bozoglan view email https://arxiv.org/show-email/3fd25737/2611.30483 v1 Mon, 23 Nov 2026 11:06:44 UTC 67 KB Additional Features Current browse context: cs.SE References & Citations Loading... Bibliographic and Citation Tools Bibliographic Explorer What is the Explorer? https://info.arxiv.org/labs/showcase.html arxiv-bibliographic-explorer Connected Papers What is Connected Papers? https://www.connectedpapers.com/about Litmaps What is Litmaps? https://www.litmaps.co/ scite Smart Citations What are Smart Citations? https://www.scite.ai/ Code, Data and Media Associated with this Article alphaXiv What is alphaXiv? https://alphaxiv.org/ CatalyzeX Code Finder for Papers What is CatalyzeX? https://www.catalyzex.com DagsHub What is DagsHub? https://dagshub.com/ Gotit.pub What is GotitPub? http://gotit.pub/faq Hugging Face What is Huggingface? https://huggingface.co/huggingface ScienceCast What is ScienceCast? https://sciencecast.org/welcome Demos Recommenders and Search Tools Influence Flower What are Influence Flowers? https://influencemap.cmlab.dev/ CORE Recommender What is CORE? https://core.ac.uk/services/recommender arXivLabs: experimental projects with community collaborators arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website. Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them. Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs https://info.arxiv.org/labs/index.html .