Back to components

AI Interfaces

Guardrail Decision Trace

An explainable policy trace showing which safeguards passed, transformed, or escalated an AI action.

guardrailspolicyaudit

Installation

Copy and paste the code into your project.

Accessibility notes

Every policy result and the final escalation rationale are represented as text.

Policy trace

Guardrail decision

Review
  1. PII detection

    Redact

    Email address

  2. Allowed topics

    Pass

    Customer support

  3. Action scope

    Review

    Refund over $500

Final action requires approval because the refund exceeds the autonomous limit.

Preview accent

TypeScript
const decisions = [{ rule: "PII detection", result: "Redact" }, { rule: "Allowed topics", result: "Pass" }, { rule: "Action scope", result: "Review" }]; export function GuardrailDecisionTrace() { return <ol>{decisions.map((decision) => <li key={decision.rule}>{decision.rule}: {decision.result}</li>)}</ol>; }
Usage
<GuardrailDecisionTrace />

Related components

Guardrails

Production policy

Active
  • Sensitive data

    3 events this week

    Block
  • Unsafe content

    0 events this week

    Block
  • Off-topic requests

    12 events this week

    Review

AI Interfaces

Guardrail Policy Card

Intermediate

A safety policy summary showing enforcement mode, recent events, and enabled controls.

guardrailssafetypolicy
View component

Override ledger

Human decisions

Last 24 hours
  1. 1

    Blocked → Approved

    M. Chen

    Verified exception

  2. 2

    Auto → Review

    A. Silva

    Low source coverage

  3. 3

    v22 → v21

    R. Patel

    Quality regression

All overrides are immutable and exportable.

AI Interfaces

Human Override Ledger

Advanced

An immutable audit timeline for human changes to automated decisions, routing, and versions.

auditgovernancereview
View component

Threat contained

Prompt injection

Quarantined

Untrusted source

vendor-help.example / setup.html

  • Hidden instruction in retrieved HTML
  • Request to reveal system context

AI Interfaces

Prompt Injection Quarantine

Advanced

A containment panel for explaining and safely bypassing malicious instructions found in retrieved context.

securityinjectionguardrails
View component