By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: ArizePublished May 29, 2026

TL;DR: AI agents improve less through better prompts than through a better harness around the model, according to Arize, where traces, targeted evals, failed-span review, and safe change gates turn opaque behaviour into a repeatable engineering loop. The governance lesson is that observability, policy, and review now matter as much as model quality for reliable agent systems.


At a glance

What this is: This is an analysis of why agent improvement depends on traces, evals, and review gates rather than prompt tweaks alone.

Why it matters: It matters because teams building agentic AI need governance over decision paths, tool use, and safe change control, not just output quality.

👉 Read Arize's analysis of building a better agent harness with traces and evals


Context

Agent improvement fails when teams only inspect the final answer. In practice, the hard part is understanding which step went wrong, whether that was data retrieval, tool choice, scoring logic, or the evaluator itself, and then turning that failure into a controlled change. That is why traceability, evaluation design, and review gates are now core parts of agent governance, not optional debugging aids.

For identity and security teams, the intersection is governance of autonomous or semi-autonomous AI systems that can call tools, consume context, and change behaviour over time. That raises questions similar to NHI and PAM oversight: who approved the tool path, what context was exposed, which actions were allowed, and how changes are reviewed before they ship. Agent harness design becomes a control plane for AI behaviour.


Key questions

Q: How should security teams govern AI agents that can choose tools at runtime?

A: Security teams should govern runtime agent choice as an access event, not as a simple application action. That means scoping permissions to the task, limiting token lifetime, logging every tool decision, and blocking the agent from reaching systems outside its approved context. Static roles alone are not enough when the execution path changes on each run.

Q: Why do traces matter more than final outputs for agent oversight?

A: Final outputs tell you whether the answer looked right, but traces show where the agent’s reasoning, retrieval, or tool use broke down. That distinction matters when the failure is caused by missed context, the wrong data source, or premature stopping. Traces turn opaque behaviour into evidence that can be reviewed and improved.

Q: What do security teams get wrong about evaluator design for agents?

A: They often treat evaluators as fixed infrastructure instead of versioned instruments that can drift. If evaluator scores do not correlate with real user outcomes, the programme is optimising for the wrong signal and may miss slow degradation, false confidence, or miscalibrated quality thresholds.

Q: How do teams know when an agent change is safe to ship?

A: A change is safer when the trace shows the exact failure, the eval measures the right behaviour, and a human reviews any update that changes tool access, routing, prompts, or quality criteria. If any of those parts are unclear, the organisation is changing the system without fully understanding the control impact.


Technical breakdown

Why traces are the foundation of agent debugging

A trace records the path an agent took across tool calls, intermediate decisions, retrieved context, and model outputs. That matters because an incorrect final answer can come from several different failure modes: the wrong source data, a bad retrieval step, an overconfident synthesis, or a tool that returned misleading results. Without traces, teams tend to rewrite prompts blindly. With traces, they can isolate the exact span where behaviour diverged from intent and test a narrower fix.

Practical implication: instrument every meaningful agent step so failures can be replayed and reviewed at span level.

How evals should follow observed behaviour, not guesses

Evals are most useful when they are derived from real traces, not from abstract assumptions about what an agent might do wrong. A report-level eval is often too coarse for improvement because it hides whether the issue started in retrieval, scoring, or synthesis. A span-level eval can test the specific behaviour that drives the outcome, such as whether the agent used the right source, applied the rubric consistently, or stopped too early. That makes the evaluator part of the engineering system, not a detached scorecard.

Practical implication: build evals from traced failures and keep them narrow enough to measure one behaviour at a time.

Why review gates are the governance layer for agent change

Once a loop exists, the key question is not only whether the agent is wrong, but whether the evaluator is wrong, the rubric is wrong, or the change is unsafe to ship. That is why review gates matter. They separate analysis from action and force humans to approve prompt changes, tool sequence changes, routing changes, and evaluator changes when the risk is meaningful. In governance terms, the harness becomes the control surface, and review becomes the approval mechanism.

Practical implication: require human approval for any change that alters agent behaviour, evaluation criteria, or tool permissions.


NHI Mgmt Group analysis

Agent harnesses are becoming the control plane for AI behaviour. The article shows that model quality alone does not explain reliable agent performance. Traces, evals, tool selection, context boundaries, and review gates together determine whether an agent can be improved safely. For AI governance teams, that makes the harness the place where policy becomes operational, especially when agents can act across tools and workflows.

