Skip to content

TL;DR Multi-agent systems (MAS) show strong potential for complex task solving, but realizing this potential requires effective agent harnesses, which impose infrastructural constraints on execution and collaboration. Existing approaches rely on either manual design, which is labor-intensive and...

Authors: Xinyu Lin, Yufan Liu, Chen Xu et al.

Published: 2026-12-03

Categories: cs.CL, cs.AI, cs.MA

arXiv: 2611.38998

License: nonexclusive-distrib-1.0

PDF: download · download markdown

:material-format-quote: Cite this paper

@misc{arxiv_2611_38998,
  title        = {Multi-Agent Harness Optimization Across Node, Edge, and Graph},
  author       = {Xinyu Lin and Yufan Liu and Chen Xu and Denghong Luan and Yongqi Li and Fuli Feng and Wenjie Wang},
  year         = {2026},
  eprint       = {2611.38998},
  archivePrefix = {arXiv},
  url          = {https://arxiv.org/abs/2611.38998}
}

Preprint December 1, 2026

Multi-Agent Harness Optimization Across Node, Edge, and Graph

Xinyu Lin1,∗ , Yufan Liu2,∗ , Chen Xu3,† , Denghong Luan2 , Yongqi Li4 , Fuli Feng2 , Wenjie Wang2,†

Multi-agent systems (MAS) show strong potential for complex task solving, but realizing this potential requires effective agent harnesses, which impose infrastructural constraints on execution and collaboration. Existing approaches rely on either manual design, which is labor-intensive and task-dependent, or automatic generation, which can overlook inter-agent and group-level failures, while emphasizing the individual agent harness. Effective MAS harnesses must therefore cover individual execution (i.e., node), inter-agent collaboration (i.e., edge), and group coordination (i.e., graph). However, directly extending the automatic optimization loop of failure diagnosis and constraint generation across these levels introduces two challenges: failure diagnosis duplication, where one underlying failure is repeatedly diagnosed through its propagated symptoms, and constraint candidate explosion, where numerous proposed repairs incur excessive execution costs. We propose MASH, a framework for efficient MAS harness optimization across all three levels. MASH performs structured failure diagnosis by tracing observed symptoms to shared gaps between the information a decision requires and receives, reducing redundant diagnoses and repeated repairs. It then generates coordinated cross-level constraints grounded in each diagnosed failure and applies progressively more expensive quality checks to filter weak candidates before they enter the next optimization round. Experiments across four benchmarks and four MAS topologies demonstrate that MASH consistently outperforms the evaluated baselines, supporting the effectiveness of harness optimization tailored to multi-agent execution. The code is available here.

Correspondence: Chen Xu, Wenjie Wang

Code: https://github.com/GeniusNew/MASH\_code\_public

1 Introduction

Multi-agent systems (MAS) achieve strong task-solving capability by dividing work across specialized agents and executing in parallel, showcasing remarkable performance on tasks such as programming Hong et al., 2024; Qian et al., 2024, mathematical reasoning Du et al., 2024; Chen et al., 2024, and deep research Hadfield et al., 2025; Câmara et al., 2026. However, their performance depends not only on the capabilities of individual models, but also on the agent harness, i.e., the infrastructural constraints governing tool use, information exchange, and execution control Wu et al., 2023. Inadequate constraints can prevent otherwise capable agents from working effectively together, leading to failures in execution, collaboration, and verification Cemri et al., 2025; Ning et al., 2026. Therefore, it is essential to build an effective MAS harness, unleashing the full potential of MAS and facilitating real-world applications.

Recent research typically achieves harness (i.e., infrastructural constraints) construction through an iterative optimization loop Lee et al., 2026b; Lin et al., 2026; Chen et al., 2026b; Zhang et al., 2026b as shown in Figure 1a). Specifically, given an agent task (e.g., deep research), the optimization loop typically contains three steps: 1) task execution, which runs agents under each proposed infrastructural constraint and collects trajectories1 . Based on execution results, useful constraints are incorporated into the harness. 2) failure diagnosis, which examines the collected trajectories to diagnose infrastructural failures (e.g., evidence lost

1National University of Singapore 2University of Science and Technology of China

3Carnegie Mellon University 4The Hong Kong Polytechnic University

∗Equal contribution †Corresponding authors

1 In the initial optimization round, agents execute under the original harness.

Figure 1 Motivation for MAS harness optimization. (a) Extending optimization to MAS introduces redundant diagnosis and more constraint candidates, increasing execution costs. (b) MAS execution spans node, edge, and graph levels with inter-agent information exchange. (c) On Finance-Agent, existing harness optimization is less effective at addressing edge- and graph-level failures than node-level failures.

during agent handoffs) and determine whether the proposed constraints address them; 3) constraint generation, which proposes new constraints based on the diagnosed failures. With the generated constraints, it then goes back to the first step (i.e., task execution) for next-round optimization.

Despite their effectiveness, existing automatic harness-construction methods fail to generalize well to MAS, yielding only partial harnesses. Specifically, existing methods primarily diagnose failures and generate constraints around an individual agent's interaction with its environment. Yet, MAS execution involves three levels, including single-agent execution (i.e., node), inter-agent collaboration (i.e., edge), and agent group coordination (i.e., graph). Directly applying existing methods can over-emphasize the constraints on single-agent execution, thus leaving failures in edge and graph levels unfixed (see Figure 1 for empirical evidence). Therefore, it is essential to build infrastructural constraints for MAS explicitly across the node, edge, and graph levels.

A natural solution is to explicitly diagnose failures across the three levels and then propose level-specific constraints. However, in MAS, interactions among agents allow a node-level failure to propagate to the edge and graph levels. Diagnosing these failures can produce repeated diagnoses and similar constraint candidates that target the same underlying issue. The key is therefore to retain a small set of high-quality candidates while eliminating redundant or ineffective ones. To achieve this, we posit two principles for failure diagnosis and constraint generation steps, respectively: 1) Failure deduplication, which aims to reduce repeated diagnoses that may generate similar constraints. Repeated diagnoses arising from failure propagation can yield similar constraint candidates, each requiring a separate MAS execution to collect trajectories for the next round. This wastes computation on the same underlying issue. It is therefore important to merge diagnoses that share a root cause, retaining one diagnosis per distinct cause. 2) Constraint candidate filtering, which aims to avoid expensive MAS executions on low-quality candidates. Generating constraints across three levels can produce a large number of constraint candidates, each requiring a separate MAS execution for next-round diagnosis. Passing all candidates into subsequent rounds therefore causes overwhelming computational burdens. To address this issue, the key is to quickly filter out low-quality candidates before candidates enter the next round, reserving execution budget for promising constraints.

Following these principles, we propose MASH (Multi-Agent System Harness optimization), an efficient MAS harness optimization framework across node, edge, and graph. At the failure diagnosis step, we introduce a structured failure diagnosis strategy, which aims to trace the root cause of failures and reduce repeated diagnosis. It organizes each diagnosis as a structured tuple indicating what required information is missing and where the information gap first arises during execution (detailed descriptions are in Section 4.2). By grouping structured diagnoses that concern the same required information, MASH reduces repeated diagnoses and avoids generating similar constraints. For the constraint generation step, MASH first generates constraints explicitly for node, edge, and graph levels to cover the constraint space of MAS. To prevent low-quality candidates from entering the next-round execution, we introduce a cascaded filtering strategy consisting of checks on syntax

and semantics (i.e., whether the generated constraint is executable and consistent with its proposed changes), effectiveness (i.e., whether the constraint is useful in the specific case), and robustness (i.e., whether the constraint generalizes across diverse tasks), respectively. The remaining candidates that pass the checks will then be executed and diagnosed for the next round. We evaluate MASH on four datasets (i.e., BrowseComp-Plus, WorkBench, Plancraft, Finance) across multiple workflows and LLM backbones, demonstrating its effectiveness across individual-agent execution, inter-agent interactions, and team coordination, with an average reduction in node, edge, and graph-level failures of 7.7%, 25.5%, and 29.1%, respectively. Extensive analyses of constraint quality, optimization efficiency, and generalization further validate the effectiveness, efficiency, and generalizability of our proposed method.

The main contributions of this work are summarized as follows:

  • We motivate harness optimization across node, edge, and graph levels in MAS and formulate two guiding principles, failure deduplication and constraint candidate filtering, to reduce redundant proposals and unnecessary MAS executions.
  • We propose MASH, an efficient MAS harness optimization framework that combines structured failure diagnosis with cross-level constraint generation and fast filtering to retain high-quality constraints while reducing optimization costs.
  • We conduct extensive experiments on Finance-Agent, BrowseComp-Plus, WorkBench, and Plancraft across multiple workflows and backbone LLMs, demonstrating the effectiveness, efficiency, and robustness of MASH.

2.1 LLM-based Multi-Agent Systems

LLM-based MAS improve task solving through specialized roles, task decomposition, and inter-agent communication. Frameworks such as MetaGPT and ChatDev organize agents through structured collaboration protocols Hong et al., 2024; Qian et al., 2024, while subsequent work explores communication topologies and coordination strategies Zhou et al., 2025; Li et al., 2026. Their benefits depend on task structure, model capability, and coordination overhead Kim et al., 2026. However, distributing execution also introduces opportunities for information loss, inter-agent misalignment, and incomplete verification Hadfield et al., 2025; Cemri et al., 2025. Empirical failure analyses identify system design and coordination deficiencies as important sources of unsuccessful execution, beyond limitations of individual models Zhang et al., 2025e, 2026a; Kong et al., 2026, while TraceElephant emphasizes the importance of complete execution context for diagnosis Chen et al., 2026a. These observations motivate examining the infrastructure governing agent behavior and interaction alongside the underlying models. Our work constructs a harness for MAS: infrastructural constraints that regulate individual execution, inter-agent information exchange, and group coordination to address failures across these interaction levels.

2.2 Agent Harness Optimization

Agent harnesses govern tool access, context management, and execution control Ning et al., 2026; Lee et al., 2026b; Ursekar et al., 2026a. Beyond manual design, recent methods use execution feedback to optimize prompts and context Agrawal et al., 2026; Zhang et al., 2025d; Kang et al., 2026, memory and tools Zhang et al., 2025b, 2026c, and broader executable harness components Lee et al., 2026b; Lin et al., 2026; Xu et al., 2026c. Further work improves candidate generation and verification Chen et al., 2026b; Zhang et al., 2026b; Xu et al., 2026b; Wu et al., 2026, or adapts harnesses across successive tasks and interactions He et al., 2026; Karten et al., 2026; Wei et al., 2026. We provide a detailed discussion in Appendix H. In MAS, harness optimization needs to additionally address failures in inter-agent collaboration and group coordination. Failure propagation across these levels can produce repeated diagnoses and similar constraint candidates, increasing evaluation costs.

2.3 Multi-Agent Workflow Optimization and Evolution

Prior work improves multi-agent systems through workflow search and architecture selection Zhang et al., 2025c,a; Wang et al., 2025, coordinated prompt optimization Hong et al., 2026; Wang et al., 2026b, and the evolution of collaboration mechanisms and team organization Lee et al., 2026a; Hao et al., 2026. Data Canvas further uses provenance to trace errors and selectively replay affected workflow components Yi et al., 2026. Building on these advances, MASH focuses on efficient harness optimization under fixed agents, communication topology, and execution budgets. It links failures across levels to shared root causes and combines coordinated constraint generation with fast filtering, reducing repeated diagnosis and unnecessary candidate evaluation.

3 Problem Formulation

MAS harness. An MAS M executes tasks under a harness H, a set of infrastructural constraints governing its execution. MAS involve not only interactions between individual agents and their environments, but also information exchange among agents and coordination across the group. We therefore define an MAS harness across three levels:

\[H = (C^{\mathbf{n}}, C^{\mathbf{e}}, C^{\mathbf{g}}),\]

where node constraints C n govern individual agents' execution, edge constraints C e govern inter-agent information exchange, and graph constraints C g govern group coordination.

Harness optimization objective. Our objective is to find a harness that maximizes expected task performance:

\[H^* \in \arg\max_{H \in \mathcal{H}} \mathbb{E}_{x \sim \mathcal{D}} \left[ s(\operatorname{Exec}(\mathcal{M}[H], x)) \right],\]

where D is the task distribution, Exec returns an execution trajectory, s scores task performance in [0, 1], and H is the space of valid harnesses. During optimization, we hold the backbone models, agents, base roles, communication topology, tool permissions, and per-task budgets fixed.

Harness optimization loop. This objective is typically pursued through a 3-step optimization loop:

    1. Task execution. The MAS executes tasks sampled from D under the current harness Ht, producing trajectories Tt = Exec(Ht; D).
    1. Failure diagnosis. The collected trajectories are examined to diagnose infrastructural failures, using harness and evaluation context Kt: Ft = Diagnose(Tt; Kt).
    1. Constraint generation. The diagnosed failures guide candidate constraint changes, Ct = Generate(Ht, Ft; Kt). Each candidate may revise constraints at one or more of the node, edge, and graph levels.

Each candidate c ∈ Ct is applied separately to Ht, yielding a candidate harness Ht ⊕ c for task execution and failure diagnosis in the next round, where ⊕ denotes applying the proposed constraint changes. Based on execution results, ineffective changes are discarded and useful ones are incorporated into the harness, which supports further constraint generation.

4 Our Method (MASH)

4.1 Overview

