An evaluation score is useful only when the test represents the decision you need to make. A model can perform well on familiar examples while failing on new users, document types or operating conditions. Security evaluation therefore needs a clear separation between development material and evidence used to justify a deployment decision.
Define the task and failure cost
A fictional analyst assistant labels support requests for human review. Its owner reports a single overall accuracy score, but the costly failure is missing a request that requires urgent escalation. Define that failure separately from a harmless over-escalation. State the population, labeling rules and human review process before comparing models. Otherwise a change in the mix of easy requests can make the aggregate score improve while the high-consequence behavior becomes less reliable.
Keep development and acceptance evidence separate
Developers naturally inspect failed cases and adjust prompts or retrieval settings. Once a case influences those choices, it is no longer independent evidence of generalization. Keep a held-out collection under an explicit access and release process. Check for near-duplicate documents across splits, including rewritten or chunked versions of the same original. A different file name is not proof that an example represents a new situation. Preserve provenance so contamination can be investigated rather than guessed from a surprising result.
Measure the complete deployed workflow
The model is only one component. Retrieval filters, tool schemas, preprocessing and human escalation rules affect the actual result. Run acceptance cases through the intended path with the same permission settings and relevant dependencies. Record abstentions, incomplete outputs and blocked actions instead of silently removing them from the denominator. A system that declines half the difficult cases cannot be fairly compared with one that attempts every case unless that difference is visible in the report.
Use results to make a bounded decision
An evaluation should end with an explicit release claim, limitations and rollback criteria. For the analyst assistant, a useful decision might permit draft categorization while retaining human review for urgent cases. Keep representative regression tests after deployment and investigate changes in input distributions. New evidence can narrow or expand the permitted use. Passing one test set does not create a permanent security property; it supports a specific decision about a versioned workflow under stated conditions. Keep the acceptance decision with the dataset revision, scoring definitions and release configuration. This gives an incident reviewer a concrete baseline for asking whether the deployed system still resembles the one that passed the test.
Original explanatory diagram. The worked organization and records in this article are fictional.
Take this into your next review
- State the consequential failure separately from aggregate accuracy.
- Retire independence claims once test cases influence development.
- Evaluate the surrounding workflow and its denominator.
Primary references
- NIST AI Risk Management Framework ↗
- MITRE ATLAS knowledge base ↗
- OWASP GenAI Security Project: LLM Top 10 ↗
AgentX Editorial · AI-assisted educational writing. Historical analysis is separated from hypothetical future scenarios; publication does not imply independent field investigation. Referenced organizations do not endorse AgentX. Report a correction.
Continue reading
Prompt injection: do not let a document rewrite the assignment
Separate untrusted document content from the authority that controls an AI workflow.
AI security mechanismsAgent tool permissions: review the action that will actually execute
Bind an agent action to a specific user, resource, scope and transaction before execution.
AI security mechanismsRAG document poisoning: preserve trust through the retrieval pipeline
Review who can change retrieval content and how document provenance reaches the final answer.