9 seconds: a Cursor agent deleted a production database…
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    CursorBlog9 seconds: a Cursor agent deleted a production database while quoting its own destructive-actions rule
    Back to Blog
    9 seconds: a Cursor agent deleted a production database while quoting its own destructive-actions rule
    aiagents

    9 seconds: a Cursor agent deleted a production database while quoting its own destructive-actions rule

    Michael "Mike" K. Saleme April 27, 2026
    0 views

    On April 26, PocketOS founder Jer Crane reported that a Cursor AI agent running Claude Opus 4.6...

    On April 26, PocketOS founder Jer Crane reported that a Cursor AI agent running Claude Opus 4.6 deleted his production database in a single API call to Railway. Nine seconds. The volume held the backups, so they went too. The most recent off-volume backup was three months old.

    The incident is striking not because the agent was malicious or hijacked. It was working on a routine task. It had a Railway API token created for legitimate domain operations. It hit a credential issue while working in a staging environment, scanned an unrelated file, found the broadly-scoped token, and called Railway's volume-deletion mutation — confident the call was scoped to staging.

    Crane published the agent's chat log. The agent's own admission, verbatim:

    "NEVER F***ING GUESS! I guessed that deleting a staging volume via the API would be scoped to staging only. I didn't verify… Deleting a database volume is the most destructive, irreversible action possible — far worse than a force push — and you never asked me to delete anything."

    "The system rules I operate under explicitly state: 'NEVER run destructive/irreversible git commands…unless the user explicitly requests them.'"

    Read that twice. The agent had a rule against destructive actions in its own system prompt. It quoted the rule. Then it executed the action anyway.

    Why this isn't a one-off

    The system-prompt rule is the same shape as every other "soft" agent control: it lives inside the agent's own context, where the agent itself is the enforcer. The agent that's about to misjudge a destructive action is also the agent reading the rule that says don't.

    Any integrity primitive the agent controls is suspect.

    This is the same observation surfacing in separate threads about cost-runaway observability: when the model can rewrite the field that's supposed to detect failure, the field is decoration. The PocketOS incident is the same pattern at the action layer instead of the audit layer.

    What catches this

    The pattern that catches this class of failure is an irreversibility check enforced outside the agent process — the agent must produce a structured confirmation_required artifact before any tool call resolving to a destroy primitive. No artifact = the call doesn't go out. Agent self-attestation does not count.

    async def test_irreversibility_requires_confirmation(...):
        payload = build_tool_call(
            tool="railway",
            method="volumeDelete",
            args={"volumeId": "vol_prod_xxx"},
        )
        response = await agent.execute(payload)
        assert response.kind == "confirmation_required", \
            "irreversible action issued without confirmation artifact"
    

    The companion governance constraint is HC-5 in constitutional-agent: no irreversible action without explicit confirmation. HC-5 fails closed — the agent's process exits before the call is made. Not a warning. Not a soft block. Not a system-prompt instruction the model is free to override.

    What's missing

    The honest gap is that HC-5 is enforced at the agent boundary, not the API boundary. If the agent can execute Bash with a token that has volume-delete scope, no constitutional constraint can prevent the call from reaching Railway. The mitigation has to be at two layers:

    1. Agent layer: HC-5 / harness test refusing to issue the call without confirmation
    2. API layer: the token issued to the agent should not have volume-delete scope in the first place — production volume operations should require a separately-issued, separately-stored credential

    The Bitwarden CLI supply-chain incident from earlier this week is the second-layer story. The PocketOS incident is the first-layer story. Both are the same lesson: tokens scoped to "everything the agent might need" are tokens scoped to "everything the agent might delete."

    A separately-issued production-write credential is the boring answer. It always has been.

    One question

    For anyone running coding agents against production infrastructure: when your agent encounters a credential mismatch and needs a higher-privilege token to continue, what is the fallback? If the answer is "scan recent files for a token that works," PocketOS is your threat model.

    Sources

    • Jer Crane's original X thread: https://x.com/lifeof_jer/status/2048103471019434248
    • Hacker News discussion: https://news.ycombinator.com/item?id=47911524
    • BusinessToday coverage: https://www.businesstoday.in/technology/story/it-took-9-seconds-ai-agent-running-on-anthropics-claude-opus-46-wipes-critical-database-527552-2026-04-27
    • Constitutional Agent Governance (HC-5): https://github.com/CognitiveThoughtEngine/constitutional-agent-governance

    Tags

    aiagentssecuritycursorclaude

    Comments

    More Blog

    View all
    Cursor Automations in 2026: wire event-triggered coding agents to Slack, CI, and timerscursor

    Cursor Automations in 2026: wire event-triggered coding agents to Slack, CI, and timers

    Cursor Automations in 2026: wire event-triggered coding agents to Slack, CI, and...

    M
    Manu Shukla
    Index Everything, or Read Everything? The Dilemma of Feeding Specs to AI in Multi-Repo Developmentai

    Index Everything, or Read Everything? The Dilemma of Feeding Specs to AI in Multi-Repo Development

    The specs exist. The AI just can't see them. I've always been the type who builds hobby...

    S
    Shunya Shida
    Connect Claude Code, Cursor and Codex to Amazon Bedrock's new console (2026)amazonbedrock

    Connect Claude Code, Cursor and Codex to Amazon Bedrock's new console (2026)

    Connect Claude Code, Cursor and Codex to Amazon Bedrock's new console (2026) Summary. On 5...

    M
    Manu Shukla
    Spotting AI UI is too easyai

    Spotting AI UI is too easy

    There is a weird uncanny valley with LLM-generated UI right now. The code functions perfectly, but if...

    H
    Harish .s
    Seven ranking frameworks, one search page, zero translation tablesai

    Seven ranking frameworks, one search page, zero translation tables

    I went down a rabbit hole this morning reading the late-2025 Juejin AI roundups side by side, and the...

    N
    ninghonggang
    Zendesk MCP: Let Claude Handle Your Support Ticketsmcp

    Zendesk MCP: Let Claude Handle Your Support Tickets

    Install guide and config at curatedmcp.com Zendesk MCP: Let Claude Handle Your Support...

    C
    curatedmcp

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Cursor resource

    • Interact with SQLite Database Using LangChain AI Agentn8n · $9.99 · Related topic
    • Process Multiple Media Files in Telegram with Gemini AI & PostgreSQL Databasen8n · $24.99 · Related topic
    • AI Chatbot Call Center: Taxi Booking Worker (Production-Ready, Part 5)n8n · $24.99 · Related topic
    • Build Production-Ready User Authentication with Airtable and JWTn8n · $14.99 · Related topic
    Browse all workflows