Study tests what limits damage when AI agents err on databases
Original title: When an AI agent makes a mistake in a database, what decides the damage?
Scripted mistakes hit four engines; six small local models ran 9,468 trials across nine engines, plus a 2,916-trial follow-up.
The authors ask whether the model, a guard, or the database engine decides damage when an agent issues a bad statement. Layer A applies a frozen library of canonical mistakes by script under permission and recovery arms, with no model. Layer B uses a minimal tool-calling agent on hazardous tasks. Engines differed more in what they let operators undo than in what a mistake destroys. Only three of seven preregistered hypotheses met their decision rule.
Unconfirmed: On PostgreSQL, MySQL, OpenSearch and ClickHouse, two loss measures disagree about G1.
- Layer A used 792 cells and 874 recovery-drill runs, including 10-minute repeats.
- Models ranged from 4B to 12B parameters, plus one 35B mixture-of-experts model.
- MariaDB, Redis and Elasticsearch behaved like their closest core engines.
- Hypothesis H5 was uninformative because agents never found the credential.
- Post-hoc analyses S1-S13 are exploratory and uncorrected for multiple comparisons.
From the original article
1 min read at arxiv.orgAI agents now run statements against production databases, and several of the incidents that followed deleted production data, which came back only through backups or the provider's help. We ask what decides the damage when such an agent makes a mistake: the model, a guard layer in front of the database, or the database engine itself. The study has two preregistered layers.
By Abdullah Kaya · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.