Traceability is now a prerequisite for accountable agent operations. If a team cannot reconstruct why an agent made a decision, it cannot govern the decision path, only the outcome. That is a weak control model for agentic systems because the failure often lives in an intermediate span, not the final answer. Practitioners should treat trace data as evidence, not convenience.

Agent improvement loops create a new kind of governance debt if evals are poorly defined. A bad evaluator can hard-code the wrong definition of success and systematically reward the wrong behaviour. That risk is especially acute where human judgement, policy, or business context shape what “good” means. The control question is not just whether the agent improved, but whether the improvement criteria are defensible.

Review gates matter more as agent autonomy expands. The article’s workflow is useful precisely because it keeps humans responsible for the highest-risk changes. In broader AI governance terms, that aligns with NIST AI RMF GOVERN and MANAGE functions, where accountability, oversight, and change control must stay explicit. Teams should not confuse automation of analysis with delegation of authority.

Named concept, harness governance debt: the gap that appears when teams ship agents faster than they can instrument, evaluate, and review them. The result is an opaque system that can appear functional while hiding persistent failure modes. Practitioners should close that debt by making observability and evaluation part of the build standard, not a later retrofit.

What this signals

Agentic AI programmes are moving toward the same operating model that identity teams already recognise: control the path, not just the outcome. That means instrumentation, approval boundaries, and exception handling become part of the production design, not post-incident cleanup.

Harness governance debt: the most common failure mode is not a single bad model response but a system that cannot explain, measure, or safely modify its own behaviour. Teams can reduce that debt by linking trace data to reviewable evals and making change control explicit. For broader AI governance context, the NIST AI Risk Management Framework is a useful anchor.

As agent usage expands, organisations should expect more pressure to formalise reviewer roles, approval thresholds, and evidence retention. The practical question is whether the improvement loop can be audited after the fact, especially when the agent touches customer data, product decisions, or internal workflows.


For practitioners

  • Instrument every agent step Capture tool calls, retrieved context, intermediate outputs, and final responses so the full decision path is replayable during review.
  • Build span-level evals from real failures Start with one behaviour that traces show is breaking, such as wrong source selection or bad scoring, and evaluate that span directly.
  • Separate agent defects from evaluator defects Review a small sample of failures and passed cases to decide whether the agent, the rubric, or the evaluator is wrong before changing anything.
  • Require human approval for change-bearing updates Treat prompt edits, tool permission changes, routing changes, and evaluator updates as governed changes when they can alter production behaviour.
  • Keep the improvement loop narrow at first Start with one workflow, one data source set, and one measurable behaviour before expanding context or autonomy.

Key takeaways

  • Agent improvement depends more on the harness than on prompt tuning alone.
  • Traces and span-level evals turn opaque model behaviour into a controlled engineering loop.
  • Human review remains essential anywhere an agent change can alter tools, routing, or quality criteria.

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

FrameworkControl / ReferenceRelevance
NIST AI RMFGOVERNAgent change control and accountability map directly to AI governance functions.
OWASP Agentic AI Top 10The harness concerns tool use, context control, and agent behaviour risks.
NIST SP 800-53 Rev 5AU-6Trace review and failure investigation align with audit and analysis controls.

Use agentic AI risk patterns to test tool access, tracing, and stopping criteria before production.


Key terms

  • 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.
  • Trace: A trace is the recorded path an agent took during a run, including tool calls, intermediate outputs, and decision points. It lets teams reconstruct how the agent arrived at an outcome instead of guessing from the final answer alone.
  • Evals: Evals are structured measurement systems for judging whether an AI tool performs well across many runs. They do not try to prove one exact output is correct. Instead, they use scoring, thresholds, and repeated scenarios to show whether the tool is reliably useful in practice.
  • Review Gate: A review gate is a control point where a human must inspect and approve work before it continues or is committed. In agentic workflows, review gates are only effective if they happen early enough to constrain the agent's path, not just after the fact.

What's in the full article

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

  • The demo workflow for building a PM agent that scores GitHub issues, discussions, and releases.
  • How traces are turned into targeted evals for specific spans rather than only report-level scoring.
  • The failure-review loop used to decide whether the agent, rubric, tool chain, or evaluator is wrong.
  • The distinction between low-risk and high-risk changes when a proposed fix affects production behaviour.

👉 The full Arize article covers the trace-to-eval workflow, failure review loop, and safe change gates in more detail.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, secrets management, and agentic AI identity. It is designed for practitioners who need to apply identity control thinking to modern AI systems and broader security 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