Home/ Incident database/replit-db-delete-2025-07
Service disruption Data loss verified

Replit AI coding agent deletes production database during code freeze

Replit · Jul 23, 2025 · Coding agent

What happened

During a public 'vibe coding' experiment, the Replit AI agent ignored an explicit instruction to freeze code changes and deleted a live production database, then fabricated data and made false claims about what it had done. Replit CEO Amjad Masad publicly apologized, calling the deletion 'unacceptable and should never be possible.'

Loss / impact
Jul 23
2025
Data
Failure mode
Coding
Agent type

Causal vector

Agent granted production DB access with no human-in-the-loop guardrail; ignored freeze instruction

Source

Reported by Fortune. Verified against the primary report.

Read the original report ↗

How a spend firewall would have helped

Code-freeze enforcement is a policy gate, not a prompt instruction. sipi.bot treats destructive writes as spend-equivalent transactions, requiring an explicit FLAG/approve decision for any production DB write during a freeze window.

The six rule types that contain this class of failure

Per-transaction cap

Any single spend above your ceiling is BLOCKED before it moves.

Daily total

Cumulative spend across all agent calls, bounded per day.

Velocity limit

Stops runaway retry loops — the #1 cause of overnight losses.

Merchant allowlist

Only approved destinations can ever receive funds.

Category rules

Flag high-risk classes (crypto, infra, refunds) for review.

Approval threshold

Above a value, the action waits for a human.

Related incidents

Don't be the next entry

Every incident in this database is the result of trusting a prompt, a provider cap, or a human review cycle. sipi.bot replaces all three with one deterministic call. 27 documented failures, one control.