Email was deleted or sent
- Revoke the agent's mailbox token.
- Check trash, archive, rules, forwarding, and sent mail.
- Export mailbox audit logs before restoring.
- Add approval for delete, send, forward, and rule changes.
First, stop the bleeding. Then preserve evidence, recover what you can, rotate anything exposed, and let HaltState AI create approval and deny policies before the agent gets tools again.
Do these before trying to debug the model. Incidents get worse when the agent is still connected to tools.
Kill the process, pause the scheduler, disable the webhook, or revoke the automation token. Confirm no worker is still retrying failed tool calls.
Remove write access for email, file storage, shell, database, cloud, payment, CRM, or ticketing systems touched by the agent.
Save prompts, tool calls, stdout/stderr, API request IDs, database logs, inbox activity, and cloud audit events.
Assume API keys, SSH keys, tokens, and database credentials are compromised if the agent could read or transmit them.
Use provider trash, backups, point-in-time recovery, git history, database WAL/binlogs, or vendor support before overwriting evidence.
Pick the blast radius and lock that surface first.
Do not rely on another instruction prompt. Use HaltState AI, the policy wizard, or the in-site support agent to create policy drafts, review them, then enforce the accepted policies outside the model.
[
{
"name": "Require approval for email sends",
"action_pattern": "email.send",
"effect": "APPROVAL_REQUIRED",
"priority": 80
},
{
"name": "Block dangerous shell commands",
"action_pattern": "shell.*",
"effect": "DENY",
"conditions": [
{"path": "params.command", "op": "matches", "value": "rm -rf|mkfs|dd if=|chmod -R|chown -R"}
],
"priority": 95
},
{
"name": "Require approval for database changes",
"action_pattern": "database.*",
"effect": "APPROVAL_REQUIRED",
"priority": 85
}
]
HaltState gives OpenClaw a policy gate, approval queue, global stop, and proof trail for every action that matters. HaltState AI can create the starter policies for you.