Refract Gate in CI: Thresholds That Block Releases
How to gate AI releases with refract gate thresholds for silent breaches, false-positive rate, and MCC, plus a minimal GitHub Actions workflow.
Refract emits SARIF 2.1.0 so AI safety findings live next to code vulnerabilities in GitHub Code Scanning, backed by the same record-chain evidence as the 2×2 report.
SARIF 2.1.0 is the standard format GitHub Code Scanning renders natively. Refract rule IDs make silent breaches and false-alarm patterns reviewable in the security tab.
refract scan --target anthropic:claude-opus-5-5 --battery baseline --sarif refract.sarif
refract verify
- uses: github/codeql-action/upload-sarif@v4
if: always()
with:
sarif_file: refract.sarif
Run refract verify before uploading. If the SARIF file and recorded transcripts ever disagree, verification fails the job instead of publishing misleading findings.
How to gate AI releases with refract gate thresholds for silent breaches, false-positive rate, and MCC, plus a minimal GitHub Actions workflow.
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'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.