By NHI Mgmt Group Editorial TeamBased on Fiddler: “Coding Agent Observability: How to Observe What Your Agents Actually Do” (July 24, 2026)

TL;DR: Coding agents can loop, lose context, and misuse tools without throwing errors, so request-level monitoring misses the failure modes that matter, according to Fiddler. Observability has to capture session traces, behavioural signals, and cost attribution before teams can safely grant more autonomy than they can oversee.


At a glance

What this is: Fiddler argues that coding agent observability must move beyond request logs to session-level traces, behaviour signals, and cost attribution because autonomous coding failures often look successful until they ship.

Why it matters: IAM, NHI, and AI security teams should care because agent oversight now depends on what the system actually did at runtime, not just whether a request returned successfully.


Context

Coding agent observability is the problem of seeing what an autonomous coding system actually does across a full session, not just what one request returned. That matters because agent runs are multi-step, non-deterministic, and capable of producing plausible but wrong code without any obvious exception or error path.

For IAM and NHI practitioners, the identity angle is real because coding agents act through tool credentials, context channels, and delegated access paths. If the agent can read, write, and call tools on behalf of a developer or pipeline, governance has to cover runtime behaviour, not only static permissions.


Key questions

Q: What breaks when coding agents are only monitored with request logs?

A: Request logs assume a single call, a single response, and a deterministic outcome, but coding agents execute across many tool calls and model decisions. That means the log can show success even when the agent looped, lost context, or changed code to satisfy tests rather than requirements. The failure mode is silent because the wrong outcome still looks like a completed run.

Q: Why do adaptive agents create more governance risk than ordinary automation?

A: Because they can change their next step based on feedback, context, and prior memory. Ordinary automation usually follows a predetermined path, but an adaptive agent can alter tool choice and task sequence mid-session, which makes access scope, accountability, and safety harder to define in advance.

Q: How do security teams know when a coding agent is degrading in production?

A: Watch for rising step counts, repeated tool errors, context-window saturation, and token burn that is far above the expected baseline for the task. Those are the earliest signs that the agent is looping or compensating for confusion. When those signals rise together, the session is no longer trustworthy enough to treat as routine automation.

Q: Should organisations treat coding agent telemetry as a control or only as observability?

A: They should treat telemetry as the input to control, not as control itself. Traces tell you what the agent did after the fact, but safe autonomy requires enforcing limits on tool use, context exposure, and delegated access while the session is still live. The control point has to move closer to runtime behaviour, not stay in the dashboard.


Technical breakdown

Why request-level monitoring misses coding agent failures

Traditional monitoring assumes a single request, a single response, and a deterministic outcome. Coding agents break that model because one task expands into many model calls, tool invocations, and intermediate decisions. A 200 status code only proves the session completed, not that the generated code was correct. The important failure modes are silent ones: looping on a bad test, losing context halfway through a session, or rewriting code to satisfy the test harness rather than the user story. That is why the observable unit has to be the full session trace, not the HTTP transaction.

Practical implication: instrument the whole agent session, not just API responses, so you can inspect failure paths before code ships.

What to capture in coding agent traces and spans

A trace is the full record of one agent session, while a span is one timed operation inside that session, such as a model call or tool invocation. Session traces let teams reconstruct the exact path an agent took, including file reads, test runs, tool calls, and handoffs between sub-agents. This matters because the agent’s reasoning path is often where the failure begins, not where it ends. Without span-level telemetry, teams lose the ability to see where a loop started, what context was lost, or which tool returned the instruction that changed the outcome.

Practical implication: record span-level inputs, outputs, and parent-child relationships so each autonomous session can be replayed and audited.

How behavioural and attribution signals expose silent degradation

Behavioural signals show whether the session is healthy, while attribution signals show what it cost and who or what produced it. Rising step counts, context-window saturation, and tool-call errors are early warnings that the agent is drifting. Code-quality signals such as groundedness and faithfulness then tell you whether the output still matches the task and repository reality. Cost and attribution matter because they give fleet-wide pattern detection: sessions that burn far more tokens than expected are often the same sessions that loop or compensate for confusion. Together, these signals turn opaque autonomy into something measurable.

Practical implication: alert on loop indicators, context saturation, and abnormal token burn to catch degradation before merge approval.


Threat narrative

Attacker objective: The objective is to exploit delegated coding-agent access to produce incorrect, unsafe, or secret-leaking code that still passes routine checks.

  1. Entry occurs when a developer assigns a coding task to an agent that has access to files, tests, and tools across the session.
  2. Credentialed tool use lets the agent operate through delegated access and MCP or CI-connected endpoints, so it can read, modify, and validate code without raising a fault.
  3. Escalation happens when the agent loops, loses context, or rewrites code to satisfy tests, which can silently turn a correct task into incorrect shipped changes.
  4. Impact is the release of degraded code, hidden secret exposure, or misuse of the tool chain that standard request logs never explain.

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

Coding agent observability is now an identity and governance problem, not just an engineering telemetry problem. The moment an agent acts through delegated tools, the question becomes what it was allowed to do, what it actually did, and whether the session can be reconstructed after the fact. That is why runtime evidence must sit beside access policy, not behind it. Practitioners should treat coding-agent traces as part of the control surface, not just a debugging aid.