MASH starts from the original harness H0 and repeats the optimization loop for T rounds. To reduce failure diagnosis duplication, structured failure diagnosis relates symptoms across levels to shared information gaps and checks them against prior changes (§4.2. To address constraint candidate explosion and avoid computationally expensive task execution on low-quality constraints, constraint generation and filtering jointly determine which changes enter the next round (§4.3): each candidate addresses one shared problem through constraints at the required levels, and progressively more expensive checks discard weak candidates. At most one candidate replaces the current harness per round. The final harness HT is frozen before test evaluation. Missing figure: figures/method-v3.pdf

Figure 2 Overview of MASH. (1) Task execution applies each candidate constraint separately to the current harness and incorporates useful constraints based on execution results. (2) Structured failure diagnosis organizes failures into tuples and merges diagnoses supported by a shared root cause. (3) Effective constraint generation first generates node-, edge-, and graph-level constraints, then filters candidates through syntax and semantics, effectiveness, and robustness checks before the next round.

4.2 Structured Failure Diagnosis

Failure diagnosis in MAS must cover node, edge, and graph levels, yet failures at different levels may originate from the same node-level error propagated through agent interactions. Diagnosing them independently can yield similar constraints and redundant MAS executions. The goal is therefore to trace failures to their root causes and consolidate diagnoses of the same underlying issue.

MASH implements Diagnose(Tt; Kt) through an LLM that summarizes failures in the execution trajectories as structured tuples, traces their causes, and consolidates related diagnoses within the same process. Each tuple records what information a failed decision requires, what it receives, and where the required information first becomes missing. The context Kt contains the selected parent, source-harness identities, paired outcomes and parent trajectories, and adoption history. The resulting diagnosis set is

\[\mathcal{F}_t = \text{Diagnose}(\mathcal{T}_t; \mathcal{K}_t) = \{(D_i, R_i, I_i, M_i, E_i)\}_i,\]

where i indexes the consolidated diagnoses, Di is the failed decision, Ri the required information, Ii the input information actually received, Mi the missing information, and Ei the supporting trajectory evidence. These fields guide the LLM to trace missing information backward through agent outputs and inter-agent exchanges, summarizing failures with a shared root cause into one diagnosis.

For example, an agent may omit the reporting year of a revenue figure, which is then passed to other agents and used in a comparison across different years. Tracing these failures to the original omission yields a shared diagnosis, avoiding similar constraint proposals for the same cause. To avoid combining distinct failures, the LLM consolidates diagnoses only when trajectory evidence supports a common root cause, not merely the same missing information. For other non-information-missing issues such as reasoning or calculation errors, we directly record the error type (see Appendix A.6 and D.3 for details).

4.3 Constraint Generation and Filtering

Generating constraints across three levels expands the generation space of infrastructural constraints. MASH limits redundant proposals by organizing each candidate around one diagnosed problem, then filters candidates before spending further MAS executions on them.

4.3.1 Cross-Level Constraint Generation

Given the diagnosed failures Ft and current constraints Ht, MASH implements constraint generation using an LLM:

\[C_t = \text{Generate}(H_t, \mathcal{F}_t; \mathcal{K}_t).\]

Each generated constraint is explicitly mapped to the node, edge, or graph level according to its target: individual-agent execution, inter-agent information exchange, or group coordination, respectively. This mapping organizes the proposed changes across the three levels, allowing constraints addressing a shared failure cause to span multiple levels. Implementation details are provided in Appendix A.5.

4.3.2 Fast Constraint Filtering

Generating constraints across node, edge, and graph expands the candidate space. Passing all candidates into subsequent optimization rounds would require many MAS executions, slowing optimization. We therefore assess candidate quality before further iteration. A useful constraint should satisfy three requirements: syntactic and semantic validity, effectiveness in addressing diagnosed failures, and robustness across tasks. MASH introduces a three-stage filtering process ordered by the cost of verifying these requirements. Candidates proceed to the next stage only after passing the preceding check.

Stage 1: syntax and semantics check. MASH first applies rule-based checks to each candidate's implementation and proposed changes. Syntax checks detect invalid implementations, while semantic checks examine compliance with execution rules and consistency with the intended changes. Candidates containing forbidden operations, missing changes, or changes outside the proposal are discarded. This stage retains valid and consistent candidates without requiring any MAS task execution.

Stage 2: effectiveness check. Surviving candidates are tested on a small subset of diagnosis tasks, denoted by \(\mathcal{D}_{\text{small}}\) . Each candidate \(c \in \mathcal{C}_t\) is applied separately to the current harness, yielding \(H' = H_t \oplus c\) . The candidate harness H' and the current harness \(H_t\) execute the same tasks. For a task set \(\mathcal{X}\) , their average performance difference is

\[\Delta_{\mathcal{X}}(H', H_t) = \frac{1}{|\mathcal{X}|} \sum_{x \in \mathcal{X}} \left[ s_x(H') - s_x(H_t) \right],\]

where \(s_x(H)\) is the task score under harness H. Candidates are retained if \(\Delta_{\mathcal{D}_{\text{small}}}(H', H_t) \geq \theta_{\text{eff}}\) , where \(\theta_{\text{eff}}\) is a predefined effectiveness threshold. This small-sample check removes candidates with insufficient gains before more expensive testing.

Stage 3: robustness check. Candidates passing the effectiveness check are evaluated on a larger, diverse validation set \(\mathcal{D}_{\text{val}}\) , separate from the diagnosis tasks. This stage tests whether their benefits extend beyond the failures that motivated them. Candidates are retained if \(\Delta_{\mathcal{D}_{\text{val}}}(H', H_t) \geq \theta_{\text{gen}}\) , where \(\theta_{\text{gen}}\) is a predefined robustness threshold. Candidates whose improvements fail to transfer sufficiently to these tasks are discarded.

Only candidates passing all three stages enter the next optimization round for task execution and failure diagnosis. By rejecting invalid candidates without MAS execution and ineffective candidates using only a small task subset, MASH reserves broader evaluation and further iteration for high-quality constraints.

4.4 Optimization Loop of MASH

Each round takes the current harness \(H_t\) and candidate constraints retained from the preceding round as input. During 1) task execution, each candidate c is applied separately to \(H_t\) , and MAS execution under \(H_t \oplus c\) produces trajectories \(\mathcal{T}_t\) . Based on execution results, MASH incorporates the effective candidate into the harness to obtain \(H_{t+1}\) , retaining \(H_t\) if no candidate is effective. The initial round executes under the original harness \(H_0\) . In non-final rounds, 2) failure diagnosis produces \(\mathcal{F}_t = \text{Diagnose}(\mathcal{T}_t; \mathcal{K}_t)\) by organizing failures into structured tuples and consolidating diagnoses supported by shared root causes. During 3) constraint generation, \(\mathcal{C}_t = \text{Generate}(H_{t+1}, \mathcal{F}_t; \mathcal{K}_t)\) proposes candidate constraints across node, edge, and graph. The three-stage filtering process then removes low-quality candidates. Each such round outputs the updated harness \(H_{t+1}\) and surviving candidates from \(\mathcal{C}_t\) for the next round's task execution. After T rounds, the final harness is frozen for test evaluation. Algorithm 1 in the appendix summarizes the procedure.

Table 1 Test scores (×100; higher is better) under the centralized workflow. Optimized methods report mean ± standard deviation across three independent optimization runs; each run averages three frozen-harness test repetitions. The static reference reports the mean test score without harness optimization. Best means are bold, and best baseline means are underlined. Improvement is MASH minus the best baseline mean in score points, computed before rounding.

Method Finance-Agent BrowseComp-Plus Plancraft WorkBench
Static reference
MAS-Centralized 39.97 20.00 53.00 35.00
Automatic harness/context optimization
GEPA 39.54 ± 1.39 20.11 ± 0.84 51.78 ± 0.51 34.33 ± 0.88
RHI 43.24 ± 0.90 23.67 ± 0.67 54.89 ± 0.51 38.56 ± 1.58
ACE 37.61 ± 0.70 19.67 ± 0.67 50.33 ± 0.67 34.33 ± 0.88
AHE 46.47 ± 0.89 24.33 ± 1.20 55.56 ± 1.02 40.56 ± 1.26
Life-Harness 43.39 ± 1.39 21.56 ± 0.84 53.89 ± 1.17 42.00 ± 1.33
Meta-Harness 48.45 ± 1.10 25.33 ± 1.20 57.00 ± 0.88 43.56 ± 1.17
HarnessX 48.69 ± 1.19 26.56 ± 1.17 55.33 ± 0.88 43.44 ± 1.84
MAS/workflow optimization
Meta-Team 42.59 ± 0.93 21.22 ± 0.51 54.33 ± 0.67 40.44 ± 1.02
AFlow 42.24 ± 0.57 22.67 ± 1.20 56.33 ± 0.67 39.78 ± 0.84
MASPO 45.12 ± 1.19 23.56 ± 1.02 56.56 ± 1.17 41.78 ± 1.39
MASPOB 43.16 ± 1.15 22.78 ± 1.17 55.11 ± 0.84 39.78 ± 1.50
Ours
MASH 52.04 ± 0.89 29.33 ± 0.88 60.89 ± 1.64 48.22 ± 0.69
Improvement +3.35 +2.78 +3.89 +4.67

5 Experiments

5.1 Experimental Settings

Benchmarks and baselines. We evaluate MASH on Finance-Agent Bigeard et al., 2025, BrowseComp-Plus Chen et al., 2026c, Plancraft Dagan et al., 2025, and WorkBench Styles et al., 2024. To evaluate our method, we compare MASH with three groups of baselines. The static reference is the initial MAS without additional harness optimization. Automatic harness and context optimization methods include GEPA Agrawal et al., 2026, RHI Lee et al., 2026a, ACE Zhang et al., 2025d, AHE Lin et al., 2026, Life-Harness Xu et al., 2026c, Meta-Harness Lee et al., 2026b, and HarnessX Chen et al., 2026b. MAS and workflow optimization methods include Meta-Team Hao et al., 2026, AFlow Zhang et al., 2025c, MASPO Wang et al., 2026b and MASPOB Hong et al., 2026. Baseline adaptation details are provided in Appendix B.3.

Implementation details. The main comparison uses a centralized workflow Kim et al., 2026, and all methods share the same agent roles, topology, tools, and LLM backbone (Gemini 2.5 Flash-Lite with temperature = 0). MASH uses GPT-5.4 for offline structured failure diagnosis and cross-level constraint generation, with separate prompts for the two functions. All methods share a development task-attempt cap within each benchmark (4,000 per fold on Finance-Agent), while retaining method-specific schedules and stopping rules. Optimizer requests and tokens are accounted for separately; see Appendix B.3 for details. MASH runs for at most T = 20 optimization rounds, with at most three initially generated constraints per round. We run the experiments three times with different random seeds on the same data splits. Details are in Appendix B.1.

Per-run results are reported in Appendix C; benchmark metrics and grader prompts are detailed in Appendix B.2. Code and experimental artifacts are indexed in Appendix B.5.

Table 2 Failure counts: Meta-Harness \(\rightarrow\) MASH. Superscripts show reductions; the last row averages them.

Benchmark Node Edge Graph
Finance-Agent \(36 \rightarrow 32^{11.1\%}\) \(32 \rightarrow 20^{37.5\%}\) \(36 \rightarrow 21^{41.7\%}\)
BrowseComp-Plus \(113 \rightarrow 108^{4.4\%}\) \(78 \rightarrow 56^{28.2\%}\) \(74 \rightarrow 55^{25.7\%}\)
Plancraft \(85 \to 77^{9.4\%}\) \(35 \rightarrow 32^{8.6\%}\) \(65 \rightarrow 50^{23.1\%}\)
WorkBench \(87 \rightarrow 82^{5.7\%}\) \(54 \rightarrow 39^{27.8\%}\) \(89 \rightarrow 66^{25.8\%}\)
Failure reduction 7.7% 25.5% 29.1%

Table 3 Component ablation on Finance-Agent (3 independent runs).

Structured Cross-level Test score
diagnosis generation (×100)
× × \(48.27 \pm 0.96\)
Variants × ✓ \(50.34 \pm 1.20\)
\(\checkmark\) × \(51.21 \pm 1.06\)
MASH ✓ ✓ \(52.04 \pm 0.89\)

Figure 3 Analysis of MASH. (a) MASH achieves higher filtering pass and improvement rates. (b) Development MAS task starts (k) versus the share of scheduled starts avoided by filtering (%; Appendix E.3). (c) Structured failure diagnosis reduces redundant diagnoses. (d) A case study showing how three linked failures across node, edge, and graph levels are consolidated into a shared root cause to guide constraint generation.

5.2 Main Results

Table 1 shows that MASH achieves the highest mean test score on all four benchmarks across the static, automatic harness/context, and MAS/workflow comparison groups. The strongest baseline varies across benchmarks: HarnessX provides the highest baseline score on Finance-Agent and BrowseComp-Plus, whereas Meta-Harness provides the highest baseline score on Plancraft and WorkBench. The gains over the initial MAS and the evaluated optimization baselines support optimizing infrastructural constraints while keeping the underlying MAS configuration and per-task execution limits fixed.

5.3 In-depth Analysis of MASH

Benefits of MASH across node, edge, and graph. To examine the value of constraints beyond individual agents, we compare failure patterns and vary the levels available for optimization. Table 2 shows that MASH reduces edge- and graph-level failures more substantially than node-level failures relative to Meta-Harness. Moreover, allowing all three levels to remain editable consistently outperforms node-only optimization, whereas freezing node constraints and optimizing only the edge and graph levels is not uniformly beneficial (Appendix D.1).

Ablation study. To assess the two components, we replace structured failure diagnosis with free-form diagnosis and restrict cross-level constraint generation to single-level candidates. Table 3 shows that both components improve performance, with structured diagnosis contributing larger gains. This may be because propagated failures can lead to ineffective constraints, which can in turn negatively affect subsequent optimization. A more detailed analysis of the effects of the hyperparameters is presented in Appendix E.2.2.

Reduced redundancy in failure diagnosis. Figure 3(c) shows that structured failure diagnosis reduces diagnosis redundancy from 38.62% to 22.73% compared with free-form diagnosis (Appendix D.2). Figure 3(d) illustrates how multiple failure symptoms are traced to a shared coordination gap to guide constraint generation. The full procedure is provided in Appendix A.4.

Constraint quality analysis. To examine the quality of generated constraints, we compare their improvement rates among candidates completing paired evaluation. Figure 3(a) shows that both structured diagnosis and cross-level generation lead to higher-quality constraints, thereby improving MAS task performance (i.e., results

Figure 4 Generalization of MASH across workflows and LLM backbones. (a) Test-score gains over the best reported baseline across four benchmarks and four fixed workflows (Optimization Run 1; Appendix F.1). (b) Frozen transfer of MASH constraints across LLM backbones, followed by target-side re-optimization. Base MAS denotes the initial MAS \((H_0)\) on the target backbone; Zero-Shot Transfer denotes frozen transfer, which applies the source-optimized harness without target-side optimization.

are consistent with ablation study). Moreover, most accepted constraints involve inter-agent collaboration or group coordination, highlighting their practical use beyond node-level execution (Appendix D.4.2).

Optimization efficiency. We analyze optimization efficiency through: 1) Total LLM calls during optimization. Syntax-and-semantics and effectiveness filtering reduce unnecessary execution: removing them increases LLM calls by 9.7% and 12.3%, respectively. Robustness filtering improves final performance at a modest cost, with its removal saving only 1.7% of calls (see Appendix E.1 for detailed results). 2) Rate of harness improvement. Compared with diagnosing failures and generating constraints separately at the node, edge, and graph levels, MASH requires fewer optimizer tokens per round and improves performance more rapidly, finding effective harnesses sooner and achieving better final performance (see Appendix E.2 for detailed results).

5.4 Generalization Analysis

Generalization across workflows. We optimize harnesses independently under four fixed workflows: centralized, decentralized, hybrid, and independent (Appendix F.1). Figure 4(a) shows gains over the best reported baseline in all 16 benchmark—workflow settings, demonstrating that MASH is effective across communication topologies, including workflows without intermediate communication.

Generalization across backbones. We transfer harnesses optimized on Gemini 2.5 Flash-Lite to GPT-40 mini and Claude Haiku 4.5 (Appendix F.2). Figure 4(b) shows that frozen transfer improves performance on both backbones, while target-side optimization yields further gains, supporting both the transferability and adaptability of the learned constraints. Furthermore, initializing target-side optimization from the source-optimized harness yields slightly higher scores than optimizing from the initial harness for the same number of target-side rounds (Appendix F.2).

6 Conclusion

We presented MASH, a harness optimization framework for MAS across node, edge, and graph levels. MASH traces failures to shared information gaps through structured failure diagnosis, generates cross-level constraints according to their execution targets, and filters candidates through progressively more expensive checks to reduce unnecessary MAS executions. Experiments across four benchmarks, multiple workflows, and LLM backbones demonstrate its effectiveness. Future work includes jointly optimizing harnesses and communication topology, reducing the evaluation cost of surviving candidates, automatically assigning constraint levels for arbitrary MAS, and consolidating accumulated constraints when later revisions supersede earlier ones.

