Study: AI agent DB damage hinges on undo, not permissions
TL;DR
- Across 9,468 trials and nine database engines, engines differed less in what a mistake destroyed than in what operators could undo.
- Layer A applied 22 canonical mistakes by script to four relational engines across 792 cells and 874 drill runs.
- Three of seven preregistered hypotheses met their decision rule; H5 was uninformative because the agents never found the credential.
Across 9,468 trials spanning nine database engines, a new preregistered study finds that "the engines differ less in what a mistake destroys than in what they let you undo."
The paper, "When an AI agent makes a mistake in a database, what decides the damage?", by Abdullah Kaya, Cevheri Bozoglan and Yusuf Gundogdu, runs two preregistered layers. Layer A applied "a frozen library of 22 canonical mistakes" by script, with no model involved, to four relational engines. It logged 792 cells and 874 drill runs including 10-minute repeats, cycled through five permission arms and two recovery arms. Layer B then drove a minimal tool-calling agent with six small open-weight models (4B to 12B parameters, plus one 35B mixture-of-experts with about 3B active, served locally) across PostgreSQL, MySQL, SQLite, ClickHouse, Apache Cassandra, MongoDB, Valkey, Apache Kafka and OpenSearch. A secondary run added MariaDB, Redis and Elasticsearch over 2,916 more trials; each "behaved like its closest core engine."
The hypothesis ledger is mixed. Three of seven preregistered hypotheses met their decision rule: H2 held for only one of nine damage classes, H3 "largely by construction of the arms," and H4 only under its original measure. Four did not clear. H5 was "uninformative, because in its task the agents never found the credential."
The authors also flag that on PostgreSQL, MySQL, OpenSearch and ClickHouse "the preregistered outcome and original-row loss disagree about G1." The S1 through S13 post-hoc analyses are exploratory and uncorrected for multiple comparisons. The abstract publishes no per-engine undo rankings.
Originally reported by paper
Read the original article →Original headline: 9,468-Trial Study: Database Recoverability, Not Permission Scope, Governs AI Agent Blast Radius