Refract Guides · Practical AI safety testing patterns

Refract guides: from 2×2 basics to production CI gates.

Use these guides to design canaries, read statistical output, test RAG and injection surfaces, and enforce release gates with SARIF.

Wilson Score Intervals in Refract

How Refract uses Wilson 95% confidence intervals to keep small AI safety samples honest and how to read catch-rate and false-positive bounds.

Silent Breach Detection with Refract

How Refract detects AI silent breaches, canary leaks that a guardrail misses, using synthetic high-entropy canaries, benign controls, and SARIF 2.1.0 CI gating.

RAG Leak Testing with Refract

How to test RAG systems for hidden-footnote leaks, indirect prompt injection, and verbatim retrieval leaks with Refract packs and 2×2 guardrail scoring.

AWS Bedrock SigV4 Targets in Refract

How to run Refract scans against AWS Bedrock with SigV4 credential resolution, without logging or storing secrets in the record chain or SARIF output.

Refract Power Analysis for Sample Size

How to plan Refract sample sizes with refract power before spending API budget, targeting a Wilson margin around the expected leak or false-positive rate.

Target runbooks

Provider and endpoint runbooks for running Refract scans against local, cloud, and self-hosted model targets.

Ollama Local Targets in Refract

How to run Refract against local Ollama models with offline guardrail calibration, no API keys, and reproducible 2×2 matrix scoring.

LiteLLM Proxy Targets in Refract

How to run Refract through a LiteLLM proxy to test the exact routing, retry, and guardrail path used by production applications.