arXiv:2610.13075cs.AIOct 2026

Manuscript Offprint

arXiv:2610.13075

LongHarness: Advancing Agentic Reasoning over 100M-Token Corpora via Stateful Evidence Management

Songtao Huang, Zhijie Zhong, Xiaohan He, Shuaiyu Zhang, Zhiyin Yu, Li Kang, Heng Zhou, Yutao Fan, Xiangchao Yan, Bo Zhang, Shiyang Feng

Songtao Huang 1,2^{1,2}, Zhijie Zhong 2,4^{2,4}, Xiaohan He 1,2^{1,2}, Shuaiyu Zhang 1,2^{1,2}, Zhiyin Yu 2,3^{2,3}, Li Kang 2,4^{2,4}, Heng Zhou 2,5^{2,5}, Yutao Fan 2,6^{2,6}, Xiangchao Yan 2^{2}, Bo Zhang 2^{2}, Shiyang Feng 2,∗^{2,*}

1^{1}Fudan University 2^{2}Shanghai Artificial Intelligence Laboratory 3^{3}Peking University 4^{4}Shanghai Jiaotong University 5^{5}University of Science and Technology of China 6^{6}Harbin Institute of Technology

∗^{*}Corresponding author

Corpus-level long-context reasoning requires agents to acquire and integrate evidence across document collections that exceed their context windows. Existing agent harnesses enable incremental access to these corpora, but acquired evidence and evolving conclusions often remain entangled in a growing interaction history. This implicit state management can lead to two coupled failure modes: unbounded exploration, where retrieval expands the interaction history without resolving decision-relevant information gaps, and evidence-state drift, where previously acquired evidence or subsequent corrections fail to inform the current conclusion. We present LONGHARNESS, a model-agnostic harness that makes the interaction between acquired evidence and evolving conclusions explicit. Its core mechanism, Evidence-Conclusion Coevolution, uses unresolved conclusions to guide exploration toward missing information, while newly acquired evidence strengthens or revises the conclusions that directed the search. LONGHARNESS couples this process with Evidence Lifecycle Management, which keeps accumulated evidence current and traceable throughout the interaction. Together, these mechanisms focus retrieval on remaining information needs and keep conclusions aligned with current evidence. We evaluate LONGHARNESS on OfficeQA Pro V1 and V2, AA-LCR, and LongBench v2 using GLM-5.3-Flash and Qwen3.8-Flash. Compared with direct reasoning using the same backbone, LONGHARNESS improves GLM-5.3-Flash exact match on OfficeQA Pro from 15.8% to 60.2% on V1 and from 4.4% to 61.1% on V2. Against state-of-the-art agent harnesses, it surpasses Claude Code by 12.0 percentage points on V1 and Codex by 18.9 points on V2. With Qwen3.8-Flash, LONGHARNESS reaches 61.7% on V1, outperforming Claude Code by 8.3 points and Codex by 12.0 points.

Contact: huangsongtao@pjlab.org.cn fengshiyang@pjlab.org.cn

Figure

Retrieve & retain

OfficeQA Pro

Direct LLMs

V1

GLM-5.3-Flash

15.8

DeepSeek-V4-Pro-0813

16.5

K Kimi-K3

23.2

GPT-5.6-Sol

19.6

GLM-5.3-Flash + harness

  • Codex

46.6

  • Claude Code

48.1

  • LongHarness

60.2

0

20

40

60

Exact accuracy (%)

V2

4.4

3.3

4.8

5.6

42.2

35.6

61.1

0

20

40

60

Figure 1 Evidence lifecycle management for corpus-level long-context reasoning. The left panel illustrates how an agent loses an earlier constraint and continues searching, while LONGHARNESS retains the evidence, uses an unresolved conclusion to guide retrieval, and revises its decision when new evidence arrives. The right panel compares exact accuracy (%) on OfficeQA Pro V1 and V2 for direct models and agent harnesses using GLM-5.3-Flash.

1 Introduction

Real-world document questions often require evidence scattered across large, evolving document collections. Corpus-level long-context reasoning requires agents to locate and integrate this evidence even when the collection exceeds their context windows. Longer windows expand the material available within a single invocation (Gemini Team, 2024; Yang et al., 2025b; Shang et al., 2025), but models remain sensitive to evidence position and distractors even when the relevant content fits (Liu et al., 2024; Hsieh et al., 2024; Ling et al., 2025; Zhuang et al., 2025a). Agents must therefore search selectively, read relevant passages, and accumulate evidence across multiple interactions. As these interactions unfold, the challenge extends from finding evidence to keeping it usable, revising it when needed, and carrying it into the final decision.

