Hot AI News

Microsoft’s durable AI agents go GA, and retries no longer rerun finished turns

The Durable Task extension for Microsoft Agent Framework is generally available. Its new Schema 2.0.0 stores proof of completed requests apart from the chat transcript.

Microsoft’s durable AI agents go GA, and retries no longer rerun finished turns
Image: Microsoft

Microsoft says the Durable Task extension for its Agent Framework is now generally available for .NET and Python. In a post on its developer blog, the company explains the central choice: a record that a request finished is stored apart from the conversation history.

Completion receipts that outlive the transcript

The packages are Microsoft.Agents.AI.DurableTask and Microsoft.Agents.AI.Hosting.AzureFunctions for .NET, and agent-framework-durabletask and agent-framework-azurefunctions for Python. Agents run as Durable Entities, and multi-step workflows run as durable orchestrations. Progress is saved outside the worker process, so work can resume after a restart or scale-down. Azure Durable Task Scheduler (DTS) is the managed backend that stores the state and dispatches the work.

Diagram of DurableAgentState Schema 2.0.0 separating protected execution control state from evictable conversation history
Image: Microsoft

The post uses a support-ticket example. If an app times out and retries, chat history shows what the user asked but not whether the ticket was created. In the early preview schemas (1.0.0 to 1.2.0), completion was inferred by scanning conversationHistory. That made it impossible to prune messages to stay under the 1 MiB entity limit, or to keep the transcript in an external database, without losing the proof.

Schema 2.0.0 splits the state in two. Protected control state holds completionReceipts, terminalResults, historyBinding and session. Evictable model context holds conversationHistory. Receipts are permanent. The full response is kept for a 60-second delivery window by default, after which the receipt flips to “unavailable”. A retry of a finished request then throws DurableAgentResultUnavailableException instead of calling the model again.

Sequence diagram of the two-phase rolling upgrade of v1 and v2 workers using dafx-v2 work-item filtering
Image: Microsoft

Evicting old turns or expiring the 60-second payload can never make a completed request executable again.

Microsoft adds a caveat. If a failure hits after a tool created a ticket but before the turn was saved as complete, the tool still needs its own idempotency check.

Durable Task Scheduler Dashboard timeline showing token usage and tool calls for a Schema 2.0.0 session
Image: Microsoft
Advertisements

Three limits, three separate settings

Each session has one sealed history owner: the entity itself, an external provider such as Redis, SQL or Cosmos DB, or a cloud service thread such as one in Azure AI Foundry. Changing the owner mid-session makes the entity fail closed with DurableAgentHistoryBindingMismatchException, rather than quietly reading an empty history.

Memory is split into three controls. TimeToLive deletes idle session entities. CompactionProvider trims what is sent to the model. HistoryRetentionMode.Auto bounds entity storage, evicting the oldest complete exchange groups once state reaches 85% of the 1,048,576-byte budget and stopping at 70%. Python adds an optional azure-blob-payloads extra that moves large payloads to Azure Blob Storage.

For upgrades, Microsoft describes two phases on a shared Task Hub. Phase 1 puts new sessions on versioned entity names (dafx-v2-{agent}) with work-item filtering, while old v1 workers keep their sessions. In phase 2, after the old workers drain, ProcessLegacyEntities = true converts v1 sessions in place on their next turn. Microsoft says no offline migration script is needed. The DTS Dashboard shows both generations and the raw Schema 2.0.0 state.

Who has to act, and what remains unproven

The change matters most to teams that already ran preview versions. Any worker fleet on a shared Task Hub has to follow the two-phase rollout, and Azure Functions users must turn on workItemFilteringEnabled in host.json. New projects get the receipt behavior by default. The post does not give pricing for DTS or say which Azure regions support it.

The release also comes at a delicate time for the project’s Python side. In a November 25 post, Microsoft said versions 1.26.1 and 1.26.2 of the agent-framework Python meta-package were uploaded to PyPI without authorization on November 17 and contained credential-stealing code. According to Microsoft, only that meta-package was affected, not the .NET packages, and the GitHub repository was temporarily unavailable with no date for its return. The company advises pinning to agent-framework==1.26.0 if you did not install the bad versions. Teams that did install them should treat the machine as compromised and rotate credentials. The durable packages named above are separate from that meta-package, and the GA post does not mention the incident. Teams adopting the Python durable packages should still check which versions their lockfiles resolve.

Most claims about reliability are Microsoft’s own and come from design descriptions and samples. The post cites no independent tests, failure-rate data or performance figures. One example is a GitHub Copilot agent orchestration that pauses for human approval while no worker runs, then resumes on a fresh host. It is a sample, not a production result.

The same effort to make agents reliable shows up elsewhere in the industry. Our recent report on Copilot for JetBrains running scheduled tasks on its own describes agents that run unattended. Long-running work like that is where durable state and safe retries start to matter.

Sign Up for the Daily AI Pulse

One email a day. All the stories that matter.

Alex CarterAI News & Big Tech Correspondent

Alex Carter writes for Aiholics, keeping readers updated on the fast-paced world of AI and Big Tech.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like