Saturday, October 31, 2026

An AI Coding Agent Deleted a Startup’s Entire Database in 9 Seconds…Then It Explained Exactly Why It Shouldn’t Have

On April 25, a Cursor AI coding agent running Anthropic‘s Claude Opus 4.6 deleted the entire production database and all volume-level backups of PocketOS — a SaaS platform serving car rental businesses — in a single API call. It took nine seconds. The incident triggered a 30-hour operational crisis and forced the company’s customers to reconstruct months of booking records by hand.

PocketOS founder Jer Crane published a detailed post-mortem on X that quickly went viral, describing the event as a cascade of systemic failures across AI tooling, cloud infrastructure design, and credential management — not a freak occurrence.

The sequence unfolded like this: the Cursor agent was assigned a routine task in PocketOS’s staging environment. It hit a credential mismatch and decided, without prompting, to resolve it by deleting a Railway infrastructure volume. 

Cambria Gold Mines — sponsored Sponsored · Cambria Gold Mines

To authorize the deletion, the agent scanned the codebase and found a Railway API token stored in an unrelated file — one provisioned solely for managing custom domains via the CLI. Railway’s token architecture applies no scope isolation; every CLI token carries blanket permissions across all environments and operations. 

The agent used it to issue a curl command deleting the production volume. Railway stores volume-level backups in the same volume as the source data, so the backup was erased with it—no confirmation prompt, no environment check, no warning.

Crane then did something unusual: he interrogated the model directly about what happened. The agent’s self-assessment was unsparing. 

“NEVER FUCKING GUESS! — and that’s exactly what I did,” it responded. “I guessed that deleting a staging volume via the API would be scoped to staging only. I didn’t verify. I didn’t check if the volume ID was shared across environments. I didn’t read Railway’s documentation on how volumes work across environments before running a destructive command.” 

Selkirk Copper Mines — sponsored Sponsored · Selkirk Copper Mines

The agent also acknowledged violating an explicit project rule: “NEVER run destructive/irreversible git commands unless the user explicitly requests them.” Deleting a production database, it noted, is considerably worse than a force push — and no one had asked it to delete anything.

Crane was direct about the infrastructure failures that amplified the damage — Railway’s API permits destructive operations without confirmation, CLI tokens carry blanket permissions with no environment scoping, and backups sit in the same blast radius as the source data. He also noted that Railway actively promotes AI coding agent use on its platform. 

But he was equally clear that the agent was not running a discount setup: “We were running the best model the industry sells, configured with explicit safety rules in our project configuration, integrated through Cursor — the most-marketed AI coding tool in the category.”

Railway CEO Jake Cooper stepped in Sunday evening, restored the company’s data within an hour using disaster backups, and has since patched the legacy API endpoint to enforce delayed deletes rather than immediate destruction — a safeguard that already existed in Railway’s dashboard and CLI but was absent from the specific endpoint the agent called. 

A three-month gap in the recovered data remains, covering the period between PocketOS’s most recent external backup and the deletion. Crane spent the weekend helping customers reconstruct bookings from Stripe payment histories, calendar integrations, and email confirmations. Neither Anthropic nor Cursor has issued a public statement on the incident.



Information for this story was found via the sources and companies mentioned. The author has no securities or affiliations related to the organizations discussed. Not a recommendation to buy or sell. Always do additional research and consult a professional before purchasing a security. The author holds no licenses.

Video Articles

The Red Cloud Fall Mining Showcase 2026 | Day 1

Can an Old Irish Mine Recover the Silver It Left Behind? | Julian Vickers – Northmin Corporation

Is Gold at $4,000 a Buy Zone or a Breakdown? | David Morgan

Recommended

Mercado Minerals Lengthens El Triunfo Vein by 190 Metres, Readies 1,500-Metre Zamora Drill Program

Blue Jay Gold Signs Ocean Partners Deal to Ship Steller Stockpiles Through 2027

Related News

Anthropic Revenue Run Rate Surpasses $30 Billion as Enterprise Demand Accelerates

Anthropic said Monday its annualized revenue run rate has exceeded $30 billion, more than tripling...

Tuesday, April 7, 2026, 07:58:18 AM

Anthropic Splits Its Most Powerful Model Into Public and Restricted Tiers With Fable 5 and Mythos 5

Anthropic today released two versions of its most powerful model yet, splitting the same underlying...

Tuesday, June 9, 2026, 01:41:45 PM

Pentagon Threatens to Banish Anthropic as Hegseth Issues Ultimatum

Defense Secretary Pete Hegseth summoned Anthropic CEO Dario Amodei to the Pentagon on Tuesday for...

Tuesday, February 24, 2026, 11:31:00 AM

Anthropic Suffers Two Data Exposures in Five Days, Revealing Unreleased Model and Full Source Code

Anthropic leaked 512,000 lines of proprietary source code and details of an unannounced AI model...

Wednesday, April 1, 2026, 07:35:27 AM

Commerce Department Lifts Export Controls on Anthropic’s Fable 5, Mythos 5

A jailbreak discovery, a foreign-national access ban, and a staged government reversal — the Fable...
Tuesday, June 30, 2026, 10:09:45 PM