← Back to Blog & Insights

AI SECURITY / ARTICLE

Designing AI guardrails people can understand

Safety controls work best when people can see what a system is doing, why a boundary exists, and how to recover when it gets in the way.

8 min read

01 / AI SECURITY

Safety is part of the product experience

Picture this: you upload meeting notes, ask for the decisions, and get back a confident summary. One decision looks unfamiliar. You search the notes and cannot find it. Was it inferred? Did the model fill a gap from memory? Or did it mistake a quoted suggestion for an agreed action?

The screen gives you no clue. That moment matters more to trust than a green "AI safety" badge in the corner.

The underlying system may already have prompts, filters, access rules, and monitoring. Those controls matter, but they do not tell the person reading the answer what happened. A refusal with no explanation leaves them stuck. An answer with no traceable source asks them to take a leap of faith. If a support assistant quietly changes an account after reading a retrieved page, a hidden boundary has failed in a much more consequential way. In each case, the interface is part of the safety story.

People need an accurate picture of the system, not a dump of internal checks. If an answer comes from an uploaded policy, show the passage that supports it. If the file contains text addressed to the assistant, say that it was treated as part of the file, then continue with the user's task when possible. If the system is about to send or change something, show the exact action first. Small, honest signals make it easier to spot an error and easier to correct one. They also avoid promising certainty that no model can deliver.

02 / AI SECURITY

Name the boundary before building the control

Every guardrail should begin with a sentence that states the protected boundary. For a summarizer, the user request defines the task and the document supplies information. For a tool-using assistant, a model can suggest an action, but application code decides whether the user is authorized and whether approval is required. For a search assistant, a retrieved page may provide evidence but cannot rewrite the instructions governing the assistant. This framing is more useful than a general requirement to "make the AI safe," because it tells designers and engineers what behavior to test.

Write down the legitimate path as well as the failure path. Suppose an employee asks for a summary of an incident report that quotes an attacker saying "ignore previous instructions." The assistant should summarize that sentence when relevant; it should not obey it. A crude rule that rejects the document on sight breaks the legitimate path. A better rule distinguishes describing an instruction from following it. The distinction can be made visible in the interface: the assistant can note that the suspicious text was treated as part of the report, then continue with the requested summary.

The boundary also determines where controls belong. A prompt can ask a model to treat external text as untrusted, but a prompt cannot grant or revoke real permissions. Authorization belongs in the application and its services. Output validation belongs after generation, before an answer is rendered or an action is executed. Human approval belongs at the point of a consequential action, with enough context for the person to understand what will happen. Layering these controls prevents one brittle instruction from carrying the entire security burden.

03 / AI SECURITY

Make friction proportional to the decision

Would you want to approve every sentence an assistant drafts? Probably not. Would you want to approve an email before it goes to a customer? Probably yes. Those are different moments. If the interface asks for confirmation on every harmless step, people learn to click through. Save that pause for changes that are hard to undo or that affect money, access, sensitive data, or another person. The assistant can draft freely; sending is a separate decision.

An approval screen should describe the actual action: destination, recipient, scope, and data involved. "Allow assistant action?" is too vague. "Send this draft to the selected address, including the attached report?" gives the user something concrete to inspect. The application should still enforce authorization and record the decision. Human approval is an additional checkpoint, not a substitute for server-side access checks.

For refusals and partial answers, provide a recovery route. If a model cannot use a source confidently, offer to show the relevant passage or ask for a narrower question. If an upload is too large, identify the limit and explain how to split it. If a requested action needs permission, show who can grant it or offer an export that the user can handle manually. A dead-end refusal may be technically cautious but can push people toward unsafe workarounds. A useful alternative keeps them inside a workflow whose boundaries are understood.

04 / AI SECURITY

Show uncertainty without performing confidence

A green badge beside a model answer looks reassuring. What does it mean? It could reflect how similar a retrieved paragraph is to the question, how certain a classifier feels, or nothing more than a design choice. Those are not interchangeable. I would rather see "I found the policy passage, but it does not answer the date question" than a shiny 94 percent. If the team cannot explain what a number measures and how it was checked, the number should not carry the burden of trust.

