5.1 Guardrails, Safety Controls, and the Surface a Risk Belongs To
What You Need to Know
Section titled “What You Need to Know”A guardrail is a control that stops a Claude system causing harm. Guardrails sit on five control surfaces. Each surface is at a different position on the path of a request. Each risk belongs on the one surface that can control it.
This lesson uses one made-up example throughout: a solar installer whose customer assistant reads uploaded roof surveys and has a tool that cancels booked installations.
Five Control Surfaces, Read by Position
Section titled “Five Control Surfaces, Read by Position”Input controls screen what enters the system: injection and jailbreak patterns, personal data that should never have been submitted, and out-of-scope or abusive requests. Only input controls can stop a payload before it reaches anything. Anthropic advises that a lightweight model pre-screens the input and gives its verdict as a structured output.
Instruction-layer controls are the scope, refusal policy and escape hatch in the system prompt. They shape behaviour, and they are worth having.
Capability controls decide what the system may do. They decide which tools exist, which credentials those tools have, and which actions need a second party. Approval by staff for each cancellation is one capability control.
Output controls validate the response before it leaves: schema and policy checks, blocked types of claim, required citations, and redaction of outgoing text.
Architectural removal means not building the capability at all. A tool that was never built cannot be misconfigured, degrade or need an audit.
An Instruction Is Not an Access Control
Section titled “An Instruction Is Not an Access Control”A system prompt is text that the model reads. If a capability is connected, an instruction not to use it is a request. Anthropic’s hardening guidance puts prompt policy beside input validation and least privilege. It never puts prompt policy in their place.
Test any design with one question: what stops a confused or compromised turn from reaching the connected capability? If the answer is “the prompt says not to”, no control is responsible for the risk. When the cancel tool is connected, the installer’s prompt line “never cancel an installation” is only a request.
Untrusted Input Is Everything the System Did Not Author
Section titled “Untrusted Input Is Everything the System Did Not Author”Two threat models apply. In a direct jailbreak, the user is the adversary. In an indirect injection, the user is trusted. The adversarial instruction arrives inside third-party content: a retrieved document, a tool result, a connector payload or an uploaded file. An honest customer’s roof survey is third-party content too.
The mitigations that work are structural, not persuasive:
- Untrusted content arrives inside tool results and nowhere else. Its origin is declared and its encoding is unambiguous. Then an attacker cannot escape from the data context.
- The system prompt states that tool content is data to report, not commands to follow.
- Tool output is screened before the model acts on it.
- Access is scoped so that a successful injection has limited effects.
Screening reduces how often injections pass. Scoping limits the consequence. Detection helps, but least privilege is reliable. If the cancel tool had never been built, a planted instruction that passes the screen could not use it.
A Guarantee Has Only Two Homes
Section titled “A Guarantee Has Only Two Homes”“This must never reach a customer” is a guarantee. Wording cannot guarantee an outcome. A guarantee exists at the output gate or in a capability that you never built. Where a property must be true every time, Anthropic’s consistency guidance recommends structured outputs instead of prompt wording.
The gate covers the claim classes that the organisation has already decided about: financial commitments, clinical or legal advice, and guarantees of outcome. For some types of claim, you do not make the decision. A provider usage policy sets minimum requirements for high-risk uses. The gate blocks a reply, redacts it or routes it to a person. The installer’s gate would route a reply that promises a payback period to staff. A gate that only records is a detective control (one that finds harm after it happens), even if it is called a preventive control.
Defence in Depth, and Why Removal Still Wins
Section titled “Defence in Depth, and Why Removal Still Wins”The layers are independent, so that the failure of one layer does not let harm reach a user. For that reason, Anthropic’s advanced guardrail material uses a harmlessness screen, a system prompt that states values, and a policy check in a chain.
Defence in depth does not permit you to use the wrong layer to control a consequence. Capability scoping or a human gate (a person who must approve the action first) governs an irreversible external action, never firmer wording plus a weekly sample. A cancelled installation cannot be undone, so it needs staff approval or no cancel tool.
In the exam
Section titled “In the exam”In the Domain 3 sample in the guide, a support agent has refund and delete tools that its users never need. The right answer removes those tools. Logging is the wrong option that is a detective control. A confirmation prompt is the wrong option that is a compensating control. A bigger model is a wrong option that is irrelevant to the risk. Every option is a real control, and one option is the control that the risk needs. Nearly every guardrail question has that pattern.
Find the phrase in the question that decides the surface: never reaches, before it is sent, cannot be undone, after the fact. That phrase usually decides the answer. The prompt instruction is the most common wrong option in this domain. It appears again in Domains 3 and 7. Domain 3 implements capability controls. Domain 5 decides that they must exist.
The guide publishes no Domain 5 sample. The Domain 3 sample is the closest example of how Domain 5 questions are written.
Exam Traps
Section titled “Exam Traps”Practice Scenario
Section titled “Practice Scenario”A pharmacy chain’s customer assistant answers questions about the medicines it stocks. Clinical governance requires that no reply ever states a dose, a frequency or a duration; those questions must reach a pharmacist. Which change satisfies the requirement as stated?
- A. Validate every response before it is sent and route any reply containing dosing content to a pharmacist
- B. Log every reply so the clinical governance team can sample them weekly
- C. Move to a more capable model on the grounds that it follows clinical instructions more reliably
- D. Instruct the system prompt never to give dosing information under any circumstances
Answer & explanation
Correct: A
- A — Apart from removing the capability, an output control is the only surface that can meet a requirement that something never reaches a customer. Routing keeps the service working, because it sends the blocked case to the person clinical governance nominated.
- B — A detective control. It finds a dosing statement after a customer has already acted on it, which is the failure the requirement exists to prevent.
- C — Model capability is not a control surface. In its own sample, the guide treats model size as unrelated, and a better instruction-follower still offers no guarantee.
- D — An instruction-layer control. It shapes behaviour and will usually work, but it cannot guarantee an outcome, and never reaching a customer is a guarantee.
Sources
Section titled “Sources”- Mitigate jailbreaks and prompt injections — Anthropic
- Increase output consistency — Anthropic
- Usage Policy — Anthropic
- Claude Certified Architect Professional Exam Guide (v1.0) — Domain 5 — Anthropic