An eval case is a reusable test created from a reviewed failure. It usually includes the original input, the expected behaviour, and the context that showed what went wrong. Teams use eval cases to test agents before deployment and to make sure a known failure does not reappear after code or prompt changes.
Expanded Definition
An eval case is more than a test input. It is a controlled record of a previously observed failure, preserved with enough context to reproduce the behaviour and judge whether a later system change has fixed it. In agentic AI and broader AI security work, eval cases help teams move from anecdotal bug reports to repeatable evaluation. The term is still evolving in practice, and usage varies across vendors and research teams, but the core idea is consistent: a reviewed failure becomes a reusable benchmark for regression testing and quality control.
Where the term differs from a generic test case is in its origin and intent. A normal test may be hypothetical, while an eval case is grounded in an actual breakdown, often involving prompt drift, tool misuse, unsafe refusal, data leakage, or incorrect task completion. In governance terms, it supports disciplined measurement rather than informal spot checking. That makes it especially relevant to teams using NIST Cybersecurity Framework 2.0 style continuous improvement processes, even though eval cases themselves are not a formal NIST term.
The most common misapplication is treating an eval case as a one-off demo artifact, which occurs when teams store the failing prompt but omit the expected behaviour, surrounding context, or success criteria.
Examples and Use Cases
Implementing eval cases rigorously often introduces maintenance overhead, requiring organisations to balance faster model iteration against the cost of curating and updating a high-quality test set.
- A customer-support agent previously exposed account details after a vague identity prompt. The eval case captures the exact user wording, the sensitive context, and the correct refusal or verification flow.
- An internal coding agent ignored tool output and hallucinated a deployment step. The eval case records the original request, the tool response, and the expected action sequence so the failure can be replayed after prompt changes.
- A procurement assistant approved an action outside policy because it misread role constraints. The eval case preserves the policy context and the expected boundary so the team can test guardrails after each release.
- A retrieval-augmented generation workflow returned outdated guidance from a stale source. The eval case includes the query, the relevant documents, and the correct answer criteria to verify future retrieval fixes.
- A security review team converts a real prompt injection incident into an eval case and uses it during pre-deployment testing alongside NIST Cybersecurity Framework 2.0 aligned validation steps.
Why It Matters for Security Teams
Eval cases matter because AI failures tend to recur in slightly different forms. Without a reusable record of a known failure, teams can patch one prompt or one model version and still reintroduce the same weakness later. That creates operational risk, especially for agents with tool access, delegated execution authority, or access to secrets, where a seemingly small regression can become a security incident. Eval cases therefore support governance, change control, and pre-release validation in the same way incident lessons should inform secure engineering.
For identity and access workflows, the value is even higher. An agent that mishandles authentication prompts, over-collects personal data, or violates access boundaries needs testing against the exact context in which it failed. Eval cases make those conditions repeatable, which helps teams compare model versions, prompt templates, and policy layers on a like-for-like basis. They also provide evidence that a control is being tested against observed behaviour, not assumed behaviour.
Organisations typically encounter the real cost of weak eval coverage only after a failed agent prompt reaches production, at which point eval cases become operationally unavoidable to address.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF, NIST AI 600-1 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | AI RMF centres on governed measurement, monitoring, and risk treatment for AI systems. | |
| NIST AI 600-1 | The GenAI profile supports testing and monitoring generative AI behaviour across use cases. | |
| OWASP Agentic AI Top 10 | Agentic AI guidance focuses on failure modes that should be replayed and regression tested. | |
| CSA MAESTRO | MAESTRO addresses agentic AI governance and testing across tool-using system behaviour. | |
| NIST CSF 2.0 | DE.CM-8 | Continuous monitoring requires validation that security controls keep working over time. |
Use eval cases as evidence in AI risk reviews and track repeated failures as controllable harms.