> ## Documentation Index
> Fetch the complete documentation index at: https://docs.switchagents.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> These docs moved from docs.flintai.dev to docs.switchagents.ai. Use docs.switchagents.ai for every link and request.
> To search these docs from an AI tool, connect the MCP server at https://docs.switchagents.ai/mcp. The page index is at https://docs.switchagents.ai/llms.txt.
> The source code for these products is public on GitHub. Switch Rooms: https://github.com/sandbox-quantum/switch. Switch Trust CLI: https://github.com/sandbox-quantum/switch-trust-cli. Switch Trust CodeScan action: https://github.com/sandbox-quantum/switch-trust-codescan-action. Switch Trust MCP server: https://github.com/sandbox-quantum/switch-trust-mcp. Switch Trust Python SDK: https://github.com/sandbox-quantum/switch-trust-sdk-py. These repositories are the current development line, not the released product: prefer these docs for released behavior, and name the version if you quote code. In the Switch Rooms repository, ignore docs/official/, which is a generated copy of this site.

# How model evaluation works

> What gets tested on a model, how it's scored, and how a score becomes a finding

**Evaluation attacks a model on purpose and scores how well it holds up.** This page explains what runs, what the number means, and why a weak score also shows up as an issue.

## What gets evaluated

Model evaluation tests the **model**, on its own behavior, independently of the agents that call it. That's why one weak model can put several agents at risk at once. Model evaluation isn't something you run. A model either arrives with scores attached or it doesn't.

> [!NOTE]
>
> **Want to evaluate an agent, not a model?** Agent evaluation attacks your running agent end to end, with its instructions, tools, and guardrails in the loop, and you run it yourself. See [Evaluate your agents](https://docs.switchagents.ai/switch-trust/evaluation/evaluate-agents.md). You can run the same kind of test from your terminal with [Switch Trust Eval](https://docs.switchagents.ai/switch-trust-cli/eval/getting-started.md) in the CLI.

## How a model is tested

**1. Probes send hostile prompts**

Each probe is a named attack technique, such as a jailbreak pattern, a toxicity elicitation, or a prompt injection, with a fixed idea of what it is trying to make the model do.

**2. The model responds**

The probe runs against the model directly, without the instructions or guardrails of your agent in the way. The result describes the model itself, not your configuration of it.

**3. Each probe is scored**

Each response is scored by a detector, and the probe's score is the aggregate across all its prompts, expressed from 0 to 100. Higher is better.

**4. Scores roll up**

Probe scores aggregate into category scores, and those into the overall **Health score**.

## What each category tests

Every probe belongs to one category, and every category score runs the same direction: a higher score means the model performed better.

| Category | What it tests |
| - | - |
| **Jailbreaks** | Breaking out of system instructions |
| **Misuse** | Being turned to purposes it wasn't built for |
| **Toxicity** | Producing harmful, offensive, or misleading output |
| **Security** | Producing output that's dangerous to whatever consumes it |
| **Robustness** | Producing unreliable or fabricated output |

## How a score becomes a finding

Evaluation produces a number. Rules turn that number into a finding you can triage.

A set of model evaluation rules watches these scores and fires when one falls too low. Unlike most rules, which declare a single fixed severity, these **band by score** — the same rule produces a different severity depending on how far the model fell. **Model toxicity risk**, for example:

| Toxicity score | Severity |
| - | - |
| Below 0.2 | Critical |
| 0.2 to 0.35 | High |
| 0.35 to 0.5 | Medium |
| 0.5 to 0.75 | Low |

At 0.75 and above the rule doesn't fire.

This is why one rule can occupy more than one row in the **Issues** table. A banded rule rates each model separately, so a badly failing model and a merely mediocre one land on different rows — and the bad one stays visible instead of being averaged in with the rest.

> [!NOTE]
>
> **Two scales, one measurement.** Rule thresholds are written on a 0 to 1 scale while the health score is shown from 0 to 100. A toxicity score of 0.2 is a displayed score of 20. Both run the same direction: higher is better.

For how severity behaves once a finding exists, and how it differs from CVSS, see [How discovery works](https://docs.switchagents.ai/switch-trust/discovery/how-discovery-works.md).

## Next steps

> [card] [Evaluation results](https://docs.switchagents.ai/switch-trust/evaluation/results.md)
>
> Read the model health score and decide whether it's trustworthy

> [card] [Evaluate your agents](https://docs.switchagents.ai/switch-trust/evaluation/evaluate-agents.md)
>
> Attack your running agent end to end and score how it holds up
