By NHI Mgmt Group Editorial TeamBased on Openlayer: “Agent testing in February 2026: your complete guide to validating AI systems” (February 11, 2026)

TL;DR: Agent testing now has to validate multi-step workflows, tool selection, context retention, and safety controls because traditional single-turn LLM metrics miss real execution failures, according to Openlayer. As 65% of organisations run AI agent pilots and 80% report agents acting outside intended scope, the governance gap is no longer theoretical.


At a glance

What this is: Openlayer says agent evaluation now has to cover full workflows, not just prompt-response quality, because agents can pass text checks while failing on tool use, memory, and safety.

Why it matters: IAM and AI security teams need workflow-level testing because agent behaviour is governed by delegated access, state, and control boundaries that single-turn scoring does not reveal.

By the numbers:

  • 65% now run pilot AI agent programs, nearly double the 37% from the previous quarter.
  • AI testing costs $10-50 per task when humans are used for evaluation.

Context

Agent testing is the discipline of validating how an AI system behaves across a complete task, including tool calls, intermediate state, retries, and safety constraints. That matters because an agent can look correct in a single answer while still making the wrong API call, dropping context, or crossing privilege boundaries during execution. In identity terms, the risk is not the text output alone but the delegated action path behind it.

The article’s central governance point is that prompt scoring assumes a stable one-turn interaction, while agents behave more like workflow participants with memory and tool access. Once agents can book appointments, process refunds, or route tickets, evaluation has to cover access scope, state retention, and recovery logic. That makes testing part of control design, not a post-deployment quality check.


Key questions

Q: How should security teams test AI agents after prompts, models, or tools change?

A: They should test AI agents every time a meaningful change occurs, not on a calendar alone. Prompt edits, model swaps, new tools, memory sources, and permission changes can all alter behaviour enough to invalidate an earlier result. The safest model is continuous validation tied to the live version of the agent, plus runtime monitoring after release.

Q: Why do AI agents create more risk than standard LLM evaluations suggest?

A: AI agents create more risk because the dangerous part is often what they do after the response is generated. A model can produce safe-looking text while still making an unsafe database query, file write, payment, or email action through connected tools. That is why evaluation must follow the action path and verify real credentials, real tools, and real permissions.

Q: What are the signs that an agent workflow is failing even when monitoring looks healthy?

A: Common warning signs include wrong retrieval, repeated retries with no progress, invalid tool arguments, skipped steps, hidden state changes, and false completion claims. The workflow may still return a 200 response, stay within latency targets, and score well on the final answer while the trajectory shows broken execution. That is why trace review matters.

Q: How can teams govern prompt injection in agents with tool access?

A: They need validation that covers manipulation attempts, scope violations, and unsafe downstream actions before the agent reaches external systems. The practical test is whether the agent rejects unauthorized requests, blocks sensitive data access, and stops suspicious calls before they can affect APIs or databases.


Technical breakdown

Why single-turn LLM scoring misses agent failure modes

Traditional LLM metrics assume one input should produce one judged output. Agents break that assumption because they plan, call tools, retry, and carry state across turns. A response can read as coherent while the underlying execution path is wrong, such as a malformed API parameter, an irrelevant retrieval, or a forgotten user instruction. Workflow validation therefore evaluates the sequence, not just the final sentence. That distinction matters in systems where tool access can change records, move money, or reveal data.

Practical implication: test the full execution path, not just the response text.

Tool selection, memory, and planning are the real control surfaces

Agent behaviour is shaped by three control surfaces: tool integration, stateful memory, and planning. Tool integration governs what the agent can invoke and with what parameters. Memory governs whether it preserves context or confuses separate interactions. Planning governs whether it decomposes tasks sensibly and stops at the right point. Failures in any one of these can produce unsafe outcomes even when the generated language is fluent. That is why agent testing needs trajectory-level checks rather than isolated prompt grading.

Practical implication: validate tool choice, state consistency, and termination logic as separate test conditions.

Why LLM-as-judge needs guardrails of its own

LLM-as-judge is useful because many agent outcomes are non-deterministic, but it introduces its own governance problem. Another model can miss a failure, overrate reasoning quality, or reward surface-level fluency instead of correct execution. The article’s testing model therefore pairs automated judging with human calibration datasets and periodic spot-checks. In practice, the judge is another control that must be measured, versioned, and challenged, especially when the agent handles sensitive or irreversible actions.

Practical implication: treat the evaluator as a governed control, not an unquestioned source of truth.


Threat narrative

Attacker objective: The objective is to make the agent perform an unauthorized or harmful workflow action while appearing to behave normally.

  1. Entry occurs when an agent receives a normal user request that triggers multi-step execution across tools and memory.
  2. Credentialed or scoped tool access is then used to call external APIs, retrieve data, or modify records based on intermediate reasoning.
  3. Escalation happens when a prompt injection, wrong parameter, or state error pushes the agent beyond the intended action boundary.
  4. Impact is unsafe or incorrect business execution, including data exposure, unauthorized actions, or corrupted workflow outcomes.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Workflow validation is now an identity control problem, not just an AI quality problem: once an agent can invoke tools, the evaluation target becomes delegated action, not fluent text. That means the real question is whether access, state, and authorization boundaries hold across a full task path. Teams that still judge agents on isolated prompts are measuring the wrong thing. Practitioners should move evaluation closer to issuance-time control and execution tracing.

