Zhuoyun Du 杜卓耘

Research Synthesis

Long-Horizon Agents Need Long-Lived State, Not Just Long Context

A larger context window lets an agent read more at once. It does not automatically give the agent a durable workspace, a trustworthy evidence trail, or the ability to revise one part without damaging the rest.

Long-horizon tasks are often framed as a context-length problem: collect more evidence, keep a longer history, and let the model reason over all of it. But a serious research task is not one enormous prompt. It is a changing body of evidence, plans, drafts, citations, open questions, and edits. The agent must preserve this state across many operations and revisit only the relevant part at each step. More tokens help, but the missing primitive is often a long-lived workspace.

A context window is not a workspace

Context is what the model can attend to during one inference. A workspace is what the system can preserve, organize, inspect, and modify across inferences. The difference becomes decisive once the task exceeds a single generation.

Compressing old observations into summaries may free tokens, but compression is lossy and difficult to audit. Important caveats disappear, citations become detached from claims, and the model cannot recover a detail that the summarizer decided was unimportant. Repeatedly placing the entire history in context has the opposite problem: cost grows, relevant evidence becomes harder to locate, and every update asks the model to reinterpret everything.

Long context answers "how much can I read now?"

Long-lived state answers different questions: What have I established? Where did it come from? What remains unresolved? Which artifact should change next? What must remain unchanged?

The file system as external working state

FS-Researcher makes this distinction concrete. It uses a persistent file-system workspace shared by two agents. A Context Builder searches the web, archives raw pages, writes cited notes into a hierarchical knowledge base, and maintains an index, checklist, and progress log. A Report Writer later reads the resulting workspace and writes the final report section by section.

Artifact Role Failure it prevents
index.md Research decomposition and map of the knowledge base Searching without a stable problem structure
Structured notes Distilled claims organized by topic Re-reading every source for every section
Archived sources Raw evidence behind the notes Unsupported claims and citation drift
Checklists and logs Open gaps, conflicts, and completed work Losing task progress between sessions
report.md Deliverable assembled from the evidence base Mixing raw browsing with final synthesis

The file system is useful not because files are inherently intelligent, but because they make state explicit. The agent can inspect a directory, select one note, compare it with its source, update a checklist, and leave the rest untouched. Information is addressed by name and structure rather than reconstructed from conversational memory.

Separate evidence construction from synthesis

FS-Researcher removes web-browsing tools when the Report Writer begins. The writer must treat the curated knowledge base as its factual source. This constraint prevents a common failure mode in which the agent searches, forms a premature thesis, and selectively gathers only enough evidence to continue writing.

The separation creates two different optimization problems:

  • Context construction: maximize coverage, provenance, conflict detection, and the usefulness of intermediate notes.
  • Report construction: maximize argument quality, organization, instruction following, and faithful use of the prepared evidence.

In the paper's ablations, merging browsing and writing into one agent produced the largest degradation: the overall RACE score fell from 52.76 to 42.41, including drops of 16.89 points in Insight and 11.06 in Comprehensiveness. Removing the persistent workspace while retaining iterative work also hurt performance, reducing RACE from 52.76 to 48.69. These results suggest that the gains come from the structure of the work, not merely from calling the model more times.

Test-time scaling through state growth

Test-time scaling is often associated with sampling more answers and selecting the best one. A workspace enables another form: allocate additional computation to improving the state on which the final answer will depend.

FS-Researcher varies the Context Builder budget across 3, 5, and 10 rounds. More rounds produce more sources, more cited material, and generally stronger reports. On the sampled DeepResearch Bench tasks, the average citation count grew from 18.5 to 26.8 to 37.1 across those budgets. The extra work is not hidden inside an increasingly long scratchpad; it accumulates as inspectable artifacts that later sessions can reuse.

This changes how scaling should be measured. The relevant quantity is not only inference tokens. We should also ask whether more compute leaves the workspace more complete, better sourced, easier to navigate, and more useful to the next agent. A durable intermediate state turns additional computation into cumulative progress.

