Kavvo Agents

Agent Safety and Guardrails

November 29, 2026 · 4 min read · By the Kavvo Agents team

Start from what can go wrong

An agent is software that acts. That is the whole point, and the whole risk. A chatbot that gives a wrong answer costs you a correction. An agent that sends a wrong email, refunds the wrong customer, deletes a file or changes a record costs you a customer, money or data. Safety work for agents is not about making them polite — it is about limiting what they can do, watching what they do, and making sure a mistake stays small.

Before you deploy any agent, write down the worst realistic outcome. Not the science-fiction outcome — the ordinary one. The agent refunds an order it should not have. It emails a customer with the wrong price. It shares a document with the wrong person. It runs a command that deletes data. For each one, ask: how would we notice, how would we stop it, and how would we undo it? If you cannot answer all three, the agent is not ready.

Decide what the agent may touch

The most important safety decision is the tool list. An agent can only do what its tools allow, so give it the smallest set that can do the job. A research agent needs search and read access. A support agent needs the knowledge base and an order lookup. It does not need write access to the database, the email sender, or the payment system unless those are exactly the job — and if they are, name the limits.

Separate read from write. Most agents should read widely and write narrowly. Separate the systems that matter: a test database is not a production database, and an agent that works in a sandbox cannot hurt real customers. And separate the data: an agent that answers questions from a knowledge base should not have access to employee salaries, customer payment details or private messages. Permissions are not a one-time setup — review them whenever the agent’s job changes.

Approvals: the human checkpoint

Some actions should never happen without a human saying yes. The usual list is short: sending a message to a customer, moving money, changing or deleting a record, sharing a document outside the company, and running a command that changes a system. Put a human checkpoint before each of these. The agent prepares the action, shows exactly what it will do, and waits.

Good approval design makes the check easy. Show the action, the data it uses, and the reason — not just a button that says approve. A person who sees “Refund $42.50 to order #8841 because the item arrived damaged, per policy section 4” can judge it in seconds.

Logs: the record that saves you

Log everything the agent does: the prompt it received, the tools it called, the data it read, the actions it took, and the output it produced. A log is not bureaucracy — it is the only way to answer the three questions that matter after an incident: what happened, why did it happen, and how do we stop it happening again.

Keep logs where you can read them, and keep them long enough to matter. A log that is deleted after a day is useless when a customer complains a week later. Review logs regularly, not only after an incident: a weekly skim of a sample of conversations catches drift before it becomes a problem.

Limit the damage

Even a well-guarded agent will make a mistake. Design so the mistake is small. Set spending caps and rate limits so a runaway agent cannot burn through a budget or send a thousand messages. Set step limits so an agent that loops cannot run forever. Use time-outs so a stuck agent stops instead of hanging. Test in a non-production environment first, and launch on one channel or for one team before going wide.

Have a kill switch: a way to stop the agent immediately, without a deploy or a meeting. Know who can pull it, and make sure more than one person knows how.

Test like an attacker

Before launch, test the agent with the awkward cases: the rude customer, the contradictory instructions, the request that breaks policy, the prompt that tries to get the agent to reveal system instructions or ignore its rules. A colleague trying to trick the agent for an hour will find problems a checklist will miss. Fix what they find, test again, and keep the test cases so you can re-run them after every change.

Sources