Lesson 8.4: Deploying and governing agents in an organisation
Learn how to release agents in stages and govern a fleet: a register, risk tiers, clear owners, audit trails and fast incident response.
By the end of this lesson you will be able to release an agent in stages and roll it back, keep a register of every agent with an owner and a risk tier, scale review effort to risk, define who is responsible for what, keep an audit trail and run an incident response that limits harm. You will work out that reviewing 40 agents by risk tier takes about 328 hours a year against 1,600 if all are reviewed as the riskiest are, and that an agent making 6 harmful actions an hour does 6 of them before a 45-minute detection and 15-minute stop, against 0.6 with 5-minute detection and a 1-minute stop. You should have read Lessons 6.3, 7.1, 7.2, 8.2 and 8.3. No code is needed. The mathematics is weighted sums and rates.
Everything in this module so far has been about a single agent: what it costs, how to see it and how to keep it running. Real organisations do not run one agent. They run dozens, built by different teams, using different tools and data, started by different people. Without a way to manage them, they become a sprawl: nobody knows what is running, who owns it, what it can touch or what it did last Tuesday. This lesson is about two connected jobs. Deployment is getting an agent into use safely and changing it safely. Governance is the set of rules, roles and records by which an organisation keeps all its agents under control. Neither is glamorous, and both decide whether agents are trusted enough to be used for anything that matters.
Part one: deploying an agent
Environments
An agent should pass through separate places before it meets real users.
Development. Where it is built and tried, with test data and fake or sandboxed tools. Nothing here can do real harm.
Staging. A close copy of production, with realistic but not real data, where the evaluation suite of Lesson 7.1 runs and where integrations are tested. A staged agent calls sandbox versions of real systems.
Production. Real users, real data and real actions.
The rule is that an agent never reaches production by being edited there. Changes move from development, through staging, to production, along one path, with a record of each step.
The autonomy ladder
Do not go straight from "built" to "fully autonomous". A safer course is to widen the agent's role in steps, each earned by evidence.
Stage · What the agent does · Who acts1. Shadow · Runs on real inputs alongside the current process, and its output is recorded but not used · People do the work. The agent is compared with them
2. Suggest · Proposes an answer or action · A person decides every time
3. Act with approval · Prepares the action · A person approves before it happens
4. Act and review · Acts within limits · People review a sample afterwards
5. Autonomous within limits · Acts, with monitoring · People are alerted to exceptions
Move up a stage only when the evidence supports it: the evaluation scores are good, the shadow comparison shows the agent matches or beats people, and approvals are nearly always accepted without edits. Move down at once if something goes wrong. Many agents should stay at stage 3 or 4 permanently, because the cost of an error is high. The ladder is a tool for earning trust, not a schedule that must be completed.
Releasing a change
A new version of an agent can change its behaviour in ways nobody expected. Treat every change as a release.
What counts as a change. More than code. A change to the instructions, a tool definition, a tool's behaviour, the model or its version, a setting such as temperature, the retrieval index or the permissions can all alter behaviour. Version each of them, as Lesson 8.2 advised, and treat any of them as a release.
An evaluation gate. Before release, run the evaluation suite on the new version and compare it with the current one on quality, cost, time and safety checks. A change that makes the scores worse does not ship. Include the attack tests of Lesson 7.3 and the permission tests of Lesson 6.2.
A gradual rollout. Release to a small share of traffic first, such as 5 per cent, and watch the dashboards from Lesson 8.2: success, escalation, cost, caps hit and user feedback. If the numbers are sound after a day, widen to 25 per cent, then 100. This is called a canary release. Problems that did not show in testing show up on the small share, and affect few people.
A fast rollback. You must be able to return to the previous version in minutes, without a rebuild. Keep the old version deployable, and keep a flag that switches between versions. Practise it. A rollback you have never tried tends to fail when needed.
Feature flags. Put risky capabilities behind switches that can be turned off without a release: a new tool, a higher refund limit, an automatic action. When something misbehaves, you switch it off in seconds.
Model updates. Providers update and retire models. A new model version can change behaviour even if nothing else does. Pin the model version, test the new one before moving, and plan for retirement dates.
A change record. For each release, note what changed, who approved it, what the evaluation showed and when it went out. This is the first thing asked for in an investigation.
Part two: governing a fleet of agents
The register
The foundation of governance is knowing what you have. Keep a register, a single list, of every agent in use. Each entry holds:
Field · ExampleName and purpose · "Refund assistant: drafts and issues small refunds"
Owner · A named person, accountable for it
Users · Who uses it and who is affected
Tools and permissions · What it can read and change
Data · What data it sees, including personal and sensitive data
Models and vendors · Which models and providers it relies on
Risk tier · See below
Autonomy stage · Where on the ladder
Version and last release ·
Evaluation status · Last run, scores, date
Approvals · Who signed off, when, for what
Next review date ·
An agent that is not in the register should not be running. Many organisations discover, when they start the register, that teams have built agents nobody told security or compliance about, sometimes with broad access to customer data through a personal account. Finding and bringing in these unsanctioned agents is often the first benefit of the exercise. Make the legitimate route easy, so that people use it and not a workaround.
Risk tiers
Not every agent deserves the same scrutiny. A tiered approach puts the effort where the danger is. Three tiers are enough for most organisations.
High risk. Acts on money, personal or sensitive data at scale, regulated activity, safety or customers directly, or can take irreversible actions. Examples: an agent that issues payments, decides on credit, advises customers, accesses health records or changes production systems.
Medium risk. Acts within limits on internal matters, or touches limited personal data, or interacts with customers in a narrow, reviewed way. Example: an agent that drafts replies that a person sends.
Low risk. Reads public or non-sensitive data and produces drafts or analysis for a person who checks them. Example: a meeting summariser working on internal non-sensitive notes.
Decide the tier by asking the same questions as in Lesson 6.3: how bad is a mistake and how easily can it be undone, along with what data it touches and how many people it affects. The tier sets what is required:
Low: register entry, an owner, basic testing, annual self-review.
Medium: all of the above, plus an evaluation suite, staged release, security review of tools and a review every six months.
High: all of the above, plus a formal risk assessment, sign-off from security, privacy and compliance, human approval for consequential actions, full audit trail, an incident plan and a review at least every quarter and on any significant change.
The cost of review, and why tiers help
Reviews take people's time, so the choice of tiering is also a choice about effort. Suppose the organisation has 40 agents. Reviewing an agent at the depth a high-risk one deserves takes about 40 hours a year, a medium one 10 hours and a low one 2. If 10 per cent of the agents are high risk, 30 per cent medium and 60 per cent low:
High: 4 agents × 40 = 160 hours.
Medium: 12 agents × 10 = 120 hours.
Low: 24 agents × 2 = 48 hours.
Total: 328 hours a year.
Reviewing all 40 as if each were high risk would take 40 × 40 = 1,600 hours. Tiering cuts the load by 80 per cent and puts the attention where it matters. Without tiers, organisations face a bad choice: either review everything shallowly, which misses the dangerous ones, or review everything deeply, which they cannot afford, and so they quietly review nothing.
Predict first: an organisation has 40 agents: 10 per cent high risk needing 40 review hours a year, 30 per cent medium needing 10 and 60 per cent low needing 2. How many hours of review does it need in total, and how does that compare with reviewing every agent at the high-risk depth? Work it out before reading on.
The totals are 328 hours against 1,600, so the tiered approach needs about a fifth of the effort.
Roles and responsibility
Governance fails most often where nobody is clearly responsible. Define roles and write names against them.
The owner. One named person accountable for the agent: its behaviour, its register entry, its budget and its reviews. An agent without an owner is an orphan, and should be suspended.
The builder or operator. The team that keeps it running, fixes faults and carries out releases.
The approver. The person or group that signs off its release and any widening of its autonomy. For high-risk agents this includes security, privacy and compliance.
The user or process owner. The business function that depends on it and judges whether it does the job.
The central function. A small group, often a committee or a team inside risk or technology, that holds the register, sets the policy and the tier rules and runs the review calendar. It should enable teams, not block them. If its process takes months, teams will route around it.
Where lines of responsibility cross, write a simple table of who decides, who is consulted and who is told for each type of decision: launching, widening autonomy, changing a tool, pausing, retiring.
Policy
A short set of written rules saves argument. Cover at least:
Which uses are allowed, and which are forbidden, for example no automated decisions on credit or hiring without specified controls.
Data rules: what data agents may use, what must be masked and where it may be sent, including to outside model providers.
Human oversight: which actions need approval and who may approve.
Security baselines: permissions, secrets, the controls of Lesson 7.2 and the defences of Lesson 7.3.
Vendor rules: which providers and models are approved and under what contract terms.
Transparency: when users must be told they are dealing with an agent.
Record keeping: what is logged and for how long.
Check your sector's rules, since regulators in finance, health and other areas have expectations about automated decisions, explanation, record keeping and outsourcing, and data protection law, such as India's Digital Personal Data Protection Act, 2023, applies to personal data that agents handle. Take advice from your compliance or legal team on what applies. This lesson gives engineering guidance, not legal advice.
The audit trail
An audit trail answers, after the fact: who did what, when, on whose authority and why. For agents, it needs:
The trace of the run, from Lesson 8.2, with versions.
The identity of the agent and of the person on whose behalf it acted.
The approvals given, by whom and for exactly which action.
The changes to the agent: releases, permission changes, flag changes, with who made them.
The access to the traces and data, so that reading them is itself recorded.
Make the audit trail hard to alter: write it to a store that the agent and its operators cannot edit. Test that you can answer questions from it. A good test is to pick a decision at random, from three months ago, and try to reconstruct what happened and why in under an hour.
Monitoring the fleet
At fleet level, watch aggregates: the number of agents by tier and stage, agents past their review date, agents with failing evaluations, cost across the fleet, incidents by cause and the share of runs needing human help. A dashboard of this kind shows where governance has slipped.
Also watch value. An agent that costs more than it saves should be improved or retired. Check each agent's results against the case made for it, such as hours saved or errors avoided.
Incident response
Whatever you do, incidents will happen: an agent sends wrong information to customers, takes a wrong action at scale or leaks data. How fast you detect and stop it determines how much harm results.
Think of harm as a rate times a time. If an agent is doing something harmful at some number of bad actions an hour, the harm done is that rate multiplied by the time it takes to notice and stop it. Suppose it makes 6 harmful actions an hour. If detection takes 45 minutes and stopping takes another 15, the harm is 6 × (45 + 15) ÷ 60 = 6 harmful actions. If alerts catch it in 5 minutes and a prepared switch stops it in 1, the harm is 6 × 6 ÷ 60 = 0.6. A tenfold reduction came from preparation, not from making the agent better.
An incident plan for each medium and high-risk agent covers six steps.
1. Detect. Alerts on the signals that matter, such as unusual action rates, cap hits, error spikes, customer complaints and canaries.
2. Contain. A stop switch that halts the agent or the risky capability, tested regularly, plus revocation of credentials. Containment comes before diagnosis.
3. Assess. Use traces to find what happened, to whom and for how long. List the affected records and people.
4. Communicate. Tell the people who must know: the owner, security, legal and compliance, customers and, where the law requires it, regulators. Decide in advance who does this and how fast.
5. Repair. Reverse the harm where possible, correct the records and contact affected people.
6. Learn. Write a short review: what happened, why, what was missed and what changes. Add the case to the evaluation set, and fix the cause. Share it, without blame, so that other teams learn.
Run a drill once or twice a year. Pretend an agent has started sending wrong refunds, and time how long it takes to detect, stop and assess. The first drill nearly always finds a gap.
Retiring an agent
Agents should end as deliberately as they begin. When an agent is no longer needed, switch it off, revoke its credentials and tokens, remove its access to data, archive its records as policy requires, update the register and tell the users. Forgotten agents with live credentials are a security risk, and unowned agents running on schedules are a cost.
Three worked examples
Example 1: a staged release
A bank's collections team builds an agent that drafts reminder messages. It runs in shadow for three weeks on real accounts, and its drafts are compared with those the team sends. It matches the quality of the best human drafts in 88 per cent of cases. It moves to suggest, then to act with approval, with a supervisor approving each message. After two months, supervisors approve 97 per cent without edits, and the team moves to act and review: the agent sends within set limits and a sample of 10 per cent is reviewed daily. A new model version later reduces the polite tone in tests. The canary release at 5 per cent shows complaints rising, and a flag returns traffic to the old version in two minutes.
Example 2: a register finds the strays
A company starts a register and asks teams to list their agents. It expects 12. It finds 31. Eight are unsanctioned, built by individuals using personal accounts and with read access to customer files. Two send data to outside services no one had approved. The central team does not ban them. It offers a quick route: register the agent, give it a tier and fix the data issues. Within three months, 26 are registered and tiered, three are retired and two are moved onto approved infrastructure. The company now knows its exposure.
Example 3: a drill that found a gap
A high-risk payments agent has an incident plan. In a drill, the team simulates it proposing payments to a wrong account. Detection works: an alert fires in 4 minutes. Stopping takes 38 minutes, because the switch needs a deployment, and only one engineer can do it. The team adds a feature flag that any of five on-call staff can flip, and tests it. The next drill takes 2 minutes to stop.
A checklist for deployment and governance
1. Use separate environments, and move changes along one path. Never edit production.
2. Use the autonomy ladder: shadow, suggest, approve, review, autonomous within limits. Move up on evidence, and down at once on trouble.
3. Treat every change, including instructions, tools, models, settings and permissions, as a release with an evaluation gate, a canary and a rollback.
4. Use flags for risky capabilities, and pin and test model versions.
5. Keep a register of every agent with an owner, tools, data, tier, stage, version and review date. An agent not in the register does not run.
6. Tier agents by risk, and set the required controls and review cycle for each tier.
7. Name the roles and write who decides what. Keep the central function light and fast.
8. Write short policies on use, data, oversight, security, vendors, transparency and records, and check them against sector and legal requirements.
9. Keep a tamper-resistant audit trail and test that you can reconstruct a decision.
10. Plan for incidents: detect, contain, assess, communicate, repair, learn. Drill them.
11. Track value and retire agents that no longer earn their place.
Common mistakes
Editing production. Changes should flow from development through staging.
Going straight to full autonomy. Earn it in stages.
Treating a prompt change as not a release. Anything that alters behaviour needs a gate.
No rollback you have practised. It will fail when needed.
No register. You cannot govern what you cannot list.
Agents without owners. No one answers for them.
One level of review for everything. Too shallow for the risky, too heavy for the harmless.
A central team that blocks. People build in secret instead.
An audit trail that cannot answer questions. Test it.
No stop switch, or one nobody has tried. Harm is a rate times the time to stop.
Never retiring anything. Old agents keep their access.
Key takeaways
Deployment is getting agents into use safely. Use environments, an autonomy ladder from shadow to autonomous, and treat every behavioural change as a release with an evaluation gate, a canary and a rollback.
Governance is the rules, roles and records that keep a fleet of agents under control. The register is its foundation: every agent has an owner, tools, data, tier and review date.
Tier agents by risk. For 40 agents, tiered review takes about 328 hours a year against 1,600 if all were reviewed at the highest depth.
Name the roles, keep policy short and check it against sector and legal requirements. Keep an audit trail you can actually use.
Harm in an incident is the rate of harm times the time to stop. Preparation, with alerts and a tested stop switch, cut 6 harmful actions to 0.6 in the example.
Plan incidents in six steps, drill them, and retire agents deliberately.
Check yourself
1. What are the stages of the autonomy ladder?
Shadow, suggest, act with approval, act and review, and autonomous within limits.
2. Name four things that count as a change needing a release process.
Any four of: instructions, a tool definition, a tool's behaviour, the model or its version, a setting, the retrieval index, or permissions.
3. An organisation has 20 agents: 20 per cent high risk at 40 hours, 30 per cent medium at 10 hours and 50 per cent low at 2 hours. How many review hours a year?
High: 4 × 40 = 160. Medium: 6 × 10 = 60. Low: 10 × 2 = 20. Total 240 hours.
4. Why is an unregistered agent a problem?
No one knows what it can access, who owns it or whether it was tested, so it may carry risks that governance never sees.
5. An agent makes 12 harmful actions an hour. Detection takes 30 minutes and stopping 10. How many harmful actions occur?
12 × 40 ÷ 60 = 8 harmful actions.
6. Name the six steps of an incident plan.
Detect, contain, assess, communicate, repair and learn.
Try this
Set aside ninety minutes.
1. List every agent you know of in your organisation, or imagine ten. Write a register entry for three of them with all the fields.
2. Assign each a risk tier and say why. Write the controls each tier needs.
3. Choose one agent. Place it on the autonomy ladder and write the evidence you would need to move it up.
4. Use the review simulator with your numbers to estimate the review hours a year.
5. Write the release process for a change to instructions: the evaluation gate, the canary share, the metrics to watch and the rollback.
6. Write the incident plan for one high-risk agent. Use the incident simulator to see how much faster detection and a stop switch would cut the harm.
7. Plan a drill: the scenario, who takes part and what you will time.
A good result is a governance pack for a small fleet: a register, tiers with controls, a release process, named roles, a short policy, an audit design and an incident plan. That completes Module 8. Your agents can now be priced, traced, run for long periods and governed as a fleet. The next module turns to advanced architectures: context engineering, protocols, reusable skills and learning from feedback.
Tags: Agentic AI Governance Deployment Risk management Agent operations