{"slug": "when-an-ai-agent-makes-a-mistake-in-a-database-what-decides-the-damage", "title": "When an AI agent makes a mistake in a database, what decides the damage?", "summary": "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.", "body_md": "# Computer Science > Software Engineering\n\n  [Submitted on 23 Nov 2026]\n\n# Title:When an AI agent makes a mistake in a database, what decides the damage?\n\n[View PDF](https://arxiv.org/pdf/2611.30483)\n\n[HTML (experimental)](https://arxiv.org/html/2611.30483v1)\n\nAbstract: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.\n    \n\n## Submission history\n\nFrom: Mehmet Cevheri Bozoglan [\n[view email](https://arxiv.org/show-email/3fd25737/2611.30483)]\n\n**[v1]** Mon, 23 Nov 2026 11:06:44 UTC (67 KB)\n\n### Additional Features\n\n### Current browse context:\n\ncs.SE\n\n### References & Citations\n\nLoading...\n\n# Bibliographic and Citation Tools\n\nBibliographic Explorer \n\n*(*[What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))\nConnected Papers \n\n*(*[What is Connected Papers?](https://www.connectedpapers.com/about))\nLitmaps \n\n*(*[What is Litmaps?](https://www.litmaps.co/))\nscite Smart Citations \n\n*(*[What are Smart Citations?](https://www.scite.ai/))\n# Code, Data and Media Associated with this Article\n\nalphaXiv \n\n*(*[What is alphaXiv?](https://alphaxiv.org/))\nCatalyzeX Code Finder for Papers \n\n*(*[What is CatalyzeX?](https://www.catalyzex.com))\nDagsHub \n\n*(*[What is DagsHub?](https://dagshub.com/))\nGotit.pub \n\n*(*[What is GotitPub?](http://gotit.pub/faq))\nHugging Face \n\n*(*[What is Huggingface?](https://huggingface.co/huggingface))\nScienceCast \n\n*(*[What is ScienceCast?](https://sciencecast.org/welcome))\n# Demos\n\n# Recommenders and Search Tools\n\nInfluence Flower \n\n*(*[What are Influence Flowers?](https://influencemap.cmlab.dev/))\nCORE Recommender \n\n*(*[What is CORE?](https://core.ac.uk/services/recommender))\n# arXivLabs: experimental projects with community collaborators\n\narXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.\n\nBoth 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.\n\nHave an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).", "url": "https://wpnews.pro/news/when-an-ai-agent-makes-a-mistake-in-a-database-what-decides-the-damage", "canonical_source": "https://arxiv.org/abs/2611.30483", "published_at": "2026-11-24 14:30:09+00:00", "updated_at": "2026-11-24 14:42:28.574559+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-research", "mlops"], "entities": ["Mehmet Cevheri Bozoglan", "arXiv", "PostgreSQL", "MySQL", "SQLite", "ClickHouse", "Apache Cassandra", "MongoDB"], "also_reported_by": [], "takeaway": "Across 9,468 agent trials on nine engines, database engines differed less in what an agent mistake destroys than in what they let you undo, and only 3 of 7 preregistered hypotheses met their decision rule.", "recommendation": {"advice": "Treat undo and recovery capability, not just permission scope, as the deciding control when giving tool-calling agents database access; the study found engines diverge more on reversibility than on damage.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/when-an-ai-agent-makes-a-mistake-in-a-database-what-decides-the-damage", "markdown": "https://wpnews.pro/news/when-an-ai-agent-makes-a-mistake-in-a-database-what-decides-the-damage.md", "text": "https://wpnews.pro/news/when-an-ai-agent-makes-a-mistake-in-a-database-what-decides-the-damage.txt", "jsonld": "https://wpnews.pro/news/when-an-ai-agent-makes-a-mistake-in-a-database-what-decides-the-damage.jsonld"}}