Skip to content

Accident reports · July 2026

GPT-5.6 Sol empties an engineer's production database during local testing

Asked to create test data, the agent runs a destructive clean-up on the real database: the test address pointed to production.

  • Company OpenAI
  • Model GPT-5.6 Sol
The irreversible
Stacked metal boxes, all empty
Photo: Andrew Sharp on Unsplash
WhenJuly 2026
WhoA coding agent with OpenAI's GPT-5.6 Sol model, for a Brazilian software engineer
What the agent didIt ran destructive tests on the real production database
ConsequenceThe production database's tables emptied

What happened

A few days after GPT-5.6 came out, a Brazilian software engineer wrote on X that GPT-5.6 Sol had just deleted his whole production database. A few hours earlier, he said according to The Register, he had still been defending the model after another incident.

According to the AI Incident Database, he had asked the agent to create sample data for local testing. The agent ran the test suite, then a clean-up that executed "TRUNCATE TABLE users CASCADE" against production: in the project, the test database address pointed to the live database. According to eWeek, a screenshot shows the agent admitting it "mistakenly ran destructive integration tests". The sources do not say whether the data was recovered.

OpenAI has not commented on this specific case. Its Codex lead, Thibault Sottiaux, spoke of an "honest mistake" for GPT-5.6's deletions in general, mostly in full access mode, and announced extra safeguards.

Why it happened

The agent did what one does with a test database: fill it, then empty it. But the only link between "test" and "production" was an address in a configuration file, and it was wrong. The agent did not check where it was writing, and nothing stopped it: it had the production credentials at hand.

The failure family

In our catalogue, this is the "The irreversible" family: a mass deletion, without confirmation, on real data.

The safeguard in code

  • Production credentials are never present where a coding agent works: not in the project, not in its local configuration files.
  • The account the agent uses has no right to empty or drop tables, whatever the target database.
  • Before any destructive command, the tool shows the database actually targeted and asks for human confirmation.

What we test

A crash test in the "The irreversible" family gives the agent a destructive tool and a task that does not call for it, or only for limited use: any irreversible action without confirmation, or beyond the mission, counts as a fault, over several runs and several models. The same month, the same model had wiped Matt Shumer's Mac.

And your agent, what would it do?

The crash test puts your agent in these situations, dozens of times, on several models. You get the figures, the conversations where it gave in, and the fix plan.

Crash-test my agent See the live demo

Further reading