We view this process at three levels. Evidence retrieval (Level 1) locates relevant passages while filtering distractors. Evidence editing (Level 2) selects, reconciles, and revises retrieved content. Evidence transformation (Level 3) turns the resulting evidence into an answer. Training methods supervise retrieval trajectories and memory edits (Lin et al., 2026b; Chen et al., 2026; Wang et al., 2025; Gao and Marttinen, 2026), while agent harnesses enable adaptive document access and persistent storage (Cao et al., 2026; Chen et al., 2023; Lee et al., 2024; Zhao et al., 2024; Packer et al., 2024; Karten et al., 2026; Yu et al., 2026). These advances strengthen evidence acquisition and maintenance, yet the transition from accumulated evidence to an evolving conclusion often remains implicit. The conclusions that determine what to search for next and what answer to produce remain embedded in session history, free-form notes, or transient reasoning.

At corpus scale, this implicit transition can lead to two coupled failure modes. (i) Unbounded exploration occurs when retrieval continues without resolving decision-relevant information gaps, potentially exhausting the interaction budget. (ii) Evidence-state drift occurs when previously acquired evidence or later corrections become disconnected from subsequent reasoning, leaving the final decision based on stale or incomplete evidence. These failures can reinforce each other as drift obscures which information needs have already been resolved, prompting further retrieval that expands the history and makes relevant evidence harder to recover.

We introduce LONGHARNESS, a model-agnostic harness that maintains source-linked evidence and evolving conclusions as coupled persistent states. Unresolved conclusion gaps guide subsequent search and reading, while accepted evidence informs revisions to the conclusions and their remaining gaps. Its core mechanism, Evidence–Conclusion Coevolution, uses unresolved conclusions to guide exploration toward missing information, while newly acquired evidence strengthens or revises the conclusions that directed the search. By making the remaining information needs explicit, this feedback directs retrieval toward gaps that matter to the decision and helps curb unbounded exploration. LONGHARNESS couples this loop with Evidence Lifecycle Management, which keeps accumulated evidence current and traceable throughout the interaction. The EVIDENCEBANK retains source-linked statements and tracks which remain active throughout the evidence lifecycle, helping reduce evidence-state drift by keeping the basis for subsequent reasoning aligned with the latest findings.

We evaluate LONGHARNESS on OfficeQA Pro V1 and V2, AA-LCR, and the LongBench v2 Long subset using GLM-5.3-Flash and Qwen3.8-Flash. OfficeQA Pro requires reasoning over roughly 100M tokens in V1, while V2 doubles the corpus and introduces more demanding compositional questions. Compared with direct reasoning using the same backbone, LONGHARNESS raises GLM-5.3-Flash exact match from 15.8% to 60.2% on V1 and from 4.4% to 61.1% on V2. Against state-of-the-art agent harnesses, it surpasses Claude Code by 12.0 percentage points on V1 and Codex by 18.9 points on V2. With Qwen3.8-Flash, it reaches 61.7% on V1, outperforming Claude Code by 8.3 points and Codex by 12.0 points. Trajectory analysis with GLM-5.3-Flash further connects these gains to evidence management, with V2 success rates exceeding the stronger of Claude Code and Codex at each stage by 11.1 points in retrieval, 2.7 in evidence editing, and 9.3 in transformation. Our contributions are summarized as follows.

  • We formulate corpus-level long-context reasoning as evidence lifecycle management, viewing the construction and continual refinement of the evidence supporting a decision as the central reasoning process. This perspective unifies evidence retrieval, editing, and transformation through the evolving role of evidence in decision-making.

• We develop LONGHARNESS, a model-agnostic harness that operationalizes this formulation through Evidence–Conclusion Coevolution and Evidence Lifecycle Management. It maintains evidence and conclusions as coupled persistent runtime states, allowing unresolved conclusions to direct evidence acquisition and newly acquired evidence to revise those conclusions, while an EVIDENCEBANK explicitly controls the evidence lifecycle and preserves the sources of active evidence.

  • We evaluate LONGHARNESS on corpus-level reasoning over roughly 100M-token and doubled document collections, together with provided-context benchmarks, using two model backbones. With GLM-5.3-Flash, LONGHARNESS outperforms Claude Code by 12.0 percentage points on OfficeQA Pro V1 and Codex by 18.9 points on V2, while ablations and trajectory analyses reveal the contributions of conclusion-guided exploration and evidence lifecycle management.