ContextWeave: A Real-World Workflow Benchmark

Bo Wang, Yuqian Yao, Enxi Wang, Luozhijie Jin, Yang Liu, Yiran Suo, Yuxuan Cai, Enyu Zhou, Yufei Gao, Honglin Guo, Tianyu Huai, Li Ji, Zhikai Lei, Bufan Li, Lizhi Lin, Jinxiu Liu, Jie Yang, Jiazheng Zhou, Maosen Zhou, Pengfang Qian, Shichun Liu, Guanshan Liu, Hao Zheng, Yunhao Yu, Hang Yan, Jihua Kang, Xinchi Chen, Xipeng QiuarXiv 2026

TL;DR

ContextWeave is a new longitudinal benchmark designed to evaluate language agent memory systems based on how well they improve downstream performance in realistic, multi-month office workflows. By transforming real-world user logs into 1,005 executable tasks within containerized environments, the benchmark demonstrates that while experience-rich memory significantly boosts task completion and user preference alignment, it also increases the risk of agents being misled by irrelevant or hallucinated recall.

What Problem Does This Paper Address?

As Large Language Model (LLM) agents transition from solving isolated, short-form tasks (like writing a single function or solving a math puzzle) to managing complex, long-horizon workflows, they face a fundamental bottleneck: bounded context windows. To maintain continuity across multiple work sessions, agents require robust memory systems.

However, existing memory benchmarks largely reduce the problem to simple information retrieval or question-answering (e.g., finding a "needle in a haystack" or answering questions about a past dialogue). They fail to measure whether recalled memories actually help an agent execute subsequent tasks more effectively. Furthermore, standard agent benchmarks treat tasks as independent episodes, completely missing the sparse, implicit, and highly user-specific dependencies that define real-world professional workflows.

Methods

The authors ground their evaluation protocol in an operational criterion: a useful memory system must measurably improve downstream task performance as a workflow progresses. To achieve this, they built a comprehensive data-processing pipeline to turn raw human activity logs into reproducible agent environments:

  1. Task Segmentation & Privacy Preservation: Multi-month user document histories are segmented into semantically coherent task units. A structure-preserving anonymization process strips out sensitive personal data and credentials while maintaining entity relationships and structural patterns.
  2. Task Reconstruction: LLMs infer goal-oriented instructions from document diffs. Missing context that a human would have had (e.g., informal meeting decisions or external API responses) is materialized as local files or emulated via interactive mock APIs.
  3. Trajectory Alignment: To prevent "execution drift"—where minor variations in early tasks accumulate and make later tasks impossible to evaluate consistently—the authors developed a method to rewrite agent trajectories. This aligns the environment state exactly with the real-world historical outcome, ensuring a stable, canonical starting point for every evaluation task.
Overview of the benchmark construction pipeline.

The evaluation relies on two primary outcome metrics: Workspace Score (verifying successful task completion inside a Docker container) and Preference Score (measuring alignment with participant-specific habits and styles), alongside diagnostic metrics tracking relevance, continuity, solvability, and hallucination robustness.

Datasets

The paper introduces ContextWeave, a longitudinal benchmark derived from the real-world collaborative workflows of 14 participants collected over multiple months. It consists of:

  • 1,005 executable tasks in total.
  • 568 core evaluation tasks (primary workflow tasks used for direct testing).
  • 437 background tasks retained in the historical sequence to maintain natural noise and contextual dependencies.

The tasks cover a diverse mix of real-world agent activities, including writing, data analysis, coding, planning, tool use, and debugging. The average message log size per task is 36.3K tokens, with the longest reaching 212.3K tokens.

Key Insights and Ideas

  • Memory as Workflow Continuation: Without recall, agents often produce outputs that look superficially complete but fail to preserve latent workspace states or user-specific practices. Memory is valuable not just for background knowledge, but for turning generic solutions into workflow-consistent, usable work.
  • Actionable In-Context Experience vs. Summarization: The closer the recalled history is to a concrete working example (In-Context Learning style), the more effective it is. Rich episodic memory retains the specific paths, constraints, and procedures needed to act, whereas compact summaries primarily preserve high-level conclusions.
  • The Actionability Trade-off: While experience-rich memory provides broader historical coverage and makes unresolved problems more solvable, it comes with a distinct downside: it makes agents significantly more vulnerable to misleading recall, causing them to overfit to past tasks or hallucinate constraints.

Key Results

  • Memory Component Gains: Under a fixed execution model (GPT-5.5), equipping the agent with the strongest memory configuration (a-mem, an ICL-style experience memory) raised the Workspace Score from 68.08 to 78.20 and the Preference Score from 41.50 to 70.60 compared to the no-recall baseline.
  • Cross-Model Generalization: When testing five different frontier models (DeepSeek-V4-Pro, GPT-5.5, GLM-5.1, Kimi-K2.6, and Qwen3.7-Max) with a fixed memory component (mem0), recall consistently improved both workspace and preference outcomes for every single model. DeepSeek achieved the largest absolute Workspace Score improvement (+5.61).
  • Behavioral Shifts: Productive memory usage fundamentally shifts how agents interact with tools. For instance, DeepSeek's exploration rate (searching/reading) decreased by 3.40 percentage points, while its execution rate (modifying/running code) increased by 3.26 points. Memory successfully reallocates agent effort from figuring out the environment to executing the task.

Limitations and Future Work

  • Rubric Calibration: The benchmark relies heavily on LLM-based grading for open-ended task quality. The authors note that continuous calibration against human judgment is required to ensure these automated rubrics remain perfectly aligned with human preferences.
  • Evaluation Cost: Running a complete benchmark evaluation is computationally expensive, costing approximately $200 per model-harness configuration. Developing smaller, scalable proxy subsets for rapid experimentation is highlighted as an immediate priority.
  • Domain and Observation Scope: ContextWeave currently covers a limited set of professional domains and participants. The authors hope to collaborate with open-source projects to expand the benchmark to include richer forms of observation and more diverse long-term dependency patterns.

Summary updated

BibTeX
@misc{wang2026contextweave,
  author = {Bo Wang and Yuqian Yao and Enxi Wang and Luozhijie Jin and Yang Liu and Yiran Suo and Yuxuan Cai and Enyu Zhou and Yufei Gao and Honglin Guo and Tianyu Huai and Li Ji and Zhikai Lei and Bufan Li and Lizhi Lin and Jinxiu Liu and Jie Yang and Jiazheng Zhou and Maosen Zhou and Pengfang Qian and Shichun Liu and Guanshan Liu and Hao Zheng and Yunhao Yu and Hang Yan and Jihua Kang and Xinchi Chen and Xipeng Qiu},
  title = {{ContextWeave: A Real-World Workflow Benchmark}},
  year = {2026},
  eprint = {2608.04830},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.04830},
}
Figure