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.
Databricks foundation-model endpoints can be tested through an OpenAI-compatible facade, keeping the guardrail evaluation aligned with your data-plane serving stack.
Databricks Model Serving speaks the OpenAI protocol: put the serving-endpoint name after openai_compat: and your workspace's /serving-endpoints URL in --base-url.
openai_compat:<endpoint-name> --base-url https://<workspace>.cloud.databricks.com/serving-endpoints
# A personal-access or service-principal token, sent as a bearer token:
export OPENAI_API_KEY="$DATABRICKS_TOKEN"
refract scan --target openai_compat:<endpoint-name> --base-url https://<workspace>.cloud.databricks.com/serving-endpoints --pack ./packs/finance-canaries.jsonl --db ./runs.sqlite --sarif refract-databricks.sarif
Refract sends the Databricks token as a bearer header and never includes it in the record chain, SARIF output, or matrix tables.
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.