By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: ArizePublished April 22, 2026

TL;DR: Coding agents can change prompts, tools, retrieval logic, and application behavior in a single run, but Arize argues that spot checks are not enough once those changes affect multi-step systems. The evaluation harness pattern adds tracing, evaluators, and action loops so teams can catch regressions before they ship, which is increasingly important as AI-assisted development expands.


At a glance

What this is: This is an Arize analysis of why coding agents need an evaluation harness to verify whether agent-driven code changes actually improve LLM applications.

Why it matters: It matters because teams governing AI-assisted development need controls that measure behaviour over time, especially where agent actions can affect prompts, retrieval, instrumentation, and downstream access patterns.

👉 Read Arize's guide to adding an evaluation harness to Gemini CLI coding agents


Context

Coding agents change the verification problem because they can alter multiple parts of an application in one run, including prompts, tools, retrieval logic, and instrumentation. That creates a governance gap: teams are no longer reviewing a single output, but an execution trajectory that may include several intermediate states and side effects. For identity and access programmes, the same pattern appears whenever automated systems can reach tools, data, and configuration without a stable human checkpoint.

An evaluation harness is the control layer around that agent activity. It captures traces or datasets, runs evaluators, and turns findings into actions such as gating changes, routing failures for review, or feeding low-quality cases back into prompt and retrieval updates. That makes it relevant to NHI governance because agentic systems increasingly behave like runtime identities that need continuous oversight, not one-time approval.

Arize's starting position is typical of teams that have already adopted agent-driven workflows faster than they have built measurement discipline. The article is less about one product and more about a control problem that is now common across AI engineering and identity governance.


Key questions

Q: How should security teams govern coding agents that can act on untrusted input?

A: Treat the agent as a privileged non-human identity and govern it with least privilege, runtime enforcement, and decision lineage. The key is not to trust the prompt boundary. Limit tools, keep credentials out of context, and require inline checks before any state-changing action can execute.

Q: Why do agent-driven code changes need more than manual spot checks?

A: Manual spot checks miss the full trajectory of an agent run. A coding agent can chain tool calls, state changes, and file edits in ways that affect downstream behaviour even when the final output looks acceptable. Repeatable evaluation is needed because the risk is not only the code it writes, but the sequence it follows to get there.

Q: What breaks when evaluation is not tied to an action workflow?

A: Telemetry without action creates noise, not control. If scores do not trigger review, gating, reruns, or annotation, teams may detect problems but still ship them. The operational failure is a measurement loop that informs dashboards but leaves release decisions unchanged.

Q: Why do local AI agents complicate identity and access management?

A: They can retain legitimate permissions while changing timing, prioritisation, and action sequence outside human presence. That means the visible identity may remain stable even as the operational behaviour becomes autonomous. IAM teams then lose the simple link between user session, authorisation, and accountability.


Technical breakdown

Why spot checks fail for agent-driven code changes

Spot checks work when change is narrow and output is stable. Coding agents break that assumption because they may edit files, call tools, run commands, and carry state across several steps before producing a result. In effect, the unit of review becomes the whole trajectory, not the final diff. That means quality, safety, and correctness can all shift in ways that a few manual samples will miss. For AI systems, this is a classic observability problem. For identity teams, it is also a control problem, because the agent's effective authority depends on what it can reach during execution.

Practical implication: treat agent runs as auditable sessions, not one-off outputs.

What an evaluation harness adds to the control loop

An evaluation harness wraps the agent harness with measurement and action. It collects inputs such as traces, spans, sessions, or datasets, then applies evaluators that score quality, correctness, safety, latency, or policy adherence. The important part is not scoring alone, but what happens after scoring. A usable harness routes failures to annotation, blocks regressions in CI, or feeds bad cases back into prompt and retrieval updates. This is where AI governance and operational assurance overlap: measurement only matters when it changes behaviour.

Practical implication: define the post-evaluation action before you scale the agent.

Why MCP and terminal-based agents raise governance stakes

Terminal-based coding agents and MCP-connected tools can operate with broad context and direct system access, which makes them powerful and difficult to verify informally. The more tools an agent can call, the more important it becomes to know which action came from which step, with which context, and against which dataset. That is the same governance logic used for privileged access, but now applied to agent runtime. Without traceability, teams cannot distinguish improvement from drift, or intended automation from unsafe side effects.

Practical implication: require trace-level evidence for every tool-mediated change.


NHI Mgmt Group analysis

Evaluation debt is becoming a form of AI governance debt: when teams automate code changes without a repeatable way to score the result, they create blind spots that look like productivity gains until regressions appear. The article shows that the problem is not generating the change, but proving the change improved system behaviour. That is the same control gap seen in many fast-moving AI programmes. Practitioners should treat evaluation coverage as a governance requirement, not a nice-to-have.

