AI Guardrails and LLM Safety Engineering
Assess and strengthen the controls around an AI application. We define risks, evaluate behaviour and implement access, tool-use and review boundaries suited to the workflow.
Review Your AI ControlsRisks and Actions to Control
Rule-based vs model-based
Rules are fast and predictable but only catch known patterns. Model-based catches nuanced patterns but adds latency.
Where to filter
Filtering before ranking prevents unauthorised content. Filtering after ranking is faster but riskier.
False-positive management
A guardrail that blocks legitimate work will be bypassed. False-positive rate must be monitored and tuned.
Human approval thresholds
High-stakes actions need human approval. The threshold determines the balance between speed and safety.
Evaluation Before Release
Input check
User input checked for prompt injection, PII and policy violations
Retrieval control
Retrieved content checked for untrusted instructions and permission violations
Model inference
Model generates response from approved, filtered context
Tool policy check
Tool request checked against tool permission policy
Output check
Model output checked for unsafe content, PII and secrets
Action decision
System decides: allow, block, redact or escalate to human
Audit log
Every input, output, tool call and decision logged for audit
Permissions and Action Boundaries
Rule-based guardrails
Deterministic rules for known patterns. Fast, predictable, no model needed.
Model-based guardrails
A classifier evaluates inputs and outputs for safety. Catches patterns that rules miss. Higher latency.
Hybrid guardrails
Rules for fast, known checks. Model for nuanced, unknown patterns. The most effective approach.
Human-in-the-loop
High-stakes actions routed to a human for approval. The strongest control for consequential decisions.
Monitoring and Incident Handling
Attack detection
Percentage of known attacks that are detected and blocked
False-positive rate
Percentage of legitimate requests incorrectly blocked—should be low
Policy violations
Number of policy violations detected and blocked
Audit coverage
Percentage of actions with a complete audit trail—should be 100%
Unsafe-output escape rate
Percentage of unsafe outputs that were not caught—should be near zero
Deliverables
Illustrative test record
A retrieved file contains an instruction asking the agent to export unrelated records. The tool policy denies access to the export tool for that request, the attempt is logged with its context, and the agent continues the original task. Content filters alone would not have caught this — the enforcement point is the tool permission, not the text.
Review Your AI Controls
Tell us the engineering challenge you are facing. We respond with how we would approach it.
Review Your AI ControlsNo finished technical specification required.