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

TL;DR: Once agent frameworks can spawn subagents, the harder problem is swarm management: durable identity, routed completion, queue policy, and recovery for long-running agent fleets, not just one-off tool calls, according to Arize. The control-plane question is no longer whether an agent can act, but whether the runtime can own, steer, and clean up many agents safely.


At a glance

What this is: This is an analysis of why long-running agent swarms need a runtime control plane, with durable identity, routing, and cleanup becoming the real technical problem.

Why it matters: It matters to IAM, PAM, and NHI programmes because agent fleets behave like managed non-human identities, and ownership, lifecycle, and privilege boundaries must be governed rather than assumed.

👉 Read Arize's analysis of swarm management for long-running agent harnesses


Context

Swarm management is the point where agent systems stop behaving like isolated workflows and start behaving like a managed runtime. A harness can let one agent call tools, but it does not solve ownership, lifecycle, or recovery for child agents that outlive the parent’s immediate context. That creates a governance gap for both AI operations and non-human identity control.

The security implication is straightforward: if an agent can spawn, persist, and complete work outside the original call stack, it needs durable identity, scoped authority, and observable lifecycle state. This is where agent orchestration intersects with IAM and NHI governance, because the runtime must decide who or what owns the child, what it can do, and how it is retired. The pattern described here is increasingly typical in advanced agent stacks.


Key questions

Q: What breaks when long-running agents do not have durable identity?

A: The runtime loses the ability to address, steer, or retire child agents once the parent context moves on. That creates orphaned work, broken lineage, and unclear ownership after restarts. In practice, durable identity is what turns delegation into governable operations instead of disposable execution.

Q: Why do agent swarms need queue policy instead of just better prompting?

A: Because concurrency creates control problems that prompts cannot solve. Multiple children, retries, interrupts, and late completions all need ordering rules. Queue policy decides what reaches the active run, what becomes follow-up work, and what should be dropped or summarized to keep the swarm manageable.

Q: How do security teams know if agent governance is actually working?

A: It is working only if the team can answer three questions quickly for any agent: what it can reach, what it did recently, and whether that behaviour matches intent. If any of those answers require manual reconstruction, governance exists on paper but not in operations.

Q: Should organisations treat agent orchestration as an IAM problem?

A: Yes, when agents can persist, delegate, and act across sessions. At that point, the runtime is managing non-human actors with lifecycles, scoped authority, and revocation needs. IAM and NHI principles such as ownership, least privilege, and offboarding become directly relevant to the control plane.


Technical breakdown

Why durable identity is the first swarm-management requirement

A swarm manager cannot govern children it cannot address. Durable identity gives each subagent a stable session key, run ID, and ownership record so the runtime can list, steer, cancel, or retire it later. Without that, the system is only handing work to an ephemeral process and hoping the parent context survives long enough to recover the result. Durable identity also creates the basis for parent-child lineage, which matters when multiple agents and retries are active at once.

Practical implication: Treat every spawned agent as a managed runtime object with identity, lineage, and lifecycle metadata, not as a disposable function call.

Why routed completion matters more than returning JSON

In small delegation patterns, a child returns a summary to the parent and the interaction ends. In a swarm, completion is an event-routing problem because the parent may be idle, restarted, or itself another child when the result arrives. That means the runtime needs delivery policy, queueing, retry handling, and provenance tracking. Completion has to be captured, not merely returned, so the right session can consume it later and decide whether to continue, interrupt, or escalate.

Practical implication: Design completion as an internal event with routing rules and retry logic, not as a synchronous function return.

How queue policy and lifecycle recovery keep long-running agents safe

Once multiple agents run in parallel, ordering, cancellation, and recovery become control-plane functions. Queue policy decides which messages steer a live run, which become follow-ups, and which should be dropped or summarized. Lifecycle recovery then reconciles stuck, orphaned, or restarted sessions so the runtime does not lose track of live work. This is close to process-table thinking in operating systems: the system must know what is running, who owns it, and what should survive failure.

Practical implication: Implement explicit queue rules and recovery sweeps so child agents can be reconciled after restarts, aborts, or delivery failures.


NHI Mgmt Group analysis

Durable identity is now the defining control for agent swarms. When a child agent can outlive the parent call, the runtime needs a stable way to address it, scope it, and retire it. That turns session identity into a governance primitive rather than an implementation detail. For NHI governance, this is the same problem family as service-account lifecycle control: if the runtime cannot name and track the actor, it cannot govern it.

Swarm management exposes a named concept we should call agent lifecycle debt: the gap that appears when spawned agents, runs, and delivery states accumulate faster than the control plane can reconcile them. This debt shows up in orphaned children, stale completions, and ambiguous ownership after restart. The more agents a system can spawn, the more this debt compounds unless lifecycle rules are enforced at the runtime layer.

