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.
A vLLM server exposes the OpenAI protocol, so Refract can benchmark a self-hosted model with concurrency and budget controls while keeping prompts local.
vLLM speaks the OpenAI protocol: put the served model name after openai_compat: and the server URL in --base-url.
openai_compat:gpt-oss-120b --base-url http://localhost:8000/v1
vllm serve openai/gpt-oss-120b --served-model-name gpt-oss-120b
refract scan --target openai_compat:gpt-oss-120b --base-url http://localhost:8000/v1 --battery baseline --concurrency 8 --db ./runs.sqlite --sarif refract-vllm.sarif
A local vLLM server needs no API key. If OPENAI_API_KEY is set, Refract sends it as a bearer token and never records the value.
refract gate --scan scan-a1b2c3d4 --db ./runs.sqlite --max-fn 0 --max-fp-rate 0.05 --min-mcc 0.70
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.
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.