TRANSMISSION // 2612.05288v1
Perdura gives AI agents a runtime memory for task state
Source published
A CodeAct harness keeps track of calls, program values and unfinished work, aiming to reduce repeated model effort and restore task state after interruptions.

Language-model agents can spend effort reconstructing what they already did. Perdura tests a different approach: let the model choose actions while software around it maintains a durable record of the task’s state.
An AI agent that works through many steps needs more than a record of its conversation. It also needs to know what earlier actions accomplished, which values it computed and what work is still waiting. Many agent systems store a transcript and rely on the model to reconstruct that information from text. The authors of Perdura: The Model Decides, the Runtime Keeps State propose assigning that bookkeeping to the software runtime instead.
Their central distinction is between deciding and keeping track. The model still chooses what to do next. The runtime—the software that executes the model’s actions—maintains task state and presents a useful view of it at each step. The researchers built Perdura around CodeAct, where the model’s actions are executable code. In that setting, the state created by the code can be treated as the state of a running program.
A ledger, a namespace and a to-do list
Perdura organizes task state into three connected parts. An execution ledger records calls made by the agent and whether their outcomes are known. A persistent namespace keeps program values and functions available across steps. A work lifecycle tracks commitments, including tasks waiting for an event or result. Together, these are saved as one state, rather than separate records that might disagree after a restart.
The runtime builds the model’s next context from that state. It can show recent actions, changed variables, open work and new messages without asking the model to reread the entire history. For example, an agent monitoring a repository can register a wait for its star count to reach a target. Instead of repeatedly asking the model to check the page, the runtime can suspend the agent and wake it when the condition is met.
The design also addresses a tricky failure case: an outside service may complete an action just as the agent’s runtime stops, leaving no reply to confirm what happened. Perdura records a call before sending it. If the runtime later finds that the call was in progress but its outcome was never recorded, it marks the result as uncertain and does not send the call again automatically. The runtime does not probe the provider to find out what happened. The model may decide to seek verification or retry, but the system does not guarantee that either option is safe or that the outcome can be resolved. This matters when repeating an action, such as a money transfer, could have consequences.
Tests across benchmarks and interruptions
The researchers compared Perdura with four existing agent harnesses: Claude Code, Codex, Hermes and OpenClaw. They used two base models and four benchmarks covering general computer tasks, tool use with errors, long conversations and asynchronous browser monitoring. Each model–benchmark result was averaged over three independent runs. The authors report that Perdura was on the score–cost Pareto frontier in seven of the eight settings. In plain language, it was not beaten on both score and cost in those settings; this does not mean it had the top score everywhere.
They also removed three Perdura features one at a time: its persistent namespace, work tracking and state-based context projection. On selected benchmark subsets, scores remained within run-to-run variation, while costs rose by 11% to 38%. The authors interpret this as the model taking on work the removed feature had handled—for example, polling during waits or rebuilding values from earlier steps. These ablation results suggest a cost difference in the tested setup, not that every agent or task would benefit by the same amount.
For recovery, the team deliberately stopped the runtime at five points in controlled tasks involving transfers and reports, then restarted it from stored state. Across those 15 injections, the reported outcomes matched the specific protections the tests were designed to examine: calls were not repeated and completed steps were not replayed. All 18 trials, including three without an interruption, ended correctly. In the transfer case, the agent reported an uncertain outcome rather than risking a duplicate. These tests cover process loss at selected points in two tasks; they do not establish broad recovery from failures in real deployments.
What the evidence can—and cannot—show
The study tests two models, four benchmarks and three runs per model–benchmark setting, with ablations on selected subsets. The statistical comparisons against the strongest-scoring baseline were mixed: Perdura was classified as superior in one setting, non-inferior in three and inconclusive in four. Its runtime also made some tasks slower; the paper notes that running steps in a sandbox added time in ToolMaze. The authors describe Perdura as an early implementation and say its speed and the way it presents state to models could be improved.
The results support a narrower conclusion than “agents should always use this design.” In these experiments, maintaining state in a runtime could reduce repeated model work while preserving benchmark scores. The process-loss experiments show the specified behaviors in two controlled tasks under selected interruption points. Whether the approach pays off elsewhere will depend on the workload, the model and the runtime’s implementation.
The source is an arXiv preprint, so its findings should be treated as preliminary rather than as settled evidence. The paper provides a code link, but the link alone does not establish how complete or reproducible the implementation is.
- AI agents
- language models
- agent harness
- CodeAct
- runtime state
- fault recovery
- LLM efficiency
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Wactorz: Long-Lived AI Agents at the Edge
Shared method: Both systems keep agent state outside the model’s immediate interaction context and use it to continue after interruption: Perdura saves and restores a ledger of calls, program values and unfinished work, while Wactorz restarts an actor with persisted state. Their recovery designs and guarantees differ; Perdura reports fault-injection tests, whereas the cited Wactorz material describes its runtime and demonstration.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.05288v1 — Original paper
Excerpt reference:
static/papers/2612.05288v1.md:97-222
Basis: Paper text
Source file SHA-256:338c807ddbc3ebbb2d1473fd404b79d7daf1bf7c0f66826a2a91668179c8f33c2612.05288v1 — Original paper
Excerpt reference:
static/papers/2612.05288v1.md:949-1042
Basis: Paper text
Source file SHA-256:338c807ddbc3ebbb2d1473fd404b79d7daf1bf7c0f66826a2a91668179c8f33c2611.29619v1 — Original paper
Excerpt reference:
static/papers/2611.29619v1.md:87-165
Basis: Paper text
Source file SHA-256:b793ae03e177a6422e20e0ca755c64dde7298095ebd85dbe83e7e923e06b2fd82611.29619v1 — Original paper
Excerpt reference:
static/papers/2611.29619v1.md:166-230
Basis: Paper text
Source file SHA-256:b793ae03e177a6422e20e0ca755c64dde7298095ebd85dbe83e7e923e06b2fd8
What a Computer-Agent Harness Changed in One Test
Shared method: Both place task-state management in the harness rather than relying solely on the model: Perdura maintains an execution ledger and presents a projection, while the computer-use harness tracks task-wide facts and hidden progress signals alongside a bounded context. The state tracked and task domains differ, so this is a shared design approach, not evidence that either system’s results transfer to the other.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.05288v1 — Original paper
Excerpt reference:
static/papers/2612.05288v1.md:97-222
Basis: Paper text
Source file SHA-256:338c807ddbc3ebbb2d1473fd404b79d7daf1bf7c0f66826a2a91668179c8f33c2611.36988v1 — Original paper
Excerpt reference:
static/papers/2611.36988v1.md:68-103
Basis: Paper text
Source file SHA-256:cd2bf4c9f6bbfcaed6fd16a5a3b83f37cd97561c1acdd23a4e5d9c3b2bc063732611.36988v1 — Original paper
Excerpt reference:
static/papers/2611.36988v1.md:143-260
Basis: Paper text
Source file SHA-256:cd2bf4c9f6bbfcaed6fd16a5a3b83f37cd97561c1acdd23a4e5d9c3b2bc06373
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Verified tool-health snapshots improve AI agents’ first choices in controlled tests
Source published
Shared keywords: ai agents
Copula targets the trade-off in reusing AI-agent results
Source published
Shared keywords: ai agents, llm efficiency
A runtime memory strategy could help AI agents serve more tasks
Source published
Shared keywords: ai agents
BoxBox lets coding agents revise their tools during software optimization
Source published
Shared keywords: agent harness
Delegent cuts AI-agent costs by handing off the legwork
Source published
Shared keywords: ai agents