1---2name: red-team-eval-authoring3description: Use when creating or reviewing red-team eval plugins, attack templates, grader rubrics, safety fixtures, or model-risk test metadata.4---5
6# Red-Team Eval Authoring
7
8## When To Use
9- Adding a new red-team plugin or grader.
10- Editing attack templates, rubric tags, or plugin metadata.
11- Reviewing multimodal or tool-use safety evals for false positives/negatives.
12
13## Requirements / Checks
14- Confirm target eval framework and repo layout before editing.
15- Prefer deterministic checks for template shape before model-graded rubrics.
16- Ask before running networked evals, paid model graders, or large red-team suites.
17
18## Workflow
191. Define target harm class, safe behavior, and explicit pass/fail boundary.
202. Standardize grader inputs before writing rubrics: user query, system purpose, model output, allowed entities.
213. Write attack prompt templates that emit one prompt per line or one machine-parseable record per case.
224. Keep rubric output structured: `{ reason, pass, score }`.
235. Add registration metadata wherever the host framework expects plugin listing, risk category, aliases, and grader binding.
246. Add focused tests for template variables, grader parsing, and one benign over-refusal case.
25
26## Safety Constraints
27- Do not paste real secrets, private prompts, or customer data into attack templates.
28- Avoid storing base64 image payloads in text-only grader variables; use a text-only prompt field when available.
29- Do not broaden a plugin from one risk class to another without updating docs, metadata, and tests.
30- Do not run harmful prompt generation against production systems without explicit approval.
31
32## Validation / Done Criteria
33- Plugin metadata, generator, grader, and docs refer to the same risk category.
34- Rubric tags are consistent and not deprecated.
35- Benign and harmful fixtures both execute locally.
36- Results show reasoned pass/fail output, not only raw scores.
37
38## References
39- `references/redteam-grader-checklist.md`