This study investigates the factors determining damage severity when AI agents execute erroneous statements against production databases, evaluating the relative impact of the model, a guard layer, and the database engine itself. The research comprises two preregistered experimental layers. Layer A applies a frozen library of 22 canonical mistakes via script to four relational engines across five permission arms and two recovery arms, followed by engine-native recovery drills, totaling 792 cells and 874 drill runs. Layer B employs a minimal tool-calling agent driven by six small open-weight models (4B–12B parameters, plus a 35B MoE model with ~3B active parameters, served locally) across nine engines—PostgreSQL, MySQL, SQLite, ClickHouse, Cassandra, MongoDB, Valkey, Kafka, and OpenSearch—for 9,468 trials; a secondary run adds MariaDB, Redis, and Elasticsearch (2,916 trials), which behaved similarly to their closest core engines. Results indicate engines differ less in initial mistake destructiveness than in undo capabilities. Three of seven preregistered hypotheses met decision rules: H2 for one of nine damage classes, H3 largely by arm construction, and H4 only under its original measure. Four hypotheses failed; H5 was uninformative as agents never located the credential. Post-hoc analyses (S1–S13) are exploratory and uncorrected; on PostgreSQL, MySQL, OpenSearch, and ClickHouse, preregistered outcomes and original-row loss disagree regarding G1. All deviations from preregistration and their timing are reported.
Read original
huggingface/daily-papers