MSTRMND
All insights
Infrastructure · 5 min read

Checkpoint the work, not the conversation.

Long-running agents fail mid-task, and a transcript is a poor place to resume from. We keep durable task state outside the model so work can stop, wait, and pick up without repeating itself.

Short agent tasks hide a hard problem. When a job takes a few seconds, a failure means running it again. When a job takes an afternoon, spans dozens of tool calls, and pauses for a person to approve a step, failure stops being an edge case. Processes restart. Providers time out. A deploy rolls the worker that was halfway through. The question is no longer whether the agent will be interrupted, but what it knows when it comes back.

The common answer is the transcript. Save the conversation, reload it, and let the model read its way back to where it was. That works until it doesn't. The transcript records what was said, not what was done, and an agent reconstructing its progress from its own prose will eventually get it wrong. We treat task progress as durable state that lives outside the model, and we design every long-running agent so it can stop at any point and resume without guessing.

The context window is not state

A context window is a working surface. It is truncated, summarized, and rebuilt as a task grows. Anything that only exists there is one compaction away from being lost or paraphrased into something slightly different.

Our rule is simple: if the system would need it to resume, it does not live only in the context. The goal, the plan, the steps completed, the artifacts produced, and the approvals granted are written to a store the harness owns. The model reads from that store when it starts or resumes. It does not have to remember its own history, because the history is not its job to keep.

Record outcomes, not narration

A useful checkpoint answers concrete questions. Which steps are done? What did each one produce? Where is that output stored? What is the next step, and what does it depend on?

Narration answers none of these reliably. "I've updated the config and I'm about to run the tests" tells a resuming agent what it intended, not whether the config change was saved or the tests ever started. So we write checkpoints as structured records at step boundaries: the step, its inputs, its result, and a pointer to any artifact. The transcript is kept for people who want to read it. The checkpoint is what the system trusts.

Every side effect gets a receipt

The dangerous moment in a resume is the step that might have half-happened. The agent sent a request, the process died, and nobody knows whether the email went out, the file was written, or the record was created.

We design side-effecting steps to leave a receipt before and after they run. Before: an intent record with a unique key for this exact action. After: the result, or the identifier the external system returned. On resume, the harness checks the receipt instead of asking the model. If the action completed, it is not repeated. If the outcome is unknown, the system checks the external state where it can, and otherwise stops and asks a person. Sending something twice is a worse failure than pausing to confirm it was sent once.

Waiting is a state, too

Human approval gates turn agents into long-running processes even when the work itself is short. A request goes out, and the answer comes back in a minute or the next morning. Holding a model session open for that is wasteful and fragile.

We model a pending approval as a first-class state in the task record: what is being asked, the exact action it would authorize, and everything needed to carry it out. The agent can exit entirely. When the answer arrives, the task resumes from the record. An approval applies to the action it was granted for, so if the plan changed while the task was waiting, the request is stale and has to be asked again.

Resume should be boring

A good resume path does very little. It loads the task record, verifies the last completed step, reconciles any open receipts, and continues with the next step. It does not re-plan from scratch, re-read every source, or ask the model to infer where it was.

We test this path on purpose. Interrupting a task at each step boundary and resuming it is a cheap way to find steps that are not safe to repeat, artifacts that were never recorded, and plans that quietly depended on something in the context. If a task cannot survive a restart in testing, it will not survive one in production.

Checkpoints outlive the model

Because progress lives outside the model, the model can change between steps without losing the work. A task started on one provider can resume on another after an outage. A task can be handed to a different agent with the record as the starting point, not a transcript it has to interpret.

This is the same principle that runs through the rest of the operating layer. The model does the reasoning. The system keeps the state, the permissions, and the record of what happened. When those live in the layer you own, the model becomes a component you can replace, not a place your work is trapped.

What this costs

Durable task state adds structure. Steps need clear boundaries. Side effects need keys and receipts. Some tasks that felt natural as one long conversation have to be broken into stages a person can inspect. Writing and reading checkpoints adds latency.

We think the trade is correct. An agent that can be interrupted at any point and pick up exactly where it left off is one people can trust with work that takes longer than a single session. The conversation is how the agent thinks. The checkpoint is how the work survives.

03—Let's talk

Ready to build what's next?

We're always open to new conversations. Let's create something exceptional together.

Start the conversation