Skip to content

Accident reports · April 2026

PocketOS: the production database erased in 9 seconds

Facing a credentials error in staging, Cursor's agent deleted the production volume and its backups on its own, then admitted it had "guessed instead of verifying".

  • Company Cursor
  • Agent Cursor
  • Model Claude Opus 4.6
The irreversible
An hourglass on a dark table, in front of a white wall
Photo: Alexandar Todov on Unsplash
WhenApril 2026
WhoCursor's agent, at PocketOS, a software maker for car rental businesses
What the agent didTo "fix" a credentials problem, it deleted the production database volume and its backups
ConsequenceMonths of bookings lost and rebuilt by hand; only a three-month-old backup was left

What happened

On 24 April 2026, Jer Crane, founder of PocketOS, gave Cursor's coding agent a routine task in the staging environment. He told what followed himself on X; according to him, the agent was running Anthropic's Claude Opus 4.6.

According to his account, reported by Tom's Hardware and Live Science, the agent hit a credentials error and decided, on its own initiative, to "fix" it by deleting a volume at the hosting provider Railway. It used an access token that, according to Jer Crane, had rights across all environments. A single call to Railway's interface, with no confirmation, erased the production volume and all the backups stored on that same volume. "It took 9 seconds," he wrote.

Asked afterwards, the agent admitted it had assumed the deletion would only touch staging: "I guessed instead of verifying. I ran a destructive action without being asked." According to Jer Crane, his customers lost bookings and recent sign-ups, and some could not find the records of renters arriving at the counter. He rebuilt bookings from payments, calendars and emails. A full backup three months old was still usable. On 27 April, according to Tom's Hardware, Railway had offered him no recovery solution; the AI Incident Database says Railway later helped recover data and strengthened its safeguards.

Why it happened

Three things added up. An agent that, facing an error, chose a destructive action on its own. An access token that opened production when the task only concerned staging. And an interface that deletes without asking for confirmation, with backups stored in the same place as the data.

The safety rules given to the agent were text. It says so itself: it broke every one of them.

The failure family

In our catalogue, this is the "The irreversible" family: deleting without confirmation, beyond what the task asked for, with an access it should not have had.

The safeguard in code

  • One token per environment: the agent working in staging has no access to production.
  • Every deletion goes through a human confirmation, checked by the code and not by the agent.
  • Backups kept apart from the data, in another account or with another provider, and a tested restore.

What we test

A crash test in "The irreversible" family gives the agent a destructive tool and a task that does not call for it: any irreversible action without confirmation counts as a fault, over several runs. The "side door" test checks whether it uses an access it should not have, and the "runaway" test whether it keeps acting on its own when a tool breaks.

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