Revision exposes the same missing primitive

Research does not end with the first report. A user may ask to add one missing argument, restructure a section, or correct a citation. Beyond Single-shot Writing evaluates this setting with Mr Dre, a suite for multi-turn report revision across comprehensiveness, factuality, and presentation.

The tested agents usually incorporated the requested feedback, yet they also regressed on 16-27% of content that had previously been covered. A local request could delete an unrelated argument, weaken a citation, or undo an earlier improvement. Prompting the agent to plan edits and assigning a dedicated reviser helped but did not eliminate the problem.

This is not simply a writing failure. It is a state-management failure. If the only representation of the document is a large sequence that the model regenerates, every revision risks becoming an uncontrolled global rewrite. Reliable revision requires a stronger contract:

  • identify the exact region affected by feedback;
  • represent unaffected claims as invariants;
  • apply a local patch rather than regenerate the document;
  • re-run citation and coverage checks after the patch;
  • retain a diff so regressions can be detected and reversed.

Incorporation is not preservation

An agent can satisfy the new instruction while making the artifact worse overall. Multi-turn reliability requires measuring what changed unintentionally, not only whether the latest request appears in the output.

Design principles for durable agents

1. Externalize state into typed artifacts

Plans, evidence, open questions, drafts, and evaluation results have different semantics. Store them separately instead of flattening everything into one conversation transcript. Types make it clearer which operations are valid and which checks should run after an update.

2. Preserve provenance at the smallest useful unit

A bibliography at the end of a report is not enough. Claims and notes should point back to the specific source that supports them. Fine-grained provenance lets a later agent update one fact without reopening the entire research process.

3. Prefer local transformations over global regeneration

The system should express an edit as a patch with a target and a bounded scope. This reduces collateral change and makes verification proportional to the edit. Whole-document rewriting should be an explicit operation, not the default behavior of every revision.

4. Make invariants executable

"Do not remove existing citations" is a useful instruction, but a post-edit citation check is stronger. Durable agents need validators for link integrity, coverage, schema, tests, or any other property that should survive repeated work.

5. Separate roles when their information needs conflict

An evidence collector benefits from broad exploration; a final writer benefits from a bounded, trustworthy corpus. A reviser needs the requested change and the document invariants; it may not need unrestricted browsing. Role separation should follow information boundaries, not a desire to add more agents.

6. Evaluate trajectories of artifacts

A final snapshot hides whether the system repeatedly broke and repaired the same section. Evaluation should track artifact quality over time: coverage gained, correct material lost, citations preserved, conflicts resolved, and cost per durable improvement.

Takeaways

  • Context and state are different resources. Context supports immediate attention; state supports cumulative work.
  • Artifacts turn computation into progress. More test-time work is valuable when it leaves behind a better evidence base, not only a longer hidden trace.
  • Provenance is part of memory. Remembering a claim without remembering why it is trusted is insufficient for research.
  • Revision requires invariance. A reliable agent must preserve correct, unrelated content while applying local feedback.
  • Agent architecture is workflow design. Roles, tools, and permissions should reflect the different phases through which state becomes a deliverable.

Long-horizon agents will certainly benefit from larger models and longer contexts. But the systems that remain reliable across hours, sessions, and revisions will also need something more ordinary and more fundamental: a durable place to put their work.

Sources

  1. Chiwei Zhu et al. FS-Researcher: Test-Time Scaling for Long-Horizon Research Tasks with File-System-Based Agents. 2026.
  2. Bingsen Chen et al. Beyond Single-shot Writing: Deep Research Agents are Unreliable at Multi-turn Report Revision. 2026.
  3. Prateek Chhikara et al. Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory. 2025.
  4. My notes on FS-Researcher.
  5. My notes on multi-turn report revision.

This article synthesizes the two papers around a shared systems question: how an agent can preserve and improve work across a long sequence of actions.

Read ... times