References

  • Lakshya A. Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong, Arnav Singhvi, Herumb Shandilya, Michael J. Ryan, Meng Jiang, Christopher Potts, Koushik Sen, Alexandros G. Dimakis, Ion Stoica, Dan Klein, Matei Zaharia, and Omar Khattab. GEPA: Reflective prompt evolution can outperform reinforcement learning. In International Conference on Learning Representations (ICLR), 2026. https://arxiv.org/abs/2507.19457.
  • Antoine Bigeard, Langston Nashold, Rayan Krishnan, and Shirley Wu. Finance agent benchmark: Benchmarking llms on real-world financial research tasks, 2025. https://arxiv.org/abs/2508.00828.
  • Mert Cemri, Melissa Z. Pan, Shuyi Yang, Lakshya A. Agrawal, Bhavya Chopra, Rishabh Tiwari, Kurt Keutzer, Aditya Parameswaran, Dan Klein, Kannan Ramchandran, Matei Zaharia, Joseph E. Gonzalez, and Ion Stoica. Why do multi-agent LLM systems fail? In arXiv preprint arXiv:2503.13657, 2025.
  • Justin Chen, Swarnadeep Saha, and Mohit Bansal. ReConcile: Round-table conference improves reasoning via consensus among diverse LLMs. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7066–7085, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.381. https://aclanthology.org/2024.acl-long.381/.
  • Mengzhuo Chen, Junjie Wang, Fangwen Mu, Yawen Wang, Zhe Liu, Huanxiang Feng, and Qing Wang. Seeing the whole elephant: A benchmark for failure attribution in LLM-based multi-agent systems. In Maria Liakata, Viviane P. Moreira, Jiajun Zhang, and David Jurgens, editors, Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 19888–19905, San Diego, California, United States, July 2026a. Association for Computational Linguistics. ISBN 979-8-89176-390-6. doi: 10.18653/v1/2026.acl-long.912. https://aclanthology.org/2026.acl-long.912/.
  • Tingyang Chen, Shuo Lu, Kang Zhao, Weicheng Meng, Hanlin Teng, Tianhao Li, Chao Li, Xule Liu, Jian Liang, Zhizhong Zhang, Yuan Xie, Heng Qu, Kun Shao, and Jian Luan. HarnessX: A composable, adaptive, and evolvable agent harness foundry. arXiv preprint arXiv:2606.14249, 2026b. https://arxiv.org/abs/2606.14249.
  • Zijian Chen, Xueguang Ma, Shengyao Zhuang, Ping Nie, Kai Zou, Sahel Sharifymoghaddam, Andrew Liu, Joshua Green, Kshama Patel, Ruoxi Meng, Mingyi Su, Yanxi Li, Haoran Hong, Xinyu Shi, Xuye Liu, Hosna Oyarhoseini, Nandan Thakur, Crystina Zhang, Luyu Gao, Wenhu Chen, and Jimmy Lin. BrowseComp-Plus: A fair and disentangled evaluation benchmark for deep search agents. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 22349–22370, 2026c. doi: 10.18653/v1/2026.acl-long.1023.
  • Arthur Câmara, Vincent Slot, and Jakub Zavrel. Self-optimizing multi-agent systems for deep research, 2026. https://arxiv.org/abs/2604.02988.
  • Gautier Dagan, Frank Keller, and Alex Lascarides. Plancraft: An evaluation dataset for planning with llm agents. In The 2nd Conference on Language Modeling, 2025.
  • Yilun Du, Shuang Li, Antonio Torralba, Joshua B. Tenenbaum, and Igor Mordatch. Improving factuality and reasoning in language models through multiagent debate. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 11733–11763. PMLR, 21–27 Jul 2024. https://proceedings.mlr.press/v235/du24e.html.
  • Jeremy Hadfield, Barry Zhang, Kenneth Lien, Florian Scholz, Jeremy Fox, and Daniel Ford. How we built our multi-agent research system. Anthropic Engineering, June 2025. https://www.anthropic.com/engineering/ multi-agent-research-system. Published June 13, 2025. Engineering report; accessed September 22, 2026.
  • Zhezheng Hao, Tianfu Wang, Huanshuo Dong, Ziyan Liu, Hong Wang, Xiankun Lin, Qiang Lin, Can Wang, Hande Dong, and Jiawei Chen. Evolve as a team: Collaborative self-evolution for LLM-based multi-agent systems. arXiv preprint arXiv:2605.29790, 2026. https://arxiv.org/abs/2605.29790.
  • Yufei He, Juncheng Liu, Yue Liu, Yibo Li, Tri Cao, Zhiyuan Hu, Xinxing Xu, and Bryan Hooi. Evotest: Evolutionary test-time learning for self-improving agentic systems. In C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang, and A. Faust, editors, International Conference on Learning Representations, volume 2026, pages 104166–104202, 2026. https://proceedings.iclr.cc/paper\_files/paper/2026/file/ aa5b64942bfef625403b355214b871e0-Paper-Conference.pdf.
  • Sirui Hong, Mingchen Zhuge, Jonathan Chen, Xiawu Zheng, Yuheng Cheng, Jinlin Wang, Ceyao Zhang, zili wang, Steven Yau, Zijuan Lin, Liyang Zhou, Chenyu Ran, Lingfeng Xiao, Chenglin Wu, and Jürgen Schmid-

  • huber. Metagpt: Meta programming for a multi-agent collaborative framework. In B. Kim, Y. Yue, S. Chaudhuri, K. Fragkiadaki, M. Khan, and Y. Sun, editors, International Conference on Learning Representations, volume 2024, pages 23247–23275, 2024. https://proceedings.iclr.cc/paper\_files/paper/2024/file/ 6507b115562bb0a305f1958ccc87355a-Paper-Conference.pdf.

  • Zhi Hong, Qian Zhang, Jiahang Sun, Zhiwei Shang, Mingze Kong, Xiangyi Wang, Yao Shu, and Zhongxiang Dai. Maspob: Bandit-based prompt optimization for multi-agent systems with graph neural networks, 2026. https://arxiv.org/abs/2603.02630.
  • Minki Kang, Wei-Ning Chen, Dongge Han, Huseyin A. Inan, Lukas Wutschitz, Yanzhi Chen, Robert Sim, and Saravan Rajmohan. Acon: Optimizing context compression for long-horizon llm agents, 2026. https://arxiv.org/abs/2510. 00615.
  • Seth Karten, Joel Zhang, Tersoo Upaa Jr, Ruirong Feng, Wenzhe Li, Chengshuai Shi, Chi Jin, and Kiran Vodrahalli. Continual harness: Online adaptation for self-improving foundation agents, 2026. https://arxiv.org/abs/2605.09998.
  • Yubin Kim, Ken Gu, Chanwoo Park, Chunjong Park, Samuel Schmidgall, A Ali Heydari, Yao Yan, Zhihan Zhang, Yuchen Zhuang, Yun Liu, et al. Capable language models can outgrow the benefits of collaboration. Nature Machine Intelligence, 8(7):1157–1172, 2026.
  • Fanqi Kong, Ruijie Zhang, Huaxiao Yin, Guibin Zhang, Xiaofei Zhang, Ziang Chen, Zhaowei Zhang, Xiaoyuan Zhang, Song-Chun Zhu, and Xue Feng. Aegis: Automated error generation and attribution for multi-agent systems. In International Conference on Learning Representations, volume 2026, pages 52994–53028, 2026.
  • Hyunin Lee, Jinglue Xu, Jeffrey Seely, Donghyun Lee, Matei Zaharia, and Yujin Tang. Recursive harness selfimprovement. arXiv preprint arXiv:2607.15524, 2026a. https://arxiv.org/abs/2607.15524.
  • Yoonho Lee, Roshen Nair, Qizheng Zhang, Kangwook Lee, Omar Khattab, and Chelsea Finn. Meta-Harness: End-to-end optimization of model harnesses. arXiv preprint arXiv:2603.28052, 2026b. https://arxiv.org/abs/2603.28052.
  • Shiyuan Li, Yixin Liu, Qingsong Wen, Chengqi Zhang, and Shirui Pan. Assemble your crew: Automatic multi-agent communication topology design via autoregressive graph generation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, 2026.
  • Jiahang Lin, Shichun Liu, Chengjun Pan, Lizhi Lin, Shihan Dou, Zhiheng Xi, Xuanjing Huang, Hang Yan, Zhenhua Han, Tao Gui, et al. Agentic harness engineering: Observability-driven automatic evolution of coding-agent harnesses. arXiv preprint arXiv:2604.25850, 2026.
  • Xiaotian Luo, Dizhan Xue, Fengxingyu Wang, Chuanrui Hu, and Yafeng Deng. Harnessbank: Semantic gene-bank search with gated verification for agent-harness self-evolution, 2026. https://arxiv.org/abs/2607.13683.
  • Xuying Ning, Katherine Tieu, Dongqi Fu, Tianxin Wei, Zihao Li, Yuanchen Bei, Jiaru Zou, Mengting Ai, Zhining Liu, Ting-Wei Li, Lingjie Chen, Yanjun Zhao, Ke Yang, Bingxuan Li, Cheng Qian, Gaotang Li, Xiao Lin, Zhichen Zeng, Ruizhong Qiu, Sirui Chen, Yifan Sun, Xiyuan Yang, Ruida Wang, Rui Pan, Chenyuan Yang, Dylan Zhang, Liri Fang, Zikun Cui, Yang Cao, Pan Chen, Dorothy Sun, Ren Chen, Mahesh Srinivasan, Nipun Mathur, Yinglong Xia, Hong Li, Hong Yan, Pan Lu, Lingming Zhang, Tong Zhang, Hanghang Tong, and Jingrui He. Code as agent harness, 2026. https://arxiv.org/abs/2605.18747.
  • Sungho Park, Wonjoong Kim, Rongyuan Tan, Jue Zhang, Wook-Shin Han, Pengfei Gao, Chanyoung Park, Yongqiang Yao, Rao Fu, Elsie Nallipogu, Qingwei Lin, Saravan Rajmohan, and Dongmei Zhang. Autosaddler: Automatic harness optimization with durable updates from agent execution traces, 2026. https://arxiv.org/abs/2608.23041.
  • Chen Qian, Wei Liu, Hongzhang Liu, Nuo Chen, Yufan Dang, Jiahao Li, Cheng Yang, Weize Chen, Yusheng Su, Xin Cong, Juyuan Xu, Dahai Li, Zhiyuan Liu, and Maosong Sun. ChatDev: Communicative agents for software development. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15174–15186, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.810. https://aclanthology.org/2024.acl-long.810/.
  • Olly Styles, Sam Miller, Patricio Cerda-Mardini, Tanaya Guha, Victor Sanchez, and Bertie Vidgen. Workbench: A benchmark dataset for agents in a realistic workplace setting. In Conference on Language Modeling, 2024.
  • Varun Ursekar, Apaar Shanker, Veronica Chatrath, Yuan Xue, and Samuel Marc Denton. Vero: A harness for agents to optimize agents, 2026a. https://arxiv.org/abs/2602.22480.
  • Varun Ursekar, Apaar Shanker, Yash Maurya, Shehab Yasser, Vijay S. Kalmath, Veronica Chatrath, and Yuan Xue. Harnessopt-bench: Evaluating llms at harness optimization, 2026b. https://arxiv.org/abs/2608.06301.

  • Yike Wang, Huaisheng Zhu, Zhengyu Hu, Yige Yuan, Zhengyu Chen, Shakti Senthil, Hannaneh Hajishirzi, Yulia Tsvetkov, Pradeep Dasigi, and Teng Xiao. Rethinking the evaluation of harness evolution for agents, 2026a. https://arxiv.org/abs/2607.12227.

  • Yingxu Wang, Siwei Liu, Jinyuan Fang, and Zaiqiao Meng. Evoagentx: An automated framework for evolving agentic workflows. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, 2025.
  • Zhexuan Wang, Xuebo Liu, Li Wang, Zifei Shan, Yutong Wang, Zhenxi Song, and Min Zhang. Maspo: Joint prompt optimization for llm-based multi-agent systems, 2026b. https://arxiv.org/abs/2605.06623.
  • Tianxin Wei, Zhan Shi, Minhua Lin, Bing He, Zewen Liu, Yisi Sang, Yuanchen Bei, Xuying Ning, Jiaru Zou, Ting-Wei Li, Xiao Lin, Yanjun Zhao, Chi Wang, Benoit Dumoulin, Dakuo Wang, Jingrui He, and Hanqing Lu. Evo-harness: Context-to-harness skill compilation for self-evolving agents, 2026. https://arxiv.org/abs/2608.15071.
  • Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu, Ahmed Hassan Awadallah, Ryen W White, Doug Burger, and Chi Wang. Autogen: Enabling next-gen llm applications via multi-agent conversation, 2023. https://arxiv.org/abs/2308.08155.
  • Siwei Wu, Jincheng Ren, Yizhi Li, Haau-Sing Li, Chengran Yang, Yuxuan Zhang, Weicheng Gu, Jian Yang, Riza Batista-Navarro, Chuanyi Zhang, Xianglong Liu, Ming Zhou, Bryan Dai, and Chenghua Lin. Modularrsi: Modular and generalizable recursive harness self-improvement, 2026. https://arxiv.org/abs/2609.14857.
  • Chen Xu, Yicheng Hu, Ruizi Wang, Xinyu Lin, Wenjie Wang, Dongrui Liu, and Fuli Feng. TacoMAS: Test-time co-evolution of topology and capability in LLM-based multi-agent systems. arXiv preprint arXiv:2605.09539, 2026a.
  • Jinghan Xu, Yikai Zhang, Aili Chen, Weiyuan Li, Jiaqing Liang, and Deqing Yang. Verify smarter, evolve further: Efficient harness evolution through behavior-aware verification, 2026b. https://arxiv.org/abs/2608.27311.
  • Tianshi Xu, Huifeng Wen, and Meng Li. Adapting the interface, not the model: Runtime harness adaptation for deterministic LLM agents. arXiv preprint arXiv:2605.22166, 2026c. https://arxiv.org/abs/2605.22166.
  • Zixuan Yi, Yuanming Shao, Shaun Wallace, Zachary G. Ives, and Ryan Marcus. Data Canvas: A Provenance-Guided Harness for Agentic Data Engineering. COLM '26, July 2026. https://openreview.net/forum?id=t89YKsfjKC.
  • Guibin Zhang, Luyang Niu, Junfeng Fang, Kun Wang, Lei Bai, and Xiang Wang. Multi-agent architecture search via agentic supernet. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu, editors, Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 75834–75852. PMLR, 13–19 Jul 2025a. https://proceedings.mlr.press/v267/zhang25bi.html.
  • Guibin Zhang, Haotian Ren, Chong Zhan, Zhenhong Zhou, Junhao Wang, He Zhu, Wangchunshu Zhou, and Shuicheng Yan. Memevolve: Meta-evolution of agent memory systems, 2025b. https://arxiv.org/abs/2512.18746.
  • Guibin Zhang, Junhao Wang, Junjie Chen, Wangchunshu Zhou, Kun Wang, and Shuicheng YAN. Agentracer: Who is inducing failure in the llm agentic systems? In C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang, and A. Faust, editors, International Conference on Learning Representations, volume 2026, pages 11377–11399, 2026a. https: //proceedings.iclr.cc/paper\_files/paper/2026/file/134ed7a477770f227f12450ef0cbb8f4-Paper-Conference.pdf.
  • Hangfan Zhang, Shao Zhang, Kangcong Li, Chen Zhang, Yang Chen, Yiqun Zhang, Lei Bai, and Shuyue Hu. Self-Harness: Harnesses that improve themselves. arXiv preprint arXiv:2606.09498, 2026b. https://arxiv.org/abs/2606.09498.
  • Jiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng, Xionghui Chen, Jiaqi Chen, Mingchen Zhuge, Xin Cheng, Sirui Hong, Jinlin Wang, Bingnan Zheng, Bang Liu, Yuyu Luo, and Chenglin Wu. AFlow: Automating agentic workflow generation. In International Conference on Learning Representations (ICLR), 2025c.
  • Qizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma, Fenglu Hong, Vamsidhar Kamanuru, Jay Rainton, Chen Wu, Mengmeng Ji, Hanchen Li, Urmish Thakker, James Zou, and Kunle Olukotun. Agentic context engineering: Evolving contexts for self-improving language models. arXiv preprint arXiv:2510.04618, 2025d. https://arxiv.org/abs/2510.04618.
  • Shaokun Zhang, Ming Yin, Jieyu Zhang, Jiale Liu, Zhiguang Han, Jingyang Zhang, Beibin Li, Chi Wang, Huazheng Wang, Yiran Chen, and Qingyun Wu. Which agent causes task failures and when? on automated failure attribution of LLM multi-agent systems. In International Conference on Machine Learning (ICML), 2025e.

Yuxuan Zhang, Cong Wei, Penghui Du, Bo Li, Huaisong Zhang, Songcheng Cai, Yubo Wang, Dongfu Jiang, Yuyu Zhang, Changqian Yu, Ping Nie, Wenhu Chen, and Kelsey R. Allen. Rewardharness: Learning human preferences for image editing with only 100 demonstrations. In Conference on Language Modeling, 2026c.

Han Zhou, Xingchen Wan, Ruoxi Sun, Hamid Palangi, Shariq Iqbal, Ivan Vulić, Anna Korhonen, and Sercan Ö. Arık. Multi-agent design: Optimizing agents with better prompts and topologies. In arXiv preprint arXiv:2502.02533, 2025.

Appendix

A Method and Implementation

This appendix follows a harness update through execution, diagnosis, candidate construction, filtering, and adoption, then provides a worked example and target reference. Appendix B defines shared experimental settings; Appendices D–F cover cross-level analyses, resource use, and generalization. Appendix G specifies failure annotation, and Appendix H supplements related work. Unless stated otherwise, appendix analyses use Optimization Run 1.

A.1 Optimization Procedure

Each round fixes parent H¯ t and evaluates pending candidates against it (Algorithm 1). The completed candidate with the largest strictly positive gain updates H; otherwise, H stays unchanged. Without pending candidates, MASH executes the parent alone. The first round executes H0; the final round ends after parent selection. Appendix B.4 details the 20-round Finance-Agent schedule. In non-final rounds, diagnosis uses collected trajectories Tt and context Kt, including source harnesses and the selected parent (Appendix A.2). Generation uses this context to propose candidates for H; filtering yields the next-round pool Pt. The operator Filter1:3 checks candidate boundaries (parent, failure group, target, and level), then applies the three filtering stages in Appendix A.3.

A.2 Structured Diagnosis and Consolidation

The diagnosis LLM traces failed decisions backward through their inputs to identify repairable information gaps. It follows the trajectory evidence in Ei to locate where the missing information first arose. Table 4 expands the representation in Section 4.2.

Trajectory context. In candidate-evaluation rounds, Tt contains trajectories from all completed candidates with source-harness identifiers. The context Kt supplies the selected parent, paired outcomes and parent trajectories, and adoption history. In parent-only rounds, the paired-comparison fields of Kt are empty, and current-parent trajectories provide the diagnosis evidence. The diagnosis LLM is instructed to distinguish rejected-branch failures from current-parent defects using this context. Rejected-branch failures may motivate repair hypotheses; generation specifies their applicability to the selected parent. Each resulting candidate is built against that parent and subjected to behavior-case checks and paired evaluation.

Table 4 Fields of a consolidated diagnosis (Di, Ri, Ii, Mi, Ei). The fields describe the information gap and its trajectory evidence.

Field Role in the diagnosis
Di: decision Identifies the failed decision being explained.
Ri: required information States what information that decision requires.
Ii: received information Records the information actually available to the decision.
Mi: missing information Identifies the unmet information requirement.
Ei: evidence Grounds the account in the execution trajectory.

Consolidation and repair. MASH groups diagnoses by a shared root cause supported by trajectory evidence. Independently arising failures remain separate, including those described through similar missing information. Each group anchors a repair hypothesis and executable changes to the current parent, potentially across several levels (Appendix A.3).

These search-time diagnoses guide optimization. The execution-level labels in Appendix G serve a separate measurement task: counting independently supported process defects in frozen test trajectories.

Algorithm 1 MASH Harness Optimization Loop

Input: Fixed MAS \mathcal{M}, initial harness H_0, diagnosis set \mathcal{D}_{dis}, screening subset \mathcal{D}_{small} \subseteq \mathcal{D}_{dis}, validation set
      \mathcal{D}_{\text{val}}, thresholds \theta_{\text{eff}}, \theta_{\text{gen}}, round budget T
Output: Frozen final harness H_T
 1: H \leftarrow H_0 and \mathcal{P}_0 \leftarrow \varnothing
 2: for t = 1, ..., T do
      Step 1: Task execution and parent update
           Fix the round parent \bar{H}_t \leftarrow H and initialize \mathcal{T}_t \leftarrow \varnothing
 3:
 4:
           if \mathcal{P}_{t-1} = \emptyset then
                 \mathcal{T}_t \leftarrow \operatorname{Exec}(\bar{H}_t; \mathcal{D}_{\operatorname{dis}})
 5:
 6:
                 for each candidate c \in \mathcal{P}_{t-1} do
 7:
                      Construct H' \leftarrow \bar{H}_t \oplus c
 8:
                      Paired-evaluate \bar{H}_t and H' on \mathcal{D}_{dis}
 9:
                      Record \Delta_c, candidate trajectories \mathcal{T}_{t,c}, and paired parent trajectories
10:
                      \mathcal{T}_t \leftarrow \mathcal{T}_t \cup \mathcal{T}_{t,c}, retaining source-harness identifiers
11:
                 if some completed candidate has \Delta_c > 0 then
12:
                      c^* \leftarrow the completed candidate with largest \Delta_c
13:
                      H \leftarrow \bar{H}_t \oplus c^*
14:
15:
                 else
                      H \leftarrow H_t
16:
           if t = T then
17.
                 break
18:
      Step 2: Structured failure diagnosis
19:
           Assemble \mathcal{K}_t from H, trajectory sources, paired outcomes and parent trajectories, and adoption history
           \mathcal{F}_t \leftarrow \text{Diagnose}(\mathcal{T}_t; \mathcal{K}_t)
                                                                                                                    ▶ Includes root-cause consolidation
20:
      Step 3: Constraint generation and filtering
           C_t \leftarrow \text{Generate}(H, \mathcal{F}_t; \mathcal{K}_t)
21:
           \mathcal{P}_t \leftarrow \text{Filter}_{1:3}(\mathcal{C}_t; H, \mathcal{D}_{\text{small}}, \mathcal{D}_{\text{val}}, \theta_{\text{eff}}, \theta_{\text{gen}})
22:
           If \mathcal{P}_t = \emptyset, allow up to three extra revision batches within the call allowance
           Filter each batch into \mathcal{P}_t; stop at the first batch with survivors (Appendix A.3)
24: return H_T \leftarrow \text{Freeze}(H)

A.3 Candidate Construction and Filtering

A candidate binds a repair hypothesis and executable patches to one consolidated failure group (Appendix A.2). Its parent is the harness being revised; applying the patches produces a candidate harness. Passing all three filtering stages retains the candidate for next-round evaluation. Adoption as a parent update makes it an accepted revision.

Appendix A.4 follows candidate construction, filtering, and execution in the Micron case.

Candidate representation. Each initial implementation or resubmission after legality repair or quality revision counts as a candidate version (Appendix D.4.1). Each candidate c contains:

  • Identity and parent binding: a unique candidate identifier, parent-harness identifier, failure-group identifier, and shared repair hypothesis.
  • Proposed changes: a nonempty set of changes, each specifying its registered target and level, intended behavior, applicability condition, and whether the change is required.
  • Patches and behavior cases: a nonempty set of complete replacement functions for registered targets. Cases supply an input context or an observed hook-event reference, together with exact expected fields, typed assertions, or a requirement to preserve the parent output.

One repair may span multiple levels. Each declared level must match the target registry (Appendix A.5), and edited targets must be available in the workflow and enabled by the experimental condition.