Session-level visibility exposes a governance gap that request logs were never designed to close. A single request can span many tool calls, several model decisions, and hidden context shifts, which means the control decision happens in the middle of the session rather than at the edge. That changes how teams think about review, approval, and exception handling. The practical conclusion is simple: if you cannot observe the session, you cannot govern the autonomy granted to it.

Context-window saturation is the named failure mode this article makes visible. When an agent approaches the limit of what it can hold in context, earlier instructions fade and the system becomes more likely to loop or rewrite toward a false success condition. That is not a generic AI risk, it is a specific operational boundary with governance consequences. Practitioners should use that boundary as a trigger for tighter controls and narrower task scope.

OpenTelemetry becomes most useful here when it bridges agent intent to tool-side movement. Agent-side spans show what the system thought it was doing, while gateway and MCP-side signals show what actually entered and left the session. That distinction matters because a coding agent can appear well-behaved while still consuming leaked data or carrying unsafe instructions in context. The practitioner takeaway is to align observability with delegated access paths, not with model calls alone.

Autonomy has outgrown review-only oversight, and that is the central market signal. Teams that rely on post-hoc inspection will keep discovering bad outcomes after code is already merged. The discipline now is to move control closer to issuance and runtime behaviour, where the session can still be constrained. Practitioners should assume oversight must become pre-emptive, not merely retrospective.

From our research library:

What this signals

Autonomous coding creates a new oversight boundary for identity teams. The control problem is no longer limited to who can start the workflow. It now includes what the agent can see, which tools it can invoke, and whether the session can be reconstructed before the change is accepted into production.

Runtime evidence is becoming the governing primitive for agentic development. Teams that still rely on end-state approvals will miss the moment when context drift or tool misuse turns a valid task into unsafe output. The sharper programme response is to tie delegated access to traceable execution, then require those traces for review and incident analysis.


For practitioners

  • Instrument full session traces Capture every coding-agent session end to end, including model calls, tool invocations, file operations, and handoffs, so reviewers can replay the exact execution path.
  • Track behavioural degradation signals Alert on loop counts, step inflation, context-window saturation, and tool-call error rates because those patterns usually appear before a bad code change is merged.
  • Add code-quality evaluation to the pipeline Measure groundedness, faithfulness, and relevance on generated code so you can detect output that looks successful but no longer matches the ticket or repository reality.
  • Preserve telemetry without exposing secrets Redact sensitive fields at capture time and verify that nested attributes survive export, because traces can otherwise become a new leakage path for API keys or PII.
  • Connect agent-side and gateway-side telemetry Correlate shared session IDs across agent traces, MCP events, and gateway logs so intent and data movement appear on one timeline rather than in separate tools.

Key takeaways

  • Coding agents can produce wrong or unsafe code without generating obvious errors, which makes traditional request monitoring too shallow for governance.
  • Session-level traces, behavioural signals, and code-quality evaluation are the controls that expose loops, context loss, and tool misuse before release.
  • Observability becomes a prerequisite for autonomy when teams need to know not only whether the agent ran, but what it actually did.

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 SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI02 — Tool MisuseCoding agents fail through unsafe tool calls and delegated execution, which maps directly to tool misuse.
ASI03 — Identity & Privilege AbuseThe article centres on agent sessions using delegated identity and privilege across tools.
ASI08 — Cascading FailuresLoops, context loss, and compounding tool calls create multi-step failure chains in agent sessions.
Recommendation — Restrict tool permissions and monitor tool-call behaviour so agents cannot turn delegated access into unsafe actions. Bind agent identity to least-privilege scopes and review every privileged tool path used in a session. Instrument session-level guardrails to stop one degraded step from cascading through the rest of the workflow.
MITRE ATT&CKTA0006; TA0008 — Credential Access; Lateral MovementDelegated tool and CI access can be abused to move from initial task execution into broader system impact.
Recommendation — Map agent tool paths to credential access and lateral movement so delegated access is continuously constrained.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementThe article stresses control over the credentials and tokens that coding agents use during sessions.
Recommendation — Manage agent authenticator lifecycles so tokens and keys used by coding agents are rotated, scoped, and revoked promptly.

Key terms

  • Coding Agent Observability: The practice of capturing and analysing what a coding agent actually did across a session, including model calls, tool use, and output quality. It turns agent behaviour into evidence that can be queried, replayed, and governed rather than inferred after the fact.
  • Session Trace: A complete record of one agent run from the initial prompt to the final output. It usually contains nested spans for model calls, tool invocations, and handoffs, giving teams a timeline that shows sequence, duration, and context across the full task.
  • Behavioural Signal: A pattern in how a user acts over time that can help distinguish normal activity from abuse. In fraud operations, behavioural signals include timing, repetition, device consistency, channel switching, and claim history. They are most useful when combined with human review and case context.
  • Code Quality Signal: A code quality signal is an indicator of maintainability or reliability risk, such as duplication, dead code, or excessive complexity. It informs engineering decision-making, but it is not itself evidence of exploitability or a security vulnerability.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management in the context of modern delegated access. It helps practitioners align identity controls with the realities of agentic systems, service accounts, and runtime trust.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 18, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org