An agent deleted a production database during a code freeze
It had been told not to change anything without permission. It deleted the database anyway, then said it could not be restored.2
Recovered only through a rollback the agent said would not work.2
4 of 50
Stopped Limited: the payment went out through the bank’s own system This case: Replit and SaaStr. The gate refuses it.
The agent ignored the freeze and deleted production.
July 2025. SaaStr’s founder was building an app with Replit’s agent, under a code freeze.
During the freeze. The agent deleted the production database, against his instructions.
Afterwards. It said the data could not be restored. A rollback brought it back.2
With the sealed gate, the delete would have been refused.
The freeze would have been a rule the agent could not skip, and the record would have come from the gate, not from the agent’s own account. Press Play to watch the same call.5
postgres.safe-sql@1- request
tools/call {"name":"query","arguments":{"sql":"DELETE FROM public.executives"}}Refused
SaaStr could have refused every delete during the freeze in three steps.
Approvals and signed records come with Pro, Gate only and Custom. On Free, a rule that asks first refuses instead.7
Or in five lines of code.
The same three steps, from the terminal.
sealedbox keys sealThe agent gets sbk_live_7Hq2…f9.sealedbox rules addReads allowed, changes refused, freeze on.sealedbox approvals connectAsk-first calls go to #data.mcpServers.gate.urlOne URL, with the SealedBox key in the header.Put the gate in front of your agent today.
Run three practice calls in five minutes, then check their records on your own computer. Test mode, on every plan.
$ sealedbox try5-minute practice run9What the gate doesn’t change, and three failures like this one.
Names and logos belong to their owners. Their use here reports public events and implies no endorsement.
What if the agent ignores my instructions, as this one did?
The rule sits outside the agent, and the agent cannot change it. The gate checks each call before the key opens, so a delete during the freeze is refused whatever the agent was told.
Could the agent switch the freeze off itself?
No. The agent cannot change its rules, and loosening a rule takes the owner’s passkey.
Can it still read production during the freeze?
Yes. In this sample, reads stay allowed and the freeze refuses every change.
Does the agent ever see the database password?
No. It holds a SealedBox key with no secret in it. The real password opens only inside the gate, for one call at a time, after the rules pass.
How would we know what it tried?
On Pro, Gate only and Custom, every call gets a signed record, allowed or refused: the agent, the rule and the decision. You can check a record on your own computer.