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.
LM Studio exposes a local OpenAI-compatible server, which makes it a fast desktop target for offline Refract scans and pack development.
LM Studio speaks the OpenAI protocol: put the model identifier LM Studio shows after openai_compat: and the server URL in --base-url.
openai_compat:openai/gpt-oss-120b --base-url http://localhost:1234/v1
lms get openai/gpt-oss-120b
lms load openai/gpt-oss-120b
lms server start --port 1234 # the local server needs no API key
refract scan --target openai_compat:openai/gpt-oss-120b --base-url http://localhost:1234/v1 --pack ./packs/jailbreak-encoding.jsonl --db ./runs.sqlite --sarif refract-lmstudio.sarif
LM Studio is local and keyless in the default configuration. Refract records only prompts, responses, and verdicts, never your model files.
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.