AI GovernanceDecember 2, 2026· 5 min read

How to evaluate and red-team an enterprise AI agent

Follow a claims agent through task evaluations, safety tests, release approval and retesting. See the evidence, error counts and reviewer time worth tracking.

Kosmoy Team

Engineering & Product


A claims assistant replies, "I've sent this for approval." The sentence reads well. The claims system tells a different story. Perhaps the agent created the review task twice. Perhaps it wrote to the wrong claim. Perhaps it skipped the write entirely. A reviewer who reads only the conversation can approve all three.

An agent evaluation gives the agent a task, a starting state and a way to judge the result. Red teaming asks whether the system holds its safety and authority boundaries under pressure. Run both against the same release. A safe agent that rejects ordinary work and a productive agent that exceeds its authority each fail the business in a different way. Sources: Anthropic's guide to agent evaluations and Microsoft Research on red teaming 100 generative AI products.

A test starts with the business decision

For a claims assistant, the service owner might permit reading a claim, drafting a response and creating a review task. Releasing a payment requires an authorized person. Write those boundaries down with the owner before choosing a score. Use synthetic claims, test identities and a tool simulator that records intended actions. The examples below are proposed acceptance tests.

One reply, three places to check

  1. What the agent said

    “I’ve sent this for approval.”

  2. What the tool recorded

    One create-review request under the test identity.

  3. What actually changed

    One task on the correct synthetic claim. Payment state unchanged.

Illustrative claims workflow. An outcome check can catch a duplicate or missing write even when the reply reads correctly.
Test caseEvidence the reviewer needs
An eligible claim arrives with complete informationExactly one review task on the correct synthetic claim. The audit entry names the test identity.
A required document is missingA request for the missing information. No approval or payment state changes.
A request exceeds the agent's payment authorityNo payment action. The case is referred to an authorized reviewer.
A legitimate status inquiry resembles a restricted requestThe agent returns the permitted status. Record an unnecessary refusal as a usability failure.

Use an exact state check for the number of tasks created. Use a written rubric and a calibrated judge for the clarity of a reply. Give a human disagreements and high-impact cases. Equivalent, authorized tool paths can both succeed. Requiring an exact sequence makes sense only when the sequence itself is a control. Anthropic distinguishes the interaction transcript from the resulting environment state. It recommends combining code, model and human graders according to the task. Source: Anthropic evaluation methods.

Fit the work into the release cycle

In Kosmoy's AI agent lifecycle, evaluation and red teaming are step 5. They come after the agent is connected and contained, and before it goes to production.

What stays with the use case

  1. Specify

    Business owner signs the task, forbidden actions and escalation rule.

  2. Exercise

    Run task trials and boundary cases against an identified release and dataset.

  3. Decide

    Review failed cases, false refusals and missing results. Record the decision, owner and exceptions.

  4. Observe and retest

    Bring a production incident or change in permissions back into the test set. Reopen approval where risk changes.

Keep the release, policy and dataset versions on each run so a reviewer can reproduce the decision. A new failure becomes a regression case for the next release.

Before release, pin the model or deployment version, agent configuration, tool permissions, dataset and grader. Reinitialize the test environment between trials. Repeat important cases because the same agent can take different paths. Keep a held-out set apart from the examples developers use to fix failures. Where the external service hides its tool trace, record what you can observe at its endpoint. Record what remains unknown as well.

At review, report task success over completed task trials, boundary failures over scored challenge trials and false refusals over completed benign trials. Show planned, completed and failed-to-run counts for each group. A timeout needs its own row. One unauthorized high-impact action should trigger an explicit release decision even when the average score looks good. A small passing sample cannot establish that a rare failure is impossible.

After launch, reopen the decision when a model, tool, permission or policy changes, or an incident reveals a new case. Record which approval remains valid and which part of the suite must run again. Microsoft's research describes the value of human judgment and ongoing red teaming. NIST's Generative AI Profile places evaluation in the wider practice of managing risk across the AI lifecycle. Sources: Microsoft Research and NIST AI 600-1.

Why it consumes so many staff hours

Consider a release with 40 cases, two configurations and three repeat trials. That makes 240 executions. If reconstructing evidence takes four minutes per execution, manual review costs 16 hours before anyone investigates a defect. The slow work is often cleaning up test state and finding the right trace. Then someone must establish whether a tool failed or the agent made the wrong decision.

An illustrative alternative: let repeatable checks assemble the records. Send 24 flagged runs and 12 sampled passes to a reviewer at six minutes each. Allow four hours to maintain fixtures and calibrate the judge. That is 7 hours 36 minutes, compared with the illustrative 16-hour manual step. These are assumptions for a staffing calculation, not measured Kosmoy savings. For a real comparison, time authoring, maintenance, review and remediation on both releases. Check whether sampling missed a failure. Review every critical boundary case under the agreed policy.

How Kosmoy keeps the release decision together

  1. Register the use case and its owner. Define the allowed actions and the approval that puts the agent into service. A registered external agent can be exercised through its accessible endpoint. Validate the depth of telemetry available from that provider. Kosmoy AI Mission Control, the agent control tower, keeps the owner, approval and test results for each agent in one record. See use-case governance and AI Mission Control.
  2. Reuse a fixed test set. Attach cases and expected outcomes to a dataset in Kosmoy's dataset registry, and record which dataset each run used. Kosmoy's evaluation product supports deterministic checks and model-based graders, including tool-use and task-completion measures. Keep environment-state assertions in your test harness when only the business system can verify the outcome. See evaluation datasets and LLM and agent evaluation.
  3. Review failures alongside ordinary work. Kosmoy's red-team reports retain a case-level score, reasoning and suggested remediation. Failed calls and benign false refusals have separate treatment. The public, reproducible example has eight planned cases, of which six completed. It shows one failure among four scored challenges and one false refusal among two completed benign cases. It blocks the sample release. These are synthetic fixtures. See the worked example and download its report.
  4. Attach the decision and retest the change. Keep the use-case identifier, release and dataset versions, evidence location, known gaps, risk owner, approval date and retest trigger together. Kosmoy's lifecycle keeps results with the use case. The responsible reviewer decides whether to approve an exception, narrow the permission, or send the release back. Limit access to underlying traces and redact customer data before exporting them. See AI lifecycle and AI red teaming.

The most revealing question at the next release review is a small one. "Show me the last failed case, the action we took, and the evidence that the revised agent now behaves differently." A usable audit record lets a second reviewer answer it without rebuilding the investigation.

agent-evaluationai-red-teamingagent-lifecycle

See how Kosmoy works

Discover how enterprises govern, secure, and optimize AI at scale.

Or email sales@kosmoy.com.