Candidate harness construction. To evaluate a proposed repair, MASH applies c to parent H to obtain H′ = H ⊕ c. Patches replace the functions at their targets; unpatched functions are inherited. The parent identifier prevents a candidate from being applied after that parent changes. Backbone models, agent membership and roles, topology, tool permissions, scorer, data partitions, and execution budgets remain fixed.

Before filtering, boundary checks verify the current parent and failure group, unique candidate and target identifiers, target availability, and agreement with the level registry. They also enforce the batch candidate limit and the editable scope of the experimental condition.

Stage 1: syntax and semantics check. This rule-based check covers interface validity, proposal consistency, and behavior cases without MAS, model, or tool execution.

Interface checks validate the patch signature, allowed inputs and outputs, and permitted operations. Appendix A.5 specifies the interface restrictions.

Proposal consistency. Every required change must have a patch and patches are allowed only for proposed changes. The check also rejects duplicate targets and candidates with no substantive change from the parent.

Frozen-plan consistency. For variants F and O (Table 29), the cross-level protocol requires forming a coordination hypothesis and freezing the revision plan's targets, scope, and intended behavior before patch generation. Stage 1 checks patches against this plan. Changes to targets, intended behavior, or the repair approach require replanning and refreezing before implementation.

Behavior cases. These compare patch outputs with the declared expected fields and typed assertions on finite inputs. For a target appearing in the diagnosis evidence, at least one case must use an original hook event and its complete input. A preserve_parent case requires identical parent and candidate outputs for an unaffected input. When a target is implicated in multiple failure groups, preservation cases grounded in source evidence protect behavior needed by another group. Behavior cases establish agreement with the proposal; paired execution in the following stages measures the repair's effects.

Stage 2: effectiveness check. The effectiveness check tests whether the repair improves performance on the fixed screening subset Dsmall. For each Stage-1 survivor, MASH evaluates H and H′ once using the same task identifiers and repetition index. The candidate advances when ∆Dsmall (H′ , H) ≥ θeff. Table 15 specifies the execution-based thresholds for the shared Finance-Agent protocol.

Stage 3: robustness check. The robustness check tests whether the gain extends to the disjoint validation set Dval. A Stage-2 survivor is evaluated once against the same parent and retained when ∆Dval (H′ , H) ≥ θgen. Validation trajectories inform this decision and are not used as diagnosis evidence.

Revision batches. A version that fails Stage 3 is discarded. Only when an entire batch has no candidate passing all three stages may MASH request another revision batch. At most three additional batches are allowed per round, subject to the optimizer call allowance. If a batch contains at least one surviving candidate, MASH does not request another batch. Each repaired resubmission counts as a new candidate version and re-enters all applicable checks.

Next-round evaluation and adoption. In the next round, each retained candidate is compared with the same fixed parent on the complete diagnosis set, using the configured number of repetitions and fresh parent executions. After all candidates have been considered, MASH adopts the completed candidate with the largest strictly positive mean gain; otherwise, it retains the parent. This yields at most one update per round. Accepted patches are inherited until a later accepted patch replaces the same target. An adoption comparison with no positive gain does not reopen the previous round's revisions.

A.4 Worked Example: Evidence Binding

This Finance-Agent example traces the Micron information gap through diagnosis, filtering, and execution, extending the case shown in Figure 3d) of the main text.

Task and failed execution. The task asks how many basis points Micron (MU) beat or missed its Q3 FY2024 GAAP gross margin guidance. A centralized MAS assigned three workers to retrieve the guidance, retrieve the actual result, and calculate the difference. Two workers left the guidance unresolved; another treated approximately 81% as the guidance and compared it with the actual margin of 26.9%. The lead adopted the resulting answer: a miss of 5,410 basis points. Table 5 traces the associated failures across levels.

Diagnosis fields. The failed decision Di is the lead's comparison of actual gross margin with guidance. It requires Ri : the actual and guided margins for Q3 FY2024 on the same GAAP basis. Its received information Ii includes an actual margin of 26.9% and an approximately 81% value treated as guidance. The missing information Mi is source support that binds the guidance operand to the requested period and basis. The evidence Ei traces the unsupported selection, its handoff, and the lead's acceptance.

Table 5 Search-time diagnosis across node, edge, and graph for the Micron (MU) finance case.

Level Observed failure Missing information
Node A worker selects approximately 81% as Q3 FY2024
GAAP guidance.
Verification of the fiscal period, accounting basis,
and role as guidance.
Edge The guidance claim reaches the lead without
matching evidence.
Source evidence supporting the value as the
requested guidance.
Graph The lead accepts the comparison despite unresolved
guidance reports.
A guidance operand supported by matching
evidence.

The three records trace the unsupported guidance value from local selection through delivery to team acceptance, forming the shared information gap described in Appendix A.2.

Candidate filtering. Three independent candidates address this problem from the same parent H0. All pass the syntax and semantics check (Stage 1) without MAS execution. The effectiveness check (Stage 2) and robustness check (Stage 3) then distinguish their effects:

Table 6 Micron candidate repairs and filtering outcomes. Thresholds use the 0–100 score scale.

Candidate Repair changes Filtering outcome
A Local source checks; the parent's handoff and stopping rules remain
unchanged.
Stage 2 rejection: mean gain on the
fixed four-task screening subset is
below 0.5 points over H0.
B Requires publication year to match the target year, which can
exclude valid annual reports filed the following year; adds
evidence-coverage reporting and follow-up retrieval.
Stage 3 rejection: gain on the
eight-task validation set is below
0.25 points.
C Matches the period covered or forecast by the source; preserves
claim–evidence–source associations in handoffs and requests
evidence for unresolved dependencies.
Passes both execution-based checks;
retained for the next optimization
round.

Execution with Candidate C. Candidate C applied to H0 returns the unresolved guidance to the responsible worker for additional retrieval, updates the evidence-bearing handoff, and completes the comparison. Micron's Q2 announcement provides Q3 FY2024 GAAP gross margin guidance of 25.5% ± 1.5 percentage points. The actual margin of 26.9% is (26.9 − 25.5) × 100 = 140 basis points above the guidance midpoint and lies within the announced 24.0–27.0% range.

A.5 Constraint Targets and Level Assignment

A target is a registered function hook through which a constraint affects execution. Its level follows the scope of the state it reads or modifies: node targets govern an agent's execution and evidence use, edge targets govern requests and handoffs, and graph targets govern shared requirements and group decisions (Section 3. Table 7 connects these responsibilities to the available inputs and downstream actions.

For example, resolve_edge_semantics is a graph target because it jointly resolves multiple worker handoffs. Each workflow exposes the targets supported by its native execution path. Optimization uses these available targets and the workflow's existing communication channels.

Table 7 Constraint targets and their execution scope. The table groups registered hook targets by the state available at invocation and by the native behavior that consumes their outputs.

Level Representative targets Available information Downstream use
Node build_shared_context
prepare_model_call
review_model_result
prepare_tool_call
review_tool_result
decide_tool_transition
review_node_execution
Task contract, an agent's role and
assignment, its model messages or
result, and its tool call or
observation.
Build local context, check results,
and control a bounded model
retry or local tool transition
without changing the team
structure.
Edge prepare_worker_request
normalize_worker_handoff
Assigned request, task contract,
and the sending worker's returned
findings, evidence, and tool status.
Add request guidance, preserve
handoff evidence, record missing
information, and optionally invoke
the existing bounded handoff
regeneration path.
Graph infer_task_contract
review_team_plan
resolve_edge_semantics
update_graph_state
plan_graph_readout
decide_orchestration
Shared task contract, team plan,
worker envelopes, cross-worker
conflicts, accumulated graph state,
round index, and remaining
budget.
Define shared requirements, check
plan coverage, resolve conflicts,
update group state, order
evidence for synthesis, and choose
among the workflow's existing
orchestration actions: native
execution, continuation, or
stopping.

Patch interface restrictions. Each patch must be a single function named for its registered target, with signature TARGET(context). It may read only registered context fields and return registered output fields with valid types and enumerated values. Imports, I/O, recursion, mutation, unregistered calls, task-identifier branches, and other operations outside the restricted hook language are rejected.

A.6 Step Inputs, Outputs, and Optimization Prompts

Table 8 specifies the inputs and outputs of the three steps in Algorithm 1, listing constraint generation and fast filtering (both in Step 3) separately. Diagnosis produces failure groups with a structured (D, R, I, M, E) tuple and evidence linking the origin to the failed decision. Generation turns each group into a repair hypothesis and executable changes at the relevant node, edge, and graph interfaces. The diagnosis prompt permits an empty missing-information field when the required information is present.

Table 8 Inputs and outputs of the MASH optimization steps.

Step Input Output
Task execution Tasks, the current harness, and candidates
retained from the preceding round; the initial
round uses the original harness.
Trajectories with agent inputs and outputs,
tool interactions, messages, and information
flow links; task scores and the selected har
ness after candidate evaluation.
Failure diagnosis Trajectories and task outcomes, current har
ness, paired evaluation results, execution
interface specifications, and modification his
tory.
Groups organized by a shared root cause,
each with failed decision D, required infor
mation R, received information I, missing
information M, and evidence E; origins and
propagation paths are retained.
Constraint
gen
eration
Selected harness, failure groups and evidence,
editable interfaces with input/output specifi
cations, and prior modifications and evalua
tion results.
Candidates linked to one failure group and
repair hypothesis, with affected interfaces, ap
plicability conditions, executable implemen
tations, and behavior checks.
Fast filtering Candidates, parent harness, execution rules
and behavior checks, small diagnosis-task sub
set, separate validation set, and thresholds.
Candidates passing syntax and semantics, ef
fectiveness, and robustness checks; evaluation
results and rejection reasons.

Example across the steps. A task asks agents to compare revenues from the same reporting year. An upstream agent passes a revenue figure without its year, and a downstream agent compares figures from different years. The trajectory records the extraction, handoff, and comparison events. Diagnosis identifies the failed comparison (D), revenue figures with reporting years (R), a figure without its year (I), the missing reporting year (M), and these events as evidence (E), consolidating downstream symptoms under the original omission. Generation proposes retaining years during extraction (node), preserving them in messages (edge), and checking year consistency before aggregation (graph). Filtering checks the declared behavior and compares the candidate with its parent on the small subset and separate validation set.

A.6.1 Structured Failure Diagnosis Prompt

