playbook · Julien de Waal · 8/16/2026 · 5 min read
My AI Agent Tried to Delete Every Customer Record — Here's What Actually Stopped It
# My AI Agent Tried to Delete Every Customer Record — Here's What Actually Stopped It
Fredrik von der Heyden runs 86 Docker containers. No employees. Just him and a stack of AI agents doing the operational work most companies hire teams to handle.
Then one of those agents tried to delete every customer record in the database.
It didn't succeed. But the near-miss is the most important story in solo founder infrastructure right now — because most people building autonomous AI companies aren't talking about what happens when the agent gets it wrong at scale.
The incident nobody wants to admit happens
Von der Heyden's setup is a real-world version of what AI-native companies in 2026 are quietly converging on: one operator, maximum automation, agents handling everything from code deployment to data operations. The efficiency math is compelling. The risk profile is different from anything traditional software teams have dealt with.
The problem wasn't a hallucination in a chat interface. It was an AI coding agent with write access, executing a task it had misunderstood, at machine speed, with no human in the loop to catch it mid-execution.
What stopped it wasn't vigilance. It was architecture.
Why capability conversations miss the point
Every benchmark, every demo, every "I built X in Y hours" post focuses on what AI agents *can* do. That framing is useful for adoption. It's dangerous for operations.
When you're a solo founder and an agent makes a mistake, there's no second pair of eyes. No DBA who notices the query looks wrong. No on-call engineer who gets paged. The blast radius of an unconstrained agent isn't proportional to team size — it's inversely proportional. The smaller the team, the larger the relative damage.
This is the part of building a one-person startup with AI that gets skipped in the tutorials.
The safety rails that actually worked
Von der Heyden's architecture had several layers that, together, caught the near-catastrophe. None of them were exotic. All of them required intentional setup.
1. Read-before-write confirmation gates
The agent was required to output a plain-language summary of what it intended to do before executing any write, update, or delete operation. This isn't just a prompt instruction — it's enforced at the tool-call level. The agent literally cannot proceed to the destructive step without a confirmation object being returned.
2. Scope-limited database credentials
The credentials the agent used had no DELETE permissions on the customer records table. A separate, human-authenticated credential set handles destructive operations. The agent hit a hard permission wall before it could complete the action.
3. Dry-run mode on data operations
All database operations that touch more than a configurable row threshold (in his case, 10 rows) execute in dry-run mode first, returning a preview of what would change. The agent is instructed to stop and report when dry-run output exceeds expected scope.
4. Immutable audit logs
Every agent action writes to an append-only log. Not for debugging after the fact — for the agent itself. The system prompt includes a requirement to review recent log entries before executing any operation that affects existing data. This creates a lightweight self-check against operational context.
5. Rollback snapshots on a schedule
Automated database snapshots every 15 minutes. Not glamorous. Not AI-native. The most important line of defense in the stack.
The architectural principle underneath all of this
These aren't five separate tricks. They're one idea expressed five ways: never give an agent both the authority to decide and the authority to execute in the same action.
Decision and execution should be separated by at least one confirmation layer — ideally one that's enforced structurally, not just instructed in a prompt. Prompt instructions can be overridden by a sufficiently confused model. Permission boundaries cannot.
This is the shift that separates toy automations from production-grade agentic infrastructure. Most solo founders running AI agents are operating somewhere in between — enough autonomy to be efficient, not enough constraint to be safe.
What the revenue per employee metric hides
Solo founders running lean AI stacks can post extraordinary revenue per employee numbers. Von der Heyden's 86-container operation with zero employees is an extreme version of a real trend. The metric is real. The risk it obscures is also real.
High revenue per employee means high operational dependency per employee. When the automated system breaks — or in this case, nearly breaks catastrophically — there's no team to absorb the failure. The solo founder is both the CEO and the incident response team.
That changes the calculus around safety investment. For a 50-person engineering team, a near-miss is a postmortem and a Jira ticket. For a solo founder, the same near-miss is an existential event.
What to actually implement before your next deployment
If you're running AI agents with write access to production data, here's the minimum viable safety architecture — not the ideal, the minimum:
- Least-privilege credentials by default. Your agent should never have more database access than it needs for its specific task. Separate credential sets for read, write, and delete.
- Row-count thresholds. Any operation touching more than N rows requires explicit confirmation. Set N conservatively.
- Dry-run first on destructive operations. Make it structural, not instructed.
- Snapshot before any agent-initiated migration or bulk operation. Automate this.
- Log everything. Append-only, agent-readable, human-reviewable.
None of this is novel. Database administrators have known these principles for decades. The novelty is that solo founders running AI agents now need to internalize them without a senior DBA to enforce the culture.
The meta-lesson
AI agents make solo founders operationally capable in ways that weren't possible three years ago. That's the story most people are telling, and it's accurate. The story that needs to be told alongside it: autonomy without constraint is a liability that scales with how much you've automated.
Von der Heyden's near-miss didn't happen because he built something naive. It happened because he was pushing the boundary of what's possible with solo agentic infrastructure — and pushing that boundary means occasionally finding where it breaks.
The founders who build durable AI-native companies won't be the ones who automate the most. They'll be the ones who automate aggressively and constrain deliberately.
Build the rails before you need them.
---
Is your company eligible? Submit to the leaderboard → onepersonunicorn.co/submit
Read the full AI-native companies guide.
Is your company eligible? Submit to the leaderboard →
Submit Your Company