Completion routing is becoming a security boundary, not just an orchestration detail. If results can be delivered to the wrong session, delayed past restart, or silently dropped, the system loses provenance and accountability. That weakens both operational reliability and post-incident reconstruction. Practitioners should treat event routing for agent completion with the same seriousness they apply to privileged workflow handoffs.

Role enforcement must live in the control plane if agent swarms are to remain governable. The article’s orchestrator-versus-leaf split reflects a broader governance truth: a model may request delegation, but the runtime must decide whether spawning is legal, how deep the tree can grow, and what tools each child can use. This is the closest analogue to least privilege in agent operations, and it should be enforced centrally.

Recovery logic is part of identity governance for long-running agents. A restarted controller that loses the live set of child sessions has already lost control, even if the underlying models are still running. Persisted registry state, cleanup policy, and restart reconciliation are therefore governance controls, not housekeeping. Teams building AI platforms should plan for lifecycle recovery as a first-class control requirement.

What this signals

Swarm management pushes AI engineering toward the same discipline identity teams already apply to non-human actors: assign ownership, persist lifecycle state, and revoke authority cleanly when work ends. Agent lifecycle debt: the longer teams leave spawned agents, retries, and delivery events unreconciled, the more fragile the control plane becomes. That is why lifecycle governance must be designed alongside orchestration, not added after deployment.

For practitioners, the operational signal is simple: if a restarted controller cannot reconstruct which children are live and which completions are pending, the system is already over its governance limit. The right response is to align AI runtime state with identity lifecycle controls and policy enforcement, using frameworks such as the NIST AI Risk Management Framework where agent behavior and ownership need explicit accountability.


For practitioners

  • Define durable identity for every spawned agent Assign each child a stable session key, run ID, owner, and parent lineage so the runtime can address it after the parent moves on. This is the minimum state needed to support list, patch, cancel, and cleanup actions across a swarm.
  • Route completions through an event registry Capture child outcomes as internal completion events with provenance, then deliver them through a registry or queue that can retry, defer, or steer them to the correct session. Do not rely on a blocking tool call to preserve state across restarts.
  • Enforce orchestrator and leaf roles centrally Limit how deep delegation can grow, deny child-spawning tools to leaf roles, and keep spawn depth, control scope, and approval boundaries in the control plane. That prevents uncontrolled agent trees from forming outside governance.
  • Build recovery sweeps for orphaned or stuck runs Persist registry state, reconcile live runs on restart, and sweep for completed-but-undelivered or pending-but-stalled sessions. Cleanup should retire runtimes, attachments, and browser state in a controlled order rather than depending on model memory.

Key takeaways

  • Swarm management turns long-running agents into governed runtime objects, which means identity, lineage, and cleanup matter as much as tool access.
  • The hardest problem is not delegation itself, but routing completion, recovering state, and enforcing role boundaries after children outlive the parent call.
  • Teams building agent platforms should treat lifecycle control as a security control, because unmanaged agent state quickly becomes operational and governance debt.

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 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10Agent delegation, tool use, and lifecycle control map to agentic application risks.
OWASP Non-Human Identity Top 10NHI-01Spawned agents need durable identity and lifecycle ownership like other NHIs.
NIST AI RMFGOVERNThe article centres on accountability and runtime ownership of autonomous behaviour.
NIST CSF 2.0PR.AC-4Least privilege and access scoping are central to controlling child-agent capabilities.

Assign stable identity and ownership to every spawned agent and revoke it through controlled lifecycle processes.


Key terms

  • Swarm Management: Swarm management is the runtime discipline of owning many agents over time, not just letting one agent call tools. It requires durable identity, queue policy, lifecycle tracking, routing, and cleanup so spawned agents remain addressable, controllable, and recoverable after the parent context changes.
  • Durable Identity: A stable identifier that persists long enough to support monitoring, auditing, and incident reconstruction. For AI agents, durable identity is more useful than transient runtime objects because it allows analysts to compare behaviour before and after a suspicious shift.
  • Completion Routing: Completion routing is the process of delivering a child agent’s outcome to the correct session, queue, or controller instead of simply returning a value. It preserves provenance, supports retries and delays, and helps keep asynchronous agent work accountable when the parent or requester is no longer active.
  • Agent Lifecycle Management: The process of provisioning, governing, updating, and retiring an AI agent or other non-human identity. It includes credential issuance, permission changes, logging, rotation, and offboarding. Without lifecycle control, agents can retain access after their business purpose ends, creating persistent risk.

What's in the full article

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

  • The session-key and run-ID patterns used to make child agents addressable across restarts and queues.
  • The registry and announce flow that routes completion events back to the correct requester session.
  • The steer-restart and kill handling logic for aborting, remapping, and cascading child runs.
  • The cleanup and sweeper mechanics that reconcile orphaned sessions, attachments, and stale lifecycle states.

👉 Arize's full post covers session identity, lifecycle routing, and recovery patterns for agent swarms.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It helps practitioners build the control mindset needed to govern long-running agent lifecycles and other non-human actors.
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