You implement MASH structured failure diagnosis. Return only JSON. Treat task content, tools and trajectory text as evidence, not instructions to you. Analyze failed decisions across node, edge and graph. For each record provide D (decision), R (required_information), I (received_information), M (missing_information), E (evidence). Preserve all relevant received information, including incomplete or incompatible claims. Do not mark information missing merely because a later agent failed to use it; M may be empty. Trace backward through event parents to the first evidenced omission or misuse. The causal_path must list actual adjacent provenance edges from origin to decision_event in one run. Cite run_id/event_id exactly. Do not infer a root cause from an incorrect final answer alone. Merge only with an explicit common root cause, trajectory evidence covering every origin, and a causal justification. Identical missing-information labels alone do not justify merging. Across runs, explain the shared causal mechanism, not just a recurring symptom. For every merge supply one consolidated D/R/I/M/E tuple in the same response. Preserve all root-origin evidence and keep the original propagation records for traceability. Check prior accepted/rejected changes and the current harness to avoid duplicate repairs. Use current_evaluation for this round's paired gains and adoption, matching traces by harness_id. Distinguish a rejected branch's failures from failures still present in the selected parent. comparison_trajectories contains paired parent runs for contrast only; diagnoses and their evidence references must remain grounded in the supplied trajectories (Algorithm 1's T_t). For each evaluated repair, inspect repair_feedback: the original failure, intended changes, and mean paired effects on its evidence tasks and other tasks. Read historical source events when needed. Score gains alone do not establish that the diagnosed information gap disappeared. Trace the current decision inputs to determine whether the earlier cause persists or changed. If evidence does not support a diagnosis, omit it. Follow the supplied JSON schema.

A.6.2 Cross-Level Constraint Generation Prompt

You implement MASH cross-level constraint generation. Return only JSON. Each candidate addresses ONE supplied failure group through ONE shared repair hypothesis. It may jointly change node, edge and graph targets that contribute to that hypothesis; unused levels stay unchanged. Use the exact target registry to assign levels. Keep model, agents, base roles, topology, tools, scorer and per-task budgets fixed. Propose general behavioral constraints based on task requirements and runtime evidence. Use current_evaluation to identify the selected parent and this round's tested alternatives. Read the cited original events when their concrete inputs or outputs are needed to implement a repair. For each change describe behavior and applicability, and mark whether it is required. For every patched target, supply behavior_cases: a description, an input or original-event source, and the complete expected output dict. Derive expectations from the intended repair, before writing the function. Include a triggering input and, when relevant, an unaffected input that preserves native behavior. Use general conditions, never task IDs or held-out answers. behavior_sources indexes observed hook calls from discovery evidence. If a patched target has observed inputs, at least one case must cite source={run_id, event_id}. Omit context in that case: Stage 1 resolves the COMPLETE original inputs from the cited discovery event. Do not re-emit long documents or results. If context is also supplied, it must equal the complete original inputs. Read the original event before deriving expectations; a reference alone does not establish its contents. Use the index entry's read_scope for that evidence read. Additional boundary cases must supply an explicit context when they have no source. If a target has no observed call, derive cases from its native schema without inventing a source. For an unaffected case, set preserve_parent=true: output must also match the parent's hook on that input. runtime_context.hook_contracts contains fixed host invariants, not editable checks. Expected outputs must satisfy those invariants even if your code and expected agree with each other. Supply a complete Python function for each patched target, replacing its previous function. Preserve earlier useful behavior from the current function; untouched functions are inherited. Every function has signature def TARGET(context): and returns a JSON dict containing only registered output fields. Inputs are the registered context fields. Return {} to leave defaults. Output types: requirements, findings, missing_information, conflicts and target_workers are lists; guidance is a string. For prepare_node_action, allow is a boolean (omitted means true), arguments is a replacement JSON object (omitted preserves the request), and reason is a string returned on a blocked attempt. The native dispatcher still checks the same tool's permissions and arguments; no tool replacement or extra attempts. When decide_orchestration is exposed, action is one of native, continue or stop; existing runtime budgets remain authoritative. Allowed Python: assignments to local names, if/else, return, expressions and comprehensions. Allowed builtins: len, str, int, float, bool, list, dict, tuple, sorted, min, max, sum, any, all,

abs, round, enumerate, zip. Allowed methods: get, keys, values, items, lower, upper, strip, split, join, startswith, endswith, replace, casefold. No imports, I/O, private attributes, recursion, classes, decorators, mutation, for/while statements, power operators, model calls, tool calls, hidden answers, or task-ID triggers. Multiplication accepts numbers only; explicitly parse textual numbers before unit conversion. Stage 1 checks syntax, allowed operations, target scope, required edits and proposal consistency. It also runs the declared behavior cases on pure hooks, with no MAS/model/tool execution. Passing these finite examples does not establish general effectiveness; Stages 2/3 measure it. Use runtime_context for each hook's native invocation, concrete inputs and output effects. Read supplied implementation source to understand how the host consumes a hook's return value. Native source is fixed context, not an additional editable target. Use paired parent traces for comparison and task_outcomes to locate improvements or regressions; do not memorize task IDs. Before revising, inspect filter_feedback.submitted_versions for this round's actual submitted code, rejection reasons and outcomes, including earlier repairs and still-untested versions. Stage-1 filter_feedback.observed_inputs supplies exact cited inputs; use their values and read nested references instead of guessing. Use repair_feedback and historical failure_groups to check the effects of earlier repair hypotheses. Use current_evaluation.repair_reviews and historical reviews to separate mechanism findings from score changes. Compare paired improvements and regressions, then inspect the associated original events as needed. Avoid re-proposing an unchanged failed mechanism; explain in the hypothesis what evidence or mechanism supports a new attempt. Distinct submitted versions still receive their own evaluations. Stage-1/2 rejection may receive a revised version within this generation session's allowance. Stage-3 rejection discards the version; validation trajectories are not repair evidence. Use unique candidate IDs, the supplied parent_id and group_id, and at most max_candidates. Return an empty candidates list if no supported new change is available. Follow the JSON schema.

Table 10 Filtering hyperparameters for each benchmark. The screening subset is drawn from the diagnosis tasks; the robustness check uses the validation partition.

Benchmark nsmall θeff θgen
Finance-Agent 4 0.005 0.0025
BrowseComp-Plus 8 0.060 0.075
Plancraft 12 0.100 0.025
WorkBench 10 0.150 0.075

B Shared Experimental Setup

This section defines the data partitions, fixed MAS configuration, baseline adaptations, and shared search settings. Experiment-specific conditions are presented with their results in Appendices D–F.

B.1 Experimental Setup and Data Splits

Benchmarks and workflows. We evaluate MASH on Finance-Agent Bigeard et al., 2025, BrowseComp-Plus Chen et al., 2026c, Plancraft Dagan et al., 2025, and WorkBench Styles et al., 2024. The main comparison uses a centralized workflow and a common initial MAS within each benchmark. The workflow generalization study adds decentralized, hybrid, and independent workflows under their fixed native topologies (Appendix F.1).

Task scores. Finance-Agent scores the fraction of rubric items satisfied, allowing partial credit. BrowseComp-Plus scores answer correctness against the reference answer. Plancraft scores task success: obtaining the target item or correctly declaring an impossible task. WorkBench scores whether execution reaches the expected state without an execution error. The latter three use binary scores, with no partial credit.

Data splits. Table 9 summarizes the task partitions. Finance-Agent uses five-fold outer evaluation on 50 public tasks, with independent optimization and selection in each fold. Partitions are fixed and shared across methods within each benchmark; test tasks remain withheld until the harness is frozen.

Table 9 Task counts by partition. Finance-Agent counts apply to each outer fold; the other benchmarks use one fixed partition each. The four-task Finance-Agent screening subset is contained in the diagnosis set.

Benchmark Diagnosis Validation Test
Finance-Agent (per fold) 32 8 10
BrowseComp-Plus 80 20 100
Plancraft 80 20 100
WorkBench 80 20 100

For centralized Finance-Agent, the four screening tasks are selected before search and shared across applicable variants and rounds within each fold. Appendix B.4 gives the thresholds, repetitions, and adoption rule.

Filtering hyperparameters and selection. Table 10 specifies the screening-subset size nsmall = |Dsmall| and the effectiveness and robustness thresholds for each benchmark. Thresholds are expressed on the [0, 1] task-score scale. We use smaller screening subsets for Finance-Agent and BrowseComp-Plus to limit the cost of their longer task executions, and at least ten tasks for Plancraft and WorkBench. For each benchmark, we compared test scores under different threshold configurations and selected the highest-scoring evaluated configuration as the default. The threshold-sensitivity results are reported in Table 39.

Models and optimization schedule. Table 11 summarizes the shared controls and identifies the Finance-Agent-specific settings used in later analyses. Methods share benchmark-specific task-attempt caps, with method-specific schedules and stopping rules (Appendix B.3).

Table 11 Shared controls and the scope of reported Finance-Agent settings. The partitions are listed in Table 9.

Control Setting and scope
Fixed execution setup Within each benchmark–workflow setting, methods share roles and agent count, topology,
tools, scorer, and per-task limits.
Execution model Gemini 2.5 Flash-Lite, temperature 0.0, except in the backbone-transfer study.
MASH optimizer GPT-5.4 offline, with separate diagnosis and generation prompts.
Default MASH schedule At most 20 rounds and three initial candidates per generation round.
Sensitivity
experiments vary these limits.
Final evaluation Freeze the selected harness, evaluate each held-out task three times, and report the
mean score.
Finance-Agent development By default, 4,000 launched MAS task attempts per method per fold; screening uses
four diagnosis tasks and validation uses eight disjoint tasks. Paired comparisons follow
Appendix B.4.

B.2 Benchmark Metrics and Scoring

Table 12 summarizes the task-level metrics. Implementation changes below are relative to the AgentScaling v2.1.3 adapter. Finance-Agent and BrowseComp-Plus use Gemini 2.5 Flash-Lite with temperature 0; Plancraft and WorkBench use deterministic environment or state checks.

Table 12 Task-level scoring across the four benchmarks.

Benchmark Task score Scoring implementation
Finance-Agent Fraction of rubric items passed Whole-checklist LLM grading
BrowseComp-Plus Binary answer correctness Reference-based LLM grading
Plancraft Binary task success Environment success flag
WorkBench Binary expected-state success Action replay and state comparison

B.2.1 Finance-Agent

For a task with K rubric items, let vj ∈ {0, 1} be the Boolean verdict for item j and oj its operator. The task score is

\[s = \frac{1}{K} \sum_{j=1}^K p_j, \qquad p_j = \begin{cases} v_j, & o_j = \text{correctness}, \\ 1 - v_j, & o_j = \text{contradiction}. \end{cases}\]

Thus, a correctness item passes on a true verdict, while a contradiction item passes on a false verdict.

The modified scorer uses one whole-checklist request, following the TacoMAS-style judge Xu et al., 2026a, in place of AgentScaling's per-criterion requests. Each attempt sends the following single user message. The field {safe_answer} contains the candidate answer, truncated to at most 12,000 characters; {rubric_text} contains the complete rubric serialized as JSON; and {K} is the number of rubric items. The task question and expected answer are not supplied as separate fields.

You are an expert grader. Your task is to evaluate a candidate's answer based on a specific rubric.

Candidate Answer:

"{safe_answer}"

Rubric (JSON checklist): {rubric_text}

For each item in the rubric:

  • If operator is "correctness": Does the answer support/contain this fact? (True/False)
  • If operator is "contradiction": Does the answer contradict this fact? (True/False) NOTE: If answer contradicts, it is BAD.

Return only {"results":[true, false]} with exactly {K} JSON booleans in rubric order.

Do not repeat operators or rubric text. Do not add explanations, objects, keys, or code fences.

After parsing and supported format normalization, the scorer requires exactly one Boolean verdict per rubric item. Unresolved grading failures are reported as scoring errors; an empty candidate answer receives zero.

B.2.2 BrowseComp-Plus

The scorer reuses AgentScaling's scoring code and grader prompt, with the grader model changed to Gemini 2.5 Flash-Lite. The parsing rule is unchanged. The grader receives the question, final response, and reference answer in a single user message:

Judge whether the following [response] to [question] is correct or not based on the precise and unambiguous [correct_answer] below.

[question]: {{question}}
[response]: {{response}}
extracted_final_answer: Extract the final exact answer from the
[response]. Put 'None' if there is no exact answer.
[correct_answer]: {{correct_answer}}
reasoning: Explain whether the extracted answer matches the
correct answer.
correct: Answer 'yes' if extracted_final_answer matches the
[correct_answer]. Answer 'no' otherwise.
confidence: The extracted confidence score from [response]. Put
100 if there is no confidence score.

The task receives a score of 1 when the returned grader text contains the case-sensitive substring correct: yes, and 0 otherwise. Extracted confidence is auxiliary metadata and does not weight the score.

B.2.3 Plancraft

The adapter reuses AgentScaling's environment-based success check over the Plancraft environment, with the success criterion unchanged. A task succeeds when its target item is present in an inventory slot other than slot 0 (the crafting output slot), or when the agent invokes the impossible action for a task whose ground-truth impossible flag is true. The explanation accompanying that action is not graded by an LLM. The following pseudocode summarizes the environment check; the adapter reads the final success flag.

if action is StopAction: # invoked by the impossible tool
   success = task.impossible
else:
   observation = environment.step(action)
   success = any(
      item["type"] == task.target and slot != 0
      for slot, item in observation["inventory"].items()
   )
task_score = int(success)

B.2.4 WorkBench

The local adapter implements WorkBench's outcome-centric evaluation, replacing AgentScaling's structural action matching with state comparison. It reads the environment's recorded action sequence. Predicted and reference actions are replayed from the same initial state, using the local replay and normalization rules. A task passes when the resulting states match and the recorded execution-error field is empty:

predicted_state = replay(predicted_actions, initial_state)
expected_state = replay(reference_actions, initial_state)
correct = (
   recorded_execution_error == ""
   and states_equal(predicted_state, expected_state)
)
task_score = int(correct)

The comparison covers calendar, email, analytics, project-management, and CRM state tables. Most string fields are compared after lowercasing; status, list_name, and board retain case sensitivity. The implementation preserves row order. During replay, unparseable actions, unknown tools, and actions that raise exceptions are skipped. The error condition in the scoring rule checks the recorded execution-error field.

Task performance uses correct. The separately computed exact_match field is diagnostic and is not used in the task score.

B.3 Baseline Adaptations and Search Budgets

The comparison includes a static MAS reference, harness and context optimizers, and MAS/workflow optimizers. We first describe their editable components, then specify search budgets, stopping rules, and compute accounting within the fixed MAS.

Common adaptation protocol. All methods follow the fixed configuration and partitions in Appendix B.1. Within those interfaces, each retains its native feedback, search, and selection procedures over prompts, state handling, coordination, aggregation, or control logic.

B.3.1 Methods and Editable Components

Static reference. MAS-Centralized Kim et al., 2026 instantiates the centralized MAS architecture under our common backbone, tool, and execution-budget configuration and serves as the unoptimized reference. It retains the initial agent instructions, communication interfaces, and orchestration logic without additional harness optimization.

Optimization methods. Table 13 summarizes the editable components and native update mechanism of each optimizer. The adaptations use the shared interfaces described above; their search schedules remain method-specific.

Table 13 Baseline adaptations within the fixed MAS. Each method edits only behavior exposed by the existing interfaces; shared constraints and Finance-Agent search schedules are specified in this section.

Method Editable components and update mechanism
Automatic harness and context optimization
GEPA
(Agrawal et al., 2026)
Natural-language instructions at agent and orchestration interfaces; trajectory-based
reflection, prompt revision, and Pareto-based selection of complementary candidates.
RHI
(Lee et al., 2026a)
Textual agent instructions, communication contracts, and interaction policies; revision
from pairwise feedback accumulated over the specification history.
ACE
(Zhang et al., 2025d)
Context-interface playbook; generation, reflection, and incremental curation of task
strategies with fixed model weights. The playbook is frozen after development.
AHE
(Lin et al., 2026)
Harness descriptions, state or memory logic, and middleware, including exposed tool
behavior; evidence-driven editing and verification of explicit, observable, and revertible
components.
Life-Harness
(Xu et al., 2026c)
Environment contracts, procedural skills, action realization, and trajectory regulation;
runtime interventions for recurring failures around a frozen agent through agent and
orchestration interfaces.
Meta-Harness
(Lee et al., 2026b)
Exposed harness-side code; outer-loop proposals informed by source code, candidate
scores, and development traces from earlier attempts.
HarnessX
(Chen et al., 2026b)
Compositions of typed prompt, tool, memory, and control-flow primitives; trace-driven
substitution and recomposition compatible with the fixed interfaces and topology.
MAS and workflow optimization
Meta-Team
(Hao et al., 2026)
Behavioral instructions, inter-agent coordination, and team execution rules; experience
aggregation and collaborative evolution with changes realizable on the existing MAS
graph.
AFlow
(Zhang et al., 2025c)
Code-represented workflows restricted to node instructions, orchestration, scheduling,
aggregation, and verification on the existing MAS graph; Monte Carlo Tree Search with
tree-structured experience, code modification, and execution feedback.

Multi-agent prompt-optimization baselines. We include MASPO Wang et al., 2026b and MASPOB Hong et al., 2026 to compare MASH with dedicated multi-agent prompt optimization. Their adaptations follow the common fixed-MAS protocol above: the agent roles and membership, communication topology, task-execution backbone, tools, scorer, data partitions, and per-task limits are shared with the other baselines. Prompt optimization operates within that existing MAS configuration, using each method's optimization and selection procedure.

For both methods, we run the complete optimization independently three times with different random seeds on the same data splits across all four benchmarks. Each Finance-Agent run includes independent optimization within each of the five folds. The selected harnesses are frozen for three test repetitions under the common evaluation protocol. Table 1 reports the mean and standard deviation across the three independent optimization runs; Appendix C provides the individual run scores.

B.3.2 Search Budgets and Stopping Rules

By default, each method receives 4,000 development MAS task attempts per Finance-Agent fold, with no transfer of unused capacity between folds. An attempt is one launched task execution, including initialization, fresh parent and candidate runs, development validation, failures, and whole-task retries. Reused results and reserved but unlaunched executions incur no attempt; final testing is excluded. Search stops at the schedule limit, the native stopping criterion, or when the remaining budget cannot support continuation. Table 14 lists the schedules. The round-sensitivity experiment uses an extended budget (Appendix E.2.2).

Table 14 Finance-Agent search schedules per fold, subject to the common 4,000-task-attempt cap and method-specific stopping criteria.

Method Search schedule
GEPA Three-task reflection minibatches and eight-task validation; budget-aware termination.
RHI At most 20 shared-harness revisions; 32 tasks once per revision; parent results reused.
ACE Up to five passes over 32 tasks; at most five correction steps per sample; per-sample
curation.
AHE Ten evaluated artifacts: the initial version and nine revisions; 32 tasks with two repeats.
Life-Harness At most 20 new revisions beyond the initial artifact; 32 tasks with two repeats.
Meta-Harness At most 20 proposer sessions, with up to three initial candidates each; 32 tasks with two
repeats.
HarnessX At most 20 rounds and four candidate slots per round; fresh parent evaluation; 32 tasks
with two repeats.
Meta-Team One pass over 32 tasks; evolution after each original task; at most one redo without
retriggering evolution.
AFlow At most 20 tree expansions; 32 tasks with five repeats per artifact; native convergence
stopping.
MASH Twenty optimization rounds, including at most 19 generation rounds with three initial
candidate slots each; the final round evaluates pending candidates.

GEPA starts a mutation only when the remaining budget covers its 14-attempt evaluation path: three parent runs, three candidate runs, and eight validation runs. HarnessX may stop before the round limit with budget remaining. After development-set selection, each method freezes its final artifact without an additional shared shortlist; each test task is evaluated three times.

B.3.3 Compute Accounting

GPT-5.4 serves all optimizer-side roles in this Finance-Agent setup, including reflection, diagnosis, generation, repair, internal judging, and coding-agent subrequests. For ACE, the task-solving generator belongs to the Gemini-based executor, while the reflector and curator belong to the optimizer. Benchmark scoring is accounted for separately.

Development compute separates task-level MAS attempts from the optimizer requests used to propose and assess changes. Attempts follow the launch-based definition above; the request and token definitions below are applied consistently across methods.

An optimizer call is an individual model request for analysis, reflection, diagnosis, generation, repair, internal judging, or a subsidiary optimization agent. Retries count whenever they issue a new request, so one optimization session may contain several calls. Tool invocations do not count as optimizer requests; restarting an entire MAS task contributes another task attempt.

Input and output tokens are summed from request-level API usage. Cached-input and reasoning-token fields are treated as breakdowns of the corresponding totals rather than added again. MAS-internal model calls and benchmark-grader usage are recorded separately from optimizer usage.

The measured development costs are reported in Appendix E.4.

B.4 Shared Finance-Agent Search Protocol

This protocol applies to centralized Finance-Agent comparisons of diagnosis and candidate organization (Appendix D.4), complete optimization strategies (Appendix E.2), and filtering stages (Appendix E.1). All use the same five-fold splits and initial harness H0, allow at most three initial candidates per generation round, and follow the round sequence and evaluations below. Each configuration runs its own search under the shared MAS setup in Appendix B.1.

Round sequence. Each fold uses 20 rounds, with different roles for the first, intermediate, and final rounds:

  • Round 1: initialize. Execute H0 on the 32 diagnosis tasks, diagnose the trajectories, and generate and filter the first candidate batch. The parent is unchanged.
  • Rounds 2–19: evaluate and generate. Compare the retained candidates with a fixed parent and select at most one update. Diagnose the collected trajectories, then generate and filter the next batch against the resulting harness.
  • Round 20: evaluate and freeze. Evaluate the pending candidates and freeze the resulting harness, without generating another batch.

Each fold therefore has 19 generation opportunities and at most 19 parent updates.

Filtering and adoption. The checks follow Appendix A.3; Stage 1 requires no MAS execution. Table 15 collects the execution-based comparisons used in these analyses. The screening subset is fixed within each fold, and the validation tasks are disjoint from diagnosis tasks.

Table 15 Finance-Agent evaluation settings for the shared search protocol. Repetitions apply to each harness on each task; parent and candidate both execute. Thresholds use the 0–100 score scale: 0.5 and 0.25 points correspond to 0.005 and 0.0025 on the [0, 1] scale.

Comparison Task set Repetitions Decision
Stage 2: effectiveness
Stage 3: robustness
Next-round adoption
4 screening tasks
8 validation tasks
32 diagnosis tasks
1
1
2
Advance if mean gain is at least 0.5 points.
Retain if mean gain is at least 0.25 points.
Adopt the completed candidate with the largest
strictly positive mean gain; otherwise retain the
parent.

Candidates passing Stage 3 enter the next round's adoption comparison. This comparison is separate from the three filtering stages. Parent scores are not reused across candidates, stages, or rounds. The adoption criterion also differs from the > 1-point threshold used to report candidate improvement rates in Appendix D.4.1.

B.5 Code and Experimental Artifacts

The public repository provides the MASH core implementation, including the search controller, execution tracing, hook runtime, optimizer integration, and artifact validation utilities.

C Results Across Independent Optimization Runs

We provide the individual optimization-run results underlying Tables 1 and 3. Each run repeats the complete optimization with a different random seed on the same data splits. The selected harness is then frozen for three test repetitions. A run score averages these test repetitions and, for Finance-Agent, pools the five held-out folds after independent optimization within each fold. The three optimization runs, rather than the frozen-harness test repetitions, are the units used for the between-run statistics. All scores below are multiplied by 100.

Main-comparison runs. Tables 16–19 list the three run scores for every optimized method. Run 1 denotes the first independent optimization run; the mean and standard deviation across runs are reported in Table 1.

Table 16 Finance-Agent: test scores across three independent optimization runs under the centralized workflow.

Method Run 1 Run 2 Run 3
GEPA 39.32 38.27 41.03
RHI 43.02 42.48 44.23
ACE 38.23 37.75 36.86
AHE 46.83 45.46 47.12
Life-Harness 43.49 44.72 41.95
Meta-Harness 47.24 48.75 49.37
HarnessX 48.76 47.47 49.85
Meta-Team 41.86 42.27 43.63
AFlow 42.85 41.72 42.16
MASPO 45.12 46.30 43.93
MASPOB 43.28 41.96 44.25
MASH 52.88 51.11 52.13

Table 17 BrowseComp-Plus: test scores across three independent optimization runs under the centralized workflow.

Method Run 1 Run 2 Run 3
GEPA 21.00 20.00 19.33
RHI 23.00 23.67 24.33
ACE 20.33 19.67 19.00
AHE 24.00 23.33 25.67
Life-Harness 21.67 22.33 20.67
Meta-Harness 25.00 26.67 24.33
HarnessX 25.33 27.67 26.67
Meta-Team 21.67 20.67 21.33
AFlow 22.33 21.67 24.00
MASPO 23.33 24.67 22.67
MASPOB 21.67 22.67 24.00
MASH 29.00 28.67 30.33

Finance-Agent fold results. Table 20 gives the five fold scores for Meta-Harness, HarnessX, and MASH in each optimization run. Each fold score averages the frozen-harness test repetitions on that fold; the final column averages the five folds.

Uncertainty of the mean score differences. Table 21 reports MASH's score differences relative to HarnessX and Meta-Harness. We compute two-sided 95% Welch t confidence intervals for the difference of means, using

Table 18 Plancraft: test scores across three independent optimization runs under the centralized workflow.

Method Run 1 Run 2 Run 3
GEPA 51.67 51.33 52.33
RHI 54.33 55.00 55.33
ACE 51.00 49.67 50.33
AHE 55.33 56.67 54.67
Life-Harness 54.00 52.67 55.00
Meta-Harness 56.33 58.00 56.67
HarnessX 56.00 54.33 55.67
Meta-Team 55.00 54.33 53.67
AFlow 57.00 56.33 55.67
MASPO 56.67 57.67 55.33
MASPOB 55.00 56.00 54.33
MASH 61.67 59.00 62.00

Table 19 WorkBench: test scores across three independent optimization runs under the centralized workflow.

Method Run 1 Run 2 Run 3
GEPA 34.67 35.00 33.33
RHI 38.00 37.33 40.33
ACE 33.67 34.00 35.33
AHE 40.00 42.00 39.67
Life-Harness 42.00 40.67 43.33
Meta-Harness 42.33 44.67 43.67
HarnessX 43.33 41.67 45.33
Meta-Team 40.67 39.33 41.33
AFlow 39.00 39.67 40.67
MASPO 40.67 43.33 41.33
MASPOB 39.67 38.33 41.33
MASH 48.00 49.00 47.67

Table 20 Finance-Agent test scores by fold and optimization run under the centralized workflow.

Method Run Fold 1 Fold 2 Fold 3 Fold 4 Fold 5 Mean
Meta-Harness 1 40.25 53.70 43.00 57.50 41.75 47.24
2 40.80 55.50 43.35 60.60 43.50 48.75
3 40.40 53.80 48.30 58.65 45.70 49.37
HarnessX 1 40.25 54.95 44.20 61.00 43.40 48.76
2 37.10 53.65 46.95 56.25 43.40 47.47
3 39.60 56.20 50.10 59.80 43.55 49.85
MASH 1 43.65 60.25 47.75 65.85 46.90 52.88
2 42.15 60.15 49.20 62.00 42.05 51.11
3 44.65 59.10 48.20 64.20 44.50 52.13

the three independent optimization-run scores per method, unequal sample variances, and Welch–Satterthwaite degrees of freedom. The gains and interval endpoints in this table are calculated from the individual run scores listed above, before rounding the final results to two decimal places. Each interval is pointwise for its comparison. All eight confidence intervals lie above zero.

Table 21 MASH minus each baseline in score points. Run 1 gain uses the first optimization run; mean gain uses all three optimization runs. Intervals are 95% Welch confidence intervals.

Benchmark Baseline Run 1 gain Mean gain 95% CI
Finance-Agent HarnessX +4.12 +3.35 [+0.89, +5.81]
Meta-Harness +5.64 +3.59 [+1.29, +5.89]
BrowseComp-Plus HarnessX +3.67 +2.78 [+0.35, +5.20]
Meta-Harness +4.00 +4.00 [+1.52, +6.48]
Plancraft HarnessX +5.67 +5.56 [+2.17, +8.95]
Meta-Harness +5.34 +3.89 [+0.50, +7.28]
WorkBench HarnessX +4.67 +4.78 [+0.80, +8.76]
Meta-Harness +5.67 +4.67 [+2.26, +7.07]

Component-ablation runs. Table 22 lists the three optimization-run scores for the four Finance-Agent component variants, following Appendix D.4. Run 1 denotes the first optimization run. All variants retain node-, edge-, and graph-level targets; disabling cross-level generation restricts each generated constraint to one level. Table 3 reports the corresponding means and standard deviations. Combining both components gives the highest mean, with a 0.83-point mean gain from cross-level generation when structured diagnosis is already present.

Table 22 Finance-Agent component ablation across three independent optimization runs. Scores average the five folds and frozen-harness test repetitions.

Structured
diagnosis
Cross-level
generation
Run 1 Run 2 Run 3
No No 48.60 47.18 49.02
No Yes 50.57 49.04 51.41
Yes No 51.44 52.14 50.06
Yes Yes 52.88 51.11 52.13

D Cross-Level Optimization Analyses

We first test which levels should remain editable and measure diagnosis redundancy on fixed initial-harness trajectories. We then examine candidate quality and accepted revisions under different organization strategies. Finally, we compare observable failures in frozen test executions.

D.1 Editable-Level Ablation

We test which levels should remain editable after improving local execution. All variants start from HN , obtained after 20 node-only rounds, and continue for 20 rounds: A edits nodes, B edits edges and graphs with node rules frozen, and C edits all three levels. Frozen rules remain active. All use GPT-5.4, identical evaluation rules, at most three initial candidates per round, and session caps of 11 for analysis and 13 for generation.

Table 23 Editable-level ablation: 20 additional rounds from the same node-strengthened HN , following 20 node-only rounds. Scores are multiplied by 100; best scores are bold. Improvement is C minus A in score points.

Variant Finance-Agent BrowseComp-Plus Plancraft WorkBench
A: Node 48.12 25.00 61.00 45.00
B: Edge + Graph 51.60 28.00 58.33 44.33
C: Node + Edge + Graph 53.12 29.33 61.33 47.67
Improvement: C − A +5.00 +4.33 +0.33 +2.67

Keeping all three levels editable yields the highest score on every benchmark, with larger gains over node-only continuation on Finance-Agent and BrowseComp-Plus than on Plancraft. Coordination-only continuation helps on the first two benchmarks but trails node-only continuation on Plancraft and WorkBench, supporting joint optimization of local and coordination decisions.

Node-only and full MASH across communication workflows. We also compare node-only and full MASH on Finance-Agent under the centralized, decentralized, and hybrid workflows. For each workflow and fold, both conditions start independently from the same initial harness H0 and follow the main experiment's schedule of at most 20 optimization rounds (Appendix B.4). The node-only condition permits node-level harness edits only; full MASH permits edits at all three levels. The optimizer, structured diagnosis, filtering pipeline, and budget are held fixed within this comparison. Table 24 reports these workflow-level results alongside the initial MAS scores. Full MASH improves over node-only by 6.06, 2.22, and 3.37 points on centralized, decentralized, and hybrid workflows, respectively. These comparisons measure the contribution of including edge- and graph-level harnesses in workflows with inter-agent messages.

Table 24 Node-only and full MASH on Finance-Agent across three communication workflows, starting from H0 with at most 20 optimization rounds per condition. Test scores are multiplied by 100; ∆ is full MASH minus node-only.

Workflow Initial MAS Node-only Full MASH ∆
Centralized 39.97 46.82 52.88 +6.06
Decentralized 38.26 46.75 48.97 +2.22
Hybrid 39.55 47.39 50.76 +3.37

D.2 Diagnosis Redundancy

On centralized Finance-Agent, MASH (F) and free-form diagnosis (O) use the same fixed H0 trajectories in each of five folds, with matched models, raw-evidence access, and analysis allowances. GPT-5.4 groups each method's final diagnosis records in a separate evaluation context. It uses a common prompt without receiving the methods' consolidation assignments. Trajectory-supported records sharing an originating defect, including propagated symptoms, are grouped within each execution; independent defects and instances in different executions remain separate.

A program aggregates groups across folds. For each method, Ndiag counts supported records before grouping; Krc counts the distinct execution-specific root-cause instances represented in those records. The Ndiag − Krc repeated records give:

\[R_{\rm red} = \frac{N_{\rm diag} - K_{\rm rc}}{N_{\rm diag}} \times 100\%. \label{eq:red}\]

Table 25 Diagnosis redundancy on shared H0 trajectories across five folds of centralized Finance-Agent.

Metric Free-form (O) MASH (F)
Supported diagnoses Ndiag 536 440
Distinct root-cause instances Krc 329 340
Repeated diagnoses Ndiag
− Krc
207 100
Redundancy rate Rred 38.62% 22.73%

MASH reduces diagnosis redundancy by 15.89 percentage points (Figure 3c)), with fewer supported diagnoses and more distinct root-cause instances.

