Use cases · Updated 2026-11-15
Guardrail testing: put your app in the middle of the loop.
Your guardrails are the system under test, so the harness needs an adversarial generator in front of them. This page is that arrangement, with the two rates it reports.
TLDR. RawLine sits in front of your app as the generator: it produces lawful edge cases, some through a research preset, and sends them at your guardrails. You score two numbers per cycle, refusal rate and false-refusal rate, then harden and re-run. Under a dollar a cycle at the relay's prices, per token, no subscription, and only your own systems in the middle.
The loop
Three positions in the loop. Your guardrail layer is in the middle, which is the whole point: you are testing it, not the model behind it.
| Position | Do | You get |
|---|---|---|
| 1. Generator | RawLine produces edge cases on request, plain and through a research preset on the same prompt ids | Two prompt sets that differ only in refusal pressure |
| 2. Your app | Send each prompt at your guardrail layer and record pass, block, or false block | A log keyed by prompt id with your guardrail's verdict |
| 3. Scoring | Compare verdicts against intent: refusal rate on hostile prompts, false-refusal rate on lawful ones | The two rates you put in the hardening ticket |
The generator and your app are separate processes joined by prompt ids, so a run is reproducible from the file alone.
One cycle
Generate, send, score. The preset doubles the prompt set for the same ids, which is what makes the false-refusal rate checkable.
# generate: plain and preset variants share prompt ids
prompts = GET /v1/models # pin the model id for the cycle
for p in dataset:
send_to_your_app(p) # your guardrail answers
score(refusal_rate, false_refusal_rate)
# harden, then run the identical file again
What usually goes wrong
Four ways this loop reports a number you cannot act on:
- Your app and the generator use different ids, so verdicts pair up with the wrong prompt. One id, one row, no exceptions.
- The hardening changes your guardrail and the dataset in the same commit, and the delta hides. Change one thing per cycle.
- Only the false-refusal rate is reported because it improved. Publish both rates every cycle or the chart lies by omission.
- The cycle runs against a third-party production system. Your app, your permission, no exceptions: the scope line is the same as on the red-team page.
Questions
What does a guardrail testing cycle cost?
At the relay's current $0.03 in and $0.12 out per 1M tokens, generating a hundred prompts and scoring them runs under a dollar. The cost scales with dataset size and cycles, not with seats.
Is this the same as an LLM guardrail library?
No. A library is one of the layers you can put in the middle. This loop tests whichever layer you already run: it generates the prompts, your guardrail answers, the scoring compares the two.
Can I test a third-party production system?
No. Your app or your permission, same as on the red-team page. A preset changes refusal behaviour on lawful cases, and lawful cases are the only ones in the dataset.
This page is the task. For the 30-minute harness and the reason behind each step, read the guardrail testing guide. Guardrail testing guide.
Research only. Lawful use only. Test systems you own or are authorized to evaluate.