← Back to the blog

Blog

AI Guardrails: Block Intent Instead of Topics

A guardrail that denies a topic called “Finance” sounds safe. It could also block a customer who simply asks when a direct deposit will clear. Using Amazon Bedrock Guardrails, AWS explains why semantic policies should describe specific intentions and actions instead of broad subject areas.

Broad categories create broad false positives

Denied Topics evaluate what a request means, not only which keywords it contains. That is more capable than a word list, but it comes with a side effect: topics like “Finance,” “Legal,” or “Fraud” are semantically close to many legitimate service requests.

AWS identifies four common problems: topics that are too broad, keyword-style definitions, one-sided examples, and overlapping rules. In the Standard tier, Bedrock evaluates the name, the definition, and up to five examples together. A broad name can therefore weaken an otherwise precise definition.

The rule needs an action

A reliable policy describes the unwanted behavior, not the entire domain. Writing “personalized investment recommendations” instead of “Finance,” for example, creates a clearer boundary. The definition should then connect three elements:

  • Action: What is the person specifically asking for?
  • Object: Which products, data, or decisions does the action concern?
  • Purpose: Under which condition should the request be blocked?

Examples should also sit close to the boundary. Five variations of the same question test very little. Use different sentence structures and subcases, and include at least one difficult edge case. Names of countries, vendors, or products belong in the policy only when it genuinely targets that entity.

Guardrails become a testing product

AWS also points out that similar topics can interfere with each other and that results are not fully deterministic. Enterprises therefore need a test matrix with both must-block and must-pass cases. It should cover everyday service requests, unusual wording, ambiguity, prompt attacks, and situations that require a handoff to a human.

The NIST AI Risk Management Framework treats measurement and continuous monitoring as part of risk management. For DACH enterprises, this suggests a practical way of working: business and compliance teams define the boundary, product teams maintain the test cases, and changes to prompts, models, or topics trigger regression tests.

It is not enough to measure whether risky requests are blocked. Legitimate requests that are stopped incorrectly need tracking too. A guardrail that rejects every edge case may look safe while making the business process unusable.

A good policy does not ask, “Which subject should we ban?” It asks, “Which specific action must the assistant not support?”

← Back to the blog