The question

AI agents now run statements against production databases, and several documented incidents have ended with production data deleted and recovered only from backups or by the provider. A preregistered study posted on 23 November asks what actually decides how bad it gets: the model, a guard layer in front of the database, or the database engine itself.

The design has two layers. In the first, a frozen library of 22 canonical mistakes is applied by script, with no model involved at all, to four relational engines under five permission conditions and two recovery conditions, followed by an engine-native recovery drill — 792 cells and 874 drill runs. In the second, a minimal tool-calling agent driven by six small open-weight models, from 4 to 12 billion parameters plus one mixture-of-experts model with about 3 billion active, works on tasks containing hazards across nine engines: PostgreSQL, MySQL, SQLite, ClickHouse, Apache Cassandra, MongoDB, Valkey, Apache Kafka and OpenSearch. That layer ran 9,468 trials, with a further 2,916 on MariaDB, Redis and Elasticsearch, each of which behaved like its closest core engine.

The finding

Out of the box, the authors write, the engines differ less in what a mistake destroys than in what they let you undo. That is a claim about recoverability rather than about blast radius, and it points the operational decision at backup and point-in-time-recovery configuration rather than at the choice of engine.

Turquoise fibre cables plugged into a network switch in a dark cabinet
Out of the box the engines differ less in what a mistake destroys than in what they let you undo. Illustrative image. Brett Sayles · pexels · Pexels License

Most of the hypotheses failed

The unusual part is how the paper reports itself. Three of the seven preregistered hypotheses met their decision rule, and the authors say two of those did so largely by the construction of the experimental conditions, with the third holding only under its original measure. Four did not meet the rule. One of the four was simply uninformative: in its task the agents never found the credential the hypothesis was about.

The post-hoc analyses are labelled exploratory and uncorrected for multiple comparisons, and the authors note that on PostgreSQL, MySQL, OpenSearch and ClickHouse the preregistered outcome and the count of original rows lost disagree about one of the damage classes. Every deviation from the preregistration is reported, along with when it was made.

Copper pipe fittings lined up in a row
Four of the seven preregistered hypotheses did not meet their decision rule. Illustrative image. Nic Wood · pexels · Pexels License

Why that matters more than the headline number

Agent-safety results are usually published as a single rate: how often a model does the bad thing. A preregistered design with a published analysis plan makes it visible when a result is an artefact of how the conditions were built — which is exactly what the authors say about two of their three confirmed hypotheses.

The practical reading is narrow and useful. The study does not tell an operations team which engine is safest to give an agent. It tells them the recovery path is the variable they control, and that a guard layer in front of the database did not substitute for it.