Agentic workflows are starting to resemble non-human identities with operational authority: the moment a coding agent can inspect code, call tools, and modify configurations, it begins to act like a runtime entity that needs scope, traceability, and oversight. This is where NHI governance intersects with AI engineering in a concrete way. If the agent can change access paths, prompts, or retrieval logic, then its actions should be governed with the same seriousness as any privileged system identity.

Measurement must drive action or it is just telemetry: the article's strongest point is that evaluators need to trigger workflow decisions such as gating, annotation, or reruns. That aligns with NIST AI RMF and operational assurance thinking, where monitoring is useful only when it changes the state of the system. Practitioners should not ask whether they have evaluation data, but whether that data actually stops bad changes from shipping.

Traceability is the control that makes multi-step automation reviewable: once the system changes across prompts, retrieval, instrumentation, and tool calls, teams need a named concept for the problem. Trajectory verification gap: this is the inability to validate an agent's full sequence of actions with simple output checks. The practical conclusion is that control design must shift from output review to session-level evidence and actioned regression management.

What this signals

Trajectory verification gap: evaluation quality will become a board-level proxy for AI operational risk, because agentic systems can fail across multiple steps even when the end result looks acceptable. The teams that can trace, score, and gate changes will have a clearer view of model behaviour than teams relying on manual review alone.

The overlap between coding agents and non-human identity governance will deepen as agents gain broader runtime authority. That means identity teams will need to think in terms of session evidence, tool scope, and outcome-based controls, while engineering teams adopt evaluation discipline as part of release management.

Practitioners should expect more pressure to align evaluation workflows with NIST AI Risk Management Framework thinking and with agentic security guidance such as the OWASP Agentic AI Top 10. The practical signal is clear: if you cannot prove what an agent changed and why, you do not yet have governable automation.


For practitioners

  • Instrument agent sessions end to end Capture traces, spans, and session IDs for every agent-assisted change so teams can reconstruct the full decision path, not just the final code diff.
  • Gate releases on regression thresholds Use evaluator results in CI to block changes when quality, safety, or policy scores fall below an agreed threshold.
  • Separate tool authority from review authority Restrict which tools the coding agent can invoke and require a human or automated approval path before any change that affects retrieval, prompts, or access-related configuration.
  • Route failed evaluations into annotation workflows Send the lowest-scoring traces to annotation so teams can identify whether the failure came from bad retrieval, prompt drift, or an unsafe tool sequence.
  • Standardise reusable evaluation datasets Build datasets from representative production traces and reuse them across prompt changes, tool updates, and instrumentation work so results remain comparable over time.

Key takeaways

  • Coding agents change the verification problem because the real unit of review is the full execution trajectory, not the final code diff.
  • Evaluation harnesses matter because they turn traces and scores into gating, annotation, and rerun decisions that reduce regression risk.
  • For identity and AI governance teams, the priority is traceable, actioned oversight of agent behaviour rather than manual spot checks alone.

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 MITRE ATT&CK address the attack and risk surface, while NIST AI RMF, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10The article centres on agentic workflows, tool use, and evaluation harnesses.
NIST AI RMFMANAGEThe post focuses on operationalising AI risk controls through evaluation and gating.
NIST CSF 2.0PR.AC-4Coding agents need least-privilege access and traceable authorization boundaries.
NIST SP 800-53 Rev 5AC-6Least privilege is central when agents can modify code, prompts, and retrieval settings.
MITRE ATT&CKTA0002 , Execution; TA0004 , Privilege EscalationAgent tool use and broadened runtime authority map to execution and privilege expansion behaviours.

Model agent actions against ATT&CK execution and privilege escalation patterns to identify unsafe tool paths.


Key terms

  • Evaluation Harness: An evaluation harness is the test environment, scripts, permissions, and network setup used to assess a model or system before release. Its security matters because the harness is often the difference between harmless testing and a real-world compromise path if it is allowed to reach external systems.
  • Agent Harness: The agent harness is the runtime layer that wraps a model and turns it into an acting system. It usually includes the loop, tools, context handling, permissions, hooks, and logs. In security terms, it is often the real place where privilege sits and where identity evidence must be governed.
  • Trajectory Verification: Trajectory verification is the practice of assessing an agent's full sequence of actions instead of only its final output. It matters when the intermediate steps, tool calls, or state changes can create risk even if the end result appears acceptable.
  • Session-Level Tracing: A logging and inspection method that reconstructs an agent's full interaction path across prompts, tool invocations, retries, and branching decisions. It is essential for debugging, auditability, and proving whether the agent acted within policy during a task.

What's in the full article

Arize's full article covers the operational detail this post intentionally leaves for the source:

  • Step-by-step setup for an evaluation harness around Gemini CLI and Arize Skills
  • Command-level workflow for exporting traces, creating datasets, and running experiments
  • Examples of evaluators for factuality, policy compliance, and regression detection
  • MCP integration details for persistent IDE and terminal workflows

👉 The full Arize article includes the step-by-step workflow, skills installation, and MCP integration details.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, and machine identity security. It helps practitioners connect access control, lifecycle oversight, and runtime governance across modern identity programmes.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org