arXiv:2610.16725cs.AIOct 2026

Manuscript Offprint

arXiv:2610.16725

Trace-to-Architecture: Capability Bottleneck Diagnosis for Harness Revision

Wenfeng Wang, Jianrui Shi, Mingang Guo, Jiayuan Ma, Yuqi Lu, Jiajun Sun, Guojiang Zhao, Jing Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Improving an LLM agent requires knowing what to change when it fails. Similar failures can require different fixes, and resolving one problem can expose another. We introduce Trace-to-Architecture (T2A), a framework that uses execution trajectories to determine what to change in an agent's harness and when those changes apply. A development agent diagnoses failures using execution evidence from successful and failed tasks, revises the corresponding harness components, and then checks whether target tasks improve, selected successful tasks remain successful, and the edits are actually triggered. New execution evidence guides subsequent diagnosis and revision. Across ALFWorld, ScienceWorld, and AppWorld, T2A achieves the highest aggregate score for all three evaluated task agents, exceeding their respective strongest baselines by 6.2–30.3 points. We also integrate T2A's diagnosis and validation procedures into MetaHarness, improving the resulting harnesses' mean ScienceWorld score by 21.6 points from the same starting harness.

1 Introduction

Recursive self-improvement (RSI) aims to let agents turn accumulated experience into lasting improvements in their capabilities and in how they pursue further improvement (Zelikman et al., 2024; Zhang et al., 2026b; Duan et al., 2026; Zheng et al., 2026). For agents built around a large language model (LLM), one practical route is to revise the agent harness: components such as prompts, context management, stored memory, and tool interfaces. These components govern how the model interacts with its environment. Revising the harness can improve an agent's task performance without updating model weights. MetaRSI incorporates such revisions alongside changes to data and model parameters (Tan et al., 2026), while other systems automate harness revision using execution feedback (Lee et al., 2026; Zhang et al., 2026a; Xia et al., 2026). SoL-Pi further demonstrates how improvements to execution and context handling can reduce inference cost (Liu et al., 2026).

Optimizing a harness requires choosing among these options based on the current execution problems. Task outcomes alone provide limited guidance for this decision. Similar failures may arise from causes such as missing knowledge, failed delivery of memory, or inadequate execution rules, each requiring a different revision. Fixing one problem can also expose another or disrupt previously successful behavior. Records of model inputs and outputs, actions, and environment feedback help distinguish these causes (Barke et al., 2026; Chen et al., 2026b). Effective harness revision therefore requires checking diagnoses across related tasks, validating the effects of edits, and using new execution evidence to identify the next problem to address.

To this end, we introduce Trace-to-Architecture (T2A), a framework for identifying what to change in a harness and checking whether those changes address the diagnosed failures. Within T2A, a task agent runs tasks under the current harness. A development agent compares related successful and failed execution trajectories to identify failure causes and determine which harness components to change and when those changes apply. Before evaluation, the agent

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

records acceptance conditions covering target-task improvement, preservation of selected successful tasks, and execution evidence that the edits were triggered. All three are required for acceptance. Changes that pass validation are retained, and new execution trajectories help identify the next problems to address.

We evaluate T2A with three task agents in ALFWorld for household tasks, ScienceWorld for scientific experiments, and AppWorld for cross-application tasks (Shridhar et al., 2021; Wang et al., 2022; Trivedi et al., 2024). T2A achieves the highest aggregate score across these environments for each task agent among the evaluated methods. With the starting harness and MetaHarness's outer evaluation and selection procedure fixed, integrating T2A's diagnosis and validation requirements raises the resulting harnesses' mean ScienceWorld score by 21.6 points.

References (52)