12,000-trial study: AI agent database damage depends on what engines let you undo
libredb · hf · 2026-11-27
- Question: AI agents running statements against production databases have caused real data-loss incidents. This preregistered study asks whether damage is decided by the model, a guard layer, or the database engine itself.
- Design: Layer A applies a frozen library of 22 canonical mistakes by script to 4 relational engines under 5 permission arms and 2 recovery arms (792 cells, 874 drill runs). Layer B drives a minimal tool-calling agent with six small open-weight models (4B–12B plus a 35B MoE with 3B active, served locally) across nine engines — PostgreSQL, MySQL, SQLite, ClickHouse, Cassandra, MongoDB, Valkey, Kafka, OpenSearch — for 9,468 trials, plus 2,916 more on MariaDB, Redis, Elasticsearch.
- Key finding: Out of the box, engines differ less in what a mistake destroys than in what they let you undo — e.g. Cassandra's default snapshots before TRUNCATE/DROP yielded 0/432 permanent losses of protected rows.
- Results: Only 3 of 7 preregistered hypotheses met their decision rule; H5 was uninformative since agents never found the credential. All post-hoc analyses and deviations are reported openly.
More from coding & agent
- Replicating Cloudflare's Agent Search: semantic chunking via yes/no decision model — dejanseo · 2026-11-27
- Every Tool Call Needs a Gatekeeper: Lessons from Semantic Kernel's Policy Boundary — Mahmoud_Zalt · 2026-11-27
- Prompt tip: prefix requests with "Should we" to let AI agents evaluate your idea first — tristanbob · 2026-11-27
- Chrome Live for Antigravity: zero-dependency MV3 bridge cuts tokens 83.9% — Impossible-Bar-1670 · 2026-11-27
- Claude Duet Proxy Lets You Spend Duet's Free Credits Inside Claude Code — AccountAntique9327 · 2026-11-27
- Engineer goes from zero to CAD-to-simulation with LLMs in 3 weeks — deepakns · 2026-11-27