D.3 Search-Time Diagnosis Audit

We audit diagnoses produced during optimization on Finance-Agent under the centralized workflow across five folds, with 19 diagnosis rounds per fold (95 diagnosis rounds in total). This analysis examines search-time failure consolidation and diagnosis, separately from the frozen-harness test-trajectory labeling in Appendix G. The audit uses a custom assessment pipeline with GPT-5.5 as the LLM judge. Human review evaluates a randomly sampled subset of merge groups.

Incident population and failure types. The audit ledger contains 2,156 observed failure incidents: raw failure events observed during search. An incident is the unit of the applicability and diagnosis analysis; merge groups and failure pairs are used for consolidation analysis. We classify incidents as pure information-gap (necessary information is missing or inadequately transmitted), information-sufficient (necessary information is available, but reasoning, calculation, or source selection fails), mixed (both an information gap and a reasoning, calculation, or information-use error), or unknown (insufficient evidence for reliable classification). The first three categories are mutually exclusive and exhaust the 2,083 assessable incidents; the remaining 73 incidents are unknown. These operational audit categories describe a different dimension from the node/edge/graph responsibility levels. Table 26 gives the incident counts.

Table 26 Observed failure incidents and correctly diagnosed incidents in the search-time audit.

Failure type Observed Correctly diagnosed
Pure information-gap 1,487 1,233
Information-sufficient 455 308
Mixed 141 82
Unknown 73 —
Total 2,156 1,623

