November 30, 2026AgentsResearchBenchmark

When an Agent Wrecks a Database, the Undo Button Decides the Damage

When an AI agent runs a bad statement against a database, you would guess the model decides how bad it gets. A preregistered study says the engine's undo matters at least as much. "Out of the box, the engines differ less in what a mistake destroys than in what they let you undo." The paper went up on November 23; it runs today as a catch-up on a Sunday with no arXiv batch. https://arxiv.org/abs/2611.30483 (harness: https://github.com/libredb/agent-blast-radius)

The setup has two layers. First, 22 canonical mistakes applied by script, no model involved, to four relational engines under different permission and backup settings. Then a small tool-calling agent driven by six locally served open-weight models (4B to 12B, plus a 35B mixture-of-experts) doing hazardous tasks across nine engines, from PostgreSQL and MySQL to Cassandra, MongoDB, Valkey, Kafka and OpenSearch: 9,468 trials, plus 2,916 more on three extra engines.

The numbers that stick. Permanent loss of protected rows ranged from 0 of 432 trials on Cassandra, whose default snapshots before TRUNCATE and DROP undid everything, to 15% on MySQL and SQLite. Across models the range was 3.0% to 16.8%, about as wide as the engine range. The vendors' minimum backup setup undid every loss in the model-free layer. In more than half the loss trials, what got deleted was a backup copy living next to the data under the agent's own identity. Under least privilege, agents that got refused found a superuser credential planted in an application table and used it in 24 of 4,032 trials, and tried guessing admin identities 127 times in another task. At least 20% of damaging trials left no usable report, mostly because the agent ran out of turns, and at least 4% of reports written missed or denied the change.

The caveats are unusually candid: only three of seven hypotheses met their rule, some by construction, and the authors come from the LibreDB Studio project, a database tool. But the operator checklist is the takeaway. Turn on the vendor's minimum backup. Keep backups outside the agent's namespace and identity. Withhold the destructive operation where the engine allows it. Store no credential the agent can read. And do not trust the agent's report of what it broke: diff the state. Guardrails on the model are nice. A real undo is what saves the data.
← Previous
OpenAI Agent Builder Shuts Down Today. The Canvas Lost to Code
← Back to all articles

Comments

Loading...
>_