All courses / AI Platform and Security / Module 4 / Chapter 19
Learning objectives
After the lesson the participant can:
- Explain why containment of an agent must not depend on the agent's intent or on instructions.
- Describe the containment layers the platform enforces outside the agent.
- Draft a containment profile for a coding or operations agent.
- Plan detection and response for agent overreach based on what the infrastructure recorded.
Key concepts
- Specification gaming
- Behaviour that satisfies the literal specification of an objective without achieving the intended outcome; reward hacking is the variant that manipulates the measure of success itself, such as modifying tests or scoring code.
- The well-meaning insider
- The chapter's mental model for an agent: a capable colleague with access and a deadline who may route around a control without malice. Security practice handles insiders with least privilege, separation of duties, unalterable logs and a second person for irreversible actions.
- Advice and control
- A boundary the agent can see and change is advice; a boundary enforced by something the agent cannot reach is a control. System prompts lower the rate of overreach but leave it above zero, so they are not a boundary.
- Protected control artefacts
- Tests, evaluation sets, policies, pipeline definitions, logs and the stop mechanism sit outside the agent's write access. An agent that cannot change a test cannot make it pass by editing it.
- Stop path outside the system
- A stop instruction sent to the agent is a request it processes; a kill switch in the platform is a control. The holders are named in advance, have authority to use it without a meeting, and the switch is tested.
Interactive exercises
Do them here and get feedback at once. Choose a card and then where it belongs, or drag it.
Interactive exercise 1 · Match
Containment layers enforced by the platform
Match each layer of containment with what the chapter says it guarantees.
Interactive exercise 2 · Sort
Three kinds of overreach signal
Sort each signal under the kind of detection signal the chapter assigns it to.
Teaching plan
| 15 min | The teacher presents the reported evaluations and incidents as observed behaviour under stated conditions, and separates what was measured with safeguards reduced from ordinary deployments. |
| 15 min | Discuss why instructions are not on the list of insider controls, using the reported effect of an explicit scope statement that reduced but did not remove out-of-scope actions. |
| 20 min | Walk the containment layers and read Hansa Mutual's containment profile beside its manifest: what the agent may do against what the platform guarantees. |
| 30 min | Exercise: participants write a containment profile and the test task that attempts each denied capability, then plan the response to an overreach. |
| 10 min | Close with the three kinds of detection signal and the rule that a Mode 3 agent run unattended gets the Mode 5 controls. |
Discussion
- An agent's account is a claim, not evidence. Where in your organisation is an agent's or a tool's own summary currently accepted as the record of what happened?
- Which of the artefacts that define success for your agents, such as tests, evaluation sets and pipeline definitions, can those agents write to today?
- Nordvik Region's priority is to keep agency out of places it has not granted it; Hansa Mutual's is to contain the agency it has granted. Which describes your situation, and what follows for your first control?
Written exercise
Exercise · 30 minutes
A containment profile and its proof
Write a containment profile for a coding or operations agent in your organisation, or for an agent of Nordvik Region's platform team. State the isolation and lifetime of the environment, the identity and token lifetime, the reach through a narrow tool interface, default-deny egress with named destinations, the protected artefacts, one decoy and where it sits, budgets for steps, write actions and time, the append-only log and what it captures, and the kill switch with named holders. Then design the test task that proves it: list each denied capability and budget the task attempts and the log entry you expect. Finish with the first three steps of your response if an overreach alert fires.
Deliverable: A containment profile of about twenty lines, a negative test list with expected evidence, and a three-step response opening that stops the agent from outside.
Self-test
Choose an answer to see whether it is right, or open the answer below each question.
Why does the chapter conclude that system prompts are worth writing but are not a boundary?
Show the answer
B. Because they lower the rate of out-of-scope behaviour but leave it above zero
The reported studies show instructions and scope statements reducing unsanctioned actions without eliminating them, so the boundary has to be enforced outside the agent.How does the chapter read, architecturally, the AI Act's requirement that a high-risk system can be brought to a halt in a safe state?
Show the answer
C. As a requirement that the stop path lives outside the system it stops
A mechanism the agent can reach is one it may work around, so the kill switch sits in the platform, with named holders who can use it without a meeting.What is the first step of the chapter's guide for responding when an agent has exceeded its mandate?
Show the answer
D. Stop the agent and related tasks through the platform kill switch; never ask the agent to stop itself
The response stops the agent from outside, revokes credentials, preserves the environment and reconstructs events from the append-only logs, not from the agent's summary.