Related
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.
LiteLLM gives every provider an OpenAI-compatible facade. Pointing Refract at the proxy tests the same endpoint, keys, and fallbacks your app uses.
Put the LiteLLM model_name alias after openai_compat: and the proxy URL in --base-url.
openai_compat:claude-opus-5-5 --base-url http://localhost:4000/v1
# litellm_config.yaml maps the alias claude-opus-5-5 to anthropic/claude-opus-5-5
litellm --config ./litellm_config.yaml --port 4000
export OPENAI_API_KEY=sk-... # the proxy key, not the upstream provider key
refract scan --target openai_compat:claude-opus-5-5 --base-url http://localhost:4000/v1 --pack ./packs/api-secret-leak.jsonl --db ./runs.sqlite --sarif refract-litellm.sarif
The proxy holds provider credentials; Refract only needs the proxy key. Refract does not log that key or any upstream provider secret.
refract gate --scan scan-a1b2c3d4 --db ./runs.sqlite --max-fn 0 --max-fp-rate 0.05 --min-mcc 0.70
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.