For source-based answers, distinguish three cases. First, the system found a passage that directly supports the claim; show the passage or a working citation. Second, it drew an inference from several passages; label that as an inference. Third, it lacks enough evidence; say so and suggest what would resolve the gap. The interface should never make a source link look like proof if the linked material does not support the sentence beside it. A citation is a navigation aid and an accountability mechanism, not decoration.

Uncertainty can also be expressed through the workflow. A preview before sending, an editable draft, and a history of changes give users room to inspect output without requiring the assistant to narrate every doubt. In high-stakes settings, the product may need a stronger review process. In routine writing, a brief note that the answer needs verification may be enough. The level of explanation should follow the consequence of a mistake, the quality of the available evidence, and the user's ability to check the result.

05 / AI SECURITY

Test legitimate tasks alongside attacks

A guardrail that blocks every harmful example can still be a poor product. Testing needs at least two sets of cases: attempts to cross the boundary and ordinary work the feature should complete. For a document summarizer, the attack set might include instructions embedded in headings, footnotes, quoted emails, or machine-readable metadata. The legitimate set should include ordinary documents, unusual formatting, and documents that discuss security as their subject. Each case needs an expected result written before the model is run.

The evaluation should record more than a pass or fail. Did the assistant perform the unauthorized behavior? Did it preserve the main facts? Did it refuse a valid request? Did it invent a source? Did it ask for approval before a sensitive action? Repeated runs can expose inconsistent behavior, but repeated responses to the same case are not independent test scenarios. Keep both case-level and response-level results so the numbers are interpretable.

When a control changes, compare the new version with a baseline using the same tasks and settings. If fewer injections succeed but ordinary summaries become vague, the tradeoff needs to be visible. If a test set was used to tune the defense, reserve different cases for the final evaluation. The result is still limited to the tested workflow, model, and data. A useful report states those limits openly instead of turning a small improvement into a claim of general safety.

06 / AI SECURITY

Give operators a view they can act on

Users need clear boundaries; operators need enough evidence to improve them. An operational record can include the task type, input source, model and configuration version, policy decision, tool calls proposed and executed, user approval, and final outcome. Sensitive input should be minimized or protected according to the system's retention rules. The purpose is to reconstruct a decision and identify recurring failure modes, not to collect every conversation forever.

The best dashboard does not merely count blocked prompts. It distinguishes attempted attacks, benign text that resembles an attack, successful task completions, false refusals, and cases that need human review. It gives reviewers a way to inspect representative examples while respecting access controls. A sudden rise in blocks may indicate an attack campaign, a broken parser, or a new document format. Without the denominator of legitimate traffic and the ability to sample outcomes, a block count alone cannot tell the story.

When an incident occurs, the product should support correction. Versioned controls make it possible to identify when behavior changed. A feedback route lets users report an incorrect refusal or a troubling answer. Review notes should lead to specific changes: a narrower tool permission, a clearer approval step, a new test case, or an updated source display. The goal is a learning loop in which the system becomes more dependable because its limits can be observed and revised.

07 / AI SECURITY

What I would build first

I would start with a single document summarizer. Give it one job: turn a user-provided file into a short, source-grounded summary. Write down what it can read, what it can return, and what it cannot do. Keep tool calls out of the first version. In the interface, make the uploaded file look like source material, not a second conversation partner. In the application, keep the file content separate from the user's instruction and check that the response has the format the product needs.

Then I would collect perhaps a dozen ordinary files and a dozen deliberately awkward ones. Include a document that quotes a malicious instruction because the document is about security; a blanket refusal should count as a failure there. Ask someone who did not write the prompt to describe the expected answer before seeing the model's output. Run the cases on the configuration that will ship. Keep the failures, including the ones that make the design look less tidy. Add a short explanation in the interface for the outcomes users are most likely to question.

Only then add more document types, retrieval, or tools. Each addition creates another chance for source material to sound like an instruction. Check the permissions and the explanations again at each step. The standard is simple to state, even if it takes work to meet: protect the boundary, finish legitimate tasks, and leave the person using the product able to understand what happened.

FURTHER READING

Sources & further reading