Skip to main content
Microsoft Agent Framework workflows save a checkpoint at the end of every superstep: each executor’s state, the messages waiting for the next step, and shared state. FileCheckpointStorage writes those checkpoints as files to a directory you choose, and Microsoft describes it as storage for single-machine workflows. Put that directory on an Archil disk, and a workflow that stops on one machine resumes on another from its last checkpoint, without repeating the steps that already finished.
Run one machine against a checkpoint directory at a time. To run many workflows at once, give each its own directory or disk. For checkpoints that many processes write concurrently, Microsoft’s docs recommend CosmosCheckpointStorage on Azure Cosmos DB; keep the files your executors write on the disk either way.

Mount a disk

Create a disk in the Archil console and save a disk token for it. Then mount it on the machine that runs the workflow:
Your own server, a container with FUSE access, or another provider’s sandbox. See Mount on Linux for the requirements.

Point checkpoint storage at the disk

Install Agent Framework:
This workflow has two executors. Gather stands in for a slow step, such as an agent researching a topic, and writes sources.md. Write writes the report, and fails when CRASH=1 is set, to show what happens when a machine stops partway through. On start, the script resumes from the latest checkpoint if there is one:
workflow.py
Run it with the crash turned on. Gather finishes and its superstep is checkpointed, then Write fails:

Resume on another machine

Unmount the disk, which flushes every write to Archil, and mount it on a different machine. In an Archil sandbox, stopping or deleting the sandbox does the same; the disk and its data are kept. Then run the workflow again:
The new machine resumes from the checkpoint after Gather, so only Write runs:
Once a workflow has finished, its latest checkpoint is the finished one. Start the next run under a new workflow name or in a new checkpoint directory.

What’s on the disk

Checkpoint storage is trusted state: anyone who can write the checkpoint directory can change what the workflow loads. A disk’s credentials are scoped to that disk, so give each tenant its own disk.

AutoGen

AutoGen’s README says the project is in maintenance mode and points new users to Microsoft Agent Framework. If you still run AutoGen AgentChat, save_state() on an agent or team returns a dictionary that, per AutoGen’s docs, can be serialized to a file or written to a database. Write it as a JSON file under /mnt/archil, and call load_state() with it on the next machine. The one-writer rule below applies the same way.

One writer at a time

By default, a mount takes exclusive access to the disk, so a second machine can’t mount it for writing while the first one has it, and two machines can’t resume the same workflow at once. A second archil mount while the disk is mounted elsewhere stops with a message about revoking the other client’s delegations. To run many workflows at once, give each workflow, tenant or task its own disk. For checkpoints that many processes share, use CosmosCheckpointStorage, and keep the files on the disk.

Next steps

Agent frameworks

What LangGraph, CrewAI and the OpenAI Agents SDK keep in files.

Temporal

Durable workflows, with each activity in its own sandbox and its files on a disk.

Sharing disks

Exclusive, shared and conditional mounts.

Per-tenant storage

One disk per tenant, provisioned through the API.