TL;DR: AI agents that run for minutes or hours can lose state, repeat work, or fail mid-task unless their execution is durably recorded, according to WorkOS’s interview with Temporal co-founder Maxim Fateev. The governance question is not whether agents are clever, but whether their runtime assumptions survive crashes, retries, and intervention windows.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on WorkOS's blog post: Durable execution is becoming the control plane for AI agents because long-running agent workflows must survive crashes, retries, and interrupted steps without losing state.
Why it matters: IAM and security teams need to understand this because agent reliability changes how runtime control, auditability, and intervention boundaries should be governed in AI-enabled environments.
Context
Durable execution means a workflow can survive failure and resume from the last recorded step instead of starting over. In AI agent systems, that matters because the work is multi-step, stateful, and often dependent on external APIs, LLM calls, and human approvals.
The governance gap is not only reliability. When an agent can branch at runtime and keep acting across minutes or hours, traditional assumptions about fixed execution paths, linear retries, and one-shot task completion become too brittle for operational control.
For identity and access programmes, this creates a new control problem around agent runtime continuity. The question is less about whether the agent has permission in principle and more about how that permission, state, and traceability persist across failures and replays.
Key questions
Q: How should security teams govern AI agents that run long, multi-step workflows?
A: Security teams should require durable execution, full event history, and clear ownership for every multi-step agent workflow that touches sensitive data or privileged tools. If the agent can lose state on failure, the organisation cannot reliably audit what happened or prove which actions were completed versus replayed.
Q: Why do long-running AI agents need durable execution instead of normal retries?
A: Normal retries restart work but do not preserve state or execution history. Durable execution matters when an agent spans minutes or hours, depends on external systems, and must avoid redoing completed steps after a failure. The control issue is not retrying faster, but preserving the workflow so recovery does not create duplicate or inconsistent action.
Q: What are the signs that an AI document workflow is too brittle for production use?
A: Warning signs include frequent 403 errors, broken formatting after edits, stale spreadsheet reads, overwritten human changes, and failure on larger files or multi-step tasks. If the workflow only succeeds in demos but fails on real Office documents, the integration is missing essential controls such as conflict detection, session management, pagination, and correct scope handling.
Q: What should teams do when an agent resumes after an interruption?
A: They should re-check whether the resumed workflow still has the right context, approvals, and permissions to continue. A paused agent may be acting on stale conditions, so resumption should not be treated as automatic continuity. The safer approach is to define which steps can resume freely and which must be revalidated before completion.
Technical breakdown
Why stateless agent execution fails under retries and crashes
Most agent frameworks treat each run as disposable: if a step fails, the process is restarted and the earlier state is lost unless the developer has built checkpointing by hand. Durable execution changes that by persisting workflow progress after each step so the runtime can resume from a known point. This matters because AI agents often coordinate across APIs, databases, and LLM calls over long periods, making them much more fragile than short-lived request/response systems. The technical shift is from ephemeral task execution to event-sourced workflow history. That gives the system a replayable record of what already happened and what remains.
Practical implication: treat agent workflows as resumable state machines, not disposable scripts.
How durable execution separates decision logic from runtime infrastructure
Durable execution keeps the workflow logic in application code while the server handles persistence, scheduling, and retries. In practice, that means the developer defines what should happen, while the platform guarantees that completed steps are not re-executed after failure. This separation is important because it makes reliability a property of the execution layer rather than a custom feature inside every agent framework. For identity governance, that distinction matters when the workflow contains authorisation-sensitive actions, because the record of intent, state, and action timing must survive handoffs, restarts, and worker replacement.
Practical implication: place durability and replay guarantees in the runtime layer, not inside ad hoc agent code.
Why observability becomes part of agent control
Durable execution is not only about recovery. The event history also creates a complete record of decisions, activities, and signals, which is essential when agents affect real users or data. Without that history, operators cannot tell what the agent did before failure, what it retried, or where intervention is safe. This is especially important in AI agent systems because runtime decisions are dynamic and branch-dependent, so a simple log of start and end states is not enough. The control value comes from reconstructing the execution path, not just proving that the task eventually finished.
Practical implication: require step-level execution history before allowing agent workflows into production.
NHI Mgmt Group analysis
Durable execution is becoming the missing control plane for AI agents: agent reliability is now an identity and governance problem, not just an engineering one. When an agent runs across many steps, tools, and approvals, the question becomes whether execution state, permissioned actions, and traceability survive interruption. Practitioners should treat runtime continuity as part of access control for autonomous work.
The control assumption that breaks is simple: task completion is no longer a single uninterrupted event. That assumption was designed for short-lived workflows where a process either finishes or fails cleanly. It fails when an agent can pause, branch, wait on external services, and resume later with the same authority. The implication is that governance has to account for execution persistence, not just initial authorisation.
Durable execution turns event history into an audit primitive: a replayable record of decisions, activities, and signals is what makes intervention and accountability possible. For identity teams, this is the difference between knowing that an agent existed and knowing what it was allowed to do at each step. Practitioner conclusion: runtime traceability is becoming part of the identity perimeter.
Agent reliability and agent trust cannot be separated: once workflows can survive failures, the governance model must distinguish between a permission granted, a step executed, and a state resumed. That distinction is especially important where agent actions affect real data or downstream systems. The practitioner takeaway is that durable execution should be evaluated as a control layer, not as a convenience feature.
Durable execution will push AI agent governance toward workflow-level controls rather than prompt-level controls: the operational unit of oversight is the persisted workflow, not the single model call. That changes how teams think about review, escalation, and intervention because the agent’s behaviour is distributed across time. The field should expect more emphasis on runtime state, step history, and recoverability as core controls.
From our research library:
- 40 percent of financial and software companies have already deployed agentic AI systems, and deployments are expected to double by 2028.
- Read next: Agentic AI Security Guide
What this signals
Workflow durability will become a boundary control for agent governance: the practical issue is no longer whether an AI agent can start a task, but whether the task can be resumed, audited, and bounded after interruption. Teams that only evaluate prompt quality will miss the operational layer where failure actually accumulates.
Persistence changes the accountability model: if every step is recorded, the organisation can separate interruption from completion and distinguish retry behaviour from new intent. That makes durable execution a prerequisite for any serious agent oversight programme, especially where actions affect data, money, or production systems.
For practitioners
- Map agent workflows to persisted execution states Identify every AI agent process that spans multiple steps, external APIs, or human approval gates, and define the state that must survive a crash or restart. Use that inventory to separate disposable prompts from workflows that need durable replay semantics.
- Require step-level event history Make a complete execution history mandatory before agent workflows can touch production data or customer-facing actions. The history should show each decision, activity execution, retry, and signal so operators can reconstruct the path taken.
- Bound agent authority across resume points Review whether an agent resumes with the same permissions it had before interruption, and decide whether that authority should be revalidated on restart. This is especially important when a workflow pauses long enough for context, risk, or approvals to change.
- Replace ad hoc checkpointing with runtime guarantees Remove custom checkpoint logic from agent code where durable workflow infrastructure can provide recovery, retry, and replay guarantees consistently. That reduces divergence between teams and makes failure handling observable instead of improvised.
Key takeaways
- AI agents that run across many steps need durable execution because crashes and restarts can otherwise erase state and repeat work.
- The core governance shift is from one-shot task completion to persisted workflow control with replayable history.
- Security teams should evaluate agent workflows by their resumability, auditability, and authority boundaries after interruption.
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 addresses the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Agent workflows that resume after interruption raise identity and privilege continuity questions. |
| ASI08 — Cascading Failures | Long-running agent workflows can fail across retries, rescheduling, and external dependencies. | |
| Recommendation — Define which agent privileges must be revalidated when a workflow resumes after interruption. Design agent runtimes to contain failure propagation across chained workflow steps. | ||
| NIST AI RMF | GOVERN — AI Governance and Accountability | Durable execution introduces governance requirements for traceability and accountability in AI systems. |
| Recommendation — Establish governance for agent state persistence, traceability, and intervention rights. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | Resumed workflows should not inherit authority without review when conditions change. |
| Recommendation — Review whether resumed agent workflows still satisfy current authorisation boundaries. | ||
Key terms
- Durable Execution: Durable execution is a workflow design pattern that preserves state so a process can resume after failure without redoing completed work. In AI agent systems, it turns a fragile run into a recoverable sequence with replay, history, and auditability.
- Replay Workflow: A replay workflow lets teams rerun a past prompt request or production trace with a modified prompt or model. It is useful for debugging regressions, validating fixes, and understanding how a change behaves on realistic inputs rather than synthetic examples.
- UID Continuity: The consistent carrying of one subject identifier across systems so authorization rules evaluate the same user or workload everywhere. When continuity breaks, access can drift even if the authentication step succeeds, which makes identity mapping a governance control rather than a convenience detail.
- Workflow orchestration: Workflow orchestration is the sequencing of tasks, approvals, and integrations across systems. It is not the same as identity governance, because a tool can coordinate work while leaving credential ownership, entitlement review, and revocation outside the control plane.
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 programme, it is worth exploring.
Published by the NHIMG editorial team on June 6, 2026.
Updated on October 7, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org