EN / RUSign in
The app is live — keys, cabinet and billing at app.rawline.dev. Open app.rawline.dev

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.

Guardrail testing loop positions
PositionDoYou get
1. GeneratorRawLine produces edge cases on request, plain and through a research preset on the same prompt idsTwo prompt sets that differ only in refusal pressure
2. Your appSend each prompt at your guardrail layer and record pass, block, or false blockA log keyed by prompt id with your guardrail's verdict
3. ScoringCompare verdicts against intent: refusal rate on hostile prompts, false-refusal rate on lawful onesThe 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:

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.

More: Docs · FAQ · Blog.

Open the appModelsBlog

Research only. Lawful use only. Test systems you own or are authorized to evaluate.