Refract 2×2 Matrix: Detect vs Complete Explained
How Refract's 2×2 detect-vs-complete matrix separates AI model leaks from guardrail false alarms, and how to read TP, FP, TN, and FN in a safety-filter evaluation.
Use these guides to design canaries, read statistical output, test RAG and injection surfaces, and enforce release gates with SARIF.
How Refract's 2×2 detect-vs-complete matrix separates AI model leaks from guardrail false alarms, and how to read TP, FP, TN, and FN in a safety-filter evaluation.
How Refract uses Wilson 95% confidence intervals to keep small AI safety samples honest and how to read catch-rate and false-positive bounds.
How Refract uses McNemar's test on paired adversarial and benign verdicts to show whether a prompt or guardrail change really moved the 2×2 matrix.
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.
How Refract measures guardrail false alarms on safe customer prompts using benign controls, Wilson intervals, and 2×2 false-positive rate thresholds.
How to design reliable canary probes for Refract: entropy, uniqueness, placement, benign controls, and rotation for trustworthy silent-breach detection.
How to gate AI releases with refract gate thresholds for silent breaches, false-positive rate, and MCC, plus a minimal GitHub Actions workflow.
How to export Refract findings as SARIF 2.1.0 and publish them to GitHub Code Scanning with record-chain verification and CI gating.
How to test RAG systems for hidden-footnote leaks, indirect prompt injection, and verbatim retrieval leaks with Refract packs and 2×2 guardrail scoring.
How to build a prompt injection battery in Refract: direct override, role-shift, tool-call, encoding, and benign controls for trustworthy 2×2 results.
How to run Refract scans against AWS Bedrock with SigV4 credential resolution, without logging or storing secrets in the record chain or SARIF output.
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.
Provider and endpoint runbooks for running Refract scans against local, cloud, and self-hosted model targets.
How to run Refract against local Ollama models with offline guardrail calibration, no API keys, and reproducible 2×2 matrix scoring.
How to point Refract at any OpenAI-compatible endpoint, self-hosted vLLM, LiteLLM, Together, or a private gateway, for guardrail scans.
How to run Refract against Azure OpenAI deployments with Entra ID authentication, without logging keys in scan evidence.
How to run Refract against Google Cloud Vertex AI models with service-account credentials and guardrail evidence separation.
How to run Refract against a self-hosted vLLM OpenAI-compatible server for high-throughput guardrail calibration.
How to run Refract through a LiteLLM proxy to test the exact routing, retry, and guardrail path used by production applications.
How to run Refract against LM Studio's local OpenAI-compatible server for offline guardrail and canary testing.
How to run Refract against SageMaker JumpStart endpoints with AWS credential resolution and guardrail evidence separation.
How to run Refract against Databricks Foundation Model endpoints with workspace-token or Azure credential handling.