Agent testing exposes a governance gap that classic LLM scoring cannot see: single-turn metrics assume the answer is the unit of risk, but agent systems fail in the steps between intent and outcome. Tool misuse, memory drift, and planning errors are governance failures because they can cross data and action boundaries without obvious user-visible signs. This is where agentic AI intersects with IAM: access is no longer static, and validation must follow the session. Practitioners should reframe agent assurance around workflow integrity.

Continuous testing is becoming the operational analogue of zero standing privilege for agents: agents change behaviour as APIs, prompts, and data shift, so one-time approval is not durable control. The named concept here is workflow drift: the gradual gap between a tested execution path and the path the agent actually follows in production. When drift is left unchecked, controls decay faster than teams notice. Practitioners should treat drift detection as a standing requirement for agent governance.

Security guardrails must be evaluated with the same rigor as functionality: prompt injection, unauthorized API calls, and data exfiltration are not edge cases once agents have tool access. The article shows that safety testing belongs inside the validation stack, not beside it. That is consistent with how NHI risk manifests across delegated identities: privilege scope and runtime behaviour must be checked together. Practitioners should test for abuse paths before allowing production autonomy.

Evaluation data is now part of the control fabric: scenario design, expected tool sequences, and success criteria are the evidence that makes agent assurance repeatable. Production logs, canary traffic, and regression suites give teams a way to compare intended behaviour with observed behaviour over time. This shifts agent governance from a point-in-time review to a managed control loop. Practitioners should build test datasets as durable evidence, not disposable QA artefacts.

From our research library:

What this signals

Workflow drift: the control failure in agent testing is no longer limited to bad prompts. As APIs, data, and prompts change, the gap between tested behaviour and live behaviour widens, so teams need monitoring that follows execution paths rather than output quality alone.

The 65% pilot rate shows that many organisations are already beyond experimentation, which makes evaluation design an operational control, not a research topic. In agentic AI programmes, assurance has to move to the same place as privilege: at the point where the system is allowed to act.

For identity and AI governance teams, the practical lesson is that test coverage must include tool use, state retention, and abuse resistance together. If those are validated separately, agents can still fail in the handoff between intent and execution.


For practitioners

  • Build workflow-based agent tests Create test cases that validate complete task journeys, including tool selection, state retention, retries, and termination conditions across multi-turn interactions.
  • Add security checks to agent evaluation Include prompt injection, unauthorized API calls, and data exfiltration scenarios in the same test suite used for functional validation.
  • Calibrate LLM-as-judge outputs Use human-reviewed datasets, multiple judge models, and periodic spot-checks so the evaluator is measured against expert-reviewed outcomes.
  • Run regression tests in CI/CD and production Automate regression suites on each commit, then compare live telemetry for tool invocation accuracy, task completion, and drift.
  • Track control drift over time Monitor changes in tool selection success, average turns per session, and recovery rates so evaluation catches degradation before users do.

Key takeaways

  • Agent testing has to assess workflow integrity because agents can appear correct while failing on tool use, memory, or safety boundaries.
  • The adoption signal is already material, with 65% of organisations running pilot AI agent programs, so control design cannot stay at the prompt-scoring stage.
  • The decisive governance question is whether test suites can detect drift, scope violations, and unsafe actions before agents reach production systems.

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 addresses the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI02 — Tool MisuseThe article centres on agents making wrong tool calls and unsafe API actions.
ASI03 — Identity & Privilege AbuseThe article repeatedly ties agent risk to delegated access and scope boundaries.
ASI06 — Memory & Context PoisoningContext loss and stale state are explicit failure modes in the article.
Recommendation — Test tool invocation paths to detect misuse before agents reach production systems. Scope agent permissions to the minimum needed and validate privilege boundaries in every workflow test. Check that agents preserve task state correctly and reject poisoned or stale context.
NIST AI RMFMAP — Map Context and RisksThe article is about identifying where agent behaviour can fail across workflows.
Recommendation — Map agent workflows, failure points, and risk boundaries before approving production use.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsAgent testing here is fundamentally about whether tool access and action scope are controlled.
Recommendation — Review agent entitlements so the system can only act within approved access scope.

Key terms

  • Agent Testing: Agent testing is the practice of validating how an AI agent behaves across a full task, including tool use, memory, retries, and failure recovery. It goes beyond response quality to measure whether the system completes work safely, consistently, and within policy boundaries.
  • Trajectory Evaluation: Trajectory evaluation checks the sequence of decisions an agent makes from start to finish rather than only the final answer. It is used to confirm task decomposition, tool choice, state retention, and termination logic across multi-step workflows.
  • LLM-as-a-judge: A control pattern where one language model evaluates another model's prompts, tool calls, or outputs against policy. It is not content moderation alone. In practice, it acts as a runtime decision layer that can allow, block, redact, or escalate based on semantic context and organisational rules.
  • Workflow Drift: Workflow drift happens when an access or provisioning process slowly diverges from its approved design. In AI-enabled environments, drift can occur when generated workflows omit edge cases, approvals, or exception logic, creating a gap between what the organisation thinks it enforces and what actually runs.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and agentic AI identity. It gives security practitioners a practical foundation for governing delegated access and runtime behaviour across modern AI systems.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org