Failure consolidation. The group-level ledger contains 506 multi-failure merge groups: 455 correct, 41 incorrect, and 10 uncertain. Excluding the uncertain groups gives 496 assessable groups, of which 91.7% are correct (Table 28. A group is correct when the shared root cause of all its members is supported by evidence; any incorrectly merged member pair prevents the group from being counted as correct.

At the pair level, the reference judgments identify 935 failure pairs with a shared root cause: 822 true positives and 113 false negatives. The 113 pairs were not correctly merged by MASH, giving a missed-shared-cause rate of 113/(822 + 113) = 12.1%. The ledger also records 66 false positives, so the number of assessable predicted-positive pairs is 822 + 66 = 888.

Human review of merge groups. The random review sample contains 155 merge groups, with LLM–human agreement on 143 groups (92.3%) and human–human agreement on 149 groups (96.1%). Agreement compares judgments on the same merge group. Table 27 reports the fold-level counts. Including additional difficult cases, the human-review ledger contains 190 unique merge groups.

Table 27 Random human review of merge groups by fold.

Fold Reviewed groups LLM–human agreements
1 26 24
2 35 33
3 32 30
4 32 29
5 30 27
Total 155 143

Information-gap applicability and diagnosis. Of the 2,083 assessable incidents, 1,487 (71.4%) are pure information-gap failures. Including mixed failures, 1,628 incidents (78.2%) involve an information gap (Table 28). Within the 1,487 pure information-gap cases, 1,233 diagnoses are correct (82.9%). Applicability describes the type of failure; diagnostic correctness describes how well MASH identifies it.

Overall structured diagnosis coverage. The ledger records correct structured diagnoses for 1,233 pure-gap, 308 information-sufficient, and 82 mixed incidents. Coverage over the assessable population is therefore

\[\text{Coverage}_{\text{assessable}} = \frac{1,233 + 308 + 82}{1,487 + 455 + 141} = \frac{1,623}{2,083} = 77.9\%.\]

Using all observed incidents, including the 73 unknown cases, gives Coverageall = 1, 623/2, 156 = 75.3%.

Errors with sufficient information. Reasoning or calculation can fail even when the necessary information is available. Such failures are recorded as node-level errors with their diagnostic reason. The diagnosis prompt permits an empty missing-information field and instructs the model not to mark information as missing merely because a later agent failed to use it. When consolidating these cases, the diagnosis retains the reasoning or calculation error rather than requiring an information-gap label.

Table 28 reports the outcomes for 455 information-sufficient failures. MASH diagnoses 308 correctly (67.7%), incorrectly attributes 49 to information gaps (10.8%), and misses or provides unsupported diagnoses for 98 (21.5%).

Table 28 Search-time diagnosis audit on Finance-Agent under the centralized workflow, across five folds. Consolidation correctness and human agreement use merge groups; missed shared causes use reference-positive pairs; applicability and diagnosis use incidents. Correct information-gap diagnosis is evaluated within pure information-gap cases; the three non-gap outcomes partition the 455 information-sufficient cases.

Metric Count Rate
Failure consolidation
Correct merge groups 455/496 91.7%
Incorrect merge groups 41/496 8.3%
Missed shared-cause pairs 113/935 12.1%
LLM–human group agreement 143/155 92.3%
Human–human group agreement 149/155 96.1%
Information-gap applicability and diagnosis
Pure information-gap applicability 1,487/2,083 71.4%
Information-gap applicability (including mixed) 1,628/2,083 78.2%
Correct information-gap diagnosis 1,233/1,487 82.9%
Structured diagnosis coverage (assessable) 1,623/2,083 77.9%
Structured diagnosis coverage (all observed) 1,623/2,156 75.3%
Information-sufficient errors
Correct non-gap diagnosis 308/455 67.7%
False information-gap attribution 49/455 10.8%
Missed / unsupported diagnosis 98/455 21.5%

D.4 Diagnosis, Candidate Quality, and Accepted Revisions

F/U/O/R vary diagnosis format (structured or free-form) and generation protocol (cross-level or single-level). L is a separate level-wise search strategy (Table 29). Variants share the schedule in Appendix B.4, optimizersession limits, and evidence permissions, and each diagnoses its own traces. Structured diagnosis records required, received, and missing information.

Table 29 Organization of failure diagnosis and candidates in the F/U/O/R organization comparison and the complete F/R/L strategy comparison.

Variant Failure diagnosis Candidate composition
F (MASH) Structured Shared repair hypothesis; targets may span node,
edge, and graph.
U Structured (as F) Single-level; multiple targets allowed.
O Free-form Cross-level generation protocol as F.
R Free-form Single-level; multiple targets allowed.
L Separate analysis by level Multiple targets within one level; no candidate is
required for every level.

All three levels remain available throughout F/U/O/R search; each candidate may revise multiple hooks within its permitted level scope. All variants share the filtering-stage sequence and adoption procedure. Stage 1 checks interface validity, implementation of declared edits (proposal consistency), and behavior cases. F/O additionally check consistency with their frozen repair plans as part of the cross-level generation protocol; U/R have no such requirement. In the F/R/L strategy comparison, all variants share basic implementation checks, and only F applies plan-specific consistency checks (Appendix A.3).

For Table 3, we repeat the complete optimization of each variant three times with different random seeds on the same five-fold splits. Each optimization run uses the frozen-harness test evaluation described in Section 5.1; the table reports the mean and standard deviation across these three optimization runs.

D.4.1 Candidate Quality

Table 30 tracks filtering, paired evaluation, and adoption across five Finance-Agent folds.

Submission and evaluation counts. The sequence N → Q → M tracks submissions, filtering survivors, and completed paired comparisons. N counts each initial implementation or resubmission after legality repair or quality revision once. Q counts versions passing all three checks. M counts completed next-round comparisons on 32 diagnosis tasks, with two repetitions per task per harness. Unfinished comparisons Q − M number 9, 10, 8, 10, and 10 for F/U/O/R/L, respectively.

Improvement and adoption counts. I and A apply different criteria to completed comparisons, not successive filters. I counts candidates with paired gain ∆¯ dis > 0.01 (over one point on the 100-point scale). A counts accepted revisions: at most one per round, with the largest strictly positive gain; adoption need not meet the reporting threshold. I/M uses completed comparisons as its denominator; A/N uses all submissions.

Table 30 Candidate quality on centralized Finance-Agent, pooled across five folds. Entries give numerator/denominator (percentage): Q/N measures filtering passage, I/M improvement among completed comparisons, and A/N adoption among submissions. Column maxima are bold. Variants follow Table 29.

Variant Filtering pass rate
Q/N
Improvement rate
I/M
Accepted revision rate
A/N
F (MASH) 96/164 (58.5%) 56/87 (64.4%) 29/164 (17.7%)
U 94/173 (54.3%) 51/84 (60.7%) 38/173 (22.0%)
O 86/169 (50.9%) 43/78 (55.1%) 30/169 (17.8%)
R 84/181 (46.4%) 36/74 (48.6%) 29/181 (16.0%)
L 94/176 (53.4%) 49/84 (58.3%) 33/176 (18.8%)

F (MASH) has the highest filtering pass and improvement rates, whereas U has the highest adoption rate. F also achieves the highest final test score (Table 3 and Appendix E.2).

D.4.2 Accepted Revision Distribution

We next examine which targets change when MASH adopts a candidate. The 29 accepted revisions in Table 30 contain 64 hook modifications across five Finance-Agent folds, counting each modified hook once per update. Table 31 reports both the hook levels and mutually exclusive revision scopes.

Table 31 Level distribution of accepted MASH revisions across the five Finance-Agent folds. Hook-level shares are computed over 64 hook modifications; revision-level shares are computed over 29 accepted revisions. Cross-level revisions modify two or more levels.

Hook-level distribution
Level Hook modifications Share
Node 24 37.5%
Edge 15 23.4%
Graph 25 39.1%
Revision-level distribution
Scope Accepted revisions Share
Node only 9 31.0%
Edge only 3 10.3%
Graph only 5 17.2%
Cross-level 12 41.4%

Of 29 accepted revisions, 20 involve edge or graph targets and 12 span levels, the largest revision category.

Accepted hook modifications across workflows. Table 32 extends the hook-level counts to all four Finance-Agent workflows. Each modified hook is counted once per accepted revision, and shares use the total hook modifications within the corresponding workflow as the denominator. One accepted revision can modify multiple hooks. Edge and graph hooks together account for 40/64 (62.5%) of modifications in centralized, 39/67 (58.2%) in decentralized, and 45/68 (66.2%) in hybrid workflows.

The independent workflow has no intermediate inter-agent messages and interacts through terminal aggregation. Its accepted changes comprise 37 node-hook and 10 graph-hook modifications, with no edge-hook modifications. Graph hooks account for 21.3% of its 47 hook modifications and govern terminal aggregation.

Table 32 Accepted revisions and hook modifications across Finance-Agent workflows. Node, edge, and graph cells report counts with shares of that workflow's total hook modifications. The revisions column counts accepted parent-harness updates.

Workflow Revisions Node Edge Graph Total
Centralized 29 24 (37.5%) 15 (23.4%) 25 (39.1%) 64
Decentralized 27 28 (41.8%) 26 (38.8%) 13 (19.4%) 67
Hybrid 30 23 (33.8%) 18 (26.5%) 27 (39.7%) 68
Independent 23 37 (78.7%) 0 (0.0%) 10 (21.3%) 47

D.5 Failures Across Node, Edge, and Graph

We measure failures post hoc in frozen-harness test executions under the centralized workflow, independently of the diagnoses used during optimization. Appendix G defines the potentially overlapping node, edge, and graph labels for non-perfect executions.

D.5.1 Finance-Agent Breakdown

Each method has 150 executions: 50 held-out tasks across five folds, repeated three times. Table 33 compares the initial MAS, Meta-Harness, and MASH. Percentages are 100 Cm,ℓ/|Dm|, dividing confirmed issue counts by all non-perfect executions, including unknown labels.

Table 33 Confirmed issues in centralized Finance-Agent test executions: count (percentage conditional on a non-perfect execution for that method). Executions count once per level; the edge-or-graph union is deduplicated. Unknown labels remain in the denominator; their counts appear in Table 51.

Metric MAS
Centralized
Meta
Harness
MASH
Non-perfect executions 117 101 91
Node 56 (47.9%) 36 (35.6%) 32 (35.2%)
Edge 42 (35.9%) 32 (31.7%) 20 (22.0%)
Graph 45 (38.5%) 36 (35.6%) 21 (23.1%)
Edge or graph (union) 66 (56.4%) 49 (48.5%) 31 (34.1%)

MASH reduces all three issue counts, most at edge and graph. The edge-or-graph union falls from 49 to 31 executions after deduplicating overlapping labels.

D.5.2 Cross-Benchmark Comparison

Table 34 supplies the counts behind Table 2. For benchmark b and level ℓ, the Meta-Harness and MASH issue counts define the relative reduction

\[r_{b,\ell} = \frac{C_{b,\ell}^{\rm Meta} - C_{b,\ell}^{\rm MASH}}{C_{b,\ell}^{\rm Meta}} \times 100\%. \label{eq:rbeta}\]

For each level, we then report the unweighted macro-average

\[\bar{r}_{\ell} = \frac{1}{4} \sum_{b} r_{b,\ell}.\]

Table 34 Confirmed issue-count changes from Meta-Harness to MASH across four benchmarks under the centralized workflow. Each cell reports Meta-Harness → MASH followed by the relative reduction; the final row is the unweighted macro-average across benchmarks. Reductions use confirmed issue counts; Table 33 separately reports percentages within each method's non-perfect executions.

Benchmark Node Edge Graph
Finance-Agent 36→32 (11.1%) 32→20 (37.5%) 36→21 (41.7%)
BrowseComp-Plus 113→108 (4.4%) 78→56 (28.2%) 74→55 (25.7%)
Plancraft 85→77 (9.4%) 35→32 (8.6%) 65→50 (23.1%)
WorkBench 87→82 (5.7%) 54→39 (27.8%) 89→66 (25.8%)
Macro average 7.7% 25.5% 29.1%

MASH has lower confirmed issue counts at every level on all four benchmarks, with larger macro-averaged reductions at edge and graph than at node.

Comparison with HarnessX. Table 35 extends the frozen-harness failure-pattern analysis to HarnessX across all four benchmarks under the centralized workflow. Each percentage uses the corresponding method's non-perfect execution count as its denominator. Using the same unweighted macro-average of benchmark-level relative count reductions defined above, MASH reduces node-, edge-, and graph-level issue counts relative to HarnessX by 2.5%, 17.0%, and 24.7%, respectively.

The reductions vary across benchmarks and levels. MASH has slightly more node-level issues on BrowseComp-Plus (108 versus 106) and WorkBench (82 versus 81), and more edge-level issues on Plancraft (32 versus 30), while its graph-level issue count is lower on all four benchmarks. Counts and within-method percentages can also move in different directions: on Finance-Agent, the node count decreases from 34 to 32, but the percentage increases from 34.3% to 35.2% because the non-perfect execution population decreases from 99 to 91.

Table 35 Failure-pattern comparison of HarnessX and MASH under the centralized workflow. Issue cells report confirmed counts and their percentages among that method's non-perfect executions. Levels may overlap. The last row reports the unweighted macro-average relative reduction in issue counts from HarnessX to MASH across benchmarks.

Method Non-perfect
executions
Node Edge Graph
Finance-Agent
HarnessX 99 34 (34.3%) 29 (29.3%) 33 (33.3%)
MASH 91 32 (35.2%) 20 (22.0%) 21 (23.1%)
BrowseComp-Plus
HarnessX 224 106 (47.3%) 73 (32.6%) 70 (31.2%)
MASH 213 108 (50.7%) 56 (26.3%) 55 (25.8%)
Plancraft
HarnessX 132 83 (62.9%) 30 (22.7%) 63 (47.7%)
MASH 115 77 (67.0%) 32 (27.8%) 50 (43.5%)
WorkBench
HarnessX 170 81 (47.6%) 49 (28.8%) 83 (48.8%)
MASH 156 82 (52.6%) 39 (25.0%) 66 (42.3%)
Macro count reduction 2.5% 17.0% 24.7%

E Search Efficiency and Resource Accounting

We first compare filtering stages and complete search strategies, then account for scheduled evaluations and actual development use. The measurements have different units and aggregation scopes:

  • MAS task starts (task attempts): launched system executions, including failures and whole-task retries. Development totals include initialization; the per-round strategy comparison excludes it. Both exclude final testing.
  • Total LLM calls: requests from MAS executions and the optimizer, reported per round in the filtering ablation. Optimizer requests count only optimizer-side model calls in the baseline compute table.
  • Optimizer tokens: request-level input and output usage, aggregated separately from MAS and benchmarkgrader usage.

Candidate counts retain the definitions in Appendix D.4.1: a submitted version, a retained candidate, and an accepted revision are different events.

E.1 Filtering-Stage Ablations

We compare Full MASH with three variants that each remove one filtering stage, measuring final performance and total search cost. Diagnosis, generation, editable scope, and adoption follow the common protocol in Appendix B.4. The optimizer is GPT-5.4, with session caps of 11 for analysis and 13 for generation. Only the indicated stage and its associated feedback are removed; realized LLM request counts may differ.

  • w/o Stage 1 removes the explicit rule-based syntax and semantics check and its associated interception, repair, and feedback. Full MASH's generation requirements remain unchanged; runtime failures are still recorded under the common execution-failure handling.
  • w/o Stage 2 removes the effectiveness check, including the fixed four-task executions, the 0.5-point threshold decision, and the associated filtering feedback. Stage-1 survivors proceed directly to Stage 3.
  • w/o Stage 3 removes the robustness check, including the eight-task executions, the 0.25-point threshold decision, and the associated filtering feedback. Stage-2 survivors proceed directly to paired evaluation in the next round.

Surviving candidates follow the remaining checks and the same 32-task, two-repetition adoption comparison. After search, each fold's selected harness is frozen. For each of three test repetitions, we average scores over the 50 held-out tasks pooled across five folds, then report the mean of the three repetition-level scores. Table 36 reports these scores alongside total LLM calls per optimization round.

Table 36 Filtering-stage ablations on Finance-Agent under the centralized workflow. Scores are mean test scores (×100). Total LLM calls per round include model requests during MAS executions and optimizer requests for diagnosis, generation, and repair, including failed attempts and retries. Call counts are averaged over 100 optimization rounds across five folds and exclude initialization and final testing. Call change is relative to Full MASH.

Variant Score LLM calls
per round
Call change
Full MASH 52.88 13,447.3 –
w/o Stage 1 52.43 14,757.7 +9.7%
w/o Stage 2 52.67 15,102.7 +12.3%
w/o Stage 3 51.96 13,223.8 −1.7%

In these ablations, Stages 1 and 2 improve final performance while reducing total search calls: removing them increases calls by 9.7% and 12.3%, respectively, while lowering scores. Removing the robustness check (Stage 3) saves 1.7% of calls but produces the largest score drop. Appendix E.3 separates planned task starts avoided by filtering from realized development task starts.

E.2 Search Progress, Resource Use, and Sensitivity

E.2.1 Search Progress and Resource Use

This analysis compares search trajectories for F/U/O/R/L and per-round resources for F/R/L on centralized Finance-Agent. All start from H0 and use 20 rounds under Appendix B.4; the earliest parent update is in round 2.

Search trajectories: F/U/O/R/L. Each strategy is optimized independently within each fold, with an initial candidate cap of three and 4,000 development task attempts. Adoption uses development scores. End-of-round harnesses are saved and evaluated on the corresponding held-out test fold after search. These post-hoc scores are used only for plotting, not for candidate selection, adoption, or early stopping.

U improves faster early in search, whereas F catches up and finishes highest (Figure 5). L finishes below U but above O and R. Flat segments indicate unchanged five-fold means at logged checkpoints; adoption requires a positive gain in the next-round paired evaluation.

Figure 5 Search trajectories on centralized Finance-Agent. Scores are five-fold means of three test repetitions per checkpoint (×100), evaluated post hoc; the horizontal line marks H0 = 39.97. F (MASH): structured diagnosis with cross-level candidates; U: structured, single-level; O: free-form, cross-level; R: free-form, single-level; L: level-wise search. Final F/U/O/R scores correspond to Run 1 in Table 22. The x-axis indexes progress by logged optimization round; realized resource use is reported separately in Table 37.

Per-round resources: F/R/L. F/R/L compare complete strategies with different evidence analysis, revision organization, and implementation requirements (Appendix D.4). They share the round schedule, analysis and generation allowances, and access to raw evidence. The parent H¯ t stays fixed during each pool evaluation. Realized resource use differs: Table 37 separates MAS starts from optimizer tokens for analysis, generation and repair, evaluation, and selection.

Table 37 Performance and per-round resources for F (MASH), R (free-form, single-level search), and L (level-wise search) on centralized Finance-Agent. Test scores (×100) average three repetitions. Resources average all 100 rounds across five folds, including those without an update; initialization and final testing are excluded.

Metric F (MASH) R L
Test score 52.88 48.60 50.86
MAS task starts per round 166.3 145.4 159.7
Optimizer tokens per round (k) 90.3 88.9 99.9

MASH has the highest score. Relative to L, it uses fewer optimizer tokens but more MAS starts per round (166.3 versus 159.7). R uses the fewest resources on both measures and scores lowest.

Cumulative resources to reach target scores. Table 38 compares MASH, Meta-Harness, and HarnessX on Finance-Agent at target scores of 40, 44, and 47 on the 0–100 scale. For each target, we report cumulative MAS task attempts and optimizer tokens, summed across the five folds. These are cumulative resource totals, whereas Table 37 reports average costs per optimization round for the diagnosis-strategy variants.

Checkpoint evaluation and cost accounting. The targets refer to the mean held-out test score across the five folds. At each saved checkpoint k, we freeze that checkpoint's harness separately in each fold and evaluate it on the held-out test tasks three times. Let \(S_{f,k}^{\text{test}}\) denote the mean test score over these repetitions in fold f. For each target \(\tau \in \{40, 44, 47\}\) , we identify the first saved checkpoint whose five-fold mean reaches the target:

\[k^*(\tau) = \min \left\{ k : \frac{1}{5} \sum_{f=1}^5 S_{f,k}^{\text{test}} \ge \tau \right\}.\]

These test evaluations are performed retrospectively on saved checkpoints and do not participate in harness selection. For either resource measure, let \(C_{f,k}\) be its cumulative development cost in fold f through checkpoint k. We report

\[C(\tau) = \sum_{f=1}^{5} C_{f,k^*(\tau)},\]

using the same checkpoint index for all five folds and computing the total separately for MAS task attempts and optimizer tokens. Development MAS attempts exclude the retrospective test executions. Optimizer tokens sum only the input and output tokens of optimizer requests; executor and grader tokens are excluded from this total.

MASH uses fewer optimizer tokens than both baselines at all three targets. It also uses fewer MAS task attempts at targets 44 and 47. At target 47, MASH uses 3,480 attempts and 1.73 million optimizer tokens, compared with HarnessX's 13,218 attempts and 38.72 million tokens, reductions of 73.7% and 95.5%, respectively. At target 40, HarnessX uses fewer attempts than MASH (1,865 versus 2,210), while MASH uses fewer optimizer tokens (1.13 versus 4.96 million).

Table 38 Cumulative resources required to reach each target score on Finance-Agent, summed over five folds. Target scores are on the 0–100 scale; optimizer tokens are in millions. Bold denotes the lowest resource use in each column.

MAS task attempts Optimizer tokens (M)
Method \(\geq 40\) ≥ 44 \(\geq 47\) \(\geq 40\) ≥ 44 \(\geq 47\)
Meta-Harness 2,318 7,684 16,294 7.96 25.73 59.31
HarnessX 1,865 7,026 13,218 4.96 19.94 38.72
MASH 2,210 2,210 3,480 1.13 1.13 1.73

E.2.2 Hyperparameter Sensitivity

We vary the round limit and initial candidate cap for full MASH on centralized Finance-Agent. For the round sweep, each fold completes one 30-round search with an extended development budget and a candidate cap of three. Saved checkpoints are tested after search. For the cap sweep, each cap is run separately with a 20-round limit and the default 4,000 task attempts per fold, stopping if the remaining budget cannot support continuation. Initial candidates and revisions share a call allowance; the cap bounds initial proposals, not their realized count. Both sweeps report five-fold means of three test repetitions per evaluated harness after search, without using test feedback for optimization.

Figure 6 Hyperparameter sensitivity of full MASH on Finance-Agent under the centralized workflow using five-fold evaluation. (a) Checkpoints from one 30-round search per fold with an extended development budget and initial candidate cap of three. (b) Initial candidate caps of {1, 2, 3, 4, 5} with a 20-round limit and 4,000 development task attempts per fold. Scores are multiplied by 100. The marked defaults—20 optimization rounds and an initial candidate cap of three—capture most observed gains.

Filtering thresholds. We examine the effectiveness threshold θeff and robustness threshold θgen on all four benchmarks. For each benchmark, we vary one threshold while fixing the other at its default value and keeping the screening-subset size at the value listed in Table 10. Table 39 reports the resulting test scores. The default-setting scores correspond to Optimization Run 1, whereas Table 1 summarizes three independent optimization runs at the defaults. Relative to the selected defaults, the largest score decreases among the tested perturbations are 1.16, 1.33, 1.34, and 1.67 points on Finance-Agent, BrowseComp-Plus, Plancraft, and WorkBench, respectively. The threshold-selection procedure is described in Appendix B.1.

Table 39 Sensitivity to the effectiveness and robustness thresholds. Test scores are multiplied by 100. Each non-default row varies one threshold with the other fixed; the selected default configuration for each benchmark is bold.

Benchmark θeff θgen Test score
Finance-Agent 0.000 0.0025 52.16
0.005 0.0025 52.88
0.010 0.0025 51.72
0.005 0.0000 52.29
0.005 0.0050 51.83
BrowseComp-Plus 0.000 0.075 28.33
0.060 0.075 29.00
0.190 0.075 27.67
0.060 0.025 28.67
0.060 0.125 28.00
Plancraft 0.040 0.025 61.00
0.100 0.025 61.67
0.190 0.025 60.33
0.100 0.000 61.33
0.100 0.075 60.67
WorkBench 0.050 0.075 47.67
0.150 0.075 48.00
0.250 0.075 46.33
0.150 0.025 47.33
0.150 0.125 47.00

E.3 Candidate Evaluation Costs and Task-Start Accounting

E.3.1 Scheduled Evaluations and Cascade Savings

A complete evaluation path for one F/U/O/R/L version allocates 152 MAS task starts: 8 = 2 × 4 for Stage 2, 16 = 2 × 8 for Stage 3, and 128 = 2 × 32 × 2 for next-round adoption. The factors count both harnesses, tasks, and repetitions. Stage 1 uses no MAS executions; rejection avoids later stages.

Let N count submitted versions and S scheduled starts avoided by filtering-stage rejection. Table 40 reports the avoided fraction S/(152N) and actual development starts, pooled across five folds.

Table 40 Candidate costs across five centralized Finance-Agent folds. N: submitted versions; S: scheduled starts avoided by filtering; avoided fraction: S/(152N). Development counts actual launches, excluding final testing. Variants: Table 29.

Variant N Development
task starts
Avoided
task starts S
Avoided
(%)
F (MASH) 164 16,946 9,640 38.7
U 173 15,820 11,160 42.4
O 169 15,191 11,768 45.8
R 181 14,868 13,704 49.8
L 176 16,292 11,600 43.4

Filtering avoids 38.7–49.8% of the scheduled allocation; the ledger below accounts for unfinished comparisons and other launches.

E.3.2 Actual Task Starts

A slot schedules one harness on one task and repetition. First, subtract filtering savings S from 152N. Next, subtract unfinished next-round slots (Dinc) and add back their one-sided launches (Cunp); Q − M counts unfinished comparisons. Finally, add first parent-only diagnosis launches when no candidate proceeds (Cparent), initialization and its retries (Cinit), and other whole-task retries, including parent-only retries (Cretry):

$\(C_{\text{dev}} = 152N - S - D_{\text{inc}} + C_{\text{unp}} + C_{\text{parent}} + C_{\text{init}} + C_{\text{retry}}.\)$ (1)

Table 41 reconciles the totals for all five strategies; final testing is excluded.

Table 41 Development task-start ledger across five Finance-Agent folds. Signed adjustments follow Equation 1; residual is the reconciled total minus Table 40.

Accounting item F U O R L
Complete schedule 152N 24,928 26,296 25,688 27,512 26,752
Filtering adjustment −S −9,640 −11,160 −11,768 −13,704 −11,600
Remaining allocation 152N − S 15,288 15,136 13,920 13,808 15,152
Incomplete slots −Dinc −432 −648 −556 −512 −382
Unpaired starts (+Cunp) 9 10 8 10 10
Parent-only starts (+Cparent) 1,664 896 1,408 1,152 1,088
Initialization (+Cinit) 320 322 322 328 320
Whole-task retries (+Cretry) 97 104 89 82 104
Development starts Cdev 16,946 15,820 15,191 14,868 16,292
Residual 0 0 0 0 0

The net unstarted counts Dinc − Cunp are 423, 638, 548, 502, and 372 for F/U/O/R/L. Per-round summaries in Appendix E.2 additionally exclude initialization.

E.4 Development Compute Across Baselines

Table 42 compares development use under the task-attempt budgets in Appendix B.3. The cap bounds launched MAS executions; optimizer requests and tokens measure the separate cost of proposing and assessing changes.

Table 42 Development compute on Finance-Agent under the centralized workflow, aggregated over five folds. Each optimization method has an independent cap of 4,000 MAS task attempts per fold, with no transfer between folds. Input and output are optimizer tokens in millions; final testing is excluded.

Method Task attempts Optimizer calls Input (M) Output (M)
MAS-Centralized 0 0 0.00 0.00
GEPA 19,742 2,147 26.31 3.41
RHI 3,487 3,287 18.94 1.34
ACE 3,118 2,241 41.76 2.07
AHE 3,276 12,083 151.37 12.64
Life-Harness 6,914 873 17.68 1.37
Meta-Harness 17,284 2,317 58.42 4.71
HarnessX 17,533 2,286 48.11 4.18
Meta-Team 236 2,296 38.87 1.84
AFlow 13,684 131 2.71 0.34
MASH 16,946 913 8.27 0.93

The methods allocate computation differently: AHE uses relatively few MAS executions but many optimizer requests, whereas AFlow evaluates many executions per request. Meta-Team makes approximately one development pass per fold, plus retries and auxiliary evaluations; its per-task evolution produces more optimizer requests than task attempts. GEPA approaches the cap, while other methods may stop earlier under their native schedules.

MAS-Centralized has zero development optimization cost because it performs no search. Its frozen test executions are excluded under the same accounting convention.

Comparisons under extended search budgets. To examine the effect of the differences in realized MAS execution counts, we extend development search for RHI, ACE, AHE, Life-Harness, and AFlow on Finance-Agent under the centralized workflow. Table 43 reports their original and extended task-attempt counts and test scores, alongside the unchanged reference results for the other methods. Task attempts are aggregated over the five folds using the accounting convention above, excluding final testing. These comparisons use the Optimization Run 1 results as their reference; Table 1 summarizes three independent optimization runs.

For these extended searches, the cap of 4,000 MAS task attempts remains enforced independently in each fold. Each method retains its original rule for selecting the final harness.

We extend RHI by increasing the number of harness revisions and ACE by increasing adaptation epochs, with the number of per-sample reflection iterations unchanged. For AHE, we increase evolution iterations while retaining the historical best version and rollback mechanism. For Life-Harness, we increase the number of revisions while retaining its original improvement-adoption rule. For AFlow, we increase the number of Monte Carlo tree search expansions.

The extended methods use 16,854–17,038 task attempts, close to MASH's 16,946. RHI, AHE, Life-Harness, and AFlow improve by 1.11, 0.75, 1.26, and 0.61 score points, respectively, whereas ACE decreases by 0.34 points. MASH attains 52.88, exceeding HarnessX's 48.76 by 4.12 points at similar execution counts. GEPA is retained as a reference at its higher original count of 19,742 attempts. Thus, extending the baselines with fewer development task attempts does not close the observed performance gap in this comparison.

Comparison at 236 task attempts. Meta-Team's native schedule makes approximately one development pass over the 32 diagnosis tasks in each fold, with an evolution step after each task. We therefore compare it with

Table 43 Finance-Agent results before and after extending development search for the baselines with fewer development task attempts. Task attempts are aggregated over five folds; test scores are multiplied by 100. The search budgets for the other methods remain unchanged.

Task attempts Test score ∆ Score
Method Original Extended Original Extended
MAS-Centralized 0 0 39.97 39.97 0.00
GEPA 19,742 19,742 39.32 39.32 0.00
RHI 3,487 16,911 43.02 44.13 +1.11
ACE 3,118 17,038 38.23 37.89 −0.34
AHE 3,276 16,854 46.83 47.58 +0.75
Life-Harness 6,914 16,987 43.49 44.75 +1.26
Meta-Harness 17,284 17,284 47.24 47.24 0.00
HarnessX 17,533 17,533 48.76 48.76 0.00
AFlow 13,684 16,863 42.85 43.46 +0.61
MASH 16,946 16,946 52.88 52.88 0.00

Table 44 Finance-Agent comparison at the same total of 236 development task attempts across five folds. Final testing is excluded from the attempt count; test scores are multiplied by 100.

Method Task attempts Test score
Meta-Team 236 41.86
MASH 236 42.49

MASH separately at the same total of 236 task attempts, rather than extending Meta-Team to the execution counts in Table 43. Table 44 shows that MASH scores 42.49 versus Meta-Team's 41.86, a gain of 0.63 points at this execution count.

F Generalization

We evaluate harness optimization under fixed workflows and transfer to new execution backbones.

F.1 Workflow Generalization

We optimize independently under centralized, decentralized, hybrid, and independent workflows, editing each workflow's native decision points while keeping its topology and communication channels fixed. The independent workflow permits local execution and terminal aggregation edits, without intermediate communication or shared intermediate agent state.

Table 45 compares MASH with the initial MAS and strongest reported baseline in each benchmark–workflow setting.

Table 45 Harness optimization under four fixed workflows, with a separate search for each workflow (scores ×100; mean over three frozen-harness test repetitions). Best baseline is the highest score among the nine optimization baselines from the main comparison, each adapted to the corresponding fixed workflow, for each benchmark–workflow pair. HX, MH, and AF denote HarnessX, Meta-Harness, and AFlow. Slashes denote ties, bold marks the best score, and Improvement is MASH minus the best baseline in score points. Centralized results are from Optimization Run 1; Table 1 reports means over three independent optimization runs.

Method Finance-Agent BrowseComp-Plus Plancraft WorkBench
Centralized
MAS-Centralized 39.97 20.00 53.00 35.00
Best baseline 48.76 (HX) 25.33 (HX) 57.00 (AF) 43.33 (HX)
MASH 52.88 29.00 61.67 48.00
Improvement +4.12 +3.67 +4.67 +4.67
Decentralized
MAS-Decentralized 38.26 23.67 53.00 41.00
Best baseline 46.25 (HX) 29.33 (MH/AF) 56.67 (AF) 49.33 (HX)
MASH 48.97 34.67 60.33 53.33
Improvement +2.72 +5.34 +3.66 +4.00
Hybrid
MAS-Hybrid 39.55 21.67 55.00 37.00
Best baseline 47.86 (HX) 28.00 (HX) 59.67 (AF) 44.33 (MH)
MASH 50.76 32.33 63.67 49.67
Improvement +2.90 +4.33 +4.00 +5.34
Independent
MAS-Independent 35.75 14.67 45.00 46.00
Best baseline 40.71 (HX) 18.67 (HX) 47.33 (HX/AF) 48.67 (HX)
MASH 42.43 24.00 52.67 52.00
Improvement +1.72 +5.33 +5.34 +3.33

MASH exceeds the best reported baseline in all 16 benchmark–workflow pairs, by 1.72–5.34 points. No single workflow yields the highest MASH score on every benchmark: centralized leads on Finance-Agent, decentralized on BrowseComp-Plus and WorkBench, and hybrid on Plancraft. The gains extend to the independent workflow without intermediate communication.

F.2 Backbone Transfer and Adaptation

On centralized Finance-Agent, each fold transfers its development-selected harness from Gemini 2.5 Flash-Lite to GPT-4o mini and Claude Haiku 4.5. Table 46 compares the initial harness H0, the unchanged source harness (Frozen transfer ), and subsequent target-side optimization (Re-optimized).

Roles, topology, tool permissions, scorer, per-task budgets, diagnosis and generation models, and search rules remain fixed. Re-optimization uses 20 additional rounds per target backbone, with at most three initial candidates per round and session caps of 11 for analysis and 13 for generation. Adaptation uses only the corresponding fold's diagnosis and validation partitions.

Table 46 Backbone transfer from Gemini 2.5 Flash-Lite on centralized Finance-Agent. Initial MAS uses H0; frozen transfer applies the source harness unchanged; re-optimization adds 20 target-side rounds. Scores are means over three frozen-harness test repetitions (×100); the best score per target is bold.

Condition GPT-4o mini Claude Haiku 4.5
Initial MAS 42.13 46.27
Frozen transfer 46.08 51.64
Re-optimized 53.36 54.11

Frozen transfer gains 3.95 points on GPT-4o mini and 5.37 on Claude Haiku 4.5 over their initial MAS scores. Target-side re-optimization adds another 7.28 and 2.47 points, respectively. Both backbones benefit from transfer and further adaptation.

Control for transferred initialization. To evaluate the effect of initialization, we optimize H0 and the sourceoptimized harness Hsource for 20 rounds on each target backbone. Table 47 compares these two conditions with the initial MAS and frozen transfer. Source and target round counts are reported separately: the transferred initialization includes 20 source-side rounds before the 20 target-side rounds, whereas optimization from H0 uses only the 20 target-side rounds.

Without target-side optimization, frozen transfer improves the score over the initial MAS by 3.95 points on GPT-4o mini and 5.37 points on Claude Haiku 4.5. After 20 target-side rounds, optimization from H0 reaches 52.17 and 53.43, compared with 53.36 and 54.11 from Hsource. The additional gains from transferred initialization are therefore 1.19 and 0.68 points. Thus, transferred initialization yields higher scores than optimizing from H0 after the same 20 target-side rounds, although this additional gain is smaller than the gain from frozen transfer itself.

Table 47 Cross-backbone initialization comparison on Finance-Agent under the centralized workflow. Source rounds use Gemini 2.5 Flash-Lite; target rounds use the model named in the score column. Test scores are multiplied by 100. The final row compares the two conditions with 20 target-side optimization rounds.

Condition Source
rounds
Target
rounds
GPT-4o
mini
Claude
Haiku 4.5
Initial MAS (H0) 0 0 42.13 46.27
Frozen transfer (Hsource) 20 0 46.08 51.64
Optimize from H0 0 20 52.17 53.43
Optimize from Hsource 20 20 53.36 54.11
Gain from transferred initialization — — +1.19 +0.68

G Failure Annotation and Measurement

This protocol defines the population, level-specific labels, review, and aggregation for Appendix D.5. It counts the occurrence of observable, level-specific process defects in frozen-harness test executions.

G.1 Population and Annotation Evidence

Scope and unit of analysis. The unit is one test execution with a score below the maximum (a non-perfect execution). Before selecting non-perfect executions, Finance-Agent supplies 150 test executions per method: 50 held-out tasks across five folds, each repeated three times. The other benchmarks also use three repetitions per held-out task (Appendix B.1).

Each record identifies the method, benchmark, task, repetition, and, for Finance-Agent, fold. Annotators judge the trajectories independently of search-time diagnoses and other error taxonomies.

Evidence available to annotators. Annotators receive the task requirements and an ordered record of roles, assigned requests, agent-visible model inputs, tool observations, delivered contributions, and team decisions. Annotation inputs exclude method identities, scores, reference answers, rubric judgments, and other annotators' labels. Scores determine eligibility only.

Judgments cite events in context. Omission judgments use the recipient's full input snapshot, including visible messages and context blocks.

G.2 Level Definitions and Label States

Labels follow the responsibility of the defective decision, independent of the acting agent, implementation file, or possible repair hook. Table 48 defines the three levels and their boundaries.

Table 48 Operational failure definitions and boundary cases. Labels follow the responsibility of the defective decision.

Level Definition, examples, and boundary
Node: local
execution
Retrieval, extraction, reasoning, calculation, tool use, or verification fails to satisfy the agent's
assigned work given its inputs. Examples are using an incorrect unit despite receiving the
correct one, miscalculating available values, and selecting incorrect tool arguments. An
unsuccessful search or tool-service failure alone does not establish a node defect.
Edge: requests and
delivery
A request or contribution fails to preserve information required for the interaction. Examples
include omitting an essential request constraint, an available reporting period, or a source
binding. A delivery omission concerns information the sender had acquired. Leaving necessary
work unassigned is a graph defect rather than a request-expression defect.
Graph: team
decisions
Allocation, acceptance, aggregation, conflict resolution, coverage checking, or stopping fails to
satisfy the overall task. Examples are leaving necessary work unassigned, failing to integrate an
available contribution, and stopping with required work unresolved. A prescribed budget stop
alone does not establish defective stopping.

Label states and overlap. Each level receives one state: present for a defect supported by locatable evidence; absent for an inspectable process with no such defect; or unknown for insufficient or ambiguous evidence, such as missing inputs or incomplete logs. Labels describe level-specific processes, not answer correctness. Infrastructure errors are recorded separately.

Multiple levels require independent evidence. Passing an upstream calculation error unchanged does not itself establish an edge defect, nor does an incorrect aggregate answer establish a graph defect.

G.3 Annotation and Review

Both annotators apply the same rules separately at each level. Their outputs contain the anonymous execution identifier, each level's label, a responsibility-specific reason, and evidence references.

    1. Primary annotation. GPT-5.5 labels the eligible non-perfect executions using the trajectory evidence specified above.
    1. Independent review. Task identifiers are sampled before inspecting primary labels: two held-out tasks per Finance-Agent fold (10 total), and 20 tasks independently for each other benchmark. Within a benchmark, the same sampled tasks define the review frame for MAS-Centralized, Meta-Harness, and MASH across all three repetitions. Within this frame, Gemini 2.5 Flash independently labels eligible non-perfect executions without access to the primary output.
    1. Adjudication and boundary checks. Disagreements undergo human adjudication against the original trajectory evidence. Labels unresolved at adjudication retain the unknown state. Ten additional executions are randomly sampled from records with complete three-level agreement for evidence and boundary checks.

Final failure-count analyses use the final labels after review.

Table 49 Inter-annotator agreement for node-, edge-, and graph-level failure labeling. Executions count eligible non-perfect executions receiving secondary annotation; Judgments count their three level-wise decisions. Agreement and unweighted Cohen's κ are computed within each benchmark by pooling the three level-wise judgments, using pre-adjudication present, absent, and unknown labels.

Benchmark Executions Judgments Agreement Cohen's κ
Finance-Agent 62 186 92.5% 0.85
BrowseComp-Plus 135 405 90.1% 0.81
Plancraft 77 231 90.9% 0.83
WorkBench 105 315 90.5% 0.83

Human adjudication results. The independent review summarized in Table 49 comprises 1,137 level-wise judgments across the four benchmarks, with 105 pre-adjudication disagreements. Table 50 reports their human adjudication outcomes. Human review supports the primary label in 69 cases and the secondary label in 26 cases, assigns an alternative label in six cases, and retains the unknown state in four unresolved cases. These counts refer to level-wise judgments, not distinct executions. For the ten executions randomly sampled from records where both annotators agree on all three levels, human review confirms 28 of the 30 level-wise judgments (93.3%) and corrects two.

Table 50 Human adjudication of pre-adjudication level-wise label disagreements. Primary and Secondary denote the annotator whose label is supported by human review; Neither denotes an alternative human-assigned label. Unresolved cases retain the unknown state.

Benchmark Disagreements Primary Secondary Neither Unresolved
Finance-Agent 14 11 2 1 0
BrowseComp-Plus 40 26 10 3 1
Plancraft 21 13 5 1 2
WorkBench 30 19 9 1 1
Total 105 69 26 6 4

G.4 Aggregation and Unknown Labels

For method m, let Dm be its non-perfect execution set and let yi,ℓ be the final label of execution i at level ℓ. The confirmed issue count and its within-population percentage are

\[C_{m,\ell} = \sum_{i \in D_m} \mathbf{1}[y_{i,\ell} = \text{present}], \qquad P_{m,\ell} = 100 \, \frac{C_{m,\ell}}{|D_m|}.\]

Repeated occurrences at one level within an execution count once. The coordination union is computed by execution identity:

\[C_{m,E \cup G} = \sum_{i \in D_m} \mathbf{1}[y_{i,E} = \text{present} \ \lor \ y_{i,G} = \text{present}].\]

Unknown-label accounting. Unknown labels remain in the denominator. For each method, benchmark, and level, the three states exhaust the non-perfect execution set:

\[N_{m,\ell}^{\text{present}} + N_{m,\ell}^{\text{absent}} + N_{m,\ell}^{\text{unknown}} = |D_m|.\]

Executions with no present label are separated into those with three absent labels and those containing at least one unknown label.

Table 51 reports unknown labels separately for each method, benchmark, and level.

Table 51 Unknown labels in the execution-level failure analysis. Each row identifies one benchmark–method population. Node, Edge, and Graph count unknown labels at the corresponding level; these counts need not refer to distinct executions. Unknown labels remain in the denominator of within-method percentages.

Benchmark Method Non-perfect Unknown labels
executions Node Edge Graph
Finance-Agent MAS-Centralized 117 4 2 2
Finance-Agent Meta-Harness 101 3 2 1
Finance-Agent MASH 91 3 1 1
BrowseComp-Plus MAS-Centralized 240 8 10 7
BrowseComp-Plus Meta-Harness 225 7 9 7
BrowseComp-Plus MASH 213 7 9 6
Plancraft MAS-Centralized 141 3 5 4
Plancraft Meta-Harness 131 3 4 4
Plancraft MASH 115 3 4 3
WorkBench MAS-Centralized 195 6 7 6
WorkBench Meta-Harness 173 5 6 5
WorkBench MASH 156 5 6 5

Prompt, context, memory, and tool optimization. Prompt and context methods refine the information presented to the agent: GEPA updates prompts through trajectory-based reflection Agrawal et al., 2026, ACE accumulates strategies through incremental context updates Zhang et al., 2025d, and ACON optimizes context-compression guidelines from failure evidence Kang et al., 2026. Other methods change supporting components: MemEvolve modifies memory implementation code Zhang et al., 2025b, while RewardHarness evolves external tools and skills for a frozen image-preference evaluator Zhang et al., 2026c.

Executable harness optimization. Executable harness methods revise code and interfaces using execution evidence. Meta-Harness draws on historical code and traces Lee et al., 2026b; AHE verifies edits using evidence and predicted effects Lin et al., 2026; Life-Harness intervenes across the agent–environment lifecycle Xu et al., 2026c. HarnessX and Self-Harness link failure evidence to modifications and acceptance checks Chen et al., 2026b; Zhang et al., 2026b, while AutoSaddler uses execution-trace diagnosis for targeted updates Park et al., 2026.

Evaluation efficiency and continual adaptation. HarnessLens selects informative validation tasks Xu et al., 2026b; HarnessBank uses gated verification Luo et al., 2026; ModularRSI applies successive program, edit, and execution checks Wu et al., 2026. EvoTest, Continual Harness, and Evo-Harness extend adaptation across repeated episodes, interactions, or tasks He et al., 2026; Karten et al., 2026; Wei et al., 2026. These settings differ in when feedback is available and whether adaptation continues during evaluation, motivating explicit feedback and inference budgets together with independent held-out assessment Wang et al., 2026a; Ursekar et al., 2026b.