TL;DR: LangChain Deep Agents simplifies long-running, planning-driven AI agents on LangGraph, but TruFoundry’s analysis says the real production gap is governance: centralized credential control, model-level RBAC, fleet-wide observability, and deployment boundaries still sit outside the harness. For organisations scaling AI agents, the missing layer is not orchestration code but identity, policy, and operating control.
At a glance
What this is: This is an analysis of LangChain Deep Agents that finds the framework is strong on agent orchestration but leaves enterprise governance controls outside its core scope.
Why it matters: It matters because agent programmes fail in production when credential governance, model access, and observability are bolted on after the fact instead of designed into the operating model.
By the numbers:
- 92% agree governing AI agents is critical to enterprise security, yet only 44% have implemented any policies to do so.
- 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, inappropriately sharing sensitive data, and revealing access credentials.
👉 Read TruFoundry's analysis of LangChain Deep Agents and production governance gaps
Context
AI agent governance is the control problem, not the orchestration problem. LangChain Deep Agents reduces the code needed to run long-lived, planning-driven agents, but the article itself shows that production failures usually begin where identity, policy, and visibility are left to application teams.
For organisations building agent programmes, the relevant question is how to govern model access, tool credentials, and cost across many agents and teams. That is where agent harness design intersects with IAM, NHI, and autonomous-system oversight, and where most frameworks still separate execution from governance.
The article is best read as a comparison between developer convenience and enterprise control. That is a typical starting position for agent frameworks, but it becomes atypical as soon as regulated data, shared models, or multiple teams enter the picture.
Key questions
Q: How should security teams govern AI models that can call tools and access data?
A: Security teams should govern AI models as non-human identities with named owners, limited scope, short-lived credentials, and continuous authorization. The critical shift is to treat every tool call, data read, and update path as a privileged action that can be logged, revalidated, and revoked. Without that discipline, model risk becomes identity risk.
Q: Why do AI agents create more governance risk than ordinary integrations?
A: AI agents can connect quickly, run continuously, and accumulate broad permissions across multiple services. That combination makes ownership blur and scope drift more likely, so the real risk is not the tool itself but the uncontrolled access path it creates across enterprise systems.
Q: What breaks when agent credentials are delivered only at the application layer?
A: Application-layer delivery breaks down when multiple workloads share infrastructure or when agent code changes faster than security controls. Secrets become easier to expose through memory, environment variables, or configuration drift. A stronger model moves the read decision into the runtime boundary, where other processes cannot simply pull the credential.
Q: How do you know whether an agent platform is production-ready for enterprise use?
A: Look for central model RBAC, delegated tool credentials, fleet-wide observability, cost reporting by agent and team, and deployment options that match your data and residency constraints. If those controls are missing, the platform is still an execution layer, not a governance layer.
Technical breakdown
How LangChain Deep Agents structures long-running agent execution
Deep Agents sits on top of LangGraph and adds an opinionated planning-and-execution loop for multi-step agent work. The agent receives a goal, breaks it into subtasks, uses tools, maintains state, and produces a final output. That model is useful because it turns a brittle prompt-response pattern into a durable workflow with memory and checkpoints. The architectural tradeoff is that execution is solved before governance is. Practical implication: teams need to decide where agent runtime stops and platform control begins.
Practical implication: place identity, policy, and audit controls outside the agent loop so execution logic does not become your governance layer.
Why model access and MCP credentials become the real enterprise boundary
The article highlights a common production gap: one agent harness may handle orchestration, but it does not centralise model permissions or tool credentials. In practice, that means model selection, token delegation, and MCP access are left to the application or environment. Once several teams build agents independently, the same credential patterns are repeated with no shared policy boundary. This is the point where agent identity becomes an NHI governance issue, not just an engineering detail. Practical implication: treat every agent-to-model and agent-to-tool path as a governed access path.
Practical implication: map every model and tool connection to a centrally governed identity and permission boundary before agent sprawl spreads.
Why observability must move from single traces to fleet-level control
Deep Agents can be traced, but the article distinguishes per-run inspection from fleet-wide operational control. That matters because production risk is not only whether one agent behaved correctly, but whether twenty agents, across teams, are consuming budget, accessing tools, and handling data in ways that stay inside policy. Observability for agents therefore has to include cost, privilege, latency, and tool-use patterns at programme scale. Practical implication: single-trace debugging is not enough once agents are business systems.
Practical implication: build fleet-wide telemetry for agent cost, access, and tool use so governance can see patterns, not just incidents.
NHI Mgmt Group analysis
Agent orchestration without central governance is an identity control gap, not a product gap. The article shows that Deep Agents solves execution design, but leaves model access, MCP credentials, and team-scoped policy to the customer. That means the hard part shifts from coding agents to governing who and what they can reach. For identity teams, the lesson is that agent frameworks are only production-capable when the control plane exists above the harness, not inside it.
Model access and tool delegation are now NHI governance problems. When an agent can call models and tools on behalf of a team, the security question is no longer just authentication at login. It becomes whether a non-human identity is bound to a central policy layer that can scope, revoke, and audit access across environments. That is the same governance pattern used for service accounts, but with faster-moving runtime behaviour and more cross-system reach. Practitioners should treat agent credentials as first-class NHI assets.
Fleet visibility is the new minimum for agent operating control. The article’s distinction between per-trace debugging and per-agent or per-team reporting is the right one. A single successful run says nothing about pattern drift, cost leakage, or tool overreach across a programme. The broader identity implication is that agent platforms need policy, telemetry, and accountability at the fleet level if they are to be governed like enterprise systems.
The most valuable named concept here is the production governance gap. Deep Agents narrows the gap between a working demo and a functioning agent, but it does not close the gap between runtime orchestration and enterprise control. That gap is where identity, budget, access, and deployment decisions live. Practitioners should read this as a signal that agent adoption now depends on whether the governance layer is designed up front, not retrofitted after pilots spread.
Agent programmes will increasingly converge with NHI and platform security operating models. The article points to model RBAC, per-team budgets, credential delegation, and deployment boundaries as the real production requirements. Those are not agent-only concerns. They are the same control domains already used to manage service accounts, workloads, and privileged access, which means identity governance teams will increasingly own part of the agent stack.
From our research:
- 92% agree governing AI agents is critical to enterprise security, yet only 44% have implemented any policies to do so, according to AI Agents: The New Attack Surface report.
- Only 52% of companies can track and audit the data their AI agents access, leaving 48% with a complete blind spot for compliance and breach investigation.
- The OWASP Agentic AI Top 10 helps teams map agent goal hijacking, tool misuse, and identity abuse to practical control decisions before scale amplifies the risk.
What this signals
Production agent programmes are now governance programmes. Once multiple teams rely on the same agent harness, identity controls need to move out of application code and into shared policy, telemetry, and delegation layers. That is where access reviews, budget controls, and revocation paths become operational requirements rather than architecture preferences.
Fleet-level visibility will separate prototypes from governable agent estates. A single trace may help debug one run, but it does not answer who accessed what across the estate, or whether one team is drifting beyond approved scope. The stronger operating model is to combine runtime telemetry with policy enforcement and external guidance such as the NIST AI Risk Management Framework.
Model RBAC for agents is the next practical checkpoint. The article’s core gap is not AI sophistication, it is the absence of a central access boundary for models, tools, and skills. The fastest path forward is to treat agent access like any other governed identity path and anchor it to the control patterns already used for NHI and privileged access management.
For practitioners
- Separate orchestration from governance Keep the agent harness focused on planning and execution, but enforce model access, tool permissions, and deployment rules in a central control plane. That prevents each team from inventing its own policy logic.
- Register every agent credential as an NHI asset Inventory model keys, MCP credentials, and delegated tokens the same way you inventory service accounts and API keys. Assign owners, expiry rules, and revocation paths before agents reach production.
- Set team-scoped policy before scale-out Define which team can use which model, connect to which tool, and access which skill before the first cross-team rollout. Enforce that separation centrally rather than in code.
- Build fleet-level agent telemetry Track cost, token use, access patterns, latency, and tool invocation across all agents, not just within a single trace. Use the same telemetry to support audit, budget control, and incident response.
- Decide where deployment boundaries must exist If your environment has data-residency or regulated workload constraints, require on-prem or VPC deployment paths before agent adoption. Deployment flexibility is an access-control decision as much as an infrastructure one.
Key takeaways
- LangChain Deep Agents simplifies orchestration, but it does not solve enterprise governance for AI agents.
- The production risk is shared access control, credential delegation, and fleet-wide observability across many agents.
- Agent programmes that grow without a central control plane will inherit the same sprawl identity teams already manage in NHI estates.
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 OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF, NIST Zero Trust (SP 800-207) and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | The article is about agent runtime risk, tool use, and governance gaps. | |
| OWASP Non-Human Identity Top 10 | NHI-03 | Model keys, MCP credentials, and delegated tokens are the article's central control boundary. |
| NIST AI RMF | GOVERN | The post centres on accountability, policy, and control ownership for AI agents. |
| NIST Zero Trust (SP 800-207) | 5.3 | Centralised delegation and policy enforcement align to zero-trust access boundaries. |
| NIST CSF 2.0 | PR.AC-4 | The article emphasises least-privilege access and policy enforcement across agent systems. |
Assign clear governance ownership for agent platforms and document decision authority across teams.
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.
- Role-Based Access Control: A model that grants permissions by assigning identities to predefined roles. It works well when jobs are stable and access patterns are predictable, but it becomes brittle when exceptions pile up. In practice, role design must stay small enough to audit and broad enough to avoid endless custom variants.
- Fleet visibility: Fleet visibility is the ability to see what is installed across user devices or client environments. For governed skills, it is the control that shows whether policy has actually landed, which is necessary to detect drift, stale versions, and shadow copies.
- Delegated Credential: A token, key, or other secret that allows one system to act on behalf of another identity. For agentic environments, delegated credentials matter because they extend trust into runtime, where the agent can use them to reach tools, data, or services without a fresh human approval.
What's in the full article
TruFoundry's full article covers the operational detail this post intentionally leaves for the source:
- A side-by-side explanation of how Deep Agents differs from LangGraph at the implementation level.
- Specific governance patterns for AI Gateway, MCP Gateway, Agent Gateway, and Agent Harness deployment.
- Details on model-level RBAC, per-team budget controls, and delegated MCP credentials in practice.
- Deployment options across SaaS, self-hosted, VPC, and on-prem environments.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM or identity security programme, it is worth exploring.
Published by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org