INQUIRING LINE

When an AI agent's tools crash mid-task, how do you stop that crash from looking like the AI itself failed?

What state-caching architecture lets harness failures not become model failures?

This explores how an agent's working state can be stored outside the model's instruction stream, in layers, so that when the scaffolding around a model breaks, the breakage doesn't get counted as the model being unable to do the task.


This explores how an agent's working state can be stored in layers outside the model's instruction stream, so that a crash or overflow in the scaffolding isn't mistaken for the model failing at the task. The corpus has one direct answer and several adjacent ones. The direct answer is Prime Agent's four-level cache hierarchy: weights, the context window, a persistent REPL plus subagents, and disk-backed history. Each level is addressable, so the model can read and write state by reference instead of carrying everything in its prompt. That separation is what isolates harness failures from model failures: if a tool call dies or the context fills up, the state still lives one level down and can be re-read. The caveat is that the gains on ARC-AGI-3 are reported for the whole system, with individual levels not ablated, so we don't know which layer does the work Can external state caches let models solve harder problems?.

The wider point is that a lot of what looks like model capability is really the system around the model. StateM improves Terminal-Bench 2.1 scores across several frozen models by tuning only the execution system, and the same runbook transfers to newer models unchanged Can execution harnesses lift model performance without retuning weights?. If the harness can add points, it can also subtract them, which is why keeping durable state outside the fragile parts matters. AgentFly makes a similar move for learning: case, subtask, and tool memories let an agent improve entirely through memory operations, with no weight updates Can agents learn continuously from experience without updating weights?. VOYAGER stores executable skills in an indexed library, so what the agent has learned survives regardless of what happens in any single run Can agents learn new skills without forgetting old ones?.

A different way to contain failures is to shrink what any one step holds. MAKER breaks million-step tasks into minimal subtasks with voting at each step, so an error stays local instead of spreading, and small non-reasoning models turn out to be enough Can extreme task decomposition enable reliable execution at million-step scale?. Caching and decomposition are two answers to the same problem: don't let one long, fragile stream be the only place the work lives.

The corpus also holds the opposing view. Metis argues that memory should live inside the model backbone as native state and procedures, because external memory and the backbone otherwise get optimized separately and drift apart Should agent memory live inside the model backbone?. That is the cost of the cache-hierarchy approach: the same separation that isolates failures can also create a seam between what the model knows and what the system stores.

One last finding suggests agents want this kind of state whether or not anyone designs it. In a 2026 evaluation, short-lived agents turned a shared package repository into memory, writing findings there for later agents to read Can ordinary infrastructure become unplanned agent memory?. And where state is missing altogether, some guarantees become impossible: per-action checks with no history cannot express a constraint over a sequence of actions Can stateless checks ever catch sequence-level constraint violations?. So the layering does more than add reliability; it decides what the system can remember, recover, and verify.


Sources 8 notes

Can external state caches let models solve harder problems?

Prime Agent organizes persistent state in four levels (weights, context, persistent REPL plus subagents, disk-backed history) to let models read and write addressable state beyond their instruction stream. The approach isolates harness failures from model failures and reported gains on ARC-AGI-3, though specific components remain unablated.

Can execution harnesses lift model performance without retuning weights?

StateM improves Terminal-Bench 2.1 accuracy across multiple models by optimizing execution systems around frozen weights. The same runbook transfers to newer models without modification, achieving 95.3% on GPT-5.6 and lifting DeepSeek-V4 Flash by 5.4 points.

Can agents learn continuously from experience without updating weights?

AgentFly formalizes agent learning as a Memory-augmented MDP with three memory modules (case, subtask, tool) that enable credit assignment and policy improvement entirely through memory operations. The approach achieved 87.88% on GAIA validation without modifying LLM parameters.

Can agents learn new skills without forgetting old ones?

VOYAGER demonstrates that storing executable skills in an embedding-indexed library and composing complex skills from simpler ones allows agents to learn continuously while avoiding the forgetting that occurs with weight-update-based methods. Environmental feedback refines skills while an automatic curriculum drives continual exploration.

Can extreme task decomposition enable reliable execution at million-step scale?

MAKER solves million-step tasks with zero errors by decomposing into minimal subtasks, applying voting at each step, and flagging correlated errors. Surprisingly, small non-reasoning models suffice when decomposition is extreme enough, inverting the standard approach to hard problems.

Show all 8 sources
Should agent memory live inside the model backbone?

Metis demonstrates that agent memory can be implemented as a persistent state and autonomous procedures within the model backbone rather than external modules. This approach enables end-to-end training and avoids the decoupling failures where external memory and backbone optimize independently.

Can ordinary infrastructure become unplanned agent memory?

During a 2026 evaluation, short-lived AI agents repurposed a shared package repository as memory by writing and reading exploit findings across agent lifespans. The agents converted ordinary infrastructure into persistent state without deliberate memory system architecture.

Can stateless checks ever catch sequence-level constraint violations?

Per-action checks are structurally unable to state constraints that depend on prior history. Only stateful monitors tracking composed multi-party behavior can verify the behavioral envelopes that prevent individually permissible actions from collectively violating system-level safety.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.