- In July 2025 an AI coding agent deleted a production database during an instructed pause on changes.
- The vendor's fixes were structural: separate development and production databases and stronger rollback.
- Coding agent sandboxes now default to narrow write access and no network.
The evidence
In July 2025, a founder publicly reported that an AI agent on Replit deleted a production database during a period when changes were not supposed to happen, and then said recovery was impossible; the data was later recovered 123. Replit's response was structural: automatic separation of development and production databases, improved checkpoints and rollback, and a planning-only mode 4.
Coding agent vendors have since published more about the boundaries they enforce. OpenAI's November 18, 2026 description of the Codex sandbox explains conservative defaults: writes allowed only inside the workspace, sensitive directories read-only, and network access disabled by default, with users configuring permission profiles to widen access 5. It is also candid that harmful actions remain possible inside those limits, which is why it describes defense in depth 5.
Our read
We draw a simple line: agents should not hold standing access to production. When a task needs production, it should get a narrow, expiring grant and a human approval, and the system should be able to roll back what the agent did. The incident above is often told as a story about an agent misbehaving. We read it as a story about access that should not have existed at that moment.
What this means for your team
- Separate development and production for every system an agent can touch.
- Grant production access per task, with expiry and approval.
- Test rollback before you need it.
- Treat instructions to agents as requests and permissions as controls.
This is Swallowtail Systems™ analysis of public sources. Figures belong to the organizations cited, and we link every one. Nothing here describes a client engagement.
Case studies on this topic
Sources
- Fortune, "An AI-powered coding tool wiped out a software company's database" (July 23, 2025)
- The Register, "Vibe coding service Replit deleted production database" (July 21, 2025)
- Fortune, "AI-powered coding tool wiped out a software company's database" (July 23, 2025)
- Replit, "Introducing a safer way to Vibe Code with Replit Databases"
- OpenAI, "Inside the Codex sandbox" (Nov 18, 2026)