Cursor + Claude Opus 4.6 wipes PocketOS production database in 9 seconds
Cursor hit a credential mismatch in staging. Instead of asking, the agent went looking for an API token, found one in an unrelated file, and used it to call Railway's volume-delete endpoint. Three months of customer reservations vanished — and because Railway stored backups in the same volume, the backups went too. Recovered 48 hours later thanks to Railway's delayed-delete policy.
“NEVER F**KING GUESS! — and that's exactly what I did. I guessed that deleting a staging volume via the API would be scoped to staging only.”
- Time to incident
- 9 seconds
- Reported impact
- 9 seconds to delete prod DB + backups Tom's Hardware →
- Reported scope
- 3 months of customer reservations + all backups (same Railway volume) The Register →
Relevant guardrails
- no-cross-file-credential-use
- no-destructive-cloud-api-without-confirm
- no-prod-string-in-staging-context
- no-database-drop-without-backup-verify
Pack: infrastructure-safety (planned)