Chapter 01
The model is the least interesting decision you will make
The agent worked, which is what made it dangerous. It read the shared mailbox, matched invoices against purchase orders, posted them to the finance system and replied to the supplier, and for eleven days it did all of that correctly. On day twelve it acted on an email that was not from a supplier. Nobody could say afterwards what it had done, because nothing had been logged and nothing could be undone.
An agent is a user, and you never onboarded it
A chatbot answers. An agent acts. The moment a model can send an email, write to a database, raise a ticket or move money, it has stopped being a tool your staff use and become an account in your environment with permissions attached. You would not give a new starter a login without deciding what they can reach, who approves their work and how you would remove them. Agents arrive with none of that, because they arrive through a pilot rather than through IT.
Why the model question is a distraction
Which model to use is a real question with a real answer, and it is not the question that determines whether this ends well. Models change every few months. The permissions you granted, the data you let it see and the records you did or did not keep will still be there next year, attached to whatever model replaced the first one. The decisions taken before you switch it on are the ones with a long tail.
The difference between a useful agent and an incident is rarely the model. It is the eight decisions nobody made because everybody was busy choosing one.
Chapter 02
What an incident actually looks like here
It is worth being specific, because the failure modes are not the ones people expect. Nothing described below requires a sophisticated attacker or a badly built model. It requires an agent with more reach than anyone intended and no record of what it did with it.
Excessive agency has a name for a reason
The OWASP Top 10 for LLM Applications gives excessive agency its own entry, and it is the one that separates agents from chatbots. It means the system can take actions beyond what the task requires: too many permissions, too much autonomy or too broad a set of tools. The everyday version is an agent granted write access when read access was all the job needed, because read-only meant a fortnight in the ticket queue and a wide service account already existed.
The instruction that did not come from you
Prompt injection sits at the top of the same list. An agent that reads email, tickets, documents or web pages takes instructions from content it did not author, and content is where an attacker puts text. On a chatbot that produces a wrong answer. On an agent with permissions it produces an action.
The agent will tell you how it works
System prompt leakage is on the same list and matters more for an agent than for a chatbot. The instructions defining what it may do, which tools it holds and how it authenticates are text, and text can be coaxed out. Treat the system prompt as documentation an attacker may eventually read, never as the place a control lives. If the only thing stopping an action is a sentence asking the model politely not to take it, you do not have a control.
Chapter 03
Eight decisions, four questions
There are eight things to settle before an agent touches a system. In practice they answer four questions, and a governance meeting goes considerably better if you ask the questions rather than reading out the list.
Ask these before the pilot starts
What can it reach?
Scope and inventory first. Name the systems, the actions and the data the agent may touch, then grant the least privilege that allows exactly that and nothing more. Write down what it may not reach as well, because that is the list people argue about later.
Where does the data go?
A data-boundary decision per workload, not one blanket policy. Which processing may leave your region, which vendor terms apply, what is retained and for how long. A single rule for every workload is usually the wrong rule for most of them.
Who says yes, and what is written down?
Human-in-the-loop gates on the actions that matter, and an audit trail on everything else. Somebody approves the payment, the deletion, the message to a guest. Every prompt, tool call and output is logged in a form you can search nine months later without asking the vendor for help.
What happens when it is wrong?
Rollback, a confidence signal, tested behaviour and stop criteria agreed in advance. You need to undo an action, know when the agent is unsure of itself, and have already written the sentence that says at what point you switch it off.
The stop criteria are the ones people skip
Of the eight, the most commonly missing is the agreed stop. A pilot without stop criteria does not fail, it drifts. Write the threshold before the first run: this error rate, this class of mistake, this many escalations in a week and we pause. Agreeing that while nothing is going wrong takes ten minutes. Agreeing it during an incident takes a week and costs a working relationship.
One decision per workload, not one policy
The boundary question is the one most often answered once and applied everywhere. An agent that summarises inside your own tenant and an agent that sends text to a third-party service are not the same risk. Treating them as one produces either a rule so strict nothing ships or one so loose that the strict case is unprotected. Decide per workload.
Chapter 04
Every item on the list is a document, not an intention
The test of whether these decisions have actually been taken is whether somebody can put the artefact on the table. Not describe it. Produce it, in the meeting, without a promise to circulate something by Friday.
What each one looks like on a page
Scope is a one-page list of systems and permitted actions. Least privilege is a permissions matrix with a named owner on every line. The data boundary is a short table with a row per workload. Gates are a list of actions requiring approval and the role that gives it. The audit trail is a log you can query, demonstrated live rather than promised. Rollback is a tested procedure with a time attached. Testing is a set of cases including hostile inputs. Vendor terms are the clauses on retention, training and sub-processors, extracted and read.
A broad service account is a debt in your future self’s name
The most common shortcut is the one that feels most reasonable at the time. Standing up narrow permissions takes two weeks of coordination across three teams. There is an existing account with wide access, the pilot has a deadline, and using it costs nothing today. That is precisely the problem. It comes due the first time somebody asks what the agent could have reached, and the answer is everything, and the person answering is you, eighteen months later, long after whoever took the shortcut moved on.
What goes wrong when each one is skipped
The failures are specific. No inventory and you cannot answer a customer questionnaire about which systems AI touches. No boundary decision and you learn where processing happened from a vendor release note. No gates and the first anyone hears of a bad action is the recipient. No audit trail and an incident becomes unresolvable rather than merely serious. No rollback and a small error is permanent. No vendor review and a corporate customer in NIS2 scope, obliged under Article 21(3) to take account of vulnerabilities specific to each direct supplier, asks a question you cannot answer.
Chapter 05
Most projects start with which model. The ones that survive start with which guardrails.
That is the whole shift, and it sounds like caution until you have watched both kinds of project run. The first kind demonstrates beautifully in month one. The second kind is still in production in month eighteen.
The guardrails outlive the model
Whatever you pick will be replaced. The permissions model, the boundary decisions, the logs, the gates and the stop criteria carry across unchanged, which means every hour spent on them is spent once and reused. Every hour spent choosing between two models is spent again next time. Teams that treat the guardrails as the project and the model as an implementation detail end up moving faster, because the second agent takes days instead of months.
A shorter conversation than it sounds
Eight decisions, four questions, one morning with the right people in the room. For a first agent in a contained workload that is the scale of it. If you want external structure to borrow, ENISA’s Multilayer Framework for Good Cybersecurity Practices for AI, published in June 2023, is a reasonable reference, though it addresses AI generally rather than language models. An Sbit AI-Readiness Scan covers the same ground against your own estate.
So do not begin by asking which model. Begin by asking what it can reach, where the data goes, who approves and what happens when it is wrong. Answer those four in writing and the model becomes what it should always have been, a component you can swap out on a Tuesday. Skip them and you will answer them anyway, later, under pressure, in front of people who have stopped asking politely.