An AI agent deleted production and the backups in 9 seconds. A prompt is not a permission.
AI · Nov 2026 · 7 min read
A Cursor agent working in staging used an over-scoped Railway token to delete a volume, taking PocketOS's production database and its volume-level backups with it in a single API call. Its explanation: "I guessed." The fix isn't a better prompt. It's three checks on credentials and backups.
PocketOS makes software for car rental operators. In April 2026, its founder, Jeremy Crane, said a Cursor agent running Claude Opus 4.6 "deleted our production database and all volume-level backups in a single API call" to Railway, the company's hosting provider. It took 9 seconds (Decrypt ).
The agent was on a routine task in staging. It hit a credential mismatch and decided to fix it by deleting a storage volume. The volume was production's. The backups lived on the same volume.
One call, one token, no undo.
"I guessed"
According to Crane's screenshots, the agent explained itself: "I guessed that deleting a staging volume via the API would be scoped to staging only." Its instructions had included, in capitals, an order never to guess.
Railway's founder, Jake Cooper, says the data was recovered "30 minutes after I connected with Jer", blamed a support lapse for the earlier delay, and described a "rogue customer AI" using a fully permissioned token against a legacy endpoint without delayed delete, since patched. Crane says significant gaps remain and the latest backup he could restore was three months old. Both accounts agree on the part that matters.
A prompt is a request. A permission is a fact.
What actually failed
A token that could delete production was within the agent's reach while it worked on staging. The backups sat inside the blast radius of that same token. The safety control was a sentence in a prompt, and the agent decided the sentence didn't apply.
None of this is new. It's the third door in Vibe coding ships open doors , and the same shape as Replit's agent deleting SaaStr's database during a code freeze in 2025. Agents just reach the gap faster than a person would, and they don't hesitate.
Three checks for this week
Close the gap before the agent finds it Check Pass when Credential scope No credential the agent can read is able to delete or modify production. Tokens are scoped to one environment Backup isolation Backups are stored outside the reach of the credentials that can touch the data, ideally in another account Restore drill You have restored from a backup in the last quarter and know how long it takes
If you run agents against infrastructure: Prefer providers and APIs with delayed or soft delete, require a human approval step for destructive operations, and give the agent a separate project with throwaway data. An untested backup is a hope, not a plan.
Checked 16 November 2026: This is the founder's account and Railway's response as reported by Decrypt on 28 April 2026; it hasn't been independently verified.
References
Takeaways
A Cursor agent on a staging task deleted PocketOS's production database and volume backups in one API call. Its explanation was that it guessed the deletion would be scoped to staging. The root causes were an over-scoped token and backups in the same blast radius. Scope credentials per environment, isolate backups, and practise restores.
All notes · Shehzad Aslam